@pikku/addon-graph 0.0.3 → 0.12.3

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 (176) hide show
  1. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +3 -3
  2. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
  3. package/dist/.pikku/addon/pikku-addon-types.gen.js +6 -2
  4. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
  5. package/dist/.pikku/addon/pikku-package.gen.js +2 -1
  6. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  7. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
  8. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  9. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
  10. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
  11. package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
  12. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
  13. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +78 -0
  14. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts.map +1 -0
  15. package/dist/.pikku/cli/pikku-cli-types.gen.js +61 -0
  16. package/dist/.pikku/cli/pikku-cli-types.gen.js.map +1 -0
  17. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  18. package/dist/.pikku/function/pikku-function-types.gen.d.ts +57 -86
  19. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  20. package/dist/.pikku/function/pikku-function-types.gen.js +46 -57
  21. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  22. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  23. package/dist/.pikku/function/pikku-functions-meta.gen.json +476 -449
  24. package/dist/.pikku/function/pikku-functions.gen.js +2 -2
  25. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  26. package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
  27. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
  28. package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
  29. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
  30. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
  31. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  32. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
  33. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
  34. package/dist/.pikku/pikku-bootstrap.gen.d.ts +4 -2
  35. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
  36. package/dist/.pikku/pikku-bootstrap.gen.js +2 -10
  37. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
  38. package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
  39. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
  40. package/dist/.pikku/pikku-meta-service.gen.js +10 -0
  41. package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
  42. package/dist/.pikku/pikku-services.gen.d.ts +8 -3
  43. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  44. package/dist/.pikku/pikku-services.gen.js +7 -1
  45. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  46. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  47. package/dist/.pikku/pikku-types.gen.js +1 -1
  48. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
  49. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
  50. package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
  51. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
  52. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +429 -57
  53. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +430 -58
  54. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
  55. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
  56. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
  57. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
  58. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +27 -0
  59. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
  60. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
  61. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
  62. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
  63. package/dist/.pikku/schemas/register.gen.js +3 -1
  64. package/dist/.pikku/schemas/register.gen.js.map +1 -1
  65. package/dist/.pikku/schemas/schemas/AggregateInput.schema.json +1 -1
  66. package/dist/.pikku/schemas/schemas/AggregateOutput.schema.json +1 -1
  67. package/dist/.pikku/schemas/schemas/ChunkInput.schema.json +1 -1
  68. package/dist/.pikku/schemas/schemas/ChunkOutput.schema.json +1 -1
  69. package/dist/.pikku/schemas/schemas/CoalesceInput.schema.json +1 -1
  70. package/dist/.pikku/schemas/schemas/CoalesceOutput.schema.json +1 -1
  71. package/dist/.pikku/schemas/schemas/CryptoInput.schema.json +1 -1
  72. package/dist/.pikku/schemas/schemas/CryptoOutput.schema.json +1 -1
  73. package/dist/.pikku/schemas/schemas/DateTimeInput.schema.json +1 -1
  74. package/dist/.pikku/schemas/schemas/DateTimeOutput.schema.json +1 -1
  75. package/dist/.pikku/schemas/schemas/EditFieldsInput.schema.json +1 -1
  76. package/dist/.pikku/schemas/schemas/EditFieldsOutput.schema.json +1 -1
  77. package/dist/.pikku/schemas/schemas/FindInput.schema.json +1 -1
  78. package/dist/.pikku/schemas/schemas/FindOutput.schema.json +1 -1
  79. package/dist/.pikku/schemas/schemas/GroupByInput.schema.json +1 -1
  80. package/dist/.pikku/schemas/schemas/GroupByOutput.schema.json +1 -1
  81. package/dist/.pikku/schemas/schemas/JwtDecodeInput.schema.json +1 -1
  82. package/dist/.pikku/schemas/schemas/JwtDecodeOutput.schema.json +1 -1
  83. package/dist/.pikku/schemas/schemas/JwtSignInput.schema.json +1 -1
  84. package/dist/.pikku/schemas/schemas/JwtSignOutput.schema.json +1 -1
  85. package/dist/.pikku/schemas/schemas/LimitInput.schema.json +1 -1
  86. package/dist/.pikku/schemas/schemas/LimitOutput.schema.json +1 -1
  87. package/dist/.pikku/schemas/schemas/MathInput.schema.json +1 -1
  88. package/dist/.pikku/schemas/schemas/MathOutput.schema.json +1 -1
  89. package/dist/.pikku/schemas/schemas/MergeInput.schema.json +1 -1
  90. package/dist/.pikku/schemas/schemas/MergeOutput.schema.json +1 -1
  91. package/dist/.pikku/schemas/schemas/OmitInput.schema.json +1 -1
  92. package/dist/.pikku/schemas/schemas/OmitOutput.schema.json +1 -1
  93. package/dist/.pikku/schemas/schemas/PickInput.schema.json +1 -1
  94. package/dist/.pikku/schemas/schemas/PickOutput.schema.json +1 -1
  95. package/dist/.pikku/schemas/schemas/RemoveDuplicatesInput.schema.json +1 -1
  96. package/dist/.pikku/schemas/schemas/RemoveDuplicatesOutput.schema.json +1 -1
  97. package/dist/.pikku/schemas/schemas/RenameKeysInput.schema.json +1 -1
  98. package/dist/.pikku/schemas/schemas/RenameKeysOutput.schema.json +1 -1
  99. package/dist/.pikku/schemas/schemas/ReverseInput.schema.json +1 -1
  100. package/dist/.pikku/schemas/schemas/ReverseOutput.schema.json +1 -1
  101. package/dist/.pikku/schemas/schemas/SleepInput.schema.json +1 -1
  102. package/dist/.pikku/schemas/schemas/SleepOutput.schema.json +1 -0
  103. package/dist/.pikku/schemas/schemas/SortInput.schema.json +1 -1
  104. package/dist/.pikku/schemas/schemas/SortOutput.schema.json +1 -1
  105. package/dist/.pikku/schemas/schemas/SplitOutInput.schema.json +1 -1
  106. package/dist/.pikku/schemas/schemas/SplitOutOutput.schema.json +1 -1
  107. package/dist/.pikku/schemas/schemas/StringTransformInput.schema.json +1 -1
  108. package/dist/.pikku/schemas/schemas/StringTransformOutput.schema.json +1 -1
  109. package/dist/.pikku/schemas/schemas/SummarizeInput.schema.json +1 -1
  110. package/dist/.pikku/schemas/schemas/SummarizeOutput.schema.json +1 -1
  111. package/dist/.pikku/schemas/schemas/TypeConvertInput.schema.json +1 -1
  112. package/dist/.pikku/schemas/schemas/TypeConvertOutput.schema.json +1 -1
  113. package/dist/.pikku/schemas/schemas/UniqueInput.schema.json +1 -1
  114. package/dist/.pikku/schemas/schemas/UniqueOutput.schema.json +1 -1
  115. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  116. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  117. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  118. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  119. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  120. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  121. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  122. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  123. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  124. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  125. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
  126. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +3 -24
  127. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  128. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -14
  129. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  130. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  131. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  132. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  133. package/dist/src/functions/data/jwt.function.d.ts.map +1 -1
  134. package/dist/src/functions/data/jwt.function.js +3 -2
  135. package/dist/src/functions/data/jwt.function.js.map +1 -1
  136. package/dist/src/functions/data/sleep.function.d.ts +1 -0
  137. package/dist/src/functions/data/sleep.function.d.ts.map +1 -1
  138. package/dist/src/functions/data/sleep.function.js +2 -1
  139. package/dist/src/functions/data/sleep.function.js.map +1 -1
  140. package/package.json +6 -9
  141. package/dist/.pikku/addon/pikku-addon-types.gen.ts +0 -100
  142. package/dist/.pikku/addon/pikku-package.gen.ts +0 -9
  143. package/dist/.pikku/agent/pikku-agent-types.gen.ts +0 -82
  144. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
  145. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
  146. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
  147. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
  148. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
  149. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
  150. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
  151. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
  152. package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
  153. package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
  154. package/dist/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
  155. package/dist/.pikku/console/pikku-addon-meta.gen.json +0 -281
  156. package/dist/.pikku/console/pikku-node-types.gen.ts +0 -8
  157. package/dist/.pikku/function/pikku-function-types.gen.ts +0 -686
  158. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -610
  159. package/dist/.pikku/function/pikku-functions-meta.gen.ts +0 -7
  160. package/dist/.pikku/function/pikku-functions.gen.ts +0 -56
  161. package/dist/.pikku/pikku-bootstrap.gen.ts +0 -15
  162. package/dist/.pikku/pikku-services.gen.ts +0 -34
  163. package/dist/.pikku/pikku-types.gen.ts +0 -21
  164. package/dist/.pikku/schema-cache.json +0 -1
  165. package/dist/.pikku/schemas/pikku.cache.json +0 -1
  166. package/dist/.pikku/schemas/register.gen.ts +0 -199
  167. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
  168. package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +0 -1
  169. package/dist/.pikku/secrets/pikku-secrets.gen.ts +0 -21
  170. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +0 -160
  171. package/dist/.pikku/variables/pikku-variable-types.gen.ts +0 -5
  172. package/dist/.pikku/variables/pikku-variables-meta.gen.json +0 -1
  173. package/dist/.pikku/variables/pikku-variables.gen.ts +0 -21
  174. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +0 -214
  175. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
  176. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
