@pikku/addon-graph 0.0.3 → 0.12.0

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 (211) hide show
  1. package/.pikku/addon/pikku-addon-types.gen.ts +105 -0
  2. package/.pikku/addon/pikku-package.gen.ts +11 -0
  3. package/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
  4. package/.pikku/agent/pikku-agent-types.gen.ts +82 -0
  5. package/.pikku/channel/pikku-channel-types.gen.ts +177 -0
  6. package/.pikku/cli/pikku-cli-types.gen.ts +105 -0
  7. package/.pikku/console/pikku-addon-meta.gen.json +281 -0
  8. package/.pikku/console/pikku-node-types.gen.ts +8 -0
  9. package/.pikku/function/pikku-function-types.gen.ts +684 -0
  10. package/.pikku/function/pikku-functions-meta-verbose.gen.json +660 -0
  11. package/.pikku/function/pikku-functions-meta.gen.json +450 -0
  12. package/.pikku/function/pikku-functions-meta.gen.ts +7 -0
  13. package/.pikku/function/pikku-functions.gen.ts +56 -0
  14. package/.pikku/http/pikku-http-types.gen.ts +147 -0
  15. package/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
  16. package/.pikku/pikku-bootstrap.gen.ts +8 -0
  17. package/.pikku/pikku-meta-service.gen.ts +10 -0
  18. package/.pikku/pikku-services.gen.ts +39 -0
  19. package/.pikku/pikku-types.gen.ts +21 -0
  20. package/.pikku/queue/pikku-queue-types.gen.ts +27 -0
  21. package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +488 -0
  22. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +513 -0
  23. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +27 -0
  24. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
  25. package/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
  26. package/.pikku/schemas/register.gen.ts +199 -0
  27. package/.pikku/schemas/schemas/AggregateInput.schema.json +1 -0
  28. package/.pikku/schemas/schemas/AggregateOutput.schema.json +1 -0
  29. package/.pikku/schemas/schemas/ChunkInput.schema.json +1 -0
  30. package/.pikku/schemas/schemas/ChunkOutput.schema.json +1 -0
  31. package/.pikku/schemas/schemas/CoalesceInput.schema.json +1 -0
  32. package/.pikku/schemas/schemas/CoalesceOutput.schema.json +1 -0
  33. package/.pikku/schemas/schemas/CryptoInput.schema.json +1 -0
  34. package/.pikku/schemas/schemas/CryptoOutput.schema.json +1 -0
  35. package/.pikku/schemas/schemas/DateTimeInput.schema.json +1 -0
  36. package/.pikku/schemas/schemas/DateTimeOutput.schema.json +1 -0
  37. package/.pikku/schemas/schemas/EditFieldsInput.schema.json +1 -0
  38. package/.pikku/schemas/schemas/EditFieldsOutput.schema.json +1 -0
  39. package/.pikku/schemas/schemas/FindInput.schema.json +1 -0
  40. package/.pikku/schemas/schemas/FindOutput.schema.json +1 -0
  41. package/.pikku/schemas/schemas/GroupByInput.schema.json +1 -0
  42. package/.pikku/schemas/schemas/GroupByOutput.schema.json +1 -0
  43. package/.pikku/schemas/schemas/JwtDecodeInput.schema.json +1 -0
  44. package/.pikku/schemas/schemas/JwtDecodeOutput.schema.json +1 -0
  45. package/.pikku/schemas/schemas/JwtSignInput.schema.json +1 -0
  46. package/.pikku/schemas/schemas/JwtSignOutput.schema.json +1 -0
  47. package/.pikku/schemas/schemas/LimitInput.schema.json +1 -0
  48. package/.pikku/schemas/schemas/LimitOutput.schema.json +1 -0
  49. package/.pikku/schemas/schemas/MathInput.schema.json +1 -0
  50. package/.pikku/schemas/schemas/MathOutput.schema.json +1 -0
  51. package/.pikku/schemas/schemas/MergeInput.schema.json +1 -0
  52. package/.pikku/schemas/schemas/MergeOutput.schema.json +1 -0
  53. package/.pikku/schemas/schemas/OmitInput.schema.json +1 -0
  54. package/.pikku/schemas/schemas/OmitOutput.schema.json +1 -0
  55. package/.pikku/schemas/schemas/PickInput.schema.json +1 -0
  56. package/.pikku/schemas/schemas/PickOutput.schema.json +1 -0
  57. package/.pikku/schemas/schemas/RemoveDuplicatesInput.schema.json +1 -0
  58. package/.pikku/schemas/schemas/RemoveDuplicatesOutput.schema.json +1 -0
  59. package/.pikku/schemas/schemas/RenameKeysInput.schema.json +1 -0
  60. package/.pikku/schemas/schemas/RenameKeysOutput.schema.json +1 -0
  61. package/.pikku/schemas/schemas/ReverseInput.schema.json +1 -0
  62. package/.pikku/schemas/schemas/ReverseOutput.schema.json +1 -0
  63. package/.pikku/schemas/schemas/SleepInput.schema.json +1 -0
  64. package/.pikku/schemas/schemas/SortInput.schema.json +1 -0
  65. package/.pikku/schemas/schemas/SortOutput.schema.json +1 -0
  66. package/.pikku/schemas/schemas/SplitOutInput.schema.json +1 -0
  67. package/.pikku/schemas/schemas/SplitOutOutput.schema.json +1 -0
  68. package/.pikku/schemas/schemas/StringTransformInput.schema.json +1 -0
  69. package/.pikku/schemas/schemas/StringTransformOutput.schema.json +1 -0
  70. package/.pikku/schemas/schemas/SummarizeInput.schema.json +1 -0
  71. package/.pikku/schemas/schemas/SummarizeOutput.schema.json +1 -0
  72. package/.pikku/schemas/schemas/TypeConvertInput.schema.json +1 -0
  73. package/.pikku/schemas/schemas/TypeConvertOutput.schema.json +1 -0
  74. package/.pikku/schemas/schemas/UniqueInput.schema.json +1 -0
  75. package/.pikku/schemas/schemas/UniqueOutput.schema.json +1 -0
  76. package/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
  77. package/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
  78. package/.pikku/secrets/pikku-secrets.gen.ts +21 -0
  79. package/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
  80. package/.pikku/variables/pikku-variable-types.gen.ts +5 -0
  81. package/.pikku/variables/pikku-variables-meta.gen.json +1 -0
  82. package/.pikku/variables/pikku-variables.gen.ts +21 -0
  83. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
  84. package/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
  85. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
  86. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
  87. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +3 -3
  88. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
  89. package/dist/.pikku/addon/pikku-addon-types.gen.js +6 -2
  90. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
  91. package/dist/.pikku/addon/pikku-addon-types.gen.ts +10 -5
  92. package/dist/.pikku/addon/pikku-package.gen.js +2 -1
  93. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  94. package/dist/.pikku/addon/pikku-package.gen.ts +3 -1
  95. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
  96. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  97. package/dist/.pikku/agent/pikku-agent-types.gen.ts +1 -1
  98. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
  99. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
  100. package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
  101. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
  102. package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
  103. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +78 -0
  104. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts.map +1 -0
  105. package/dist/.pikku/cli/pikku-cli-types.gen.js +61 -0
  106. package/dist/.pikku/cli/pikku-cli-types.gen.js.map +1 -0
  107. package/dist/.pikku/cli/pikku-cli-types.gen.ts +105 -0
  108. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  109. package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
  110. package/dist/.pikku/function/pikku-function-types.gen.d.ts +16 -19
  111. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  112. package/dist/.pikku/function/pikku-function-types.gen.js +15 -19
  113. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  114. package/dist/.pikku/function/pikku-function-types.gen.ts +18 -20
  115. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +50 -0
  116. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  117. package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
  118. package/dist/.pikku/function/pikku-functions.gen.js +2 -2
  119. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  120. package/dist/.pikku/function/pikku-functions.gen.ts +2 -2
  121. package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
  122. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
  123. package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
  124. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
  125. package/dist/.pikku/http/pikku-http-types.gen.ts +147 -0
  126. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
  127. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  128. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
  129. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
  130. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
  131. package/dist/.pikku/pikku-bootstrap.gen.d.ts +4 -2
  132. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
  133. package/dist/.pikku/pikku-bootstrap.gen.js +2 -10
  134. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
  135. package/dist/.pikku/pikku-bootstrap.gen.ts +2 -9
  136. package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
  137. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
  138. package/dist/.pikku/pikku-meta-service.gen.js +10 -0
  139. package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
  140. package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
  141. package/dist/.pikku/pikku-services.gen.d.ts +6 -3
  142. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  143. package/dist/.pikku/pikku-services.gen.js +5 -1
  144. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  145. package/dist/.pikku/pikku-services.gen.ts +8 -3
  146. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  147. package/dist/.pikku/pikku-types.gen.js +1 -1
  148. package/dist/.pikku/pikku-types.gen.ts +1 -1
  149. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
  150. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
  151. package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
  152. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
  153. package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
  154. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +421 -57
  155. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +421 -57
  156. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
  157. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
  158. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
  159. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
  160. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +27 -0
  161. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
  162. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
  163. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
  164. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
  165. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
  166. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
  167. package/dist/.pikku/schemas/register.gen.js +1 -1
  168. package/dist/.pikku/schemas/register.gen.ts +1 -1
  169. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  170. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  171. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +1 -1
  172. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  173. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  174. package/dist/.pikku/secrets/pikku-secrets.gen.ts +1 -1
  175. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  176. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  177. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  178. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  179. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  180. package/dist/.pikku/variables/pikku-variable-types.gen.ts +1 -1
  181. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  182. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  183. package/dist/.pikku/variables/pikku-variables.gen.ts +1 -1
  184. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
  185. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +3 -24
  186. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  187. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -14
  188. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  189. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +5 -52
  190. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  191. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
  192. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  193. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  194. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  195. package/dist/src/functions/data/jwt.function.d.ts.map +1 -1
  196. package/dist/src/functions/data/jwt.function.js +3 -2
  197. package/dist/src/functions/data/jwt.function.js.map +1 -1
  198. package/package.json +7 -9
  199. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
  200. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
  201. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
  202. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
  203. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
  204. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
  205. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
  206. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
  207. package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
  208. package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
  209. package/dist/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
  210. package/dist/.pikku/schema-cache.json +0 -1
  211. package/dist/.pikku/schemas/pikku.cache.json +0 -1
