@pikku/addon-graph 0.12.4 → 0.12.6
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.
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +3 -2
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +15 -44
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +3 -12
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +350 -33
- package/dist/.pikku/function/pikku-functions.gen.js +19 -1
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -24
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +2 -24
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +5 -1
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +4 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-types.gen.d.ts +2 -1
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-types.gen.js +3 -1
- package/dist/.pikku/pikku-types.gen.js.map +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +163 -7
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +172 -7
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +652 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +10 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +93 -57
- package/dist/.pikku/schemas/register.gen.js.map +1 -1
- package/dist/.pikku/schemas/schemas/AggregateInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/BranchInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/BranchOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ConcatInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ConcatOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/DateTimeInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/EditFieldsOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FanoutInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FanoutOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/HttpRequestInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/HttpRequestOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadFileInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadFileOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/SplitTextInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/SplitTextOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/StopAndErrorInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/StopAndErrorOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WaitInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WaitOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WriteFileInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WriteFileOutput.schema.json +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +6 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +5 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +13 -3
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +22 -5
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +4 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/src/functions/array/aggregate.function.d.ts +33 -4
- package/dist/src/functions/array/aggregate.function.d.ts.map +1 -1
- package/dist/src/functions/array/aggregate.function.js +47 -14
- package/dist/src/functions/array/aggregate.function.js.map +1 -1
- package/dist/src/functions/array/aggregate.function.test.d.ts +2 -0
- package/dist/src/functions/array/aggregate.function.test.d.ts.map +1 -0
- package/dist/src/functions/array/aggregate.function.test.js +42 -0
- package/dist/src/functions/array/aggregate.function.test.js.map +1 -0
- package/dist/src/functions/array/fanout.function.d.ts +32 -0
- package/dist/src/functions/array/fanout.function.d.ts.map +1 -0
- package/dist/src/functions/array/fanout.function.js +80 -0
- package/dist/src/functions/array/fanout.function.js.map +1 -0
- package/dist/src/functions/array/fanout.function.test.d.ts +2 -0
- package/dist/src/functions/array/fanout.function.test.d.ts.map +1 -0
- package/dist/src/functions/array/fanout.function.test.js +66 -0
- package/dist/src/functions/array/fanout.function.test.js.map +1 -0
- package/dist/src/functions/array/summarize.function.d.ts +4 -4
- package/dist/src/functions/data/date-time.function.d.ts +17 -3
- package/dist/src/functions/data/date-time.function.d.ts.map +1 -1
- package/dist/src/functions/data/date-time.function.js +46 -0
- package/dist/src/functions/data/date-time.function.js.map +1 -1
- package/dist/src/functions/data/jwt.function.d.ts +4 -4
- package/dist/src/functions/data/read-file.function.d.ts +40 -0
- package/dist/src/functions/data/read-file.function.d.ts.map +1 -0
- package/dist/src/functions/data/read-file.function.js +39 -0
- package/dist/src/functions/data/read-file.function.js.map +1 -0
- package/dist/src/functions/data/type-convert.function.d.ts +4 -4
- package/dist/src/functions/data/wait.function.d.ts +26 -0
- package/dist/src/functions/data/wait.function.d.ts.map +1 -0
- package/dist/src/functions/data/wait.function.js +29 -0
- package/dist/src/functions/data/wait.function.js.map +1 -0
- package/dist/src/functions/data/write-file.function.d.ts +40 -0
- package/dist/src/functions/data/write-file.function.d.ts.map +1 -0
- package/dist/src/functions/data/write-file.function.js +37 -0
- package/dist/src/functions/data/write-file.function.js.map +1 -0
- package/dist/src/functions/logic/branch.function.d.ts +71 -0
- package/dist/src/functions/logic/branch.function.d.ts.map +1 -0
- package/dist/src/functions/logic/branch.function.js +213 -0
- package/dist/src/functions/logic/branch.function.js.map +1 -0
- package/dist/src/functions/logic/stop-and-error.function.d.ts +13 -0
- package/dist/src/functions/logic/stop-and-error.function.d.ts.map +1 -0
- package/dist/src/functions/logic/stop-and-error.function.js +18 -0
- package/dist/src/functions/logic/stop-and-error.function.js.map +1 -0
- package/dist/src/functions/network/http-request.function.d.ts +105 -0
- package/dist/src/functions/network/http-request.function.d.ts.map +1 -0
- package/dist/src/functions/network/http-request.function.js +142 -0
- package/dist/src/functions/network/http-request.function.js.map +1 -0
- package/dist/src/functions/network/http-request.function.test.d.ts +2 -0
- package/dist/src/functions/network/http-request.function.test.d.ts.map +1 -0
- package/dist/src/functions/network/http-request.function.test.js +119 -0
- package/dist/src/functions/network/http-request.function.test.js.map +1 -0
- package/dist/src/functions/transform/concat.function.d.ts +21 -0
- package/dist/src/functions/transform/concat.function.d.ts.map +1 -0
- package/dist/src/functions/transform/concat.function.js +22 -0
- package/dist/src/functions/transform/concat.function.js.map +1 -0
- package/dist/src/functions/transform/concat.function.test.d.ts +2 -0
- package/dist/src/functions/transform/concat.function.test.d.ts.map +1 -0
- package/dist/src/functions/transform/concat.function.test.js +23 -0
- package/dist/src/functions/transform/concat.function.test.js.map +1 -0
- package/dist/src/functions/transform/edit-fields.function.d.ts +9 -12
- package/dist/src/functions/transform/edit-fields.function.d.ts.map +1 -1
- package/dist/src/functions/transform/edit-fields.function.js +9 -4
- package/dist/src/functions/transform/edit-fields.function.js.map +1 -1
- package/dist/src/functions/transform/split-text.function.d.ts +41 -0
- package/dist/src/functions/transform/split-text.function.d.ts.map +1 -0
- package/dist/src/functions/transform/split-text.function.js +116 -0
- package/dist/src/functions/transform/split-text.function.js.map +1 -0
- package/dist/src/functions/transform/split-text.function.test.d.ts +2 -0
- package/dist/src/functions/transform/split-text.function.test.d.ts.map +1 -0
- package/dist/src/functions/transform/split-text.function.test.js +66 -0
- package/dist/src/functions/transform/split-text.function.test.js.map +1 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.83
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -14,12 +14,23 @@ export type AggregateInput = {
|
|
|
14
14
|
items: {
|
|
15
15
|
[key: string]: unknown;
|
|
16
16
|
}[];
|
|
17
|
-
/** The field path to collect values from */
|
|
18
|
-
field
|
|
17
|
+
/** The field path to collect values from (single-field mode) */
|
|
18
|
+
field?: string | undefined;
|
|
19
19
|
/** The name of the output field containing the list */
|
|
20
20
|
outputField?: string | undefined;
|
|
21
21
|
/** Only include unique values */
|
|
22
22
|
unique?: boolean | undefined;
|
|
23
|
+
/** Collect several fields at once into one output item */
|
|
24
|
+
fields?: {
|
|
25
|
+
/** The field path to collect values from */
|
|
26
|
+
field: string;
|
|
27
|
+
/** The output field name (defaults to the source field path) */
|
|
28
|
+
outputField?: string | undefined;
|
|
29
|
+
/** Only include unique values */
|
|
30
|
+
unique?: boolean | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
/** Collect the entire items into a single list field (n8n aggregateAllItemData) */
|
|
33
|
+
includeAllItems?: boolean | undefined;
|
|
23
34
|
}
|
|
24
35
|
export type AggregateOutput = {
|
|
25
36
|
/** The output object with aggregated values */
|
|
@@ -27,6 +38,31 @@ export type AggregateOutput = {
|
|
|
27
38
|
[key: string]: unknown;
|
|
28
39
|
};
|
|
29
40
|
}
|
|
41
|
+
export type BranchInput = {
|
|
42
|
+
/** Cases evaluated in order; the first match wins */
|
|
43
|
+
cases: {
|
|
44
|
+
/** The `next` branch key to take when this case matches */
|
|
45
|
+
key: string;
|
|
46
|
+
/** How the conditions combine */
|
|
47
|
+
combinator: "and" | "or";
|
|
48
|
+
conditions: {
|
|
49
|
+
/** Left-hand operand (resolved before evaluation) */
|
|
50
|
+
left: unknown;
|
|
51
|
+
/** Right-hand operand — omitted for unary operators like isEmpty */
|
|
52
|
+
right?: unknown | undefined;
|
|
53
|
+
/** Value type the operands are coerced to before comparison */
|
|
54
|
+
type: "string" | "number" | "boolean" | "dateTime" | "array" | "object";
|
|
55
|
+
/** Comparison operation, e.g. equals, contains, gt, isEmpty */
|
|
56
|
+
operation: string;
|
|
57
|
+
}[];
|
|
58
|
+
}[];
|
|
59
|
+
/** Branch key taken when no case matches */
|
|
60
|
+
fallback?: string | undefined;
|
|
61
|
+
}
|
|
62
|
+
export type BranchOutput = {
|
|
63
|
+
/** The branch key taken, or null when the path dead-ends */
|
|
64
|
+
branch: string | null;
|
|
65
|
+
}
|
|
30
66
|
export type ChunkInput = {
|
|
31
67
|
/** The array to split into chunks */
|
|
32
68
|
items: unknown[];
|
|
@@ -51,6 +87,14 @@ export type CoalesceOutput = {
|
|
|
51
87
|
/** Index of the returned value (-1 if all null) */
|
|
52
88
|
index: number;
|
|
53
89
|
}
|
|
90
|
+
export type ConcatInput = {
|
|
91
|
+
/** The input streams to concatenate; each array is flattened one level, each non-array counts as a single item */
|
|
92
|
+
inputs: unknown[];
|
|
93
|
+
}
|
|
94
|
+
export type ConcatOutput = {
|
|
95
|
+
/** All input items concatenated in input order */
|
|
96
|
+
items: unknown[];
|
|
97
|
+
}
|
|
54
98
|
export type CryptoInput = {
|
|
55
99
|
/** The cryptographic operation to perform */
|
|
56
100
|
operation: "hash" | "hmac" | "randomBytes" | "uuid" | "base64Encode" | "base64Decode" | "hexEncode" | "hexDecode";
|
|
@@ -73,7 +117,9 @@ export type DateTimeInput = {
|
|
|
73
117
|
/** The input date/time value (ISO string, timestamp, or parseable date string) */
|
|
74
118
|
value?: (string | number) | undefined;
|
|
75
119
|
/** The operation to perform */
|
|
76
|
-
operation: "format" | "parse" | "add" | "subtract" | "startOf" | "endOf" | "diff" | "now";
|
|
120
|
+
operation: "format" | "parse" | "add" | "subtract" | "startOf" | "endOf" | "diff" | "extract" | "now";
|
|
121
|
+
/** The date/time component to extract for the extract operation */
|
|
122
|
+
part?: ("year" | "month" | "week" | "day" | "dayOfWeek" | "hour" | "minute" | "second") | undefined;
|
|
77
123
|
/** Output format for format operation (e.g., YYYY-MM-DD) */
|
|
78
124
|
format?: string | undefined;
|
|
79
125
|
/** Amount for add/subtract operations */
|
|
@@ -111,11 +157,23 @@ export type EditFieldsInput = {
|
|
|
111
157
|
}[];
|
|
112
158
|
}
|
|
113
159
|
export type EditFieldsOutput = {
|
|
114
|
-
|
|
115
|
-
|
|
160
|
+
[key: string]: unknown;
|
|
161
|
+
}
|
|
162
|
+
export type FanoutInput = {
|
|
163
|
+
/** The array to fan out over — one child invocation per element */
|
|
164
|
+
items: unknown[];
|
|
165
|
+
/** RPC name invoked once per item as a durable child step */
|
|
166
|
+
child: string;
|
|
167
|
+
/** Per-item input template; `$item` references resolve against the current element */
|
|
168
|
+
childInput?: {
|
|
116
169
|
[key: string]: unknown;
|
|
117
|
-
};
|
|
170
|
+
} | undefined;
|
|
171
|
+
/** Run child invocations concurrently or one after another */
|
|
172
|
+
mode: "parallel" | "sequential";
|
|
173
|
+
/** Stable prefix for the per-item durable step names (`<prefix>#<index>`); defaults to `child` */
|
|
174
|
+
stepPrefix?: string | undefined;
|
|
118
175
|
}
|
|
176
|
+
export type FanoutOutput = unknown[]
|
|
119
177
|
export type FindInput = {
|
|
120
178
|
/** The array to search */
|
|
121
179
|
items: {
|
|
@@ -154,6 +212,42 @@ export type GroupByOutput = {
|
|
|
154
212
|
}[];
|
|
155
213
|
};
|
|
156
214
|
}
|
|
215
|
+
export type HttpRequestInput = {
|
|
216
|
+
/** HTTP method */
|
|
217
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
218
|
+
/** The request URL */
|
|
219
|
+
url: string;
|
|
220
|
+
/** Request headers */
|
|
221
|
+
headers?: {
|
|
222
|
+
[key: string]: unknown;
|
|
223
|
+
} | undefined;
|
|
224
|
+
/** Query string parameters appended to the URL */
|
|
225
|
+
query?: {
|
|
226
|
+
[key: string]: unknown;
|
|
227
|
+
} | undefined;
|
|
228
|
+
/** Request body — JSON-encoded unless it is already a string */
|
|
229
|
+
body?: unknown | undefined;
|
|
230
|
+
/** Optional authentication resolved from a secret at request time */
|
|
231
|
+
auth?: {
|
|
232
|
+
/** How the credential is applied to the request */
|
|
233
|
+
mode: "bearer" | "apiKeyHeader" | "apiKeyQuery" | "basic" | "oauth2";
|
|
234
|
+
/** Secret key the value is provisioned under */
|
|
235
|
+
credential: string;
|
|
236
|
+
/** apiKeyHeader — header name (defaults to Authorization) */
|
|
237
|
+
headerName?: string | undefined;
|
|
238
|
+
/** apiKeyQuery — query-param name (defaults to api_key) */
|
|
239
|
+
queryName?: string | undefined;
|
|
240
|
+
/** Static, non-secret headers always sent (e.g. Notion-Version) */
|
|
241
|
+
extraHeaders?: {
|
|
242
|
+
[key: string]: string;
|
|
243
|
+
} | undefined;
|
|
244
|
+
/** Where the value comes from — secret (default) or credential */
|
|
245
|
+
source?: ("secret" | "credential") | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
}
|
|
248
|
+
export type HttpRequestOutput = {
|
|
249
|
+
[key: string]: unknown;
|
|
250
|
+
}
|
|
157
251
|
export type JwtDecodeInput = {
|
|
158
252
|
/** The JWT token to decode */
|
|
159
253
|
token: string;
|
|
@@ -247,6 +341,22 @@ export type PickOutput = {
|
|
|
247
341
|
[key: string]: unknown;
|
|
248
342
|
};
|
|
249
343
|
}
|
|
344
|
+
export type ReadFileInput = {
|
|
345
|
+
/** Storage bucket (defaults to the content service root bucket) */
|
|
346
|
+
bucket?: string | undefined;
|
|
347
|
+
/** Asset key / path of the file to read */
|
|
348
|
+
key: string;
|
|
349
|
+
/** How to decode the file bytes into `data` (default utf8) */
|
|
350
|
+
encoding?: ("utf8" | "base64") | undefined;
|
|
351
|
+
}
|
|
352
|
+
export type ReadFileOutput = {
|
|
353
|
+
/** File contents decoded with the requested encoding */
|
|
354
|
+
data: string;
|
|
355
|
+
/** Bucket the file was read from */
|
|
356
|
+
bucket: string;
|
|
357
|
+
/** Asset key that was read */
|
|
358
|
+
key: string;
|
|
359
|
+
}
|
|
250
360
|
export type RemoveDuplicatesInput = {
|
|
251
361
|
/** The array of items to deduplicate */
|
|
252
362
|
items: {
|
|
@@ -336,6 +446,27 @@ export type SplitOutOutput = {
|
|
|
336
446
|
[key: string]: unknown;
|
|
337
447
|
}[];
|
|
338
448
|
}
|
|
449
|
+
export type SplitTextInput = {
|
|
450
|
+
/** The text to split into chunks */
|
|
451
|
+
text: string;
|
|
452
|
+
/** Splitting strategy: recursive (paragraph→line→word hierarchy, default), character (single separator), or token (approximate token budget) */
|
|
453
|
+
strategy?: ("recursive" | "character" | "token") | undefined;
|
|
454
|
+
/** Maximum size of each chunk (characters, or tokens for the token strategy; default 1000) */
|
|
455
|
+
chunkSize?: number | undefined;
|
|
456
|
+
/** Amount of overlap carried between consecutive chunks (default 200) */
|
|
457
|
+
chunkOverlap?: number | undefined;
|
|
458
|
+
/** Separator for the character strategy (default "\n\n") */
|
|
459
|
+
separator?: string | undefined;
|
|
460
|
+
}
|
|
461
|
+
export type SplitTextOutput = {
|
|
462
|
+
/** The resulting text chunks */
|
|
463
|
+
chunks: string[];
|
|
464
|
+
}
|
|
465
|
+
export type StopAndErrorInput = {
|
|
466
|
+
/** The error message to throw, halting the workflow */
|
|
467
|
+
message: string;
|
|
468
|
+
}
|
|
469
|
+
export type StopAndErrorOutput = void | undefined
|
|
339
470
|
export type StringTransformInput = {
|
|
340
471
|
/** The input string */
|
|
341
472
|
value: string;
|
|
@@ -411,6 +542,31 @@ export type UniqueOutput = {
|
|
|
411
542
|
/** Array with only unique values */
|
|
412
543
|
items: unknown[];
|
|
413
544
|
}
|
|
545
|
+
export type WaitInput = {
|
|
546
|
+
/** A unique name for this wait step */
|
|
547
|
+
name: string;
|
|
548
|
+
/** How long to wait */
|
|
549
|
+
amount: number;
|
|
550
|
+
/** The unit for the wait amount */
|
|
551
|
+
unit: "seconds" | "minutes" | "hours" | "days";
|
|
552
|
+
}
|
|
553
|
+
export type WaitOutput = void | undefined
|
|
554
|
+
export type WriteFileInput = {
|
|
555
|
+
/** Storage bucket (defaults to the content service root bucket) */
|
|
556
|
+
bucket?: string | undefined;
|
|
557
|
+
/** Asset key / path to write the file to */
|
|
558
|
+
key: string;
|
|
559
|
+
/** File contents, decoded according to `encoding` */
|
|
560
|
+
data: string;
|
|
561
|
+
/** How `data` is encoded (default utf8) */
|
|
562
|
+
encoding?: ("utf8" | "base64") | undefined;
|
|
563
|
+
}
|
|
564
|
+
export type WriteFileOutput = {
|
|
565
|
+
/** Bucket the file was written to */
|
|
566
|
+
bucket: string;
|
|
567
|
+
/** Asset key of the written file */
|
|
568
|
+
assetKey: string;
|
|
569
|
+
}
|
|
414
570
|
|
|
415
571
|
interface RPCHandler<I, O> {
|
|
416
572
|
input: I;
|
|
@@ -420,6 +576,7 @@ interface RPCHandler<I, O> {
|
|
|
420
576
|
export type RPCMap = {
|
|
421
577
|
readonly 'aggregate': RPCHandler<AggregateInput, AggregateOutput>,
|
|
422
578
|
readonly 'chunk': RPCHandler<ChunkInput, ChunkOutput>,
|
|
579
|
+
readonly 'fanout': RPCHandler<FanoutInput, FanoutOutput>,
|
|
423
580
|
readonly 'find': RPCHandler<FindInput, FindOutput>,
|
|
424
581
|
readonly 'groupBy': RPCHandler<GroupByInput, GroupByOutput>,
|
|
425
582
|
readonly 'limit': RPCHandler<LimitInput, LimitOutput>,
|
|
@@ -435,14 +592,22 @@ export type RPCMap = {
|
|
|
435
592
|
readonly 'jwtSign': RPCHandler<JwtSignInput, JwtSignOutput>,
|
|
436
593
|
readonly 'jwtDecode': RPCHandler<JwtDecodeInput, JwtDecodeOutput>,
|
|
437
594
|
readonly 'math': RPCHandler<MathInput, MathOutput>,
|
|
595
|
+
readonly 'readFile': RPCHandler<ReadFileInput, ReadFileOutput>,
|
|
438
596
|
readonly 'sleep': RPCHandler<SleepInput, SleepOutput>,
|
|
439
597
|
readonly 'stringTransform': RPCHandler<StringTransformInput, StringTransformOutput>,
|
|
440
598
|
readonly 'typeConvert': RPCHandler<TypeConvertInput, TypeConvertOutput>,
|
|
599
|
+
readonly 'wait': RPCHandler<WaitInput, WaitOutput>,
|
|
600
|
+
readonly 'writeFile': RPCHandler<WriteFileInput, WriteFileOutput>,
|
|
601
|
+
readonly 'branch': RPCHandler<BranchInput, BranchOutput>,
|
|
602
|
+
readonly 'stopAndError': RPCHandler<StopAndErrorInput, StopAndErrorOutput>,
|
|
603
|
+
readonly 'httpRequest': RPCHandler<HttpRequestInput, HttpRequestOutput>,
|
|
604
|
+
readonly 'concat': RPCHandler<ConcatInput, ConcatOutput>,
|
|
441
605
|
readonly 'editFields': RPCHandler<EditFieldsInput, EditFieldsOutput>,
|
|
442
606
|
readonly 'merge': RPCHandler<MergeInput, MergeOutput>,
|
|
443
607
|
readonly 'omit': RPCHandler<OmitInput, OmitOutput>,
|
|
444
608
|
readonly 'pick': RPCHandler<PickInput, PickOutput>,
|
|
445
609
|
readonly 'renameKeys': RPCHandler<RenameKeysInput, RenameKeysOutput>,
|
|
610
|
+
readonly 'splitText': RPCHandler<SplitTextInput, SplitTextOutput>,
|
|
446
611
|
};
|
|
447
612
|
|
|
448
613
|
|