@pikku/addon-mindee 0.0.6 → 0.0.8

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/README.md +1 -1
  2. package/dist/.pikku/addon/agent/index.d.ts +1 -1
  3. package/dist/.pikku/addon/agent/index.js +1 -1
  4. package/dist/.pikku/addon/agent/index.ts +1 -1
  5. package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
  6. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +47 -6
  7. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -1
  8. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +41 -0
  9. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -1
  10. package/dist/.pikku/addon/agent/pikku-agent-types.gen.ts +42 -1
  11. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
  12. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.ts +1 -1
  13. package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
  14. package/dist/.pikku/addon/analytics/index.d.ts +8 -0
  15. package/dist/.pikku/addon/analytics/index.d.ts.map +1 -0
  16. package/dist/.pikku/addon/analytics/index.js +8 -0
  17. package/dist/.pikku/addon/analytics/index.js.map +1 -0
  18. package/dist/.pikku/addon/analytics/index.ts +8 -0
  19. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +6 -0
  20. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts.map +1 -0
  21. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +5 -0
  22. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js.map +1 -0
  23. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.ts +25 -0
  24. package/dist/.pikku/addon/auth/index.d.ts +1 -1
  25. package/dist/.pikku/addon/auth/index.js +1 -1
  26. package/dist/.pikku/addon/auth/index.ts +1 -1
  27. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +2 -19
  28. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -1
  29. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +2 -19
  30. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -1
  31. package/dist/.pikku/addon/auth/pikku-auth-types.gen.ts +2 -19
  32. package/dist/.pikku/addon/channel/index.d.ts +1 -1
  33. package/dist/.pikku/addon/channel/index.js +1 -1
  34. package/dist/.pikku/addon/channel/index.ts +1 -1
  35. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +10 -20
  36. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -1
  37. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +7 -1
  38. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -1
  39. package/dist/.pikku/addon/channel/pikku-channel-types.gen.ts +8 -18
  40. package/dist/.pikku/addon/cli/index.d.ts +8 -0
  41. package/dist/.pikku/addon/cli/index.d.ts.map +1 -0
  42. package/dist/.pikku/addon/cli/index.js +8 -0
  43. package/dist/.pikku/addon/cli/index.js.map +1 -0
  44. package/dist/.pikku/addon/cli/index.ts +8 -0
  45. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +62 -0
  46. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts.map +1 -0
  47. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +49 -0
  48. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js.map +1 -0
  49. package/dist/.pikku/addon/cli/pikku-cli-types.gen.ts +88 -0
  50. package/dist/.pikku/addon/console/pikku-addon-meta.gen.json +16 -0
  51. package/dist/.pikku/addon/credentials/index.d.ts +1 -1
  52. package/dist/.pikku/addon/credentials/index.js +1 -1
  53. package/dist/.pikku/addon/credentials/index.ts +1 -1
  54. package/dist/.pikku/addon/credentials/pikku-credentials.gen.d.ts +1 -1
  55. package/dist/.pikku/addon/credentials/pikku-credentials.gen.d.ts.map +1 -1
  56. package/dist/.pikku/addon/credentials/pikku-credentials.gen.js +1 -1
  57. package/dist/.pikku/addon/credentials/pikku-credentials.gen.ts +1 -1
  58. package/dist/.pikku/addon/db/pikku-db-meta.gen.json +1 -0
  59. package/dist/.pikku/addon/error/index.d.ts +1 -1
  60. package/dist/.pikku/addon/error/index.js +1 -1
  61. package/dist/.pikku/addon/error/index.ts +1 -1
  62. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
  63. package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
  64. package/dist/.pikku/addon/error/pikku-error-types.gen.ts +1 -1
  65. package/dist/.pikku/addon/function/index.d.ts +1 -1
  66. package/dist/.pikku/addon/function/index.js +1 -1
  67. package/dist/.pikku/addon/function/index.ts +1 -1
  68. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +48 -48
  69. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -1
  70. package/dist/.pikku/addon/function/pikku-function-types.gen.js +21 -9
  71. package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -1
  72. package/dist/.pikku/addon/function/pikku-function-types.gen.ts +47 -45
  73. package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +4 -2
  74. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
  75. package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +2 -0
  76. package/dist/.pikku/addon/function/pikku-functions-meta.gen.ts +1 -1
  77. package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
  78. package/dist/.pikku/addon/function/pikku-functions.gen.ts +1 -1
  79. package/dist/.pikku/addon/http/index.d.ts +1 -1
  80. package/dist/.pikku/addon/http/index.js +1 -1
  81. package/dist/.pikku/addon/http/index.ts +1 -1
  82. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +3 -1
  83. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -1
  84. package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
  85. package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -1
  86. package/dist/.pikku/addon/http/pikku-http-types.gen.ts +3 -1
  87. package/dist/.pikku/addon/mcp/index.d.ts +1 -1
  88. package/dist/.pikku/addon/mcp/index.js +1 -1
  89. package/dist/.pikku/addon/mcp/index.ts +1 -1
  90. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +7 -1
  91. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
  92. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
  93. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -1
  94. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.ts +7 -1
  95. package/dist/.pikku/addon/middleware/index.d.ts +1 -1
  96. package/dist/.pikku/addon/middleware/index.js +1 -1
  97. package/dist/.pikku/addon/middleware/index.ts +1 -1
  98. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +33 -24
  99. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -1
  100. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +29 -24
  101. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -1
  102. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.ts +33 -24
  103. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  104. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
  105. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.ts +1 -1
  106. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
  107. package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
  108. package/dist/.pikku/addon/pikku-bootstrap.gen.ts +1 -1
  109. package/dist/.pikku/addon/pikku-local-services.gen.d.ts +29 -0
  110. package/dist/.pikku/addon/pikku-local-services.gen.d.ts.map +1 -0
  111. package/dist/.pikku/addon/pikku-local-services.gen.js +42 -0
  112. package/dist/.pikku/addon/pikku-local-services.gen.js.map +1 -0
  113. package/dist/.pikku/addon/pikku-local-services.gen.ts +85 -0
  114. package/dist/.pikku/addon/pikku-package.gen.js +2 -1
  115. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  116. package/dist/.pikku/addon/pikku-package.gen.ts +3 -1
  117. package/dist/.pikku/addon/pikku-services.gen.d.ts +12 -3
  118. package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
  119. package/dist/.pikku/addon/pikku-services.gen.js +11 -1
  120. package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
  121. package/dist/.pikku/addon/pikku-services.gen.ts +14 -3
  122. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -2
  123. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -2
  124. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +2 -2
  125. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  126. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
  127. package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
  128. package/dist/.pikku/addon/scenarios/index.js +1 -1
  129. package/dist/.pikku/addon/scenarios/index.ts +1 -1
  130. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  131. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.ts +1 -1
  132. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  133. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.ts +1 -1
  134. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +53 -35
  135. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
  136. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +7 -3
  137. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
  138. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.ts +57 -40
  139. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  140. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.ts +1 -1
  141. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  142. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts +1 -1
  143. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts +33 -0
  144. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts.map +1 -0
  145. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js +29 -0
  146. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js.map +1 -0
  147. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.ts +52 -0
  148. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
  149. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
  150. package/dist/.pikku/addon/scenarios/schemas/register.gen.ts +1 -1
  151. package/dist/.pikku/addon/schemas/register.gen.js +1 -1
  152. package/dist/.pikku/addon/schemas/register.gen.ts +1 -1
  153. package/dist/.pikku/addon/scopes/index.d.ts +2 -1
  154. package/dist/.pikku/addon/scopes/index.d.ts.map +1 -1
  155. package/dist/.pikku/addon/scopes/index.js +2 -1
  156. package/dist/.pikku/addon/scopes/index.js.map +1 -1
  157. package/dist/.pikku/addon/scopes/index.ts +2 -1
  158. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts +41 -0
  159. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts.map +1 -0
  160. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js +35 -0
  161. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js.map +1 -0
  162. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.ts +52 -0
  163. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +9 -0
  164. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts.map +1 -0
  165. package/dist/.pikku/addon/scopes/pikku-flags.gen.js +2 -0
  166. package/dist/.pikku/addon/scopes/pikku-flags.gen.js.map +1 -0
  167. package/dist/.pikku/addon/scopes/pikku-flags.gen.ts +8 -0
  168. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
  169. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -1
  170. package/dist/.pikku/addon/scopes/pikku-roles.gen.ts +1 -1
  171. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +2 -1
  172. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -1
  173. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +2 -1
  174. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -1
  175. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +2 -1
  176. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
  177. package/dist/.pikku/addon/scopes/pikku-scopes.gen.ts +1 -1
  178. package/dist/.pikku/addon/scopes/pikku-virtual-users-meta.gen.json +1 -0
  179. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts +27 -0
  180. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts.map +1 -0
  181. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js +16 -0
  182. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js.map +1 -0
  183. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.ts +39 -0
  184. package/dist/.pikku/addon/secrets/index.d.ts +1 -1
  185. package/dist/.pikku/addon/secrets/index.js +1 -1
  186. package/dist/.pikku/addon/secrets/index.ts +1 -1
  187. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
  188. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
  189. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.ts +1 -1
  190. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +9 -1
  191. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -1
  192. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +5 -1
  193. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -1
  194. package/dist/.pikku/addon/secrets/pikku-secrets.gen.ts +9 -1
  195. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
  196. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -1
  197. package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
  198. package/dist/.pikku/addon/services/pikku-meta-service.gen.ts +1 -1
  199. package/dist/.pikku/addon/setup/index.d.ts +1 -1
  200. package/dist/.pikku/addon/setup/index.js +1 -1
  201. package/dist/.pikku/addon/setup/index.ts +1 -1
  202. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +4 -4
  203. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -1
  204. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
  205. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.ts +1 -1
  206. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +8 -20
  207. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -1
  208. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +11 -19
  209. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -1
  210. package/dist/.pikku/addon/setup/pikku-setup-types.gen.ts +19 -19
  211. package/dist/.pikku/addon/surface-usage.gen.json +326 -16
  212. package/dist/.pikku/addon/trigger/index.d.ts +1 -1
  213. package/dist/.pikku/addon/trigger/index.js +1 -1
  214. package/dist/.pikku/addon/trigger/index.ts +1 -1
  215. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +64 -1
  216. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
  217. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +17 -1
  218. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -1
  219. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.ts +58 -1
  220. package/dist/.pikku/addon/utils/index.d.ts +8 -0
  221. package/dist/.pikku/addon/utils/index.d.ts.map +1 -0
  222. package/dist/.pikku/addon/utils/index.js +8 -0
  223. package/dist/.pikku/addon/utils/index.js.map +1 -0
  224. package/dist/.pikku/addon/utils/index.ts +8 -0
  225. package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts +5 -0
  226. package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts.map +1 -0
  227. package/dist/.pikku/addon/utils/pikku-utils-types.gen.js +5 -0
  228. package/dist/.pikku/addon/utils/pikku-utils-types.gen.js.map +1 -0
  229. package/dist/.pikku/addon/utils/pikku-utils-types.gen.ts +4 -0
  230. package/dist/.pikku/addon/variables/index.d.ts +1 -1
  231. package/dist/.pikku/addon/variables/index.js +1 -1
  232. package/dist/.pikku/addon/variables/index.ts +1 -1
  233. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
  234. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
  235. package/dist/.pikku/addon/variables/pikku-variable-types.gen.ts +1 -1
  236. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +9 -1
  237. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -1
  238. package/dist/.pikku/addon/variables/pikku-variables.gen.js +7 -2
  239. package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -1
  240. package/dist/.pikku/addon/variables/pikku-variables.gen.ts +10 -2
  241. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks-meta.gen.json +1 -0
  242. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +12 -0
  243. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts.map +1 -0
  244. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js +3 -0
  245. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js.map +1 -0
  246. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.ts +15 -0
  247. package/dist/.pikku/addon/workflow/index.d.ts +1 -1
  248. package/dist/.pikku/addon/workflow/index.js +1 -1
  249. package/dist/.pikku/addon/workflow/index.ts +1 -1
  250. package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  251. package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
  252. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +30 -6
  253. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  254. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +8 -1
  255. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -1
  256. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.ts +33 -2
  257. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  258. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
  259. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  260. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
  261. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.ts +1 -1
  262. package/dist/.pikku/addon/workflow/virtual-users.gen.json +1 -0
  263. package/dist/.pikku/runs/mvcet6gb.all.jsonl +3 -0
  264. package/dist/.pikku/runs/mvcf0qu1.all.jsonl +3 -0
  265. package/dist/src/functions/invoicePredict.function.d.ts +3 -3
  266. package/dist/src/functions/invoicePredict.function.d.ts.map +1 -1
  267. package/dist/src/functions/receiptPredict.function.d.ts +3 -3
  268. package/dist/src/functions/receiptPredict.function.d.ts.map +1 -1
  269. package/dist/src/mindee-api.service.d.ts.map +1 -1
  270. package/dist/src/mindee-api.service.js.map +1 -1
  271. package/package.json +6 -6
  272. package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +0 -18
  273. package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +0 -1
  274. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +0 -18
  275. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +0 -1
  276. package/dist/.pikku/addon/scenarios/pikku-personas.gen.ts +0 -36
  277. package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts +0 -29
  278. package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +0 -1
  279. package/dist/.pikku/addon/scopes/pikku-personas.gen.js +0 -18
  280. package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +0 -1
  281. package/dist/.pikku/addon/scopes/pikku-personas.gen.ts +0 -41
  282. /package/dist/.pikku/addon/{scopes/pikku-personas-meta.gen.json → analytics/pikku-analytics-meta.gen.json} +0 -0
  283. /package/dist/.pikku/addon/{workflow/personas.gen.json → scopes/pikku-flags-meta.gen.json} +0 -0