@@ -6,9 +6,11 @@ export const requiredSingletonServices = {
6
6
  'aiStorage': false,
7
7
  'config': true,
8
8
  'content': false,
9
+ 'credentialService': false,
9
10
  'deploymentService': false,
10
- 'jwt': false,
11
+ 'jwt': true,
11
12
  'logger': true,
13
+ 'metaService': false,
12
14
  'queueService': false,
13
15
  'schedulerService': false,
14
16
  'schema': true,
@@ -19,4 +21,6 @@ export const requiredSingletonServices = {
19
21
  };
20
22
  // Wire services map: true if required, false if available but unused
21
23
  export const requiredWireServices = {};
24
+ // Services this addon needs from the parent project
25
+ export const requiredParentServices = ["jwt"];
22
26
  //# sourceMappingURL=pikku-services.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,KAAK;IAC1B,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,KAAK;IACzB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,KAAK;CAChB,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA"}
1
+ {"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,KAAK;IAC1B,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,KAAK;IACzB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,KAAK;CAChB,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA;AAOV,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAK,CAAU,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.8
2
+ * This file was generated by @pikku/cli@0.12.19
3
3
  */
4
4
  import type { SingletonServices } from '../types/application-types.d.js'
5
5
  import type { Services } from '../types/application-types.d.js'
@@ -12,9 +12,11 @@ export const requiredSingletonServices = {
12
12
  'aiStorage': false,
13
13
  'config': true,
14
14
  'content': false,
15
+ 'credentialService': false,
15
16
  'deploymentService': false,
16
- 'jwt': false,
17
+ 'jwt': true,
17
18
  'logger': true,
19
+ 'metaService': false,
18
20
  'queueService': false,
19
21
  'schedulerService': false,
20
22
  'schema': true,
@@ -29,6 +31,9 @@ export const requiredWireServices = {
29
31
  } as const
30
32
 
31
33
  // Type exports
32
- export type RequiredSingletonServices = Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>
34
+ export type RequiredSingletonServices = Pick<SingletonServices, 'config' | 'jwt' | 'logger' | 'schema' | 'secrets' | 'variables'> & Partial<Omit<SingletonServices, 'config' | 'jwt' | 'logger' | 'schema' | 'secrets' | 'variables'>>
33
35
 
34
36
  export type RequiredWireServices = Partial<Services>
37
+
38
+ // Services this addon needs from the parent project
39
+ export const requiredParentServices = ["jwt"] as const
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.8
2
+ * This file was generated by @pikku/cli@0.12.19
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.8
2
+ * This file was generated by @pikku/cli@0.12.19
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.8
2
+ * This file was generated by @pikku/cli@0.12.19
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.19
3
+ */
4
+ /**
5
+ * Queue-specific type definitions for tree-shaking optimization
6
+ */
7
+ import { CoreQueueWorker } from '@pikku/core/queue';
8
+ import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
9
+ /**
10
+ * Type definition for queue workers that process background jobs.
11
+ *
12
+ * @template In - Input type for the queue job
13
+ * @template Out - Output type for the queue job
14
+ */
15
+ type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>;
16
+ /**
17
+ * Registers a queue worker with the Pikku framework.
18
+ * Workers process background jobs from queues.
19
+ *
20
+ * @param queueWorker - Queue worker definition with job handler
21
+ */
22
+ export declare const wireQueueWorker: (queueWorker: QueueWiring<any, any>) => void;
23
+ export {};
24
+ //# sourceMappingURL=pikku-queue-types.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-queue-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,eAAe,EAA0C,MAAM,mBAAmB,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAElF;;;;;GAKG;AACH,KAAK,WAAW,CAAC,EAAE,EAAE,GAAG,IAAI,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC,CAAA;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,aAAa,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,SAEjE,CAAA"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.19
3
+ */
4
+ /**
5
+ * Queue-specific type definitions for tree-shaking optimization
6
+ */
7
+ import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue';
8
+ /**
9
+ * Registers a queue worker with the Pikku framework.
10
+ * Workers process background jobs from queues.
11
+ *
12
+ * @param queueWorker - Queue worker definition with job handler
13
+ */
14
+ export const wireQueueWorker = (queueWorker) => {
15
+ wireQueueWorkerCore(queueWorker);
16
+ };
17
+ //# sourceMappingURL=pikku-queue-types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-queue-types.gen.js","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAmB,eAAe,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAW3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAkC,EAAE,EAAE;IACpE,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.19
3
+ */
4
+ /**
5
+ * Queue-specific type definitions for tree-shaking optimization
6
+ */
7
+
8
+ import { CoreQueueWorker, wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue'
9
+ import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
10
+
11
+ /**
12
+ * Type definition for queue workers that process background jobs.
13
+ *
14
+ * @template In - Input type for the queue job
15
+ * @template Out - Output type for the queue job
16
+ */
17
+ type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
18
+
19
+ /**
20
+ * Registers a queue worker with the Pikku framework.
21
+ * Workers process background jobs from queues.
22
+ *
23
+ * @param queueWorker - Queue worker definition with job handler
24
+ */
25
+ export const wireQueueWorker = (queueWorker: QueueWiring<any, any>) => {
26
+ wireQueueWorkerCore(queueWorker as any)
27
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.8
2
+ * This file was generated by @pikku/cli@0.12.19
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -9,55 +9,407 @@
9
9
 
10
10
 
11
11
 
12
- export type AggregateInput = unknown
13
- export type AggregateOutput = unknown
14
- export type ChunkInput = unknown
15
- export type ChunkOutput = unknown
16
- export type CoalesceInput = unknown
17
- export type CoalesceOutput = unknown
18
- export type CryptoInput = unknown
19
- export type CryptoOutput = unknown
20
- export type DateTimeInput = unknown
21
- export type DateTimeOutput = unknown
22
- export type EditFieldsInput = unknown
23
- export type EditFieldsOutput = unknown
24
- export type FindInput = unknown
25
- export type FindOutput = unknown
26
- export type GroupByInput = unknown
27
- export type GroupByOutput = unknown
28
- export type JwtDecodeInput = unknown
29
- export type JwtDecodeOutput = unknown
30
- export type JwtSignInput = unknown
31
- export type JwtSignOutput = unknown
32
- export type LimitInput = unknown
33
- export type LimitOutput = unknown
34
- export type MathInput = unknown
35
- export type MathOutput = unknown
36
- export type MergeInput = unknown
37
- export type MergeOutput = unknown
38
- export type OmitInput = unknown
39
- export type OmitOutput = unknown
40
- export type PickInput = unknown
41
- export type PickOutput = unknown
42
- export type RemoveDuplicatesInput = unknown
43
- export type RemoveDuplicatesOutput = unknown
44
- export type RenameKeysInput = unknown
45
- export type RenameKeysOutput = unknown
46
- export type ReverseInput = unknown
47
- export type ReverseOutput = unknown
48
- export type SleepInput = unknown
49
- export type SortInput = unknown
50
- export type SortOutput = unknown
51
- export type SplitOutInput = unknown
52
- export type SplitOutOutput = unknown
53
- export type StringTransformInput = unknown
54
- export type StringTransformOutput = unknown
55
- export type SummarizeInput = unknown
56
- export type SummarizeOutput = unknown
57
- export type TypeConvertInput = unknown
58
- export type TypeConvertOutput = unknown
59
- export type UniqueInput = unknown
60
- export type UniqueOutput = unknown
12
+ export type AggregateInput = {
13
+ /** The array of items to aggregate */
14
+ items: {
15
+ [key: string]: unknown;
16
+ }[];
17
+ /** The field path to collect values from */
18
+ field: string;
19
+ /** The name of the output field containing the list */
20
+ outputField?: string | undefined;
21
+ /** Only include unique values */
22
+ unique?: boolean | undefined;
23
+ }
24
+ export type AggregateOutput = {
25
+ /** The output object with aggregated values */
26
+ item: {
27
+ [key: string]: unknown;
28
+ };
29
+ }
30
+ export type ChunkInput = {
31
+ /** The array to split into chunks */
32
+ items: unknown[];
33
+ /** Size of each chunk */
34
+ size: number;
35
+ }
36
+ export type ChunkOutput = {
37
+ /** Array of chunks */
38
+ chunks: unknown[][];
39
+ }
40
+ export type CoalesceInput = {
41
+ /** Values to check in order */
42
+ values: unknown[];
43
+ /** Treat empty strings as null */
44
+ treatEmptyStringAsNull?: boolean | undefined;
45
+ /** Treat zero as null */
46
+ treatZeroAsNull?: boolean | undefined;
47
+ }
48
+ export type CoalesceOutput = {
49
+ /** The first non-null value */
50
+ value: unknown;
51
+ /** Index of the returned value (-1 if all null) */
52
+ index: number;
53
+ }
54
+ export type CryptoInput = {
55
+ /** The cryptographic operation to perform */
56
+ operation: "hash" | "hmac" | "randomBytes" | "uuid" | "base64Encode" | "base64Decode" | "hexEncode" | "hexDecode";
57
+ /** Input data for hash/hmac/encode/decode operations */
58
+ data?: string | undefined;
59
+ /** Hash algorithm for hash/hmac operations */
60
+ algorithm?: ("md5" | "sha1" | "sha256" | "sha384" | "sha512") | undefined;
61
+ /** Secret key for hmac operation */
62
+ key?: string | undefined;
63
+ /** Number of bytes for randomBytes operation */
64
+ length?: number | undefined;
65
+ /** Output encoding for hash/hmac operations */
66
+ encoding?: ("hex" | "base64") | undefined;
67
+ }
68
+ export type CryptoOutput = {
69
+ /** The result of the cryptographic operation */
70
+ result: string;
71
+ }
72
+ export type DateTimeInput = {
73
+ /** The input date/time value (ISO string, timestamp, or parseable date string) */
74
+ value?: (string | number) | undefined;
75
+ /** The operation to perform */
76
+ operation: "format" | "parse" | "add" | "subtract" | "startOf" | "endOf" | "diff" | "now";
77
+ /** Output format for format operation (e.g., YYYY-MM-DD) */
78
+ format?: string | undefined;
79
+ /** Amount for add/subtract operations */
80
+ amount?: number | undefined;
81
+ /** Time unit for add/subtract/startOf/endOf/diff operations */
82
+ unit?: ("years" | "months" | "weeks" | "days" | "hours" | "minutes" | "seconds" | "milliseconds") | undefined;
83
+ /** Second date for diff operation */
84
+ compareWith?: (string | number) | undefined;
85
+ /** Timezone for conversion (e.g., America/New_York) */
86
+ timezone?: string | undefined;
87
+ }
88
+ export type DateTimeOutput = {
89
+ /** The result of the operation */
90
+ result: string | number;
91
+ /** ISO 8601 formatted date string */
92
+ iso: string;
93
+ /** Unix timestamp in milliseconds */
94
+ timestamp: number;
95
+ }
96
+ export type EditFieldsInput = {
97
+ /** The input object to transform */
98
+ item: {
99
+ [key: string]: unknown;
100
+ };
101
+ /** List of field operations to perform */
102
+ operations: {
103
+ /** The field path to operate on (supports dot notation) */
104
+ field: string;
105
+ /** The operation to perform */
106
+ operation: "set" | "remove" | "rename";
107
+ /** The value to set (for set operation) */
108
+ value?: unknown | undefined;
109
+ /** The new field name (for rename operation) */
110
+ newName?: string | undefined;
111
+ }[];
112
+ }
113
+ export type EditFieldsOutput = {
114
+ /** The transformed object */
115
+ item: {
116
+ [key: string]: unknown;
117
+ };
118
+ }
119
+ export type FindInput = {
120
+ /** The array to search */
121
+ items: {
122
+ [key: string]: unknown;
123
+ }[];
124
+ /** The field to match against */
125
+ field: string;
126
+ /** The value to find */
127
+ value: unknown;
128
+ /** Return the index instead of the item */
129
+ returnIndex?: boolean | undefined;
130
+ }
131
+ export type FindOutput = {
132
+ /** The found item (null if not found) */
133
+ item: {
134
+ [key: string]: unknown;
135
+ } | null;
136
+ /** The index of the found item (-1 if not found) */
137
+ index: number;
138
+ /** Whether the item was found */
139
+ found: boolean;
140
+ }
141
+ export type GroupByInput = {
142
+ /** The array of items to group */
143
+ items: {
144
+ [key: string]: unknown;
145
+ }[];
146
+ /** The field to group by (supports dot notation) */
147
+ field: string;
148
+ }
149
+ export type GroupByOutput = {
150
+ /** Object with group keys and their items */
151
+ groups: {
152
+ [key: string]: {
153
+ [key: string]: unknown;
154
+ }[];
155
+ };
156
+ }
157
+ export type JwtDecodeInput = {
158
+ /** The JWT token to decode */
159
+ token: string;
160
+ }
161
+ export type JwtDecodeOutput = {
162
+ /** The decoded payload */
163
+ payload: any;
164
+ }
165
+ export type JwtSignInput = {
166
+ /** The payload to encode into the JWT */
167
+ payload: any;
168
+ /** Token expiration time */
169
+ expiresIn: {
170
+ /** Duration value */
171
+ value: number;
172
+ /** Time unit */
173
+ unit: "second" | "minute" | "hour" | "day" | "week" | "year";
174
+ };
175
+ }
176
+ export type JwtSignOutput = {
177
+ /** The signed JWT token */
178
+ token: string;
179
+ }
180
+ export type LimitInput = {
181
+ /** The array of items to limit */
182
+ items: unknown[];
183
+ /** Maximum number of items to return */
184
+ limit: number;
185
+ /** Number of items to skip from the beginning */
186
+ offset?: number | undefined;
187
+ }
188
+ export type LimitOutput = {
189
+ /** The limited array of items */
190
+ items: unknown[];
191
+ /** The original total count before limiting */
192
+ totalCount: number;
193
+ }
194
+ export type MathInput = {
195
+ /** The math operation to perform */
196
+ operation: "add" | "subtract" | "multiply" | "divide" | "modulo" | "power" | "sqrt" | "abs" | "round" | "floor" | "ceil" | "min" | "max" | "random";
197
+ /** First operand */
198
+ a?: number | undefined;
199
+ /** Second operand (for binary operations) */
200
+ b?: number | undefined;
201
+ /** Decimal places for round operation */
202
+ decimals?: number | undefined;
203
+ }
204
+ export type MathOutput = {
205
+ /** The result of the operation */
206
+ result: number;
207
+ }
208
+ export type MergeInput = {
209
+ /** Objects to merge (later objects override earlier ones) */
210
+ items: {
211
+ [key: string]: unknown;
212
+ }[];
213
+ /** Perform deep merge of nested objects */
214
+ deep?: boolean | undefined;
215
+ }
216
+ export type MergeOutput = {
217
+ /** The merged object */
218
+ item: {
219
+ [key: string]: unknown;
220
+ };
221
+ }
222
+ export type OmitInput = {
223
+ /** The input object */
224
+ item: {
225
+ [key: string]: unknown;
226
+ };
227
+ /** Fields to remove */
228
+ fields: string[];
229
+ }
230
+ export type OmitOutput = {
231
+ /** Object without the specified fields */
232
+ item: {
233
+ [key: string]: unknown;
234
+ };
235
+ }
236
+ export type PickInput = {
237
+ /** The input object */
238
+ item: {
239
+ [key: string]: unknown;
240
+ };
241
+ /** Fields to keep (supports dot notation for nested fields) */
242
+ fields: string[];
243
+ }
244
+ export type PickOutput = {
245
+ /** Object with only the specified fields */
246
+ item: {
247
+ [key: string]: unknown;
248
+ };
249
+ }
250
+ export type RemoveDuplicatesInput = {
251
+ /** The array of items to deduplicate */
252
+ items: {
253
+ [key: string]: unknown;
254
+ }[];
255
+ /** Fields to use for comparison (if empty, compares entire objects) */
256
+ fields: string[];
257
+ /** Keep the first occurrence (true) or last (false) */
258
+ keepFirst?: boolean | undefined;
259
+ }
260
+ export type RemoveDuplicatesOutput = {
261
+ /** The deduplicated array of items */
262
+ items: {
263
+ [key: string]: unknown;
264
+ }[];
265
+ /** Number of duplicates removed */
266
+ removedCount: number;
267
+ }
268
+ export type RenameKeysInput = {
269
+ /** The input object to transform */
270
+ item: {
271
+ [key: string]: unknown;
272
+ };
273
+ /** List of key rename mappings */
274
+ mappings: {
275
+ /** The original key name */
276
+ oldKey: string;
277
+ /** The new key name */
278
+ newKey: string;
279
+ }[];
280
+ /** Whether to keep keys that are not in the mapping */
281
+ keepUnmapped?: boolean | undefined;
282
+ }
283
+ export type RenameKeysOutput = {
284
+ /** The transformed object with renamed keys */
285
+ item: {
286
+ [key: string]: unknown;
287
+ };
288
+ }
289
+ export type ReverseInput = {
290
+ /** The array to reverse */
291
+ items: unknown[];
292
+ }
293
+ export type ReverseOutput = {
294
+ /** The reversed array */
295
+ items: unknown[];
296
+ }
297
+ export type SleepInput = {
298
+ /** A unique name for this sleep step */
299
+ name: string;
300
+ /** Duration to sleep in milliseconds */
301
+ ms: number;
302
+ }
303
+ export type SortInput = {
304
+ /** The array of items to sort */
305
+ items: {
306
+ [key: string]: unknown;
307
+ }[];
308
+ /** Fields to sort by (in order of priority) */
309
+ sortBy: {
310
+ /** The field path to sort by (supports dot notation) */
311
+ field: string;
312
+ /** Sort order */
313
+ order?: ("asc" | "desc") | undefined;
314
+ }[];
315
+ }
316
+ export type SortOutput = {
317
+ /** The sorted array of items */
318
+ items: {
319
+ [key: string]: unknown;
320
+ }[];
321
+ }
322
+ export type SplitOutInput = {
323
+ /** The input object containing a nested array */
324
+ item: {
325
+ [key: string]: unknown;
326
+ };
327
+ /** The field path containing the array to split (supports dot notation) */
328
+ field: string;
329
+ /** Include parent object fields in each output item */
330
+ includeParent?: boolean | undefined;
331
+ }
332
+ export type SplitOutOutput = {
333
+ /** The split array of items */
334
+ items: {
335
+ [key: string]: unknown;
336
+ }[];
337
+ }
338
+ export type StringTransformInput = {
339
+ /** The input string */
340
+ value: string;
341
+ /** The transformation to apply */
342
+ operation: "uppercase" | "lowercase" | "capitalize" | "camelCase" | "snakeCase" | "kebabCase" | "trim" | "trimStart" | "trimEnd" | "split" | "replace" | "slice" | "padStart" | "padEnd";
343
+ /** Separator for split operation */
344
+ separator?: string | undefined;
345
+ /** Search string for replace operation */
346
+ search?: string | undefined;
347
+ /** Replacement string for replace operation */
348
+ replacement?: string | undefined;
349
+ /** Replace all occurrences */
350
+ replaceAll?: boolean | undefined;
351
+ /** Start index for slice */
352
+ start?: number | undefined;
353
+ /** End index for slice */
354
+ end?: number | undefined;
355
+ /** Target length for pad operations */
356
+ length?: number | undefined;
357
+ /** Character to pad with */
358
+ padChar?: string | undefined;
359
+ }
360
+ export type StringTransformOutput = {
361
+ /** The transformed result */
362
+ result: string | string[];
363
+ }
364
+ export type SummarizeInput = {
365
+ /** The array of items to summarize */
366
+ items: {
367
+ [key: string]: unknown;
368
+ }[];
369
+ /** List of aggregation operations to perform */
370
+ aggregations: {
371
+ /** The field path to aggregate */
372
+ field: string;
373
+ /** The aggregation operation */
374
+ operation: "sum" | "avg" | "min" | "max" | "count" | "countDistinct" | "first" | "last";
375
+ /** The name of the output field */
376
+ outputField: string;
377
+ }[];
378
+ /** Fields to group by */
379
+ groupBy?: string[] | undefined;
380
+ }
381
+ export type SummarizeOutput = {
382
+ /** The summarized results */
383
+ items: {
384
+ [key: string]: unknown;
385
+ }[];
386
+ }
387
+ export type TypeConvertInput = {
388
+ /** The value to convert */
389
+ value: unknown;
390
+ /** Target type */
391
+ to: "string" | "number" | "boolean" | "json" | "array";
392
+ /** Radix for number parsing (e.g., 10, 16) */
393
+ radix?: number | undefined;
394
+ }
395
+ export type TypeConvertOutput = {
396
+ /** The converted value */
397
+ result: unknown;
398
+ /** Whether the conversion succeeded */
399
+ success: boolean;
400
+ /** The original type of the value */
401
+ originalType: string;
402
+ }
403
+ export type UniqueInput = {
404
+ /** The array to get unique values from */
405
+ items: unknown[];
406
+ /** For arrays of objects, the field to check uniqueness by */
407
+ field?: string | undefined;
408
+ }
409
+ export type UniqueOutput = {
410
+ /** Array with only unique values */
411
+ items: unknown[];
412
+ }
61
413
 
62
414
  interface RPCHandler<I, O> {
63
415
  input: I;
@@ -74,16 +426,18 @@ export type FlattenedRPCMap = RPCMap
74
426
 
75
427
 
76
428
  export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
77
- name: Name,
78
- data: FlattenedRPCMap[Name]['input']
429
+ ...args: FlattenedRPCMap[Name]['input'] extends void | null
430
+ ? [name: Name]
431
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
79
432
  ) => Promise<FlattenedRPCMap[Name]['output']>
80
433
 
81
434
  export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
82
- name: Name,
83
- data: FlattenedRPCMap[Name]['input']
435
+ ...args: FlattenedRPCMap[Name]['input'] extends void | null
436
+ ? [name: Name]
437
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
84
438
  ) => Promise<FlattenedRPCMap[Name]['output']>
85
439
 
86
- import type { WorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
440
+ import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
87
441
 
88
442
  import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
89
443
 
@@ -99,12 +453,22 @@ interface AIAgentInput {
99
453
  resourceId: string
100
454
  }
101
455
 
102
- export type TypedStartWorkflow = <Name extends keyof WorkflowMap>(
456
+ export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
103
457
  name: Name,
104
- input: WorkflowMap[Name]['input'],
458
+ input: FlattenedWorkflowMap[Name]['input'],
105
459
  options?: { startNode?: string }
106
460
  ) => Promise<{ runId: string }>
107
461
 
462
+ export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
463
+ name: Name,
464
+ input: FlattenedWorkflowMap[Name]['input']
465
+ ) => Promise<FlattenedWorkflowMap[Name]['output']>
466
+
467
+ export type TypedWorkflowStatus = (
468
+ workflowName: string,
469
+ runId: string
470
+ ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
471
+
108
472
  type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
109
473
  ? (name: string, input: AIAgentInput) => Promise<any>
110
474
  : <Name extends keyof FlattenedAgentMap>(