@pikku/addon-security-scorecard 0.0.2

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 (285) hide show
  1. package/README.md +12 -0
  2. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +67 -0
  3. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -0
  4. package/dist/.pikku/addon/pikku-addon-types.gen.js +78 -0
  5. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -0
  6. package/dist/.pikku/addon/pikku-addon-types.gen.ts +106 -0
  7. package/dist/.pikku/addon/pikku-package.gen.d.ts +2 -0
  8. package/dist/.pikku/addon/pikku-package.gen.d.ts.map +1 -0
  9. package/dist/.pikku/addon/pikku-package.gen.js +10 -0
  10. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -0
  11. package/dist/.pikku/addon/pikku-package.gen.ts +11 -0
  12. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
  13. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +47 -0
  14. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -0
  15. package/dist/.pikku/agent/pikku-agent-types.gen.js +18 -0
  16. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -0
  17. package/dist/.pikku/agent/pikku-agent-types.gen.ts +82 -0
  18. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
  19. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
  20. package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
  21. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
  22. package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
  23. package/dist/.pikku/console/pikku-node-types.gen.d.ts +7 -0
  24. package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -0
  25. package/dist/.pikku/console/pikku-node-types.gen.js +2 -0
  26. package/dist/.pikku/console/pikku-node-types.gen.js.map +1 -0
  27. package/dist/.pikku/console/pikku-node-types.gen.ts +8 -0
  28. package/dist/.pikku/credentials/pikku-credentials-meta.gen.json +10 -0
  29. package/dist/.pikku/credentials/pikku-credentials.gen.d.ts +15 -0
  30. package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +1 -0
  31. package/dist/.pikku/credentials/pikku-credentials.gen.js +13 -0
  32. package/dist/.pikku/credentials/pikku-credentials.gen.js.map +1 -0
  33. package/dist/.pikku/credentials/pikku-credentials.gen.ts +23 -0
  34. package/dist/.pikku/function/pikku-function-types.gen.d.ts +490 -0
  35. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -0
  36. package/dist/.pikku/function/pikku-function-types.gen.js +334 -0
  37. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -0
  38. package/dist/.pikku/function/pikku-function-types.gen.ts +754 -0
  39. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +549 -0
  40. package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +2 -0
  41. package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +1 -0
  42. package/dist/.pikku/function/pikku-functions-meta.gen.js +7 -0
  43. package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -0
  44. package/dist/.pikku/function/pikku-functions-meta.gen.json +359 -0
  45. package/dist/.pikku/function/pikku-functions-meta.gen.ts +7 -0
  46. package/dist/.pikku/function/pikku-functions.gen.d.ts +2 -0
  47. package/dist/.pikku/function/pikku-functions.gen.d.ts.map +1 -0
  48. package/dist/.pikku/function/pikku-functions.gen.js +44 -0
  49. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
  50. package/dist/.pikku/function/pikku-functions.gen.ts +44 -0
  51. package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
  52. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
  53. package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
  54. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
  55. package/dist/.pikku/http/pikku-http-types.gen.ts +147 -0
  56. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
  57. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  58. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
  59. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
  60. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
  61. package/dist/.pikku/pikku-bootstrap.gen.d.ts +9 -0
  62. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -0
  63. package/dist/.pikku/pikku-bootstrap.gen.js +9 -0
  64. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -0
  65. package/dist/.pikku/pikku-bootstrap.gen.ts +8 -0
  66. package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
  67. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
  68. package/dist/.pikku/pikku-meta-service.gen.js +10 -0
  69. package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
  70. package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
  71. package/dist/.pikku/pikku-services.gen.d.ts +35 -0
  72. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -0
  73. package/dist/.pikku/pikku-services.gen.js +30 -0
  74. package/dist/.pikku/pikku-services.gen.js.map +1 -0
  75. package/dist/.pikku/pikku-services.gen.ts +42 -0
  76. package/dist/.pikku/pikku-types.gen.d.ts +12 -0
  77. package/dist/.pikku/pikku-types.gen.d.ts.map +1 -0
  78. package/dist/.pikku/pikku-types.gen.js +17 -0
  79. package/dist/.pikku/pikku-types.gen.js.map +1 -0
  80. package/dist/.pikku/pikku-types.gen.ts +21 -0
  81. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
  82. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
  83. package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
  84. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
  85. package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
  86. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +227 -0
  87. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +246 -0
  88. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
  89. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
  90. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
  91. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
  92. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +21 -0
  93. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
  94. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
  95. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
  96. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
  97. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
  98. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
  99. package/dist/.pikku/schemas/register.gen.d.ts +2 -0
  100. package/dist/.pikku/schemas/register.gen.d.ts.map +1 -0
  101. package/dist/.pikku/schemas/register.gen.js +81 -0
  102. package/dist/.pikku/schemas/register.gen.js.map +1 -0
  103. package/dist/.pikku/schemas/register.gen.ts +155 -0
  104. package/dist/.pikku/schemas/schemas/CompanyGetFactorHistoricalInput.schema.json +1 -0
  105. package/dist/.pikku/schemas/schemas/CompanyGetFactorHistoricalOutput.schema.json +1 -0
  106. package/dist/.pikku/schemas/schemas/CompanyGetFactorInput.schema.json +1 -0
  107. package/dist/.pikku/schemas/schemas/CompanyGetFactorOutput.schema.json +1 -0
  108. package/dist/.pikku/schemas/schemas/CompanyGetHistoricalScoreInput.schema.json +1 -0
  109. package/dist/.pikku/schemas/schemas/CompanyGetHistoricalScoreOutput.schema.json +1 -0
  110. package/dist/.pikku/schemas/schemas/CompanyGetScorePlanInput.schema.json +1 -0
  111. package/dist/.pikku/schemas/schemas/CompanyGetScorePlanOutput.schema.json +1 -0
  112. package/dist/.pikku/schemas/schemas/CompanyGetScorecardInput.schema.json +1 -0
  113. package/dist/.pikku/schemas/schemas/CompanyGetScorecardOutput.schema.json +1 -0
  114. package/dist/.pikku/schemas/schemas/CredentialSchema_securityScorecard.schema.json +1 -0
  115. package/dist/.pikku/schemas/schemas/IndustryGetFactorHistoricalInput.schema.json +1 -0
  116. package/dist/.pikku/schemas/schemas/IndustryGetFactorHistoricalOutput.schema.json +1 -0
  117. package/dist/.pikku/schemas/schemas/IndustryGetFactorInput.schema.json +1 -0
  118. package/dist/.pikku/schemas/schemas/IndustryGetFactorOutput.schema.json +1 -0
  119. package/dist/.pikku/schemas/schemas/IndustryGetScoreInput.schema.json +1 -0
  120. package/dist/.pikku/schemas/schemas/IndustryGetScoreOutput.schema.json +1 -0
  121. package/dist/.pikku/schemas/schemas/InviteCreateInput.schema.json +1 -0
  122. package/dist/.pikku/schemas/schemas/InviteCreateOutput.schema.json +1 -0
  123. package/dist/.pikku/schemas/schemas/PortfolioCompanyAddInput.schema.json +1 -0
  124. package/dist/.pikku/schemas/schemas/PortfolioCompanyAddOutput.schema.json +1 -0
  125. package/dist/.pikku/schemas/schemas/PortfolioCompanyGetAllInput.schema.json +1 -0
  126. package/dist/.pikku/schemas/schemas/PortfolioCompanyGetAllOutput.schema.json +1 -0
  127. package/dist/.pikku/schemas/schemas/PortfolioCompanyRemoveInput.schema.json +1 -0
  128. package/dist/.pikku/schemas/schemas/PortfolioCompanyRemoveOutput.schema.json +1 -0
  129. package/dist/.pikku/schemas/schemas/PortfolioCreateInput.schema.json +1 -0
  130. package/dist/.pikku/schemas/schemas/PortfolioCreateOutput.schema.json +1 -0
  131. package/dist/.pikku/schemas/schemas/PortfolioDeleteInput.schema.json +1 -0
  132. package/dist/.pikku/schemas/schemas/PortfolioDeleteOutput.schema.json +1 -0
  133. package/dist/.pikku/schemas/schemas/PortfolioGetAllOutput.schema.json +1 -0
  134. package/dist/.pikku/schemas/schemas/PortfolioUpdateInput.schema.json +1 -0
  135. package/dist/.pikku/schemas/schemas/PortfolioUpdateOutput.schema.json +1 -0
  136. package/dist/.pikku/schemas/schemas/ReportDownloadInput.schema.json +1 -0
  137. package/dist/.pikku/schemas/schemas/ReportDownloadOutput.schema.json +1 -0
  138. package/dist/.pikku/schemas/schemas/ReportGenerateInput.schema.json +1 -0
  139. package/dist/.pikku/schemas/schemas/ReportGenerateOutput.schema.json +1 -0
  140. package/dist/.pikku/schemas/schemas/ReportGetAllOutput.schema.json +1 -0
  141. package/dist/.pikku/schemas/schemas/VariableSchema_SECURITY_SCORECARD_BASE_URL.schema.json +1 -0
  142. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +6 -0
  143. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -0
  144. package/dist/.pikku/secrets/pikku-secret-types.gen.js +5 -0
  145. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -0
  146. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
  147. package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
  148. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +12 -0
  149. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -0
  150. package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -0
  151. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -0
  152. package/dist/.pikku/secrets/pikku-secrets.gen.ts +21 -0
  153. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +114 -0
  154. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
  155. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +34 -0
  156. package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -0
  157. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
  158. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +6 -0
  159. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -0
  160. package/dist/.pikku/variables/pikku-variable-types.gen.js +5 -0
  161. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -0
  162. package/dist/.pikku/variables/pikku-variable-types.gen.ts +5 -0
  163. package/dist/.pikku/variables/pikku-variables-meta.gen.json +10 -0
  164. package/dist/.pikku/variables/pikku-variables.gen.d.ts +15 -0
  165. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -0
  166. package/dist/.pikku/variables/pikku-variables.gen.js +13 -0
  167. package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -0
  168. package/dist/.pikku/variables/pikku-variables.gen.ts +23 -0
  169. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
  170. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +90 -0
  171. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
  172. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +18 -0
  173. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -0
  174. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
  175. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +2 -0
  176. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
  177. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
  178. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
  179. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
  180. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
  181. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
  182. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -0
  183. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +1 -0
  184. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
  185. package/dist/src/functions/companyGetFactor.function.d.ts +13 -0
  186. package/dist/src/functions/companyGetFactor.function.d.ts.map +1 -0
  187. package/dist/src/functions/companyGetFactor.function.js +15 -0
  188. package/dist/src/functions/companyGetFactor.function.js.map +1 -0
  189. package/dist/src/functions/companyGetFactorHistorical.function.d.ts +21 -0
  190. package/dist/src/functions/companyGetFactorHistorical.function.d.ts.map +1 -0
  191. package/dist/src/functions/companyGetFactorHistorical.function.js +17 -0
  192. package/dist/src/functions/companyGetFactorHistorical.function.js.map +1 -0
  193. package/dist/src/functions/companyGetHistoricalScore.function.d.ts +21 -0
  194. package/dist/src/functions/companyGetHistoricalScore.function.d.ts.map +1 -0
  195. package/dist/src/functions/companyGetHistoricalScore.function.js +17 -0
  196. package/dist/src/functions/companyGetHistoricalScore.function.js.map +1 -0
  197. package/dist/src/functions/companyGetScorePlan.function.d.ts +17 -0
  198. package/dist/src/functions/companyGetScorePlan.function.d.ts.map +1 -0
  199. package/dist/src/functions/companyGetScorePlan.function.js +16 -0
  200. package/dist/src/functions/companyGetScorePlan.function.js.map +1 -0
  201. package/dist/src/functions/companyGetScorecard.function.d.ts +13 -0
  202. package/dist/src/functions/companyGetScorecard.function.d.ts.map +1 -0
  203. package/dist/src/functions/companyGetScorecard.function.js +15 -0
  204. package/dist/src/functions/companyGetScorecard.function.js.map +1 -0
  205. package/dist/src/functions/industryGetFactor.function.d.ts +13 -0
  206. package/dist/src/functions/industryGetFactor.function.d.ts.map +1 -0
  207. package/dist/src/functions/industryGetFactor.function.js +15 -0
  208. package/dist/src/functions/industryGetFactor.function.js.map +1 -0
  209. package/dist/src/functions/industryGetFactorHistorical.function.d.ts +21 -0
  210. package/dist/src/functions/industryGetFactorHistorical.function.d.ts.map +1 -0
  211. package/dist/src/functions/industryGetFactorHistorical.function.js +17 -0
  212. package/dist/src/functions/industryGetFactorHistorical.function.js.map +1 -0
  213. package/dist/src/functions/industryGetScore.function.d.ts +13 -0
  214. package/dist/src/functions/industryGetScore.function.d.ts.map +1 -0
  215. package/dist/src/functions/industryGetScore.function.js +15 -0
  216. package/dist/src/functions/industryGetScore.function.js.map +1 -0
  217. package/dist/src/functions/inviteCreate.function.d.ts +25 -0
  218. package/dist/src/functions/inviteCreate.function.d.ts.map +1 -0
  219. package/dist/src/functions/inviteCreate.function.js +18 -0
  220. package/dist/src/functions/inviteCreate.function.js.map +1 -0
  221. package/dist/src/functions/portfolioCompanyAdd.function.d.ts +17 -0
  222. package/dist/src/functions/portfolioCompanyAdd.function.d.ts.map +1 -0
  223. package/dist/src/functions/portfolioCompanyAdd.function.js +16 -0
  224. package/dist/src/functions/portfolioCompanyAdd.function.js.map +1 -0
  225. package/dist/src/functions/portfolioCompanyGetAll.function.d.ts +13 -0
  226. package/dist/src/functions/portfolioCompanyGetAll.function.d.ts.map +1 -0
  227. package/dist/src/functions/portfolioCompanyGetAll.function.js +15 -0
  228. package/dist/src/functions/portfolioCompanyGetAll.function.js.map +1 -0
  229. package/dist/src/functions/portfolioCompanyRemove.function.d.ts +17 -0
  230. package/dist/src/functions/portfolioCompanyRemove.function.d.ts.map +1 -0
  231. package/dist/src/functions/portfolioCompanyRemove.function.js +16 -0
  232. package/dist/src/functions/portfolioCompanyRemove.function.js.map +1 -0
  233. package/dist/src/functions/portfolioCreate.function.d.ts +21 -0
  234. package/dist/src/functions/portfolioCreate.function.d.ts.map +1 -0
  235. package/dist/src/functions/portfolioCreate.function.js +17 -0
  236. package/dist/src/functions/portfolioCreate.function.js.map +1 -0
  237. package/dist/src/functions/portfolioDelete.function.d.ts +13 -0
  238. package/dist/src/functions/portfolioDelete.function.d.ts.map +1 -0
  239. package/dist/src/functions/portfolioDelete.function.js +15 -0
  240. package/dist/src/functions/portfolioDelete.function.js.map +1 -0
  241. package/dist/src/functions/portfolioGetAll.function.d.ts +4 -0
  242. package/dist/src/functions/portfolioGetAll.function.d.ts.map +1 -0
  243. package/dist/src/functions/portfolioGetAll.function.js +11 -0
  244. package/dist/src/functions/portfolioGetAll.function.js.map +1 -0
  245. package/dist/src/functions/portfolioUpdate.function.d.ts +25 -0
  246. package/dist/src/functions/portfolioUpdate.function.d.ts.map +1 -0
  247. package/dist/src/functions/portfolioUpdate.function.js +18 -0
  248. package/dist/src/functions/portfolioUpdate.function.js.map +1 -0
  249. package/dist/src/functions/reportDownload.function.d.ts +13 -0
  250. package/dist/src/functions/reportDownload.function.d.ts.map +1 -0
  251. package/dist/src/functions/reportDownload.function.js +15 -0
  252. package/dist/src/functions/reportDownload.function.js.map +1 -0
  253. package/dist/src/functions/reportGenerate.function.d.ts +25 -0
  254. package/dist/src/functions/reportGenerate.function.d.ts.map +1 -0
  255. package/dist/src/functions/reportGenerate.function.js +18 -0
  256. package/dist/src/functions/reportGenerate.function.js.map +1 -0
  257. package/dist/src/functions/reportGetAll.function.d.ts +4 -0
  258. package/dist/src/functions/reportGetAll.function.d.ts.map +1 -0
  259. package/dist/src/functions/reportGetAll.function.js +11 -0
  260. package/dist/src/functions/reportGetAll.function.js.map +1 -0
  261. package/dist/src/index.d.ts +20 -0
  262. package/dist/src/index.d.ts.map +1 -0
  263. package/dist/src/index.js +20 -0
  264. package/dist/src/index.js.map +1 -0
  265. package/dist/src/security-scorecard-api.service.d.ts +10 -0
  266. package/dist/src/security-scorecard-api.service.d.ts.map +1 -0
  267. package/dist/src/security-scorecard-api.service.js +212 -0
  268. package/dist/src/security-scorecard-api.service.js.map +1 -0
  269. package/dist/src/security-scorecard.credential.d.ts +5 -0
  270. package/dist/src/security-scorecard.credential.d.ts.map +1 -0
  271. package/dist/src/security-scorecard.credential.js +13 -0
  272. package/dist/src/security-scorecard.credential.js.map +1 -0
  273. package/dist/src/security-scorecard.types.d.ts +7 -0
  274. package/dist/src/security-scorecard.types.d.ts.map +1 -0
  275. package/dist/src/security-scorecard.types.js +8 -0
  276. package/dist/src/security-scorecard.types.js.map +1 -0
  277. package/dist/src/security-scorecard.variable.d.ts +5 -0
  278. package/dist/src/security-scorecard.variable.d.ts.map +1 -0
  279. package/dist/src/security-scorecard.variable.js +11 -0
  280. package/dist/src/security-scorecard.variable.js.map +1 -0
  281. package/dist/src/services.d.ts +2 -0
  282. package/dist/src/services.d.ts.map +1 -0
  283. package/dist/src/services.js +14 -0
  284. package/dist/src/services.js.map +1 -0
  285. package/package.json +39 -0