@@ -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.22
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,408 @@
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 SleepOutput = void | undefined
304
+ export type SortInput = {
305
+ /** The array of items to sort */
306
+ items: {
307
+ [key: string]: unknown;
308
+ }[];
309
+ /** Fields to sort by (in order of priority) */
310
+ sortBy: {
311
+ /** The field path to sort by (supports dot notation) */
312
+ field: string;
313
+ /** Sort order */
314
+ order?: ("asc" | "desc") | undefined;
315
+ }[];
316
+ }
317
+ export type SortOutput = {
318
+ /** The sorted array of items */
319
+ items: {
320
+ [key: string]: unknown;
321
+ }[];
322
+ }
323
+ export type SplitOutInput = {
324
+ /** The input object containing a nested array */
325
+ item: {
326
+ [key: string]: unknown;
327
+ };
328
+ /** The field path containing the array to split (supports dot notation) */
329
+ field: string;
330
+ /** Include parent object fields in each output item */
331
+ includeParent?: boolean | undefined;
332
+ }
333
+ export type SplitOutOutput = {
334
+ /** The split array of items */
335
+ items: {
336
+ [key: string]: unknown;
337
+ }[];
338
+ }
339
+ export type StringTransformInput = {
340
+ /** The input string */
341
+ value: string;
342
+ /** The transformation to apply */
343
+ operation: "uppercase" | "lowercase" | "capitalize" | "camelCase" | "snakeCase" | "kebabCase" | "trim" | "trimStart" | "trimEnd" | "split" | "replace" | "slice" | "padStart" | "padEnd";
344
+ /** Separator for split operation */
345
+ separator?: string | undefined;
346
+ /** Search string for replace operation */
347
+ search?: string | undefined;
348
+ /** Replacement string for replace operation */
349
+ replacement?: string | undefined;
350
+ /** Replace all occurrences */
351
+ replaceAll?: boolean | undefined;
352
+ /** Start index for slice */
353
+ start?: number | undefined;
354
+ /** End index for slice */
355
+ end?: number | undefined;
356
+ /** Target length for pad operations */
357
+ length?: number | undefined;
358
+ /** Character to pad with */
359
+ padChar?: string | undefined;
360
+ }
361
+ export type StringTransformOutput = {
362
+ /** The transformed result */
363
+ result: string | string[];
364
+ }
365
+ export type SummarizeInput = {
366
+ /** The array of items to summarize */
367
+ items: {
368
+ [key: string]: unknown;
369
+ }[];
370
+ /** List of aggregation operations to perform */
371
+ aggregations: {
372
+ /** The field path to aggregate */
373
+ field: string;
374
+ /** The aggregation operation */
375
+ operation: "sum" | "avg" | "min" | "max" | "count" | "countDistinct" | "first" | "last";
376
+ /** The name of the output field */
377
+ outputField: string;
378
+ }[];
379
+ /** Fields to group by */
380
+ groupBy?: string[] | undefined;
381
+ }
382
+ export type SummarizeOutput = {
383
+ /** The summarized results */
384
+ items: {
385
+ [key: string]: unknown;
386
+ }[];
387
+ }
388
+ export type TypeConvertInput = {
389
+ /** The value to convert */
390
+ value: unknown;
391
+ /** Target type */
392
+ to: "string" | "number" | "boolean" | "json" | "array";
393
+ /** Radix for number parsing (e.g., 10, 16) */
394
+ radix?: number | undefined;
395
+ }
396
+ export type TypeConvertOutput = {
397
+ /** The converted value */
398
+ result: unknown;
399
+ /** Whether the conversion succeeded */
400
+ success: boolean;
401
+ /** The original type of the value */
402
+ originalType: string;
403
+ }
404
+ export type UniqueInput = {
405
+ /** The array to get unique values from */
406
+ items: unknown[];
407
+ /** For arrays of objects, the field to check uniqueness by */
408
+ field?: string | undefined;
409
+ }
410
+ export type UniqueOutput = {
411
+ /** Array with only unique values */
412
+ items: unknown[];
413
+ }
61
414
 