package/README.md CHANGED
@@ -9,4 +9,4 @@ Mindee OCR document prediction API
9
9
  3. Implement API service methods
10
10
  4. Create function files for each operation
11
11
  5. Export functions in `src/index.ts`
12
- 6. Build: `yarn install && yarn pikku && yarn build`
12
+ 6. Build: `bun install && bun run pikku && bun run build`
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/agent` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/agent` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/agent` resolves here.
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  export type AgentMap = {}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import { CoreAgent } from '@pikku/core/agent';
5
5
  import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge } from '@pikku/core/agent-scorer';
@@ -21,34 +21,75 @@ type AgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined, O
21
21
  agents?: AgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[];
22
22
  workflows?: object[];
23
23
  };
24
+ /**
25
+ * Declares an agent: the model, the prompt, the tools it may call and the shape
26
+ * of what it returns. Wire it like any other function.
27
+ *
28
+ * @example snippet: aiAgent
29
+ */
24
30
  export declare const pikkuAgent: <InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(agent: AgentConfig<InputSchema, OutputSchema>) => AgentConfig<InputSchema, OutputSchema>;
31
+ /**
32
+ * Declares a scorer that grades an agent run programmatically — a function over
33
+ * the run's input and output returning a score.
34
+ *
35
+ * @example snippet: agentScorer
36
+ */
25
37
  export declare const pikkuAgentScorer: (config: Parameters<typeof corePikkuAgentScorer<Services>>[0]) => import("@pikku/core/agent-scorer").PikkuAgentScorer<Services>;
38
+ /**
39
+ * Declares a scorer that grades an agent run with another model, for the
40
+ * qualities a programmatic check cannot express.
41
+ *
42
+ * @example snippet: agentJudge
43
+ */
26
44
  export declare const pikkuAgentJudge: (config: Parameters<typeof corePikkuAgentJudge<Services>>[0]) => import("@pikku/core/agent-scorer").PikkuAgentScorer<Services>;
45
+ /**
46
+ * A ready-made function that runs the named agent once and returns its result —
47
+ * wire it straight to a route when you need no logic around the run.
48
+ *
49
+ * @example snippet: aiAgentInvoke
50
+ */
27
51
  export declare const agent: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<AgentInput, {
28
52
  runId: string;
29
- result: AgentMap[Name]["output"];
53
+ result: AgentMap[Name]['output'];
30
54
  usage: {
31
55
  inputTokens: number;
32
56
  outputTokens: number;
33
57
  };
34
- }, "session" | "rpc">;
58
+ }, 'session' | 'rpc'>;
59
+ /**
60
+ * The streaming counterpart of `agent`: wire it to a channel to send tokens and
61
+ * tool calls as they happen instead of waiting for the run to finish.
62
+ *
63
+ * @example snippet: aiAgentStream
64
+ */
35
65
  export declare const agentStream: <Name extends keyof AgentMap>(agentName?: Name | undefined) => PikkuFunctionConfig<{
36
66
  agentName?: string;
37
67
  message: string;
38
68
  threadId: string;
39
69
  resourceId: string;
40
- }, void, "session" | "rpc">;
70
+ }, void, 'session' | 'rpc'>;
71
+ /**
72
+ * A ready-made function that answers one pending tool approval, letting a run
73
+ * that paused for a human carry on.
74
+ *
75
+ * @example snippet: agentApproval
76
+ */
41
77
  export declare const agentResume: () => PikkuFunctionConfig<{
42
78
  runId: string;
43
79
  toolCallId: string;
44
80
  approved: boolean;
45
- }, void, "session" | "rpc">;
81
+ }, void, 'session' | 'rpc'>;
82
+ /**
83
+ * A ready-made function that answers every pending approval for a run at once.
84
+ *
85
+ * @example snippet: agentApproval
86
+ */
46
87
  export declare const agentApprove: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<{
47
88
  runId: string;
48
89
  approvals: {
49
90
  toolCallId: string;
50
91
  approved: boolean;
51
92
  }[];
52
- }, unknown, "session" | "rpc">;
93
+ }, unknown, 'session' | 'rpc'>;
53
94
  export {};
54
95
  //# sourceMappingURL=pikku-agent-types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-agent-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/agent/pikku-ag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,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;IAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EACzG,SAAS,GAAG,KAAK,CAEpB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,IAAI,SAAS,MAAM,QAAQ,mCAGqB,mBAAmB,CAC3F;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EAC7E,IAAI,EACJ,SAAS,GAAG,KAAK,CAEpB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,QACM,mBAAmB,CAC7C;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,EACxD,IAAI,EACJ,SAAS,GAAG,KAAK,CAEpB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,IAAI,SAAS,MAAM,QAAQ,aAC3C,IAAI,KAE4D,mBAAmB,CAC5F;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAAE,EACzE,OAAO,EACP,SAAS,GAAG,KAAK,CAEpB,CAAA"}
@@ -1,19 +1,60 @@
1
1
  import { agent as coreAgent, agentStream as coreAgentStream, agentResume as coreAgentResume, agentApprove as coreAgentApprove, } from '@pikku/core/agent';
2
2
  import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge, } from '@pikku/core/agent-scorer';
3
+ /**
4
+ * Declares an agent: the model, the prompt, the tools it may call and the shape
5
+ * of what it returns. Wire it like any other function.
6
+ *
7
+ * @example snippet: aiAgent
8
+ */
3
9
  export const pikkuAgent = (agent) => {
4
10
  return agent;
5
11
  };
12
+ /**
13
+ * Declares a scorer that grades an agent run programmatically — a function over
14
+ * the run's input and output returning a score.
15
+ *
16
+ * @example snippet: agentScorer
17
+ */
6
18
  export const pikkuAgentScorer = (config) => corePikkuAgentScorer(config);
19
+ /**
20
+ * Declares a scorer that grades an agent run with another model, for the
21
+ * qualities a programmatic check cannot express.
22
+ *
23
+ * @example snippet: agentJudge
24
+ */
7
25
  export const pikkuAgentJudge = (config) => corePikkuAgentJudge(config);
26
+ /**
27
+ * A ready-made function that runs the named agent once and returns its result —
28
+ * wire it straight to a route when you need no logic around the run.
29
+ *
30
+ * @example snippet: aiAgentInvoke
31
+ */
8
32
  export const agent = (agentName) => {
9
33
  return coreAgent(agentName);
10
34
  };
35
+ /**
36
+ * The streaming counterpart of `agent`: wire it to a channel to send tokens and
37
+ * tool calls as they happen instead of waiting for the run to finish.
38
+ *
39
+ * @example snippet: aiAgentStream
40
+ */
11
41
  export const agentStream = (agentName) => {
12
42
  return coreAgentStream(agentName);
13
43
  };
44
+ /**
45
+ * A ready-made function that answers one pending tool approval, letting a run
46
+ * that paused for a human carry on.
47
+ *
48
+ * @example snippet: agentApproval
49
+ */
14
50
  export const agentResume = () => {
15
51
  return coreAgentResume();
16
52
  };
53
+ /**
54
+ * A ready-made function that answers every pending approval for a run at once.
55
+ *
56
+ * @example snippet: agentApproval
57
+ */
17
58
  export const agentApprove = (agentName) => {
18
59
  return coreAgentApprove(agentName);
19
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,eAAe,IAAI,mBAAmB,GACvC,MAAM,0BAA0B,CAAA;AAsBjC,MAAM,CAAC,MAAM,UAAU,GAAG,CAIxB,KAA6C,EAC7C,EAAE;IACF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,MAA4D,EAC5D,EAAE,CAAC,oBAAoB,CAAW,MAAM,CAAC,CAAA;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,MAA2D,EAC3D,EAAE,CAAC,mBAAmB,CAAW,MAAM,CAAC,CAAA;AAI1C,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,SAAe,EACf,EAAE;IACF,OAAO,SAAS,CAAW,SAAoC,CAI9D,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,SAAgB,EAChB,EAAE;IACF,OAAO,eAAe,CAAW,SAAoC,CAIpE,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,OAAO,eAAe,EAIrB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,SAAe,EACf,EAAE;IACF,OAAO,gBAAgB,CAAW,SAAoC,CAIrE,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,eAAe,IAAI,mBAAmB,GACvC,MAAM,0BAA0B,CAAA;AAsBjC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAIxB,KAA6C,EAC7C,EAAE;IACF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,MAA4D,EAC5D,EAAE,CAAC,oBAAoB,CAAW,MAAM,CAAC,CAAA;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,MAA2D,EAC3D,EAAE,CAAC,mBAAmB,CAAW,MAAM,CAAC,CAAA;AAI1C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,SAAe,EACf,EAAE;IACF,OAAO,SAAS,CAAW,SAAoC,CAI9D,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,SAAgB,EAChB,EAAE;IACF,OAAO,eAAe,CAAW,SAAoC,CAIpE,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,OAAO,eAAe,EAIrB,CAAA;AACH,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,SAAe,EACf,EAAE;IACF,OAAO,gBAAgB,CAAW,SAAoC,CAIrE,CAAA;AACH,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import { CoreAgent } from '@pikku/core/agent'
5
5
  import {
@@ -33,6 +33,12 @@ type AgentConfig<
33
33
  workflows?: object[]
34
34
  }
35
35
 
36
+ /**
37
+ * Declares an agent: the model, the prompt, the tools it may call and the shape
38
+ * of what it returns. Wire it like any other function.
39
+ *
40
+ * @example snippet: aiAgent
41
+ */
36
42
  export const pikkuAgent = <
37
43
  InputSchema extends StandardSchemaV1 | undefined = undefined,
38
44
  OutputSchema extends StandardSchemaV1 | undefined = undefined
@@ -42,16 +48,34 @@ export const pikkuAgent = <
42
48
  return agent
43
49
  }
44
50
 
51
+ /**
52
+ * Declares a scorer that grades an agent run programmatically — a function over
53
+ * the run's input and output returning a score.
54
+ *
55
+ * @example snippet: agentScorer
56
+ */
45
57
  export const pikkuAgentScorer = (
46
58
  config: Parameters<typeof corePikkuAgentScorer<Services>>[0]
47
59
  ) => corePikkuAgentScorer<Services>(config)
48
60
 
61
+ /**
62
+ * Declares a scorer that grades an agent run with another model, for the
63
+ * qualities a programmatic check cannot express.
64
+ *
65
+ * @example snippet: agentJudge
66
+ */
49
67
  export const pikkuAgentJudge = (
50
68
  config: Parameters<typeof corePikkuAgentJudge<Services>>[0]
51
69
  ) => corePikkuAgentJudge<Services>(config)
52
70
 
53
71
 
54
72
 
73
+ /**
74
+ * A ready-made function that runs the named agent once and returns its result —
75
+ * wire it straight to a route when you need no logic around the run.
76
+ *
77
+ * @example snippet: aiAgentInvoke
78
+ */
55
79
  export const agent = <Name extends keyof AgentMap>(
56
80
  agentName: Name
57
81
  ) => {
@@ -62,6 +86,12 @@ export const agent = <Name extends keyof AgentMap>(
62
86
  >
63
87
  }
64
88
 
89
+ /**
90
+ * The streaming counterpart of `agent`: wire it to a channel to send tokens and
91
+ * tool calls as they happen instead of waiting for the run to finish.
92
+ *
93
+ * @example snippet: aiAgentStream
94
+ */
65
95
  export const agentStream = <Name extends keyof AgentMap>(
66
96
  agentName?: Name
67
97
  ) => {
@@ -72,6 +102,12 @@ export const agentStream = <Name extends keyof AgentMap>(
72
102
  >
73
103
  }
74
104
 
105
+ /**
106
+ * A ready-made function that answers one pending tool approval, letting a run
107
+ * that paused for a human carry on.
108
+ *
109
+ * @example snippet: agentApproval
110
+ */
75
111
  export const agentResume = () => {
76
112
  return coreAgentResume() as PikkuFunctionConfig<
77
113
  { runId: string; toolCallId: string; approved: boolean },
@@ -80,6 +116,11 @@ export const agentResume = () => {
80
116
  >
81
117
  }
82
118
 
119
+ /**
120
+ * A ready-made function that answers every pending approval for a run at once.
121
+ *
122
+ * @example snippet: agentApproval
123
+ */
83
124
  export const agentApprove = <Name extends keyof AgentMap>(
84
125
  agentName: Name
85
126
  ) => {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  pikkuState('@pikku/addon-mindee', 'agent', 'modelAliases', {});
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state'
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * The AI scorers declared in this project.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.190
3
+ */
4
+ /**
5
+ * Subpath entry — `#pikku/analytics` resolves here.
6
+ */
7
+ export * from './pikku-analytics-types.gen.js';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/analytics/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,gCAAgC,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.190
3
+ */
4
+ /**
5
+ * Subpath entry — `#pikku/analytics` resolves here.
6
+ */
7
+ export * from './pikku-analytics-types.gen.js';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/analytics/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,gCAAgC,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.190
3
+ */
4
+ /**
5
+ * Subpath entry — `#pikku/analytics` resolves here.
6
+ */
7
+
8
+ export * from './pikku-analytics-types.gen.js'
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.190
3
+ */
4
+ export { defineAnalyticsEvents, fanOutAnalytics, cookieAnalyticsIdentity, composeAnalyticsIdentity, anonymousAnalyticsIdentity, mintCookie, randomDigits, LoggerAnalyticsService, } from '@pikku/core/analytics';
5
+ export type { AnalyticsClientContext, AnalyticsEventBase, AnalyticsEventDefinitions, AnalyticsEventPropsSchema, AnalyticsIdentity, AnalyticsIdentityResolver, AnalyticsLog, AnalyticsRecord, AnalyticsService, AnalyticsSink, } from '@pikku/core/analytics';
6
+ //# sourceMappingURL=pikku-analytics-types.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-analytics-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/analytics/pikku-analytics-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,UAAU,EACV,YAAY,EACZ,sBAAsB,GACvB,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACV,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,yBAAyB,EACzB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,aAAa,GACd,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.190
3
+ */
4
+ export { defineAnalyticsEvents, fanOutAnalytics, cookieAnalyticsIdentity, composeAnalyticsIdentity, anonymousAnalyticsIdentity, mintCookie, randomDigits, LoggerAnalyticsService, } from '@pikku/core/analytics';
5
+ //# sourceMappingURL=pikku-analytics-types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-analytics-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/analytics/pikku-analytics-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,UAAU,EACV,YAAY,EACZ,sBAAsB,GACvB,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.190
3
+ */
4
+ export {
5
+ defineAnalyticsEvents,
6
+ fanOutAnalytics,
7
+ cookieAnalyticsIdentity,
8
+ composeAnalyticsIdentity,
9
+ anonymousAnalyticsIdentity,
10
+ mintCookie,
11
+ randomDigits,
12
+ LoggerAnalyticsService,
13
+ } from '@pikku/core/analytics'
14
+ export type {
15
+ AnalyticsClientContext,
16
+ AnalyticsEventBase,
17
+ AnalyticsEventDefinitions,
18
+ AnalyticsEventPropsSchema,
19
+ AnalyticsIdentity,
20
+ AnalyticsIdentityResolver,
21
+ AnalyticsLog,
22
+ AnalyticsRecord,
23
+ AnalyticsService,
24
+ AnalyticsSink,
25
+ } from '@pikku/core/analytics'
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/auth` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/auth` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/auth` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Permission, auth gate and credential definitions
@@ -40,24 +40,7 @@ type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServ
40
40
  * Factory function for creating permissions with tree-shaking support.
41
41
  * Supports both direct function and configuration object syntax.
42
42
  *
43
- * @example
44
- * ```typescript
45
- * // Direct function syntax
46
- * const permission = pikkuPermission(async ({ logger }, data, { session }) => {
47
- * const session = await session?.get()
48
- * return session?.role === 'admin'
49
- * })
50
- *
51
- * // Configuration object syntax with metadata
52
- * const adminPermission = pikkuPermission({
53
- * name: 'Admin Permission',
54
- * description: 'Checks if user has admin role',
55
- * func: async ({ logger }, data, { session }) => {
56
- * const session = await session?.get()
57
- * return session?.role === 'admin'
58
- * }
59
- * })
60
- * ```
43
+ * @example snippet: permissionFunction
61
44
  */
62
45
  export declare const pikkuPermission: <In>(permission: PikkuPermission<In> | PikkuPermissionConfig<In>) => PikkuPermission<In>;
63
46
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-auth-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/auth/pikku-auth-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EACV,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,EACd,MAAM,yCAAyC,CAAA;AAChD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD;;;;GAIG;AACH,KAAK,sBAAsB,GAAG,yBAAyB,GAAG,iBAAiB,CAAA;AAE3E,kEAAkE;AAClE,KAAK,iBAAiB,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAAA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KAAK,eAAe,CAAC,GAAG,CAAC,KAC3C,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,eAAe,CAAC,GAAG,CAAC,CAEtC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,EAAE,GAAG,OAAO,eAAe,mBAAmB,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,eAAe,CAAC,EAAE,CAAC,EAAE,SAE9H,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Permission, auth gate and credential definitions
@@ -11,24 +11,7 @@ export { defineCredential } from '@pikku/core/credential';
11
11
  * Factory function for creating permissions with tree-shaking support.
12
12
  * Supports both direct function and configuration object syntax.
13
13
  *
14
- * @example
15
- * ```typescript
16
- * // Direct function syntax
17
- * const permission = pikkuPermission(async ({ logger }, data, { session }) => {
18
- * const session = await session?.get()
19
- * return session?.role === 'admin'
20
- * })
21
- *
22
- * // Configuration object syntax with metadata
23
- * const adminPermission = pikkuPermission({
24
- * name: 'Admin Permission',
25
- * description: 'Checks if user has admin role',
26
- * func: async ({ logger }, data, { session }) => {
27
- * const session = await session?.get()
28
- * return session?.role === 'admin'
29
- * }
30
- * })
31
- * ```
14
+ * @example snippet: permissionFunction
32
15
  */
33
16
  export const pikkuPermission = (permission) => {
34
17
  return typeof permission === 'function' ? permission : permission.func;
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-auth-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/auth/pikku-auth-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AASH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AASvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA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CAAC,MAAM,SAAS,GAAG,CACvB,IAAqE,EAC1C,EAAE;IAC7B,OAAO,aAAa,CAAC,IAAW,CAAQ,CAAA;AAC1C,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,OAA4C,EACL,EAAE;IACzC,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAe,WAA6E,EAAE,EAAE;IACjI,uBAAuB,CAAC,WAAkB,EAAE,qBAAqB,CAAC,CAAA;AACpE,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Permission, auth gate and credential definitions
@@ -59,24 +59,7 @@ type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServ
59
59
  * Factory function for creating permissions with tree-shaking support.
60
60
  * Supports both direct function and configuration object syntax.
61
61
  *
62
- * @example
63
- * ```typescript
64
- * // Direct function syntax
65
- * const permission = pikkuPermission(async ({ logger }, data, { session }) => {
66
- * const session = await session?.get()
67
- * return session?.role === 'admin'
68
- * })
69
- *
70
- * // Configuration object syntax with metadata
71
- * const adminPermission = pikkuPermission({
72
- * name: 'Admin Permission',
73
- * description: 'Checks if user has admin role',
74
- * func: async ({ logger }, data, { session }) => {
75
- * const session = await session?.get()
76
- * return session?.role === 'admin'
77
- * }
78
- * })
79
- * ```
62
+ * @example snippet: permissionFunction
80
63
  */
81
64
  export const pikkuPermission = <In>(
82
65
  permission: PikkuPermission<In> | PikkuPermissionConfig<In>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/channel` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/channel` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/channel` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Channel-specific type definitions for tree-shaking optimization