@@ -0,0 +1,72 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * HTTP-specific type definitions for tree-shaking optimization
6
+ */
7
+ import { wireHTTP as wireHTTPCore, addHTTPMiddleware as addHTTPMiddlewareCore, addHTTPPermission as addHTTPPermissionCore, wireHTTPRoutes as wireHTTPRoutesCore, defineHTTPRoutes as defineHTTPRoutesCore } from '@pikku/core/http';
8
+ /**
9
+ * Registers an HTTP wiring with the Pikku framework.
10
+ *
11
+ * @template In - Input type for the HTTP wiring
12
+ * @template Out - Output type for the HTTP wiring
13
+ * @template Route - String literal type for the HTTP path (e.g., "/users/:id")
14
+ * @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
15
+ */
16
+ export const wireHTTP = (httpWiring) => {
17
+ wireHTTPCore(httpWiring);
18
+ };
19
+ /**
20
+ * Registers HTTP middleware either globally or for a specific route pattern.
21
+ *
22
+ * When a string route pattern is provided along with middleware, the middleware
23
+ * is applied only to that route. Otherwise, if an array is provided, it is treated
24
+ * as global middleware (applied to all routes).
25
+ *
26
+ * @param routeOrMiddleware - Either a global middleware array or a route pattern string
27
+ * @param middleware - The middleware array to apply when a route pattern is specified
28
+ *
29
+ * @example
30
+ * ```typescript
31
+ * // Add global HTTP middleware
32
+ * addHTTPMiddleware([authMiddleware, loggingMiddleware])
33
+ *
34
+ * // Add route-specific middleware
35
+ * addHTTPMiddleware('/api/admin/*', [adminAuthMiddleware])
36
+ * ```
37
+ */
38
+ export const addHTTPMiddleware = (routeOrMiddleware, middleware) => {
39
+ addHTTPMiddlewareCore(routeOrMiddleware, middleware);
40
+ };
41
+ /**
42
+ * Registers HTTP permissions either globally or for a specific route pattern.
43
+ *
44
+ * When a string route pattern is provided along with permissions, the permissions
45
+ * are applied only to that route. Permissions can be passed as an array or as a
46
+ * permission group object.
47
+ *
48
+ * @param pattern - Route pattern string (e.g., '*' for all routes, '/api/*' for specific routes)
49
+ * @param permissions - The permissions to apply for the specified route pattern
50
+ *
51
+ * @example
52
+ * ```typescript
53
+ * // Add global HTTP permissions
54
+ * addHTTPPermission('*', { global: globalPermission })
55
+ *
56
+ * // Add route-specific permissions
57
+ * addHTTPPermission('/api/admin/*', { admin: adminPermission })
58
+ * ```
59
+ */
60
+ export const addHTTPPermission = (pattern, permissions) => {
61
+ addHTTPPermissionCore(pattern, permissions);
62
+ };
63
+ export function defineHTTPRoutes(configOrRoutes) {
64
+ return defineHTTPRoutesCore(configOrRoutes);
65
+ }
66
+ /**
67
+ * Wires multiple HTTP routes from a nested map or array configuration.
68
+ */
69
+ export const wireHTTPRoutes = (config) => {
70
+ wireHTTPRoutesCore(config);
71
+ };
72
+ //# sourceMappingURL=pikku-http-types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-http-types.gen.js","sourceRoot":"","sources":["../../../.pikku/http/pikku-http-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAA0B,QAAQ,IAAI,YAAY,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,cAAc,IAAI,kBAAkB,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAc3P;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,UAA0E,EAC1E,EAAE;IACF,YAAY,CAAC,UAAiB,CAAC,CAAA;AACjC,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,iBAA6C,EAC7C,UAA8B,EAC9B,EAAE;IACF,qBAAqB,CAAC,iBAAwB,EAAE,UAAiB,CAAC,CAAA;AACpE,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,OAAe,EACf,WAAwE,EACxE,EAAE;IACF,qBAAqB,CAAC,OAAO,EAAE,WAAkB,CAAC,CAAA;AACpD,CAAC,CAAA;AAoDD,MAAM,UAAU,gBAAgB,CAA8B,cAAgE;IAC5H,OAAO,oBAAoB,CAAC,cAAqB,CAAyC,CAAA;AAC5F,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAiC,EAAQ,EAAE;IACxE,kBAAkB,CAAC,MAAa,CAAC,CAAA;AACnC,CAAC,CAAA"}
@@ -0,0 +1,147 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * HTTP-specific type definitions for tree-shaking optimization
6
+ */
7
+
8
+ import { AssertHTTPWiringParams, wireHTTP as wireHTTPCore, addHTTPMiddleware as addHTTPMiddlewareCore, addHTTPPermission as addHTTPPermissionCore, wireHTTPRoutes as wireHTTPRoutesCore, defineHTTPRoutes as defineHTTPRoutesCore } from '@pikku/core/http'
9
+ import type { PikkuFunction, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
10
+ import type { CoreHTTPFunctionWiring, HTTPMethod, HTTPRouteBaseConfig } from '@pikku/core/http'
11
+
12
+ /**
13
+ * Type definition for HTTP API wirings with type-safe path parameters.
14
+ * Supports both authenticated and unauthenticated functions.
15
+ *
16
+ * @template In - Input type for the HTTP wiring
17
+ * @template Out - Output type for the HTTP wiring
18
+ * @template Route - String literal type for the HTTP path (e.g., "/users/:id")
19
+ */
20
+ type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out, Route, PikkuFunction<In, Out, 'rpc' | 'session'>, PikkuFunctionSessionless<In, Out, 'rpc' | 'session'>, PikkuPermission<In>, PikkuMiddleware>
21
+
22
+ /**
23
+ * Registers an HTTP wiring with the Pikku framework.
24
+ *
25
+ * @template In - Input type for the HTTP wiring
26
+ * @template Out - Output type for the HTTP wiring
27
+ * @template Route - String literal type for the HTTP path (e.g., "/users/:id")
28
+ * @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
29
+ */
30
+ export const wireHTTP = <In, Out, Route extends string>(
31
+ httpWiring: HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>
32
+ ) => {
33
+ wireHTTPCore(httpWiring as any)
34
+ }
35
+
36
+ /**
37
+ * Registers HTTP middleware either globally or for a specific route pattern.
38
+ *
39
+ * When a string route pattern is provided along with middleware, the middleware
40
+ * is applied only to that route. Otherwise, if an array is provided, it is treated
41
+ * as global middleware (applied to all routes).
42
+ *
43
+ * @param routeOrMiddleware - Either a global middleware array or a route pattern string
44
+ * @param middleware - The middleware array to apply when a route pattern is specified
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ * // Add global HTTP middleware
49
+ * addHTTPMiddleware([authMiddleware, loggingMiddleware])
50
+ *
51
+ * // Add route-specific middleware
52
+ * addHTTPMiddleware('/api/admin/*', [adminAuthMiddleware])
53
+ * ```
54
+ */
55
+ export const addHTTPMiddleware = (
56
+ routeOrMiddleware: PikkuMiddleware[] | string,
57
+ middleware?: PikkuMiddleware[]
58
+ ) => {
59
+ addHTTPMiddlewareCore(routeOrMiddleware as any, middleware as any)
60
+ }
61
+
62
+ /**
63
+ * Registers HTTP permissions either globally or for a specific route pattern.
64
+ *
65
+ * When a string route pattern is provided along with permissions, the permissions
66
+ * are applied only to that route. Permissions can be passed as an array or as a
67
+ * permission group object.
68
+ *
69
+ * @param pattern - Route pattern string (e.g., '*' for all routes, '/api/*' for specific routes)
70
+ * @param permissions - The permissions to apply for the specified route pattern
71
+ *
72
+ * @example
73
+ * ```typescript
74
+ * // Add global HTTP permissions
75
+ * addHTTPPermission('*', { global: globalPermission })
76
+ *
77
+ * // Add route-specific permissions
78
+ * addHTTPPermission('/api/admin/*', { admin: adminPermission })
79
+ * ```
80
+ */
81
+ export const addHTTPPermission = <In = unknown>(
82
+ pattern: string,
83
+ permissions: Record<string, PikkuPermission<In>> | PikkuPermission<In>[]
84
+ ) => {
85
+ addHTTPPermissionCore(pattern, permissions as any)
86
+ }
87
+
88
+ /**
89
+ * Route configuration for wireHTTPRoutes with proper typing
90
+ */
91
+ type HTTPRouteConfig = HTTPRouteBaseConfig & {
92
+ method: HTTPMethod
93
+ route: string
94
+ func: PikkuFunctionConfig<any, any, any, any, any, any>
95
+ auth?: boolean
96
+ permissions?: Record<string, PikkuPermission | PikkuPermission[]>
97
+ middleware?: PikkuMiddleware[]
98
+ sse?: boolean
99
+ }
100
+
101
+ /**
102
+ * Typed route map for wireHTTPRoutes
103
+ */
104
+ type TypedHTTPRouteMap = {
105
+ [key: string]: HTTPRouteConfig | TypedHTTPRouteMap | TypedHTTPRouteContract
106
+ }
107
+
108
+ /**
109
+ * Typed route contract for defineHTTPRoutes
110
+ */
111
+ type TypedHTTPRouteContract<T extends TypedHTTPRouteMap = TypedHTTPRouteMap> = TypedHTTPRoutesGroupConfig & {
112
+ routes: T
113
+ }
114
+
115
+ /**
116
+ * Group config with typed middleware/permissions
117
+ */
118
+ type TypedHTTPRoutesGroupConfig = {
119
+ basePath?: string
120
+ tags?: string[]
121
+ auth?: boolean
122
+ middleware?: PikkuMiddleware[]
123
+ permissions?: Record<string, PikkuPermission | PikkuPermission[]>
124
+ }
125
+
126
+ /**
127
+ * Full config for wireHTTPRoutes
128
+ */
129
+ type TypedWireHTTPRoutesConfig = TypedHTTPRoutesGroupConfig & {
130
+ routes: TypedHTTPRouteMap | HTTPRouteConfig[]
131
+ }
132
+
133
+ /**
134
+ * Type-safe helper for defining route contracts that can be composed.
135
+ */
136
+ export function defineHTTPRoutes<T extends TypedHTTPRouteMap>(routes: T): TypedHTTPRouteContract<T>
137
+ export function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: TypedHTTPRoutesGroupConfig & { routes: T }): TypedHTTPRouteContract<T>
138
+ export function defineHTTPRoutes<T extends TypedHTTPRouteMap>(configOrRoutes: T | (TypedHTTPRoutesGroupConfig & { routes: T })): TypedHTTPRouteContract<T> {
139
+ return defineHTTPRoutesCore(configOrRoutes as any) as unknown as TypedHTTPRouteContract<T>
140
+ }
141
+
142
+ /**
143
+ * Wires multiple HTTP routes from a nested map or array configuration.
144
+ */
145
+ export const wireHTTPRoutes = (config: TypedWireHTTPRoutesConfig): void => {
146
+ wireHTTPRoutesCore(config as any)
147
+ }
@@ -0,0 +1,131 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * MCP-specific type definitions for tree-shaking optimization
6
+ */
7
+ import { CoreMCPResource, CoreMCPPrompt, MCPResourceResponse, MCPToolResponse, MCPPromptResponse, AssertMCPResourceURIParams } from '@pikku/core/mcp';
8
+ import type { PikkuFunctionConfig, PikkuFunctionSessionless, PikkuMiddleware, PikkuPermission, InferSchemaOutput } from '../function/pikku-function-types.gen.js';
9
+ import type { CorePermissionGroup } from '@pikku/core';
10
+ import type { StandardSchemaV1 } from '@standard-schema/spec';
11
+ /**
12
+ * Type definition for MCP resources that provide data to AI models.
13
+ *
14
+ * @template In - Input type for the resource request
15
+ * @template URI - URI template string type for compile-time parameter validation
16
+ */
17
+ type MCPResourceWiring<In, URI extends string> = CoreMCPResource<PikkuFunctionConfig<In, MCPResourceResponse, 'rpc' | 'session' | 'mcp'>> & {
18
+ uri: URI;
19
+ };
20
+ /**
21
+ * Type definition for MCP prompts that provide templates to AI models.
22
+ *
23
+ * @template In - Input type for the prompt parameters
24
+ */
25
+ type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptResponse, 'rpc' | 'session' | 'mcp'>>;
26
+ /**
27
+ * Registers an MCP resource with the Pikku framework.
28
+ * Resources provide data that AI models can access.
29
+ *
30
+ * @template In - Input type for the resource request
31
+ * @template URI - URI template string for compile-time parameter validation
32
+ * @param mcpResource - MCP resource definition with data provider function
33
+ */
34
+ export declare const wireMCPResource: <In, URI extends string>(mcpResource: MCPResourceWiring<In, URI> & AssertMCPResourceURIParams<In, URI>) => void;
35
+ /**
36
+ * Registers an MCP prompt with the Pikku framework.
37
+ * Prompts provide templates that AI models can use.
38
+ *
39
+ * @template In - Input type for the prompt parameters
40
+ * @param mcpPrompt - MCP prompt definition with template function
41
+ */
42
+ export declare const wireMCPPrompt: <In>(mcpPrompt: MCPPromptWiring<In>) => void;
43
+ /**
44
+ * Configuration for MCP prompt with Zod schema input validation.
45
+ */
46
+ type MCPPromptFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
47
+ func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>;
48
+ name?: string;
49
+ input: InputSchema;
50
+ };
51
+ /**
52
+ * Creates a function for handling MCP prompt requests.
53
+ * These functions generate prompt templates for AI models.
54
+ *
55
+ * Supports two patterns:
56
+ * 1. Generic types: `pikkuMCPPromptFunc<Input>({ func: ... })`
57
+ * 2. Zod schemas: `pikkuMCPPromptFunc({ input: z.object(...), func: ... })`
58
+ *
59
+ * @template In - Input type for the prompt parameters (inferred from schema if provided)
60
+ * @param func - Function definition, either direct function or configuration object
61
+ * @returns The unwrapped function for internal use
62
+ */
63
+ export declare function pikkuMCPPromptFunc<InputSchema extends StandardSchemaV1>(config: MCPPromptFuncConfigWithSchema<InputSchema>): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>;
64
+ export declare function pikkuMCPPromptFunc<In>(func: PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'> | {
65
+ func: PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'>;
66
+ name?: string;
67
+ }): PikkuFunctionConfig<In, MCPPromptResponse, 'mcp' | 'rpc'>;
68
+ /**
69
+ * Configuration for MCP tool with Zod schema input validation.
70
+ */
71
+ type MCPToolFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
72
+ func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>;
73
+ description?: string;
74
+ tags?: string[];
75
+ title?: string;
76
+ summary?: string;
77
+ name?: string;
78
+ middleware?: PikkuMiddleware[];
79
+ permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>;
80
+ input: InputSchema;
81
+ };
82
+ /**
83
+ * Creates a function for handling MCP tool invocations.
84
+ * These functions perform actions that AI models can request.
85
+ *
86
+ * Supports two patterns:
87
+ * 1. Generic types: `pikkuMCPToolFunc<Input>({ func: ... })`
88
+ * 2. Zod schemas: `pikkuMCPToolFunc({ input: z.object(...), func: ... })`
89
+ *
90
+ * @template In - Input type for the tool invocation (inferred from schema if provided)
91
+ * @param func - Function definition, either direct function or configuration object
92
+ * @returns The unwrapped function for internal use
93
+ */
94
+ export declare function pikkuMCPToolFunc<InputSchema extends StandardSchemaV1>(config: MCPToolFuncConfigWithSchema<InputSchema>): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>;
95
+ export declare function pikkuMCPToolFunc<In>(func: PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'> | {
96
+ func: PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'>;
97
+ description?: string;
98
+ tags?: string[];
99
+ title?: string;
100
+ summary?: string;
101
+ name?: string;
102
+ middleware?: PikkuMiddleware[];
103
+ permissions?: CorePermissionGroup<PikkuPermission<In>>;
104
+ }): PikkuFunctionConfig<In, MCPToolResponse, 'mcp' | 'rpc'>;
105
+ /**
106
+ * Configuration for MCP resource with Zod schema input validation.
107
+ */
108
+ type MCPResourceFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
109
+ func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>;
110
+ name?: string;
111
+ input: InputSchema;
112
+ };
113
+ /**
114
+ * Creates a function for handling MCP resource requests.
115
+ * These functions provide data that AI models can access.
116
+ *
117
+ * Supports two patterns:
118
+ * 1. Generic types: `pikkuMCPResourceFunc<Input>({ func: ... })`
119
+ * 2. Zod schemas: `pikkuMCPResourceFunc({ input: z.object(...), func: ... })`
120
+ *
121
+ * @template In - Input type for the resource request (inferred from schema if provided)
122
+ * @param func - Function definition, either direct function or configuration object
123
+ * @returns The unwrapped function for internal use
124
+ */
125
+ export declare function pikkuMCPResourceFunc<InputSchema extends StandardSchemaV1>(config: MCPResourceFuncConfigWithSchema<InputSchema>): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>;
126
+ export declare function pikkuMCPResourceFunc<In>(func: PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'> | {
127
+ func: PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'>;
128
+ name?: string;
129
+ }): PikkuFunctionConfig<In, MCPResourceResponse, 'mcp' | 'rpc'>;
130
+ export {};
131
+ //# sourceMappingURL=pikku-mcp-types.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-mcp-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/mcp/pikku-mcp-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EACL,eAAe,EACf,aAAa,EAGb,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,0BAA0B,EAC3B,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AACjK,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBA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tree-shaking optimization
6
+ */
7
+ import { wireMCPResource as wireMCPResourceCore, wireMCPPrompt as wireMCPPromptCore } from '@pikku/core/mcp';
8
+ /**
9
+ * Registers an MCP resource with the Pikku framework.
10
+ * Resources provide data that AI models can access.
11
+ *
12
+ * @template In - Input type for the resource request
13
+ * @template URI - URI template string for compile-time parameter validation
14
+ * @param mcpResource - MCP resource definition with data provider function
15
+ */
16
+ export const wireMCPResource = (mcpResource) => {
17
+ wireMCPResourceCore(mcpResource);
18
+ };
19
+ /**
20
+ * Registers an MCP prompt with the Pikku framework.
21
+ * Prompts provide templates that AI models can use.
22
+ *
23
+ * @template In - Input type for the prompt parameters
24
+ * @param mcpPrompt - MCP prompt definition with template function
25
+ */
26
+ export const wireMCPPrompt = (mcpPrompt) => {
27
+ wireMCPPromptCore(mcpPrompt);
28
+ };
29
+ export function pikkuMCPPromptFunc(func) {
30
+ return typeof func === 'function' ? { func } : func;
31
+ }
32
+ export function pikkuMCPToolFunc(func) {
33
+ return typeof func === 'function' ? { func } : func;
34
+ }
35
+ export function pikkuMCPResourceFunc(func) {
36
+ return typeof func === 'function' ? { func } : func;
37
+ }
38
+ //# sourceMappingURL=pikku-mcp-types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-mcp-types.gen.js","sourceRoot":"","sources":["../../../.pikku/mcp/pikku-mcp-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAGL,eAAe,IAAI,mBAAmB,EACtC,aAAa,IAAI,iBAAiB,EAKnC,MAAM,iBAAiB,CAAA;AAqBxB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,WAA6E,EAC7E,EAAE;IACF,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,SAA8B,EAC9B,EAAE;IACF,iBAAiB,CAAC,SAAgB,CAAC,CAAA;AACrC,CAAC,CAAA;AAkCD,MAAM,UAAU,kBAAkB,CAAC,IAAS;IAC1C,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AA8CD,MAAM,UAAU,gBAAgB,CAAC,IAAS;IACxC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAkCD,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC5C,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC"}
@@ -0,0 +1,183 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ /**
5
+ * MCP-specific type definitions for tree-shaking optimization
6
+ */
7
+
8
+ import {
9
+ CoreMCPResource,
10
+ CoreMCPPrompt,
11
+ wireMCPResource as wireMCPResourceCore,
12
+ wireMCPPrompt as wireMCPPromptCore,
13
+ MCPResourceResponse,
14
+ MCPToolResponse,
15
+ MCPPromptResponse,
16
+ AssertMCPResourceURIParams
17
+ } from '@pikku/core/mcp'
18
+
19
+ import type { PikkuFunctionConfig, PikkuFunctionSessionless, PikkuMiddleware, PikkuPermission, InferSchemaOutput } from '../function/pikku-function-types.gen.js'
20
+ import type { CorePermissionGroup } from '@pikku/core'
21
+ import type { StandardSchemaV1 } from '@standard-schema/spec'
22
+
23
+ /**
24
+ * Type definition for MCP resources that provide data to AI models.
25
+ *
26
+ * @template In - Input type for the resource request
27
+ * @template URI - URI template string type for compile-time parameter validation
28
+ */
29
+ type MCPResourceWiring<In, URI extends string> = CoreMCPResource<PikkuFunctionConfig<In, MCPResourceResponse, 'rpc' | 'session' | 'mcp'>> & { uri: URI }
30
+
31
+ /**
32
+ * Type definition for MCP prompts that provide templates to AI models.
33
+ *
34
+ * @template In - Input type for the prompt parameters
35
+ */
36
+ type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptResponse, 'rpc' | 'session' | 'mcp'>>
37
+
38
+ /**
39
+ * Registers an MCP resource with the Pikku framework.
40
+ * Resources provide data that AI models can access.
41
+ *
42
+ * @template In - Input type for the resource request
43
+ * @template URI - URI template string for compile-time parameter validation
44
+ * @param mcpResource - MCP resource definition with data provider function
45
+ */
46
+ export const wireMCPResource = <In, URI extends string>(
47
+ mcpResource: MCPResourceWiring<In, URI> & AssertMCPResourceURIParams<In, URI>
48
+ ) => {
49
+ wireMCPResourceCore(mcpResource as any)
50
+ }
51
+
52
+ /**
53
+ * Registers an MCP prompt with the Pikku framework.
54
+ * Prompts provide templates that AI models can use.
55
+ *
56
+ * @template In - Input type for the prompt parameters
57
+ * @param mcpPrompt - MCP prompt definition with template function
58
+ */
59
+ export const wireMCPPrompt = <In>(
60
+ mcpPrompt: MCPPromptWiring<In>
61
+ ) => {
62
+ wireMCPPromptCore(mcpPrompt as any)
63
+ }
64
+
65
+ /**
66
+ * Configuration for MCP prompt with Zod schema input validation.
67
+ */
68
+ type MCPPromptFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
69
+ func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>
70
+ name?: string
71
+ input: InputSchema
72
+ }
73
+
74
+ /**
75
+ * Creates a function for handling MCP prompt requests.
76
+ * These functions generate prompt templates for AI models.
77
+ *
78
+ * Supports two patterns:
79
+ * 1. Generic types: `pikkuMCPPromptFunc<Input>({ func: ... })`
80
+ * 2. Zod schemas: `pikkuMCPPromptFunc({ input: z.object(...), func: ... })`
81
+ *
82
+ * @template In - Input type for the prompt parameters (inferred from schema if provided)
83
+ * @param func - Function definition, either direct function or configuration object
84
+ * @returns The unwrapped function for internal use
85
+ */
86
+ export function pikkuMCPPromptFunc<InputSchema extends StandardSchemaV1>(
87
+ config: MCPPromptFuncConfigWithSchema<InputSchema>
88
+ ): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>
89
+ export function pikkuMCPPromptFunc<In>(
90
+ func:
91
+ | PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'>
92
+ | {
93
+ func: PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'>
94
+ name?: string
95
+ }
96
+ ): PikkuFunctionConfig<In, MCPPromptResponse, 'mcp' | 'rpc'>
97
+ export function pikkuMCPPromptFunc(func: any): any {
98
+ return typeof func === 'function' ? { func } : func
99
+ }
100
+
101
+ /**
102
+ * Configuration for MCP tool with Zod schema input validation.
103
+ */
104
+ type MCPToolFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
105
+ func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>
106
+ description?: string
107
+ tags?: string[]
108
+ title?: string
109
+ summary?: string
110
+ name?: string
111
+ middleware?: PikkuMiddleware[]
112
+ permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
113
+ input: InputSchema
114
+ }
115
+
116
+ /**
117
+ * Creates a function for handling MCP tool invocations.
118
+ * These functions perform actions that AI models can request.
119
+ *
120
+ * Supports two patterns:
121
+ * 1. Generic types: `pikkuMCPToolFunc<Input>({ func: ... })`
122
+ * 2. Zod schemas: `pikkuMCPToolFunc({ input: z.object(...), func: ... })`
123
+ *
124
+ * @template In - Input type for the tool invocation (inferred from schema if provided)
125
+ * @param func - Function definition, either direct function or configuration object
126
+ * @returns The unwrapped function for internal use
127
+ */
128
+ export function pikkuMCPToolFunc<InputSchema extends StandardSchemaV1>(
129
+ config: MCPToolFuncConfigWithSchema<InputSchema>
130
+ ): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>
131
+ export function pikkuMCPToolFunc<In>(
132
+ func:
133
+ | PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'>
134
+ | {
135
+ func: PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'>
136
+ description?: string
137
+ tags?: string[]
138
+ title?: string
139
+ summary?: string
140
+ name?: string
141
+ middleware?: PikkuMiddleware[]
142
+ permissions?: CorePermissionGroup<PikkuPermission<In>>
143
+ }
144
+ ): PikkuFunctionConfig<In, MCPToolResponse, 'mcp' | 'rpc'>
145
+ export function pikkuMCPToolFunc(func: any): any {
146
+ return typeof func === 'function' ? { func } : func
147
+ }
148
+
149
+ /**
150
+ * Configuration for MCP resource with Zod schema input validation.
151
+ */
152
+ type MCPResourceFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
153
+ func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>
154
+ name?: string
155
+ input: InputSchema
156
+ }
157
+
158
+ /**
159
+ * Creates a function for handling MCP resource requests.
160
+ * These functions provide data that AI models can access.
161
+ *
162
+ * Supports two patterns:
163
+ * 1. Generic types: `pikkuMCPResourceFunc<Input>({ func: ... })`
164
+ * 2. Zod schemas: `pikkuMCPResourceFunc({ input: z.object(...), func: ... })`
165
+ *
166
+ * @template In - Input type for the resource request (inferred from schema if provided)
167
+ * @param func - Function definition, either direct function or configuration object
168
+ * @returns The unwrapped function for internal use
169
+ */
170
+ export function pikkuMCPResourceFunc<InputSchema extends StandardSchemaV1>(
171
+ config: MCPResourceFuncConfigWithSchema<InputSchema>
172
+ ): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>
173
+ export function pikkuMCPResourceFunc<In>(
174
+ func:
175
+ | PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'>
176
+ | {
177
+ func: PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'>
178
+ name?: string
179
+ }
180
+ ): PikkuFunctionConfig<In, MCPResourceResponse, 'mcp' | 'rpc'>
181
+ export function pikkuMCPResourceFunc(func: any): any {
182
+ return typeof func === 'function' ? { func } : func
183
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
5
+ import './function/pikku-functions-meta.gen.js';
6
+ import './addon/pikku-package.gen.js';
7
+ import './schemas/register.gen.js';
8
+ import './function/pikku-functions.gen.js';
9
+ //# sourceMappingURL=pikku-bootstrap.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-bootstrap.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-bootstrap.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,8CAA8C,CAAA;AACrD,OAAO,wCAAwC,CAAA;AAC/C,OAAO,8BAA8B,CAAA;AACrC,OAAO,2BAA2B,CAAA;AAClC,OAAO,mCAAmC,CAAA"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
5
+ import './function/pikku-functions-meta.gen.js';
6
+ import './addon/pikku-package.gen.js';
7
+ import './schemas/register.gen.js';
8
+ import './function/pikku-functions.gen.js';
9
+ //# sourceMappingURL=pikku-bootstrap.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-bootstrap.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-bootstrap.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,8CAA8C,CAAA;AACrD,OAAO,wCAAwC,CAAA;AAC/C,OAAO,8BAA8B,CAAA;AACrC,OAAO,2BAA2B,CAAA;AAClC,OAAO,mCAAmC,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ import './rpc/pikku-rpc-wirings-meta.internal.gen.js'
5
+ import './function/pikku-functions-meta.gen.js'
6
+ import './addon/pikku-package.gen.js'
7
+ import './schemas/register.gen.js'
8
+ import './function/pikku-functions.gen.js'
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ import { LocalMetaService } from '@pikku/core/services/local-meta';
5
+ export declare class PikkuMetaService extends LocalMetaService {
6
+ constructor();
7
+ }
8
+ //# sourceMappingURL=pikku-meta-service.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-meta-service.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-meta-service.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAElE,qBAAa,gBAAiB,SAAQ,gBAAgB;;CAIrD"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.54
3
+ */
4
+ import { LocalMetaService } from '@pikku/core/services/local-meta';
5
+ export class PikkuMetaService extends LocalMetaService {
6
+ constructor() {
7
+ super('/home/runner/work/addons/addons/packages/monitoring/security-scorecard/.pikku');
8
+ }
9
+ }
10
+ //# sourceMappingURL=pikku-meta-service.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-meta-service.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-meta-service.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAElE,MAAM,OAAO,gBAAiB,SAAQ,gBAAgB;IACpD;QACE,KAAK,CAAC,+EAA+E,CAAC,CAAA;IACxF,CAAC;CACF"}