@pikku/addon-admin 0.12.12 → 0.12.13

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 (166) hide show
  1. package/dist/.pikku/addon/agent/index.d.ts +1 -1
  2. package/dist/.pikku/addon/agent/index.js +1 -1
  3. package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
  4. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +1 -1
  5. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
  6. package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
  7. package/dist/.pikku/addon/analytics/index.d.ts +1 -1
  8. package/dist/.pikku/addon/analytics/index.js +1 -1
  9. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +1 -1
  10. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +1 -1
  11. package/dist/.pikku/addon/auth/index.d.ts +1 -1
  12. package/dist/.pikku/addon/auth/index.js +1 -1
  13. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +1 -1
  14. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +1 -1
  15. package/dist/.pikku/addon/channel/index.d.ts +1 -1
  16. package/dist/.pikku/addon/channel/index.js +1 -1
  17. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +1 -1
  18. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +1 -1
  19. package/dist/.pikku/addon/cli/index.d.ts +1 -1
  20. package/dist/.pikku/addon/cli/index.js +1 -1
  21. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +1 -1
  22. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +1 -1
  23. package/dist/.pikku/addon/error/index.d.ts +1 -1
  24. package/dist/.pikku/addon/error/index.js +1 -1
  25. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
  26. package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
  27. package/dist/.pikku/addon/function/index.d.ts +1 -1
  28. package/dist/.pikku/addon/function/index.js +1 -1
  29. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +1 -1
  30. package/dist/.pikku/addon/function/pikku-function-types.gen.js +1 -1
  31. package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +146 -0
  32. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
  33. package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +118 -0
  34. package/dist/.pikku/addon/function/pikku-functions.gen.js +9 -1
  35. package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -1
  36. package/dist/.pikku/addon/http/index.d.ts +1 -1
  37. package/dist/.pikku/addon/http/index.js +1 -1
  38. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +1 -1
  39. package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
  40. package/dist/.pikku/addon/mcp/index.d.ts +1 -1
  41. package/dist/.pikku/addon/mcp/index.js +1 -1
  42. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +1 -1
  43. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
  44. package/dist/.pikku/addon/middleware/index.d.ts +1 -1
  45. package/dist/.pikku/addon/middleware/index.js +1 -1
  46. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +1 -1
  47. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +1 -1
  48. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  49. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
  50. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
  51. package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
  52. package/dist/.pikku/addon/pikku-local-services.gen.js +1 -1
  53. package/dist/.pikku/addon/pikku-package.gen.js +2 -2
  54. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  55. package/dist/.pikku/addon/pikku-services.gen.d.ts +6 -6
  56. package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
  57. package/dist/.pikku/addon/pikku-services.gen.js +4 -4
  58. package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
  59. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +14 -1
  60. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +14 -1
  61. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +10 -1
  62. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  63. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.json +4 -0
  64. package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
  65. package/dist/.pikku/addon/scenarios/index.js +1 -1
  66. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  67. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  68. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +1 -1
  69. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  70. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  71. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js +1 -1
  72. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
  73. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
  74. package/dist/.pikku/addon/schemas/register.gen.js +15 -1
  75. package/dist/.pikku/addon/schemas/register.gen.js.map +1 -1
  76. package/dist/.pikku/addon/schemas/schemas/GetIncomingWebhookReceiptInput.schema.json +1 -0
  77. package/dist/.pikku/addon/schemas/schemas/GetQueueHistoryInput.schema.json +1 -0
  78. package/dist/.pikku/addon/schemas/schemas/GetQueueHistoryOutput.schema.json +1 -0
  79. package/dist/.pikku/addon/schemas/schemas/GetSchedulerHistoryOutput.schema.json +1 -0
  80. package/dist/.pikku/addon/schemas/schemas/IncomingWebhookReceiptRecord.schema.json +1 -0
  81. package/dist/.pikku/addon/schemas/schemas/ListIncomingWebhookReceiptsInput.schema.json +1 -0
  82. package/dist/.pikku/addon/schemas/schemas/ListIncomingWebhookReceiptsOutput.schema.json +1 -0
  83. package/dist/.pikku/addon/scopes/index.d.ts +1 -1
  84. package/dist/.pikku/addon/scopes/index.js +1 -1
  85. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts +1 -1
  86. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +1 -1
  87. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
  88. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +1 -1
  89. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +1 -1
  90. package/dist/.pikku/addon/scopes/pikku-scopes-meta.gen.json +24 -0
  91. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +2 -2
  92. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -1
  93. package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -1
  94. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js +1 -1
  95. package/dist/.pikku/addon/secrets/index.d.ts +1 -1
  96. package/dist/.pikku/addon/secrets/index.js +1 -1
  97. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
  98. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
  99. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +1 -1
  100. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +1 -1
  101. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
  102. package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
  103. package/dist/.pikku/addon/setup/index.d.ts +1 -1
  104. package/dist/.pikku/addon/setup/index.js +1 -1
  105. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +1 -1
  106. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
  107. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +1 -1
  108. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +1 -1
  109. package/dist/.pikku/addon/trigger/index.d.ts +1 -1
  110. package/dist/.pikku/addon/trigger/index.js +1 -1
  111. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +1 -1
  112. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +1 -1
  113. package/dist/.pikku/addon/utils/index.d.ts +1 -1
  114. package/dist/.pikku/addon/utils/index.js +1 -1
  115. package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts +1 -1
  116. package/dist/.pikku/addon/utils/pikku-utils-types.gen.js +1 -1
  117. package/dist/.pikku/addon/variables/index.d.ts +1 -1
  118. package/dist/.pikku/addon/variables/index.js +1 -1
  119. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
  120. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
  121. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +1 -1
  122. package/dist/.pikku/addon/variables/pikku-variables.gen.js +1 -1
  123. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +1 -1
  124. package/dist/.pikku/addon/workflow/index.d.ts +1 -1
  125. package/dist/.pikku/addon/workflow/index.js +1 -1
  126. package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  127. package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
  128. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +1 -1
  129. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +1 -1
  130. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  131. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  132. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
  133. package/dist/src/functions/get-incoming-webhook-receipt.function.d.ts +9 -0
  134. package/dist/src/functions/get-incoming-webhook-receipt.function.d.ts.map +1 -0
  135. package/dist/src/functions/get-incoming-webhook-receipt.function.js +14 -0
  136. package/dist/src/functions/get-incoming-webhook-receipt.function.js.map +1 -0
  137. package/dist/src/functions/get-queue-history.function.d.ts +21 -0
  138. package/dist/src/functions/get-queue-history.function.d.ts.map +1 -0
  139. package/dist/src/functions/get-queue-history.function.js +31 -0
  140. package/dist/src/functions/get-queue-history.function.js.map +1 -0
  141. package/dist/src/functions/get-queue-history.function.test.d.ts +2 -0
  142. package/dist/src/functions/get-queue-history.function.test.d.ts.map +1 -0
  143. package/dist/src/functions/get-queue-history.function.test.js +44 -0
  144. package/dist/src/functions/get-queue-history.function.test.js.map +1 -0
  145. package/dist/src/functions/get-scheduler-history.function.d.ts +10 -0
  146. package/dist/src/functions/get-scheduler-history.function.d.ts.map +1 -0
  147. package/dist/src/functions/get-scheduler-history.function.js +21 -0
  148. package/dist/src/functions/get-scheduler-history.function.js.map +1 -0
  149. package/dist/src/functions/get-scheduler-history.function.test.d.ts +2 -0
  150. package/dist/src/functions/get-scheduler-history.function.test.d.ts.map +1 -0
  151. package/dist/src/functions/get-scheduler-history.function.test.js +13 -0
  152. package/dist/src/functions/get-scheduler-history.function.test.js.map +1 -0
  153. package/dist/src/functions/incoming-webhook-receipts.function.test.d.ts +2 -0
  154. package/dist/src/functions/incoming-webhook-receipts.function.test.d.ts.map +1 -0
  155. package/dist/src/functions/incoming-webhook-receipts.function.test.js +30 -0
  156. package/dist/src/functions/incoming-webhook-receipts.function.test.js.map +1 -0
  157. package/dist/src/functions/list-incoming-webhook-receipts.function.d.ts +19 -0
  158. package/dist/src/functions/list-incoming-webhook-receipts.function.d.ts.map +1 -0
  159. package/dist/src/functions/list-incoming-webhook-receipts.function.js +21 -0
  160. package/dist/src/functions/list-incoming-webhook-receipts.function.js.map +1 -0
  161. package/dist/src/scopes.js +24 -0
  162. package/dist/src/scopes.js.map +1 -1
  163. package/dist/src/services.d.ts.map +1 -1
  164. package/dist/src/services.js +4 -1
  165. package/dist/src/services.js.map +1 -1
  166. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * This file was generated by the @pikku/cli