@@ -20,16 +20,20 @@ type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Outp
20
20
  * @template Out - Output type for connection response
21
21
  * @param func - Function definition, either direct function or configuration object
22
22
  * @returns The normalized configuration object
23
+ *
24
+ * @example snippet: channelLifecycle
23
25
  */
24
- export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunctionSessionless<void, Out, "channel" | "session" | "rpc"> | PikkuFunctionConfig<void, Out, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, Out, "channel" | "rpc" | "session">;
26
+ export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunctionSessionless<void, Out, 'channel' | 'session' | 'rpc'> | PikkuFunctionConfig<void, Out, 'channel' | 'session' | 'rpc'>) => PikkuFunctionConfig<void, Out, "channel" | "rpc" | "session">;
25
27
  /**
26
28
  * Creates a function that handles WebSocket channel disconnections.
27
29
  * Called when a client disconnects from a channel.
28
30
  *
29
31
  * @param func - Function definition, either direct function or configuration object
30
32
  * @returns The normalized configuration object
33
+ *
34
+ * @example snippet: channelLifecycle
31
35
  */
32
- export declare const pikkuChannelDisconnectionFunc: (func: PikkuFunctionSessionless<void, void, "channel"> | PikkuFunctionConfig<void, void, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, void, "channel" | "rpc" | "session">;
36
+ export declare const pikkuChannelDisconnectionFunc: (func: PikkuFunctionSessionless<void, void, 'channel'> | PikkuFunctionConfig<void, void, 'channel' | 'session' | 'rpc'>) => PikkuFunctionConfig<void, void, "channel" | "rpc" | "session">;
33
37
  /**
34
38
  * Configuration object for channel functions with Zod schema validation.
35
39
  */
@@ -58,23 +62,7 @@ type PikkuChannelFuncConfigWithSchema<InputSchema extends StandardSchemaV1, Outp
58
62
  * @param func - Function definition, either direct function or configuration object
59
63
  * @returns The normalized configuration object
60
64
  *
61
- * @example
62
- * ```typescript
63
- * // Pattern 1: Using generic types
64
- * const handleMessage = pikkuChannelFunc<{text: string}, {received: boolean}>({
65
- * func: async (_services, { text }) => ({ received: true })
66
- * })
67
- *
68
- * // Pattern 2: Using Zod schemas
69
- * const messageInput = z.object({ text: z.string() })
70
- * const messageOutput = z.object({ received: z.boolean() })
71
- *
72
- * const handleMessage = pikkuChannelFunc({
73
- * input: messageInput,
74
- * output: messageOutput,
75
- * func: async (_services, { text }) => ({ received: true })
76
- * })
77
- * ```
65
+ * @example snippet: orderStatusChannel
78
66
  */
79
67
  export declare function pikkuChannelFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuChannelFuncConfigWithSchema<InputSchema, OutputSchema>): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'channel' | 'session' | 'rpc'>;
80
68
  export declare function pikkuChannelFunc<In, Out = unknown>(func: PikkuFunctionSessionless<In, Out, 'channel' | 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'channel' | 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'channel' | 'session' | 'rpc'>;
@@ -85,6 +73,8 @@ export declare function pikkuChannelFunc<In, Out = unknown>(func: PikkuFunctionS
85
73
  * @template T - Record of channel route handlers
86
74
  * @param routes - The channel routes record
87
75
  * @returns The same routes record (identity function for type safety)
76
+ *
77
+ * @example snippet: channelRoutes
88
78
  */
89
79
  export declare function defineChannelRoutes<T extends Record<string, any>>(routes: T): T;
90
80
  export {};