@pikku/addon-graph 0.0.2 → 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 (173) hide show
  1. package/.pikku/addon/pikku-addon-types.gen.ts +30 -3
  2. package/.pikku/addon/pikku-package.gen.ts +3 -1
  3. package/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
  4. package/.pikku/agent/pikku-agent-types.gen.ts +13 -7
  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 +2 -2
  9. package/.pikku/function/pikku-function-types.gen.ts +70 -34
  10. package/.pikku/function/pikku-functions-meta-verbose.gen.json +274 -196
  11. package/.pikku/function/pikku-functions-meta.gen.json +160 -144
  12. package/.pikku/function/pikku-functions-meta.gen.ts +1 -1
  13. package/.pikku/function/pikku-functions.gen.ts +4 -2
  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 +2 -9
  17. package/.pikku/pikku-meta-service.gen.ts +10 -0
  18. package/.pikku/pikku-services.gen.ts +10 -3
  19. package/.pikku/pikku-types.gen.ts +1 -1
  20. package/.pikku/queue/pikku-queue-types.gen.ts +27 -0
  21. package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +212 -194
  22. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +221 -202
  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 +69 -65
  27. package/.pikku/schemas/schemas/SleepInput.schema.json +1 -0
  28. package/.pikku/secrets/pikku-secret-types.gen.ts +1 -1
  29. package/.pikku/secrets/pikku-secrets.gen.ts +1 -1
  30. package/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  31. package/.pikku/variables/pikku-variable-types.gen.ts +1 -1
  32. package/.pikku/variables/pikku-variables.gen.ts +1 -1
  33. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
  34. package/.pikku/workflow/pikku-workflow-types.gen.ts +66 -57
  35. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
  36. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  37. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +18 -2
  38. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
  39. package/dist/.pikku/addon/pikku-addon-types.gen.js +25 -2
  40. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
  41. package/dist/.pikku/addon/pikku-addon-types.gen.ts +30 -3
  42. package/dist/.pikku/addon/pikku-package.gen.js +2 -1
  43. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  44. package/dist/.pikku/addon/pikku-package.gen.ts +3 -1
  45. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
  46. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +6 -6
  47. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  48. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  49. package/dist/.pikku/agent/pikku-agent-types.gen.ts +13 -7
  50. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
  51. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
  52. package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
  53. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
  54. package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
  55. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +78 -0
  56. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts.map +1 -0
  57. package/dist/.pikku/cli/pikku-cli-types.gen.js +61 -0
  58. package/dist/.pikku/cli/pikku-cli-types.gen.js.map +1 -0
  59. package/dist/.pikku/cli/pikku-cli-types.gen.ts +105 -0
  60. package/dist/.pikku/console/pikku-addon-meta.gen.json +281 -0
  61. package/dist/.pikku/console/pikku-node-types.gen.d.ts +2 -2
  62. package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -1
  63. package/dist/.pikku/console/pikku-node-types.gen.ts +2 -2
  64. package/dist/.pikku/function/pikku-function-types.gen.d.ts +56 -30
  65. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  66. package/dist/.pikku/function/pikku-function-types.gen.js +31 -19
  67. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  68. package/dist/.pikku/function/pikku-function-types.gen.ts +70 -34
  69. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +274 -196
  70. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  71. package/dist/.pikku/function/pikku-functions-meta.gen.json +160 -144
  72. package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
  73. package/dist/.pikku/function/pikku-functions.gen.js +4 -2
  74. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  75. package/dist/.pikku/function/pikku-functions.gen.ts +4 -2
  76. package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
  77. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
  78. package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
  79. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
  80. package/dist/.pikku/http/pikku-http-types.gen.ts +147 -0
  81. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
  82. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  83. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
  84. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
  85. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
  86. package/dist/.pikku/pikku-bootstrap.gen.d.ts +4 -2
  87. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
  88. package/dist/.pikku/pikku-bootstrap.gen.js +2 -10
  89. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
  90. package/dist/.pikku/pikku-bootstrap.gen.ts +2 -9
  91. package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
  92. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
  93. package/dist/.pikku/pikku-meta-service.gen.js +10 -0
  94. package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
  95. package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
  96. package/dist/.pikku/pikku-services.gen.d.ts +8 -3
  97. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  98. package/dist/.pikku/pikku-services.gen.js +7 -1
  99. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  100. package/dist/.pikku/pikku-services.gen.ts +10 -3
  101. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  102. package/dist/.pikku/pikku-types.gen.js +1 -1
  103. package/dist/.pikku/pikku-types.gen.ts +1 -1
  104. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
  105. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
  106. package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
  107. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
  108. package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
  109. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +212 -194
  110. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +221 -202
  111. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
  112. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
  113. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
  114. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
  115. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +27 -0
  116. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
  117. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
  118. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
  119. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
  120. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
  121. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
  122. package/dist/.pikku/schemas/register.gen.js +35 -33
  123. package/dist/.pikku/schemas/register.gen.js.map +1 -1
  124. package/dist/.pikku/schemas/register.gen.ts +69 -65
  125. package/dist/.pikku/schemas/schemas/SleepInput.schema.json +1 -0
  126. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  127. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  128. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +1 -1
  129. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  130. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  131. package/dist/.pikku/secrets/pikku-secrets.gen.ts +1 -1
  132. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  133. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  134. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  135. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  136. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  137. package/dist/.pikku/variables/pikku-variable-types.gen.ts +1 -1
  138. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  139. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  140. package/dist/.pikku/variables/pikku-variables.gen.ts +1 -1
  141. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
  142. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +36 -27
  143. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  144. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +5 -18
  145. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  146. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +66 -57
  147. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  148. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
  149. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  150. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  151. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  152. package/dist/src/functions/data/jwt.function.d.ts.map +1 -1
  153. package/dist/src/functions/data/jwt.function.js +3 -2
  154. package/dist/src/functions/data/jwt.function.js.map +1 -1
  155. package/dist/src/functions/data/sleep.function.d.ts +16 -0
  156. package/dist/src/functions/data/sleep.function.d.ts.map +1 -0
  157. package/dist/src/functions/data/sleep.function.js +18 -0
  158. package/dist/src/functions/data/sleep.function.js.map +1 -0
  159. package/package.json +3 -2
  160. package/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
  161. package/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
  162. package/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
  163. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
  164. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
  165. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
  166. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
  167. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
  168. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
  169. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
  170. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
  171. package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
  172. package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
  173. package/dist/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.2
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,6 +9,34 @@
9
9
 