@@ -12,7 +12,7 @@ import type { FlatScope } from '@pikku/core/scope';
12
12
  * matched against this by `verifyScopes` — `admin:*` on a session satisfies
13
13
  * any `admin:...` requirement.
14
14
  */
15
- export type ScopeId = "admin" | "admin:*" | "admin:audit" | "admin:audit:*" | "admin:audit:read" | "admin:credentials" | "admin:credentials:*" | "admin:credentials:link" | "admin:credentials:manage" | "admin:credentials:read" | "admin:flags" | "admin:flags:*" | "admin:flags:manage" | "admin:flags:read" | "admin:impersonate" | "admin:scopes" | "admin:scopes:*" | "admin:scopes:manage" | "admin:scopes:read" | "admin:triggers" | "admin:triggers:*" | "admin:triggers:manage" | "admin:triggers:read" | "admin:users" | "admin:users:*" | "admin:users:ban" | "admin:users:create" | "admin:users:list" | "admin:users:password" | "admin:users:remove" | "admin:users:sessions";
15
+ export type ScopeId = "admin" | "admin:*" | "admin:audit" | "admin:audit:*" | "admin:audit:read" | "admin:credentials" | "admin:credentials:*" | "admin:credentials:link" | "admin:credentials:manage" | "admin:credentials:read" | "admin:flags" | "admin:flags:*" | "admin:flags:manage" | "admin:flags:read" | "admin:impersonate" | "admin:queues" | "admin:queues:*" | "admin:queues:read" | "admin:schedules" | "admin:schedules:*" | "admin:schedules:read" | "admin:scopes" | "admin:scopes:*" | "admin:scopes:manage" | "admin:scopes:read" | "admin:triggers" | "admin:triggers:*" | "admin:triggers:manage" | "admin:triggers:read" | "admin:users" | "admin:users:*" | "admin:users:ban" | "admin:users:create" | "admin:users:list" | "admin:users:password" | "admin:users:remove" | "admin:users:sessions" | "admin:webhooks" | "admin:webhooks:*" | "admin:webhooks:read";
16
16
  export interface ScopeMeta {
17
17
  id: ScopeId;
18
18
  displayName?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-scopes.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAwB,MAAM,mBAAmB,CAAA;AAIxE;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GACf,OAAO,GACP,SAAS,GACT,aAAa,GACb,eAAe,GACf,kBAAkB,GAClB,mBAAmB,GACnB,qBAAqB,GACrB,wBAAwB,GACxB,0BAA0B,GAC1B,wBAAwB,GACxB,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,cAAc,GACd,gBAAgB,GAChB,qBAAqB,GACrB,mBAAmB,GACnB,gBAAgB,GAChB,kBAAkB,GAClB,uBAAuB,GACvB,qBAAqB,GACrB,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,CAAA;AAE1B,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,EAE7B,CAAA;AAMD,2EAA2E;AAC3E,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAWjD,CAAA"}
1
+ {"version":3,"file":"pikku-scopes.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAwB,MAAM,mBAAmB,CAAA;AAIxE;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GACf,OAAO,GACP,SAAS,GACT,aAAa,GACb,eAAe,GACf,kBAAkB,GAClB,mBAAmB,GACnB,qBAAqB,GACrB,wBAAwB,GACxB,0BAA0B,GAC1B,wBAAwB,GACxB,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GACnB,iBAAiB,GACjB,mBAAmB,GACnB,sBAAsB,GACtB,cAAc,GACd,gBAAgB,GAChB,qBAAqB,GACrB,mBAAmB,GACnB,gBAAgB,GAChB,kBAAkB,GAClB,uBAAuB,GACvB,qBAAqB,GACrB,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,gBAAgB,GAChB,kBAAkB,GAClB,qBAAqB,CAAA;AAEzB,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,EAE7B,CAAA;AAMD,2EAA2E;AAC3E,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAWjD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-scopes.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,WAAW,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAgD5E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,MAAM,GAAgB,uBAAuB,CACxD,MAAM,CAAC,MAAM,CAAC,WAAmC,CAAC,CACnD,CAAA;AAED,MAAM,aAAa,GAA2B;IAC5C,OAAO,EAAE,gBAAgB;CAC1B,CAAA;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAA8B,MAAM,CAAC,WAAW,CACtE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE;IACR;QACE,EAAE,EAAE,KAAK,CAAC,EAAa;QACvB,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,CAAC,CAAC,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE;YAC1C,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE;CACF,CAAC,CACH,CAAA"}
1
+ {"version":3,"file":"pikku-scopes.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,WAAW,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAyD5E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,MAAM,GAAgB,uBAAuB,CACxD,MAAM,CAAC,MAAM,CAAC,WAAmC,CAAC,CACnD,CAAA;AAED,MAAM,aAAa,GAA2B;IAC5C,OAAO,EAAE,gBAAgB;CAC1B,CAAA;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAA8B,MAAM,CAAC,WAAW,CACtE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE;IACR;QACE,EAAE,EAAE,KAAK,CAAC,EAAa;QACvB,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,CAAC,CAAC,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE;YAC1C,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE;CACF,CAAC,CACH,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * This file was generated by the @pikku/cli
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/secrets` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/secrets` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  export { defineSecret } from '@pikku/core/secret';
5
5
  //# sourceMappingURL=pikku-secret-types.gen.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  export { defineSecret } from '@pikku/core/secret';
5
5
  //# sourceMappingURL=pikku-secret-types.gen.js.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  import type { SecretService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  import { LocalMetaService } from '@pikku/core/services/local-meta';
5
5
  export declare class PikkuMetaService extends LocalMetaService {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  import { LocalMetaService } from '@pikku/core/services/local-meta';
5
5
  export class PikkuMetaService extends LocalMetaService {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/setup` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/setup` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Addon package types for pikkuAddonConfig and pikkuAddonServices
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Addon package types for pikkuAddonConfig and pikkuAddonServices
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Config and service factory definitions, declared once per application
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Config and service factory definitions, declared once per application
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/trigger` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/trigger` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/utils` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/utils` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  export { parseJson } from '@pikku/core/utils';
5
5
  //# sourceMappingURL=pikku-utils-types.gen.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  export { parseJson } from '@pikku/core/utils';
5
5
  //# sourceMappingURL=pikku-utils-types.gen.js.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/variables` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/variables` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  export { defineVariable } from '@pikku/core/variable';
5
5
  //# sourceMappingURL=pikku-variable-types.gen.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  export { defineVariable } from '@pikku/core/variable';
5
5
  //# sourceMappingURL=pikku-variable-types.gen.js.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
5
  import type { VariablesService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService, } from '@pikku/core/services';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  import type { TypedWebhookService as CoreTypedWebhookService } from '@pikku/core/webhook';
5
5
  import type { WebhookService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/workflow` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/workflow` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Scenario step map: the names `scenario.given/when/then` accepts, with
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  /**
5
5
  * Workflow type map with input/output types for each workflow
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import type { PikkuWorkflowGraphConfig, PikkuWorkflowGraphResult } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import { pikkuWorkflowGraph as corePikkuWorkflowGraph } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.188
2
+ * This file was generated by @pikku/cli@0.12.191
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  const workflowsMeta = {};
@@ -1,5 +1,5 @@
1
1
  export {};
2
2
  /**
3
- * This file was generated by @pikku/cli@0.12.188
3
+ * This file was generated by @pikku/cli@0.12.191
4
4
  */
5
5
  //# sourceMappingURL=pikku-workflow-wirings.gen.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export {};
2
2
  /**
3
- * This file was generated by @pikku/cli@0.12.188
3
+ * This file was generated by @pikku/cli@0.12.191
4
4
  */
5
5
  //# sourceMappingURL=pikku-workflow-wirings.gen.js.map
@@ -0,0 +1,9 @@
1
+ import type { IncomingWebhookReceiptRecord } from '@pikku/core/services';
2
+ export declare const getIncomingWebhookReceipt: import("#pikku/addon/function").PikkuFunctionConfig<{
3
+ receiptId: string;
4
+ }, IncomingWebhookReceiptRecord | null, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
5
+ receiptId: string;
6
+ }, IncomingWebhookReceiptRecord | null, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
7
+ receiptId: string;
8
+ }, IncomingWebhookReceiptRecord | null, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
9
+ //# sourceMappingURL=get-incoming-webhook-receipt.function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-incoming-webhook-receipt.function.d.ts","sourceRoot":"","sources":["../../../src/functions/get-incoming-webhook-receipt.function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AAGxE,eAAO,MAAM,yBAAyB;eACvB,MAAM;;;;;yIAcnB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { pikkuFunc } from '#pikku/addon/function';
2
+ export const getIncomingWebhookReceipt = pikkuFunc({
3
+ title: 'Get Incoming Webhook Receipt',
4
+ description: 'Returns a single received webhook event, or null when the app wires no incoming webhook service or keeps no receipt with this id.',
5
+ expose: true,
6
+ scopes: ['admin:webhooks:read'],
7
+ func: async ({ incomingWebhookService }, { receiptId }) => {
8
+ if (!incomingWebhookService) {
9
+ return null;
10
+ }
11
+ return incomingWebhookService.getReceipt(receiptId);
12
+ },
13
+ });
14
+ //# sourceMappingURL=get-incoming-webhook-receipt.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-incoming-webhook-receipt.function.js","sourceRoot":"","sources":["../../../src/functions/get-incoming-webhook-receipt.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,MAAM,CAAC,MAAM,yBAAyB,GAAG,SAAS,CAGhD;IACA,KAAK,EAAE,8BAA8B;IACrC,WAAW,EACT,mIAAmI;IACrI,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,qBAAqB,CAAC;IAC/B,IAAI,EAAE,KAAK,EAAE,EAAE,sBAAsB,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QACxD,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAA;QACb,CAAC;QACD,OAAO,sBAAsB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;IACrD,CAAC;CACF,CAAC,CAAA"}
@@ -0,0 +1,21 @@
1
+ import type { QueueInspection } from '@pikku/core/queue';
2
+ /**
3
+ * Live counts and recent jobs per queue, keyed by queue name.
4
+ *
5
+ * Every queue worker this app wires unless `queueNames` narrows it. Empty when
6
+ * the app wires no queue service, or one that cannot inspect its backlog
7
+ * (`inspect` is optional on `QueueService`). The in-memory queue `pikku dev`
8
+ * runs keeps its job records in process, so locally the history resets with
9
+ * the server.
10
+ */
11
+ export declare const getQueueHistory: import("#pikku/addon/function").PikkuFunctionConfig<{
12
+ queueNames?: string[];
13
+ limit?: number;
14
+ }, Record<string, QueueInspection>, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
15
+ queueNames?: string[];
16
+ limit?: number;
17
+ }, Record<string, QueueInspection>, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
18
+ queueNames?: string[];
19
+ limit?: number;
20
+ }, Record<string, QueueInspection>, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
21
+ //# sourceMappingURL=get-queue-history.function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-queue-history.function.d.ts","sourceRoot":"","sources":["../../../src/functions/get-queue-history.function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAIxD;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;iBACX,MAAM,EAAE;YAAU,MAAM;;;;;;;qIAsBvC,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { pikkuState } from '@pikku/core/state';
2
+ import { pikkuFunc } from '#pikku/addon/function';
3
+ /**
4
+ * Live counts and recent jobs per queue, keyed by queue name.
5
+ *
6
+ * Every queue worker this app wires unless `queueNames` narrows it. Empty when
7
+ * the app wires no queue service, or one that cannot inspect its backlog
8
+ * (`inspect` is optional on `QueueService`). The in-memory queue `pikku dev`
9
+ * runs keeps its job records in process, so locally the history resets with
10
+ * the server.
11
+ */
12
+ export const getQueueHistory = pikkuFunc({
13
+ title: 'Get Queue History',
14
+ description: 'Returns each queue with its live job counts (waiting, active, delayed, completed, failed) and recent jobs, newest first. Empty when the queue service cannot be inspected.',
15
+ expose: true,
16
+ scopes: ['admin:queues:read'],
17
+ func: async ({ queueService }, input) => {
18
+ if (!queueService?.inspect) {
19
+ return {};
20
+ }
21
+ const queueNames = input?.queueNames ?? Object.keys(pikkuState(null, 'queue', 'meta'));
22
+ const history = {};
23
+ for (const queueName of queueNames) {
24
+ history[queueName] = await queueService.inspect(queueName, {
25
+ limit: input?.limit,
26
+ });
27
+ }
28
+ return history;
29
+ },
30
+ });
31
+ //# sourceMappingURL=get-queue-history.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-queue-history.function.js","sourceRoot":"","sources":["../../../src/functions/get-queue-history.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,CAGtC;IACA,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,4KAA4K;IAC9K,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,mBAAmB,CAAC;IAC7B,IAAI,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE;QACtC,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC;YAC3B,OAAO,EAAE,CAAA;QACX,CAAC;QACD,MAAM,UAAU,GACd,KAAK,EAAE,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;QACrE,MAAM,OAAO,GAAoC,EAAE,CAAA;QACnD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACnC,OAAO,CAAC,SAAS,CAAC,GAAG,MAAM,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE;gBACzD,KAAK,EAAE,KAAK,EAAE,KAAK;aACpB,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-queue-history.function.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-queue-history.function.test.d.ts","sourceRoot":"","sources":["../../../src/functions/get-queue-history.function.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ import assert from 'node:assert/strict';
2
+ import { beforeEach, test } from 'node:test';
3
+ import { pikkuState, resetPikkuState } from '@pikku/core/state';
4
+ import { getQueueHistory } from './get-queue-history.function.js';
5
+ beforeEach(() => {
6
+ resetPikkuState();
7
+ pikkuState(null, 'queue', 'meta', {
8
+ emails: { pikkuFuncId: 'queue_emails', name: 'emails' },
9
+ reports: { pikkuFuncId: 'queue_reports', name: 'reports' },
10
+ });
11
+ });
12
+ const inspecting = () => {
13
+ const asked = [];
14
+ return {
15
+ asked,
16
+ queueService: {
17
+ inspect: async (queueName, opts) => {
18
+ asked.push([queueName, opts]);
19
+ return { counts: {}, recent: [] };
20
+ },
21
+ },
22
+ };
23
+ };
24
+ test('an app with no queue service has no history rather than throwing', async () => {
25
+ assert.deepEqual(await getQueueHistory.func({ queueService: undefined }, {}, {}), {});
26
+ });
27
+ test('a queue service that cannot inspect its backlog has no history', async () => {
28
+ assert.deepEqual(await getQueueHistory.func({ queueService: { add: async () => 'id' } }, {}, {}), {});
29
+ });
30
+ test('every wired queue is inspected with the requested limit', async () => {
31
+ const { asked, queueService } = inspecting();
32
+ const history = await getQueueHistory.func({ queueService }, { limit: 5 }, {});
33
+ assert.deepEqual(Object.keys(history), ['emails', 'reports']);
34
+ assert.deepEqual(asked, [
35
+ ['emails', { limit: 5 }],
36
+ ['reports', { limit: 5 }],
37
+ ]);
38
+ });
39
+ test('queueNames narrows the queues inspected', async () => {
40
+ const { asked, queueService } = inspecting();
41
+ await getQueueHistory.func({ queueService }, { queueNames: ['reports'] }, {});
42
+ assert.deepEqual(asked, [['reports', { limit: undefined }]]);
43
+ });
44
+ //# sourceMappingURL=get-queue-history.function.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-queue-history.function.test.js","sourceRoot":"","sources":["../../../src/functions/get-queue-history.function.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEjE,UAAU,CAAC,GAAG,EAAE;IACd,eAAe,EAAE,CAAA;IACjB,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE;QAChC,MAAM,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvD,OAAO,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE;KACpD,CAAC,CAAA;AACX,CAAC,CAAC,CAAA;AAEF,MAAM,UAAU,GAAG,GAAG,EAAE;IACtB,MAAM,KAAK,GAA6B,EAAE,CAAA;IAC1C,OAAO;QACL,KAAK;QACL,YAAY,EAAE;YACZ,OAAO,EAAE,KAAK,EAAE,SAAiB,EAAE,IAAa,EAAE,EAAE;gBAClD,KAAK,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAA;gBAC7B,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAA;YACnC,CAAC;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED,IAAI,CAAC,kEAAkE,EAAE,KAAK,IAAI,EAAE;IAClF,MAAM,CAAC,SAAS,CACd,MAAM,eAAe,CAAC,IAAI,CACxB,EAAE,YAAY,EAAE,SAAS,EAAW,EACpC,EAAW,EACX,EAAW,CACZ,EACD,EAAE,CACH,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,gEAAgE,EAAE,KAAK,IAAI,EAAE;IAChF,MAAM,CAAC,SAAS,CACd,MAAM,eAAe,CAAC,IAAI,CACxB,EAAE,YAAY,EAAE,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,EAAE,EAAW,EACpD,EAAW,EACX,EAAW,CACZ,EACD,EAAE,CACH,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,yDAAyD,EAAE,KAAK,IAAI,EAAE;IACzE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,UAAU,EAAE,CAAA;IAC5C,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC,IAAI,CACxC,EAAE,YAAY,EAAW,EACzB,EAAE,KAAK,EAAE,CAAC,EAAW,EACrB,EAAW,CACZ,CAAA;IACD,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAA;IAC9D,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE;QACtB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACxB,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KAC1B,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,yCAAyC,EAAE,KAAK,IAAI,EAAE;IACzD,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,UAAU,EAAE,CAAA;IAC5C,MAAM,eAAe,CAAC,IAAI,CACxB,EAAE,YAAY,EAAW,EACzB,EAAE,UAAU,EAAE,CAAC,SAAS,CAAC,EAAW,EACpC,EAAW,CACZ,CAAA;IACD,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAA;AAC9D,CAAC,CAAC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { ScheduledTaskRuns } from '@pikku/core/scheduler';
2
+ /**
3
+ * Last run, next run and recent history per scheduled task, keyed by task name.
4
+ *
5
+ * Empty when the app wires no scheduler, or one that keeps no run history —
6
+ * the in-memory scheduler `pikku dev` runs keeps the last 50 runs per task in
7
+ * process, so this is the local copy's view and resets with the server.
8
+ */
9
+ export declare const getSchedulerHistory: import("#pikku/addon/function").PikkuFunctionConfig<void, Record<string, ScheduledTaskRuns>, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<void, Record<string, ScheduledTaskRuns>, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<void, Record<string, ScheduledTaskRuns>, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
10
+ //# sourceMappingURL=get-scheduler-history.function.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-scheduler-history.function.d.ts","sourceRoot":"","sources":["../../../src/functions/get-scheduler-history.function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAG9D;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,gdAe9B,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { pikkuFunc } from '#pikku/addon/function';
2
+ /**
3
+ * Last run, next run and recent history per scheduled task, keyed by task name.
4
+ *
5
+ * Empty when the app wires no scheduler, or one that keeps no run history —
6
+ * the in-memory scheduler `pikku dev` runs keeps the last 50 runs per task in
7
+ * process, so this is the local copy's view and resets with the server.
8
+ */
9
+ export const getSchedulerHistory = pikkuFunc({
10
+ title: 'Get Scheduler History',
11
+ description: 'Returns each scheduled task with its last run, next run and recent runs (newest first). Empty when the app keeps no scheduler run history.',
12
+ expose: true,
13
+ scopes: ['admin:schedules:read'],
14
+ func: async ({ schedulerService }) => {
15
+ if (!schedulerService) {
16
+ return {};
17
+ }
18
+ return schedulerService.getTaskRuns();
19
+ },
20
+ });
21
+ //# sourceMappingURL=get-scheduler-history.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-scheduler-history.function.js","sourceRoot":"","sources":["../../../src/functions/get-scheduler-history.function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAG1C;IACA,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,4IAA4I;IAC9I,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,sBAAsB,CAAC;IAChC,IAAI,EAAE,KAAK,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE;QACnC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtB,OAAO,EAAE,CAAA;QACX,CAAC;QACD,OAAO,gBAAgB,CAAC,WAAW,EAAE,CAAA;IACvC,CAAC;CACF,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-scheduler-history.function.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-scheduler-history.function.test.d.ts","sourceRoot":"","sources":["../../../src/functions/get-scheduler-history.function.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import assert from 'node:assert/strict';
2
+ import { test } from 'node:test';
3
+ import { getSchedulerHistory } from './get-scheduler-history.function.js';
4
+ test('an app that wires no scheduler has no history rather than throwing', async () => {
5
+ assert.deepEqual(await getSchedulerHistory.func({ schedulerService: undefined }, undefined, {}), {});
6
+ });
7
+ test('a wired scheduler is read through', async () => {
8
+ const runs = {
9
+ nightly: { nextRun: new Date(0), lastRun: null, history: [] },
10
+ };
11
+ assert.deepEqual(await getSchedulerHistory.func({ schedulerService: { getTaskRuns: async () => runs } }, undefined, {}), runs);
12
+ });
13
+ //# sourceMappingURL=get-scheduler-history.function.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-scheduler-history.function.test.js","sourceRoot":"","sources":["../../../src/functions/get-scheduler-history.function.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AAEzE,IAAI,CAAC,oEAAoE,EAAE,KAAK,IAAI,EAAE;IACpF,MAAM,CAAC,SAAS,CACd,MAAM,mBAAmB,CAAC,IAAI,CAC5B,EAAE,gBAAgB,EAAE,SAAS,EAAW,EACxC,SAAkB,EAClB,EAAW,CACZ,EACD,EAAE,CACH,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;IACnD,MAAM,IAAI,GAAG;QACX,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;KAC9D,CAAA;IACD,MAAM,CAAC,SAAS,CACd,MAAM,mBAAmB,CAAC,IAAI,CAC5B,EAAE,gBAAgB,EAAE,EAAE,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,EAAE,EAAW,EAChE,SAAkB,EAClB,EAAW,CACZ,EACD,IAAI,CACL,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=incoming-webhook-receipts.function.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incoming-webhook-receipts.function.test.d.ts","sourceRoot":"","sources":["../../../src/functions/incoming-webhook-receipts.function.test.ts"],"names":[],"mappings":""}