62
415
  interface RPCHandler<I, O> {
63
416
  input: I;
@@ -82,7 +435,7 @@ export type RPCMap = {
82
435
  readonly 'jwtSign': RPCHandler<JwtSignInput, JwtSignOutput>,
83
436
  readonly 'jwtDecode': RPCHandler<JwtDecodeInput, JwtDecodeOutput>,
84
437
  readonly 'math': RPCHandler<MathInput, MathOutput>,
85
- readonly 'sleep': RPCHandler<SleepInput, null>,
438
+ readonly 'sleep': RPCHandler<SleepInput, SleepOutput>,
86
439
  readonly 'stringTransform': RPCHandler<StringTransformInput, StringTransformOutput>,
87
440
  readonly 'typeConvert': RPCHandler<TypeConvertInput, TypeConvertOutput>,
88
441
  readonly 'editFields': RPCHandler<EditFieldsInput, EditFieldsOutput>,
@@ -97,18 +450,27 @@ export type RPCMap = {
97
450
  // No addon packages, use RPCMap directly
98
451
  export type FlattenedRPCMap = RPCMap
99
452
 
453
+ type IsAny<T> = 0 extends (1 & T) ? true : false
454
+ type IsVoidishInput<T> = IsAny<T> extends true
455
+ ? false
456
+ : [T] extends [void | null | undefined]
457
+ ? true
458
+ : false
459
+
100
460
 
101
461
  export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
102
- name: Name,
103
- data: FlattenedRPCMap[Name]['input']
462
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
463
+ ? [name: Name]
464
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
104
465
  ) => Promise<FlattenedRPCMap[Name]['output']>
105
466
 
106
467
  export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
107
- name: Name,
108
- data: FlattenedRPCMap[Name]['input']
468
+ ...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
469
+ ? [name: Name]
470
+ : [name: Name, data: FlattenedRPCMap[Name]['input']]
109
471
  ) => Promise<FlattenedRPCMap[Name]['output']>
110
472
 
111
- import type { WorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
473
+ import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
112
474
 
113
475
  import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
114
476
 
@@ -124,12 +486,22 @@ interface AIAgentInput {
124
486
  resourceId: string
125
487
  }
126
488
 
127
- export type TypedStartWorkflow = <Name extends keyof WorkflowMap>(
489
+ export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
128
490
  name: Name,
129
- input: WorkflowMap[Name]['input'],
491
+ input: FlattenedWorkflowMap[Name]['input'],
130
492
  options?: { startNode?: string }
131
493
  ) => Promise<{ runId: string }>
132
494
 
495
+ export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
496
+ name: Name,
497
+ input: FlattenedWorkflowMap[Name]['input']
498
+ ) => Promise<FlattenedWorkflowMap[Name]['output']>
499
+
500
+ export type TypedWorkflowStatus = (
501
+ workflowName: string,
502
+ runId: string
503
+ ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
504
+
133
505
  type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
134
506
  ? (name: string, input: AIAgentInput) => Promise<any>
135
507
  : <Name extends keyof FlattenedAgentMap>(
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pikku-rpc-wirings-meta.internal.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.22
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);
7
+ //# sourceMappingURL=pikku-rpc-wirings-meta.internal.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.js","sourceRoot":"","sources":["../../../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,QAAQ,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACvF,UAAU,CAAC,oBAAoB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
@@ -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,22 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.23
3
+ */
4
+ /**
5
+ * Scheduler-specific type definitions for tree-shaking optimization
6
+ */
7
+ import { CoreScheduledTask } from '@pikku/core/scheduler';
8
+ import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-function-types.gen.js';
9
+ /**
10
+ * Type definition for scheduled tasks that run at specified intervals.
11
+ * These are sessionless functions that execute based on cron expressions.
12
+ */
13
+ type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void, 'session' | 'rpc'>, PikkuMiddleware>;
14
+ /**
15
+ * Registers a scheduled task with the Pikku framework.
16
+ * Tasks run based on cron expressions and are sessionless.
17
+ *
18
+ * @param task - Scheduled task definition with cron expression and handler
19
+ */
20
+ export declare const wireScheduler: (task: SchedulerWiring) => void;
21
+ export {};
22
+ //# sourceMappingURL=pikku-scheduler-types.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scheduler-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scheduler/pikku-scheduler-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAsC,MAAM,uBAAuB,CAAA;AAC7F,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAEnG;;;GAGG;AACH,KAAK,eAAe,GAAG,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,GAAG,KAAK,CAAC,EAAE,eAAe,CAAC,CAAA;AAE7G;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,eAAe,SAElD,CAAA"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.23
3
+ */
4
+ /**
5
+ * Scheduler-specific type definitions for tree-shaking optimization
6
+ */
7
+ import { wireScheduler as wireSchedulerCore } from '@pikku/core/scheduler';
8
+ /**
9
+ * Registers a scheduled task with the Pikku framework.
10
+ * Tasks run based on cron expressions and are sessionless.
11
+ *
12
+ * @param task - Scheduled task definition with cron expression and handler
13
+ */
14
+ export const wireScheduler = (task) => {
15
+ wireSchedulerCore(task);
16
+ };
17
+ //# sourceMappingURL=pikku-scheduler-types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scheduler-types.gen.js","sourceRoot":"","sources":["../../../.pikku/scheduler/pikku-scheduler-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAqB,aAAa,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAS7F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAqB,EAAE,EAAE;IACrD,iBAAiB,CAAC,IAAW,CAAC,CAAA;AAChC,CAAC,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.22
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema';
5
5
  import * as AggregateInput from './schemas/AggregateInput.schema.json' with { type: 'json' };
@@ -72,6 +72,8 @@ import * as MathOutput from './schemas/MathOutput.schema.json' with { type: 'jso
72
72
  addSchema('MathOutput', MathOutput, '@pikku/addon-graph');
73
73
  import * as SleepInput from './schemas/SleepInput.schema.json' with { type: 'json' };
74
74
  addSchema('SleepInput', SleepInput, '@pikku/addon-graph');
75
+ import * as SleepOutput from './schemas/SleepOutput.schema.json' with { type: 'json' };
76
+ addSchema('SleepOutput', SleepOutput, '@pikku/addon-graph');
75
77
  import * as StringTransformInput from './schemas/StringTransformInput.schema.json' with { type: 'json' };
76
78
  addSchema('StringTransformInput', StringTransformInput, '@pikku/addon-graph');
77
79
  import * as StringTransformOutput from './schemas/StringTransformOutput.schema.json' with { type: 'json' };