10
10
 
11
11
 
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
+ }
12
40
  export type CoalesceInput = {
13
41
  /** Values to check in order */
14
42
  values: unknown[];
@@ -65,113 +93,29 @@ export type DateTimeOutput = {
65
93
  /** Unix timestamp in milliseconds */
66
94
  timestamp: number;
67
95
  }
68
- export type JwtSignInput = {
69
- /** The payload to encode into the JWT */
70
- payload: any;
71
- /** Token expiration time */
72
- expiresIn: {
73
- /** Duration value */
74
- value: number;
75
- /** Time unit */
76
- unit: "second" | "minute" | "hour" | "day" | "week" | "year";
77
- };
78
- }
79
- export type JwtSignOutput = {
80
- /** The signed JWT token */
81
- token: string;
82
- }
83
- export type JwtDecodeInput = {
84
- /** The JWT token to decode */
85
- token: string;
86
- }
87
- export type JwtDecodeOutput = {
88
- /** The decoded payload */
89
- payload: any;
90
- }
91
- export type MathInput = {
92
- /** The math operation to perform */
93
- operation: "add" | "subtract" | "multiply" | "divide" | "modulo" | "power" | "sqrt" | "abs" | "round" | "floor" | "ceil" | "min" | "max" | "random";
94
- /** First operand */
95
- a?: number | undefined;
96
- /** Second operand (for binary operations) */
97
- b?: number | undefined;
98
- /** Decimal places for round operation */
99
- decimals?: number | undefined;
100
- }
101
- export type MathOutput = {
102
- /** The result of the operation */
103
- result: number;
104
- }
105
- export type StringTransformInput = {
106
- /** The input string */
107
- value: string;
108
- /** The transformation to apply */
109
- operation: "uppercase" | "lowercase" | "capitalize" | "camelCase" | "snakeCase" | "kebabCase" | "trim" | "trimStart" | "trimEnd" | "split" | "replace" | "slice" | "padStart" | "padEnd";
110
- /** Separator for split operation */
111
- separator?: string | undefined;
112
- /** Search string for replace operation */
113
- search?: string | undefined;
114
- /** Replacement string for replace operation */
115
- replacement?: string | undefined;
116
- /** Replace all occurrences */
117
- replaceAll?: boolean | undefined;
118
- /** Start index for slice */
119
- start?: number | undefined;
120
- /** End index for slice */
121
- end?: number | undefined;
122
- /** Target length for pad operations */
123
- length?: number | undefined;
124
- /** Character to pad with */
125
- padChar?: string | undefined;
126
- }
127
- export type StringTransformOutput = {
128
- /** The transformed result */
129
- result: string | string[];
130
- }
131
- export type TypeConvertInput = {
132
- /** The value to convert */
133
- value: unknown;
134
- /** Target type */
135
- to: "string" | "number" | "boolean" | "json" | "array";
136
- /** Radix for number parsing (e.g., 10, 16) */
137
- radix?: number | undefined;
138
- }
139
- export type TypeConvertOutput = {
140
- /** The converted value */
141
- result: unknown;
142
- /** Whether the conversion succeeded */
143
- success: boolean;
144
- /** The original type of the value */
145
- originalType: string;
146
- }
147
- export type AggregateInput = {
148
- /** The array of items to aggregate */
149
- items: {
96
+ export type EditFieldsInput = {
97
+ /** The input object to transform */
98
+ item: {
150
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;
151
111
  }[];
152
- /** The field path to collect values from */
153
- field: string;
154
- /** The name of the output field containing the list */
155
- outputField?: string | undefined;
156
- /** Only include unique values */
157
- unique?: boolean | undefined;
158
112
  }
159
- export type AggregateOutput = {
160
- /** The output object with aggregated values */
113
+ export type EditFieldsOutput = {
114
+ /** The transformed object */
161
115
  item: {
162
116
  [key: string]: unknown;
163
117
  };
164
118
  }
165
- export type ChunkInput = {
166
- /** The array to split into chunks */
167
- items: unknown[];
168
- /** Size of each chunk */
169
- size: number;
170
- }
171
- export type ChunkOutput = {
172
- /** Array of chunks */
173
- chunks: unknown[][];
174
- }
175
119
  export type FindInput = {
176
120
  /** The array to search */
177
121
  items: {
@@ -210,6 +154,29 @@ export type GroupByOutput = {
210
154
  }[];
211
155
  };
212
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
+ }
213
180
  export type LimitInput = {
214
181
  /** The array of items to limit */
215
182
  items: unknown[];
@@ -224,6 +191,62 @@ export type LimitOutput = {
224
191
  /** The original total count before limiting */
225
192
  totalCount: number;
226
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
+ }
227
250
  export type RemoveDuplicatesInput = {
228
251
  /** The array of items to deduplicate */
229
252
  items: {
@@ -242,6 +265,27 @@ export type RemoveDuplicatesOutput = {
242
265
  /** Number of duplicates removed */
243
266
  removedCount: number;
244
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
+ }
245
289
  export type ReverseInput = {
246
290
  /** The array to reverse */
247
291
  items: unknown[];
@@ -250,6 +294,12 @@ export type ReverseOutput = {
250
294
  /** The reversed array */
251
295
  items: unknown[];
252
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
+ }
253
303
  export type SortInput = {
254
304
  /** The array of items to sort */
255
305
  items: {
@@ -285,6 +335,32 @@ export type SplitOutOutput = {
285
335
  [key: string]: unknown;
286
336
  }[];
287
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
+ }
288
364
  export type SummarizeInput = {
289
365
  /** The array of items to summarize */
290
366
  items: {
@@ -308,6 +384,22 @@ export type SummarizeOutput = {
308
384
  [key: string]: unknown;
309
385
  }[];
310
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
+ }
311
403
  export type UniqueInput = {
312
404
  /** The array to get unique values from */
313
405
  items: unknown[];
@@ -318,92 +410,6 @@ export type UniqueOutput = {
318
410
  /** Array with only unique values */
319
411
  items: unknown[];
320
412
  }
321
- export type EditFieldsInput = {
322
- /** The input object to transform */
323
- item: {
324
- [key: string]: unknown;
325
- };
326
- /** List of field operations to perform */
327
- operations: {
328
- /** The field path to operate on (supports dot notation) */
329
- field: string;
330
- /** The operation to perform */
331
- operation: "set" | "remove" | "rename";
332
- /** The value to set (for set operation) */
333
- value?: unknown | undefined;
334
- /** The new field name (for rename operation) */
335
- newName?: string | undefined;
336
- }[];
337
- }
338
- export type EditFieldsOutput = {
339
- /** The transformed object */
340
- item: {
341
- [key: string]: unknown;
342
- };
343
- }
344
- export type MergeInput = {
345
- /** Objects to merge (later objects override earlier ones) */
346
- items: {
347
- [key: string]: unknown;
348
- }[];
349
- /** Perform deep merge of nested objects */
350
- deep?: boolean | undefined;
351
- }
352
- export type MergeOutput = {
353
- /** The merged object */
354
- item: {
355
- [key: string]: unknown;
356
- };
357
- }
358
- export type OmitInput = {
359
- /** The input object */
360
- item: {
361
- [key: string]: unknown;
362
- };
363
- /** Fields to remove */
364
- fields: string[];
365
- }
366
- export type OmitOutput = {
367
- /** Object without the specified fields */
368
- item: {
369
- [key: string]: unknown;
370
- };
371
- }
372
- export type PickInput = {
373
- /** The input object */
374
- item: {
375
- [key: string]: unknown;
376
- };
377
- /** Fields to keep (supports dot notation for nested fields) */
378
- fields: string[];
379
- }
380
- export type PickOutput = {
381
- /** Object with only the specified fields */
382
- item: {
383
- [key: string]: unknown;
384
- };
385
- }
386
- export type RenameKeysInput = {
387
- /** The input object to transform */
388
- item: {
389
- [key: string]: unknown;
390
- };
391
- /** List of key rename mappings */
392
- mappings: {
393
- /** The original key name */
394
- oldKey: string;
395
- /** The new key name */
396
- newKey: string;
397
- }[];
398
- /** Whether to keep keys that are not in the mapping */
399
- keepUnmapped?: boolean | undefined;
400
- }
401
- export type RenameKeysOutput = {
402
- /** The transformed object with renamed keys */
403
- item: {
404
- [key: string]: unknown;
405
- };
406
- }
407
413
 
408
414
  interface RPCHandler<I, O> {
409
415
  input: I;
@@ -411,14 +417,6 @@ interface RPCHandler<I, O> {
411
417
  }
412
418
 
413
419
  export type RPCMap = {
414
- readonly 'coalesce': RPCHandler<CoalesceInput, CoalesceOutput>,
415
- readonly 'crypto': RPCHandler<CryptoInput, CryptoOutput>,
416
- readonly 'dateTime': RPCHandler<DateTimeInput, DateTimeOutput>,
417
- readonly 'jwtSign': RPCHandler<JwtSignInput, JwtSignOutput>,
418
- readonly 'jwtDecode': RPCHandler<JwtDecodeInput, JwtDecodeOutput>,
419
- readonly 'math': RPCHandler<MathInput, MathOutput>,
420
- readonly 'stringTransform': RPCHandler<StringTransformInput, StringTransformOutput>,
421
- readonly 'typeConvert': RPCHandler<TypeConvertInput, TypeConvertOutput>,
422
420
  readonly 'aggregate': RPCHandler<AggregateInput, AggregateOutput>,
423
421
  readonly 'chunk': RPCHandler<ChunkInput, ChunkOutput>,
424
422
  readonly 'find': RPCHandler<FindInput, FindOutput>,
@@ -430,6 +428,15 @@ export type RPCMap = {
430
428
  readonly 'splitOut': RPCHandler<SplitOutInput, SplitOutOutput>,
431
429
  readonly 'summarize': RPCHandler<SummarizeInput, SummarizeOutput>,
432
430
  readonly 'unique': RPCHandler<UniqueInput, UniqueOutput>,
431
+ readonly 'coalesce': RPCHandler<CoalesceInput, CoalesceOutput>,
432
+ readonly 'crypto': RPCHandler<CryptoInput, CryptoOutput>,
433
+ readonly 'dateTime': RPCHandler<DateTimeInput, DateTimeOutput>,
434
+ readonly 'jwtSign': RPCHandler<JwtSignInput, JwtSignOutput>,
435
+ readonly 'jwtDecode': RPCHandler<JwtDecodeInput, JwtDecodeOutput>,
436
+ readonly 'math': RPCHandler<MathInput, MathOutput>,
437
+ readonly 'sleep': RPCHandler<SleepInput, null>,
438
+ readonly 'stringTransform': RPCHandler<StringTransformInput, StringTransformOutput>,
439
+ readonly 'typeConvert': RPCHandler<TypeConvertInput, TypeConvertOutput>,
433
440
  readonly 'editFields': RPCHandler<EditFieldsInput, EditFieldsOutput>,
434
441
  readonly 'merge': RPCHandler<MergeInput, MergeOutput>,
435
442
  readonly 'omit': RPCHandler<OmitInput, OmitOutput>,
@@ -444,16 +451,18 @@ export type FlattenedRPCMap = RPCMap
444
451
 
445
452
 
446
453
  export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
447
- name: Name,
448
- data: FlattenedRPCMap[Name]['input']
454
+ ...args: FlattenedRPCMap[Name]['input'] extends void | null
455
+ ? [name: Name]
456
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
449
457
  ) => Promise<FlattenedRPCMap[Name]['output']>
450
458
 
451
459
  export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
452
- name: Name,
453
- data: FlattenedRPCMap[Name]['input']
460
+ ...args: FlattenedRPCMap[Name]['input'] extends void | null
461
+ ? [name: Name]
462
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
454
463
  ) => Promise<FlattenedRPCMap[Name]['output']>
455
464
 
456
- import type { WorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
465
+ import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
457
466
 
458
467
  import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
459
468
 
@@ -469,12 +478,22 @@ interface AIAgentInput {
469
478
  resourceId: string
470
479
  }
471
480
 
472
- export type TypedStartWorkflow = <Name extends keyof WorkflowMap>(
481
+ export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
473
482
  name: Name,
474
- input: WorkflowMap[Name]['input'],
483
+ input: FlattenedWorkflowMap[Name]['input'],
475
484
  options?: { startNode?: string }
476
485
  ) => Promise<{ runId: string }>
477
486
 
487
+ export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
488
+ name: Name,
489
+ input: FlattenedWorkflowMap[Name]['input']
490
+ ) => Promise<FlattenedWorkflowMap[Name]['output']>
491
+
492
+ export type TypedWorkflowStatus = (
493
+ workflowName: string,
494
+ runId: string
495
+ ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
496
+
478
497
  type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
479
498
  ? (name: string, input: AIAgentInput) => Promise<any>
480
499
  : <Name extends keyof FlattenedAgentMap>(
@@ -0,0 +1,27 @@
1
+ {
2
+ "aggregate": "aggregate",
3
+ "chunk": "chunk",
4
+ "find": "find",
5
+ "groupBy": "groupBy",
6
+ "limit": "limit",
7
+ "removeDuplicates": "removeDuplicates",
8
+ "reverse": "reverse",
9
+ "sort": "sort",
10
+ "splitOut": "splitOut",
11
+ "summarize": "summarize",
12
+ "unique": "unique",
13
+ "coalesce": "coalesce",
14
+ "crypto": "crypto",
15
+ "dateTime": "dateTime",
16
+ "jwtSign": "jwtSign",
17
+ "jwtDecode": "jwtDecode",
18
+ "math": "math",
19
+ "sleep": "sleep",
20
+ "stringTransform": "stringTransform",
21
+ "typeConvert": "typeConvert",
22
+ "editFields": "editFields",
23
+ "merge": "merge",
24
+ "omit": "omit",
25
+ "pick": "pick",
26
+ "renameKeys": "renameKeys"
27
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.19
3
+ */
4
+ import { pikkuState } from '@pikku/core/internal'
5
+ import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' }
6
+ pikkuState('@pikku/addon-graph', 'rpc', 'meta', metaData as Record<string, string>)
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.19
3
+ */
4
+ /**
5
+ * Scheduler-specific type definitions for tree-shaking optimization
6
+ */
7
+
8
+ import { CoreScheduledTask, wireScheduler as wireSchedulerCore } from '@pikku/core/scheduler'
9
+ import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-function-types.gen.js'
10
+
11
+ /**
12
+ * Type definition for scheduled tasks that run at specified intervals.
13
+ * These are sessionless functions that execute based on cron expressions.
14
+ */
15
+ type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void, 'session' | 'rpc'>, PikkuMiddleware>
16
+
17
+ /**
18
+ * Registers a scheduled task with the Pikku framework.
19
+ * Tasks run based on cron expressions and are sessionless.
20
+ *
21
+ * @param task - Scheduled task definition with cron expression and handler
22
+ */
23
+ export const wireScheduler = (task: SchedulerWiring) => {
24
+ wireSchedulerCore(task as any)
25
+ }