@scarn/sdk 0.0.0-stage → 0.0.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.
- package/dist/chunk-4361gxk0.js +166 -0
- package/dist/chunk-4vehh3dq.js +333 -0
- package/dist/chunk-56e4kp0a.js +162 -0
- package/dist/chunk-5mmj03ah.js +1074 -0
- package/dist/chunk-631ffb6r.js +57 -0
- package/dist/chunk-91p9vzcs.js +1453 -0
- package/dist/chunk-9s07v9r1.js +30 -0
- package/dist/chunk-b21233rt.js +78 -0
- package/dist/chunk-dnn39qt4.js +13539 -0
- package/dist/chunk-eg1hcvhb.js +300 -0
- package/dist/chunk-g0rdnn0r.js +95 -0
- package/dist/chunk-h9yxx0hd.js +116 -0
- package/dist/chunk-njd6npf0.js +35 -0
- package/dist/chunk-ny07ncb9.js +330 -0
- package/dist/chunk-p6kc9wq8.js +97 -0
- package/dist/chunk-qpw5wt1p.js +257 -0
- package/dist/chunk-rq3q8vg7.js +1094 -0
- package/dist/chunk-s0gap8r8.js +14 -0
- package/dist/chunk-tfm5hjzm.js +100 -0
- package/dist/chunk-ynk2bjae.js +1686 -0
- package/dist/chunk-zpqyjgb4.js +49 -0
- package/dist/client.d.ts +4 -0
- package/dist/client.js +57 -0
- package/dist/contracts/artifact-markers.d.ts +42 -0
- package/dist/contracts/artifact-markers.js +15 -0
- package/dist/contracts/artifacts.d.ts +67 -0
- package/dist/contracts/artifacts.js +25 -0
- package/dist/contracts/pipeline-document/built-ins.d.ts +23 -0
- package/dist/contracts/pipeline-document/conditions/operators.d.ts +8 -0
- package/dist/contracts/pipeline-document/index.d.ts +11 -0
- package/dist/contracts/pipeline-document/index.js +97 -0
- package/dist/contracts/pipeline-document/json.d.ts +35 -0
- package/dist/contracts/pipeline-document/routes.d.ts +16 -0
- package/dist/contracts/pipeline-document/schema.d.ts +780 -0
- package/dist/contracts/pipeline-document/step-contract.d.ts +11 -0
- package/dist/contracts/step-artifact-submissions.d.ts +71 -0
- package/dist/contracts/step-artifact-submissions.js +174 -0
- package/dist/defaults/atomic-json-file.d.ts +10 -0
- package/dist/defaults/auth-file.d.ts +14 -0
- package/dist/defaults/base-url.d.ts +1 -0
- package/dist/defaults/config-file.d.ts +46 -0
- package/dist/defaults/home-dir.d.ts +3 -0
- package/dist/defaults/index.d.ts +12 -0
- package/dist/defaults/index.js +1239 -0
- package/dist/defaults/legacy-config-migration.d.ts +27 -0
- package/dist/defaults/load-push-defaults.d.ts +25 -0
- package/dist/defaults/project-config.d.ts +32 -0
- package/dist/defaults/project-ref.d.ts +34 -0
- package/dist/definitions/artifacts/artifact.d.ts +62 -0
- package/dist/definitions/artifacts/index.d.ts +1 -0
- package/dist/definitions/pipelines/define-default-pipeline-assignment.d.ts +263 -0
- package/dist/definitions/pipelines/index.d.ts +3 -0
- package/dist/definitions/pipelines/index.js +24 -0
- package/dist/definitions/pipelines/pipeline-definitions-client.d.ts +208 -0
- package/dist/definitions/pipelines/work-item-fields.d.ts +93 -0
- package/dist/definitions/steps/compile-mcps.d.ts +34 -0
- package/dist/definitions/steps/define-code-step.d.ts +84 -0
- package/dist/definitions/steps/define-mcp.d.ts +79 -0
- package/dist/definitions/steps/define-step.d.ts +137 -0
- package/dist/definitions/steps/env.d.ts +136 -0
- package/dist/definitions/steps/index.d.ts +14 -0
- package/dist/definitions/steps/index.js +73 -0
- package/dist/definitions/steps/mcp-server-config.d.ts +102 -0
- package/dist/definitions/steps/prompt-template.d.ts +24 -0
- package/dist/definitions/steps/repo.d.ts +67 -0
- package/dist/definitions/steps/runtime.d.ts +115 -0
- package/dist/definitions/steps/step-definitions-client.d.ts +400 -0
- package/dist/definitions/steps/step-features.d.ts +109 -0
- package/dist/definitions/steps/step-handle.d.ts +25 -0
- package/dist/definitions/steps/step-ref.d.ts +19 -0
- package/dist/definitions/validation/index.d.ts +2 -0
- package/dist/definitions/validation/index.js +17 -0
- package/dist/definitions/validation/validate-artifact-markers.d.ts +3 -0
- package/dist/definitions/validation/validate-artifacts.d.ts +7 -0
- package/dist/definitions/validation/validate-definition-specs.d.ts +16 -0
- package/dist/definitions/validation/validate-env.d.ts +15 -0
- package/dist/definitions/validation/validate-repo.d.ts +13 -0
- package/dist/definitions/validation/validate-runtime.d.ts +12 -0
- package/dist/definitions/validation/validation-issue.d.ts +11 -0
- package/dist/devcontainer-config-path.d.ts +21 -0
- package/dist/devcontainer-config-path.js +13 -0
- package/dist/env-vars.d.ts +136 -0
- package/dist/env-vars.js +35 -0
- package/dist/eslint.d.ts +42 -0
- package/dist/eslint.js +125 -0
- package/dist/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/index.d.ts +8 -0
- package/dist/generated/client/types.gen.d.ts +117 -0
- package/dist/generated/client/utils.gen.d.ts +33 -0
- package/dist/generated/client.gen.d.ts +12 -0
- package/dist/generated/core/auth.gen.d.ts +18 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/params.gen.d.ts +43 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/core/types.gen.d.ts +78 -0
- package/dist/generated/core/utils.gen.d.ts +19 -0
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/sdk.gen.d.ts +302 -0
- package/dist/generated/types.gen.d.ts +18368 -0
- package/dist/git-url/git-remote.d.ts +30 -0
- package/dist/git-url/git-repo-identity.d.ts +44 -0
- package/dist/git-url/git-repo-identity.js +159 -0
- package/dist/git-url/parse-git-host.d.ts +23 -0
- package/dist/health-checks.d.ts +169 -0
- package/dist/health-checks.js +19 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +293 -0
- package/dist/jsonc.d.ts +3 -0
- package/dist/jsonc.js +11 -0
- package/dist/managed-runtimes.d.ts +20 -0
- package/dist/managed-runtimes.js +13 -0
- package/dist/opencode-mcp.d.ts +313 -0
- package/dist/opencode-mcp.js +29 -0
- package/dist/pipelines/chain.d.ts +7 -0
- package/dist/pipelines/compile-args.d.ts +12 -0
- package/dist/pipelines/compile-chain.d.ts +9 -0
- package/dist/pipelines/compile-checks.d.ts +16 -0
- package/dist/pipelines/compile-state.d.ts +30 -0
- package/dist/pipelines/condition-data.d.ts +78 -0
- package/dist/pipelines/conditions.d.ts +47 -0
- package/dist/pipelines/context.d.ts +16 -0
- package/dist/pipelines/define-pipeline.d.ts +32 -0
- package/dist/pipelines/each.d.ts +5 -0
- package/dist/pipelines/errors.d.ts +26 -0
- package/dist/pipelines/handles.d.ts +29 -0
- package/dist/pipelines/index.d.ts +18 -0
- package/dist/pipelines/index.js +80 -0
- package/dist/pipelines/model.d.ts +103 -0
- package/dist/pipelines/nodes.d.ts +54 -0
- package/dist/pipelines/ref-types.d.ts +54 -0
- package/dist/pipelines/refs.d.ts +80 -0
- package/dist/pipelines/registry.d.ts +12 -0
- package/dist/pipelines/source.d.ts +17 -0
- package/dist/pipelines/types.d.ts +160 -0
- package/dist/push/code-step-lookup.d.ts +32 -0
- package/dist/push/code-step-lookup.js +11 -0
- package/dist/push/collect-definitions.d.ts +70 -0
- package/dist/push/collect-pipeline-documents.d.ts +14 -0
- package/dist/push/index.d.ts +6 -0
- package/dist/push/index.js +328 -0
- package/dist/push/push-from-directory.d.ts +37 -0
- package/dist/repo-config.d.ts +80 -0
- package/dist/repo-config.js +23 -0
- package/dist/scarn-config-parser.d.ts +29 -0
- package/dist/scarn-config-parser.js +9 -0
- package/dist/task-plane-client.d.ts +489 -0
- package/dist/z.d.ts +7 -0
- package/package.json +132 -4
- package/README.md +0 -3
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The zod schema for pipeline JSON documents (schema version 1) and the JSON
|
|
3
|
+
* Schema exported from it.
|
|
4
|
+
*
|
|
5
|
+
* The schema checks structure only. Features that are in the format but not
|
|
6
|
+
* in v1 (retry delays, wait timeouts, pipeline timeouts, event/timer waits,
|
|
7
|
+
* routing to another pipeline) are accepted here and rejected by the
|
|
8
|
+
* validator, so their errors carry a clear "not supported in v1" message.
|
|
9
|
+
*/
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
import type { JsonValue } from "./json";
|
|
12
|
+
import { CONDITION_OPERATORS, COMPUTED_FUNCTIONS } from "./conditions/operators";
|
|
13
|
+
export declare const NODE_ID_PATTERN: RegExp;
|
|
14
|
+
export declare const ALIAS_PATTERN: RegExp;
|
|
15
|
+
export declare const literalSchema: z.ZodObject<{
|
|
16
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
/** An array built from references and literals, one element each. */
|
|
19
|
+
export declare const listSchema: z.ZodObject<{
|
|
20
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
21
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
22
|
+
}, z.core.$strict>]>>;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
/** A reference string, `{ "value": ... }` for a literal, or `{ "list": [...] }`. */
|
|
25
|
+
export declare const argValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
26
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
27
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
28
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
29
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
30
|
+
}, z.core.$strict>]>>;
|
|
31
|
+
}, z.core.$strict>]>;
|
|
32
|
+
export declare const computedSourceSchema: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
33
|
+
path: z.ZodString;
|
|
34
|
+
field: z.ZodOptional<z.ZodString>;
|
|
35
|
+
where: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
36
|
+
}, z.core.$strict>]>;
|
|
37
|
+
/**
|
|
38
|
+
* One condition. All keys are optional at the structural level; which
|
|
39
|
+
* combinations are allowed (one left side, `value` xor `ref`, `where` only
|
|
40
|
+
* with list operators, ...) is checked by the refinement below so errors
|
|
41
|
+
* point at the exact key instead of an opaque union failure.
|
|
42
|
+
*/
|
|
43
|
+
export interface Condition {
|
|
44
|
+
all?: Condition[];
|
|
45
|
+
any?: Condition[];
|
|
46
|
+
not?: Condition;
|
|
47
|
+
path?: string;
|
|
48
|
+
sum?: ComputedSource;
|
|
49
|
+
avg?: ComputedSource;
|
|
50
|
+
min?: ComputedSource;
|
|
51
|
+
max?: ComputedSource;
|
|
52
|
+
count?: ComputedSource;
|
|
53
|
+
weights?: number[];
|
|
54
|
+
op?: ConditionOperator;
|
|
55
|
+
value?: JsonValue;
|
|
56
|
+
ref?: string;
|
|
57
|
+
where?: Condition;
|
|
58
|
+
}
|
|
59
|
+
export type ComputedSource = string[] | {
|
|
60
|
+
path: string;
|
|
61
|
+
field?: string;
|
|
62
|
+
where?: Condition;
|
|
63
|
+
};
|
|
64
|
+
export type ConditionOperator = (typeof CONDITION_OPERATORS)[number];
|
|
65
|
+
export type ComputedFunction = (typeof COMPUTED_FUNCTIONS)[number];
|
|
66
|
+
export declare const conditionSchema: z.ZodType<Condition>;
|
|
67
|
+
export declare const toleratedFailuresSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
68
|
+
count: z.ZodInt;
|
|
69
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
70
|
+
percent: z.ZodNumber;
|
|
71
|
+
}, z.core.$strict>]>;
|
|
72
|
+
export declare const eachSchema: z.ZodObject<{
|
|
73
|
+
over: z.ZodString;
|
|
74
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
75
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
76
|
+
count: z.ZodInt;
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
+
percent: z.ZodNumber;
|
|
79
|
+
}, z.core.$strict>]>>;
|
|
80
|
+
}, z.core.$strict>;
|
|
81
|
+
export declare const routeSchema: z.ZodObject<{
|
|
82
|
+
when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
83
|
+
to: z.ZodString;
|
|
84
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
85
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
86
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
87
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
88
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
89
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
90
|
+
}, z.core.$strict>]>>;
|
|
91
|
+
}, z.core.$strict>]>>>;
|
|
92
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
over: z.ZodString;
|
|
94
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
95
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
96
|
+
count: z.ZodInt;
|
|
97
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
98
|
+
percent: z.ZodNumber;
|
|
99
|
+
}, z.core.$strict>]>>;
|
|
100
|
+
}, z.core.$strict>>;
|
|
101
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
102
|
+
}, z.core.$strict>;
|
|
103
|
+
/** The route taken when no route matched. It has no `when`. */
|
|
104
|
+
export declare const otherwiseSchema: z.ZodObject<{
|
|
105
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
106
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
107
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
108
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
109
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
110
|
+
}, z.core.$strict>]>>;
|
|
111
|
+
}, z.core.$strict>]>>>;
|
|
112
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
over: z.ZodString;
|
|
114
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
115
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
116
|
+
count: z.ZodInt;
|
|
117
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
118
|
+
percent: z.ZodNumber;
|
|
119
|
+
}, z.core.$strict>]>>;
|
|
120
|
+
}, z.core.$strict>>;
|
|
121
|
+
to: z.ZodString;
|
|
122
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
123
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strict>;
|
|
125
|
+
/** The pipeline's first route. It can't split or merge. */
|
|
126
|
+
export declare const startSchema: z.ZodObject<{
|
|
127
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
128
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
129
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
130
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
131
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
132
|
+
}, z.core.$strict>]>>;
|
|
133
|
+
}, z.core.$strict>]>>>;
|
|
134
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
over: z.ZodString;
|
|
136
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
137
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
138
|
+
count: z.ZodInt;
|
|
139
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
140
|
+
percent: z.ZodNumber;
|
|
141
|
+
}, z.core.$strict>]>>;
|
|
142
|
+
}, z.core.$strict>>;
|
|
143
|
+
when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
144
|
+
to: z.ZodString;
|
|
145
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, z.core.$strict>;
|
|
147
|
+
/**
|
|
148
|
+
* How a node picks its routes: `"first"` (the default) takes the first
|
|
149
|
+
* match, `"all"` takes every match, each as a lane.
|
|
150
|
+
*/
|
|
151
|
+
export declare const MATCH_MODES: readonly ["first", "all"];
|
|
152
|
+
export declare const nextSchema: z.ZodObject<{
|
|
153
|
+
match: z.ZodOptional<z.ZodEnum<{
|
|
154
|
+
all: "all";
|
|
155
|
+
first: "first";
|
|
156
|
+
}>>;
|
|
157
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
158
|
+
when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
159
|
+
to: z.ZodString;
|
|
160
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
161
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
162
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
163
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
164
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
165
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
166
|
+
}, z.core.$strict>]>>;
|
|
167
|
+
}, z.core.$strict>]>>>;
|
|
168
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
over: z.ZodString;
|
|
170
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
171
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
172
|
+
count: z.ZodInt;
|
|
173
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
174
|
+
percent: z.ZodNumber;
|
|
175
|
+
}, z.core.$strict>]>>;
|
|
176
|
+
}, z.core.$strict>>;
|
|
177
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
178
|
+
}, z.core.$strict>>;
|
|
179
|
+
otherwise: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
181
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
183
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
184
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
185
|
+
}, z.core.$strict>]>>;
|
|
186
|
+
}, z.core.$strict>]>>>;
|
|
187
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
over: z.ZodString;
|
|
189
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
190
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
191
|
+
count: z.ZodInt;
|
|
192
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
193
|
+
percent: z.ZodNumber;
|
|
194
|
+
}, z.core.$strict>]>>;
|
|
195
|
+
}, z.core.$strict>>;
|
|
196
|
+
to: z.ZodString;
|
|
197
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
198
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strict>>;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
export declare const retrySchema: z.ZodObject<{
|
|
202
|
+
on: z.ZodArray<z.ZodString>;
|
|
203
|
+
maxAttempts: z.ZodInt;
|
|
204
|
+
intervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
backoffRate: z.ZodOptional<z.ZodNumber>;
|
|
206
|
+
maxDelaySeconds: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
}, z.core.$strict>;
|
|
208
|
+
export declare const catchSchema: z.ZodObject<{
|
|
209
|
+
on: z.ZodArray<z.ZodString>;
|
|
210
|
+
to: z.ZodString;
|
|
211
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
212
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
213
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
214
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
215
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
216
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
217
|
+
}, z.core.$strict>]>>;
|
|
218
|
+
}, z.core.$strict>]>>>;
|
|
219
|
+
}, z.core.$strict>;
|
|
220
|
+
export declare const stepNodeSchema: z.ZodObject<{
|
|
221
|
+
kind: z.ZodLiteral<"step">;
|
|
222
|
+
title: z.ZodOptional<z.ZodString>;
|
|
223
|
+
step: z.ZodString;
|
|
224
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
match: z.ZodOptional<z.ZodEnum<{
|
|
226
|
+
all: "all";
|
|
227
|
+
first: "first";
|
|
228
|
+
}>>;
|
|
229
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
230
|
+
when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
231
|
+
to: z.ZodString;
|
|
232
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
233
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
234
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
235
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
236
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
237
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
238
|
+
}, z.core.$strict>]>>;
|
|
239
|
+
}, z.core.$strict>]>>>;
|
|
240
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
over: z.ZodString;
|
|
242
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
243
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
244
|
+
count: z.ZodInt;
|
|
245
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
246
|
+
percent: z.ZodNumber;
|
|
247
|
+
}, z.core.$strict>]>>;
|
|
248
|
+
}, z.core.$strict>>;
|
|
249
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
250
|
+
}, z.core.$strict>>;
|
|
251
|
+
otherwise: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
253
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
255
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
256
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
257
|
+
}, z.core.$strict>]>>;
|
|
258
|
+
}, z.core.$strict>]>>>;
|
|
259
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
260
|
+
over: z.ZodString;
|
|
261
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
262
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
263
|
+
count: z.ZodInt;
|
|
264
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
265
|
+
percent: z.ZodNumber;
|
|
266
|
+
}, z.core.$strict>]>>;
|
|
267
|
+
}, z.core.$strict>>;
|
|
268
|
+
to: z.ZodString;
|
|
269
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
270
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, z.core.$strict>>;
|
|
272
|
+
}, z.core.$strict>>;
|
|
273
|
+
retry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
274
|
+
on: z.ZodArray<z.ZodString>;
|
|
275
|
+
maxAttempts: z.ZodInt;
|
|
276
|
+
intervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
277
|
+
backoffRate: z.ZodOptional<z.ZodNumber>;
|
|
278
|
+
maxDelaySeconds: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
}, z.core.$strict>>>;
|
|
280
|
+
catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
281
|
+
on: z.ZodArray<z.ZodString>;
|
|
282
|
+
to: z.ZodString;
|
|
283
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
284
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
285
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
286
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
287
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
288
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
289
|
+
}, z.core.$strict>]>>;
|
|
290
|
+
}, z.core.$strict>]>>>;
|
|
291
|
+
}, z.core.$strict>>>;
|
|
292
|
+
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
293
|
+
heartbeatSeconds: z.ZodOptional<z.ZodInt>;
|
|
294
|
+
maxRuns: z.ZodOptional<z.ZodInt>;
|
|
295
|
+
maxTurns: z.ZodOptional<z.ZodInt>;
|
|
296
|
+
}, z.core.$strict>;
|
|
297
|
+
/** A step node's `maxTurns` when the document leaves it out. */
|
|
298
|
+
export declare const DEFAULT_MAX_TURNS = 2;
|
|
299
|
+
/** Whether a decision action needs a body. A missing `body` means `"optional"`. */
|
|
300
|
+
export declare const DECISION_BODY_MODES: readonly ["optional", "required"];
|
|
301
|
+
/** One choice a `decision` wait offers, in button order. */
|
|
302
|
+
export declare const decisionActionSchema: z.ZodObject<{
|
|
303
|
+
key: z.ZodString;
|
|
304
|
+
label: z.ZodString;
|
|
305
|
+
body: z.ZodOptional<z.ZodEnum<{
|
|
306
|
+
required: "required";
|
|
307
|
+
optional: "optional";
|
|
308
|
+
}>>;
|
|
309
|
+
}, z.core.$strict>;
|
|
310
|
+
export declare const waitNodeSchema: z.ZodObject<{
|
|
311
|
+
kind: z.ZodLiteral<"wait">;
|
|
312
|
+
title: z.ZodOptional<z.ZodString>;
|
|
313
|
+
for: z.ZodEnum<{
|
|
314
|
+
event: "event";
|
|
315
|
+
decision: "decision";
|
|
316
|
+
reply: "reply";
|
|
317
|
+
timer: "timer";
|
|
318
|
+
}>;
|
|
319
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
320
|
+
key: z.ZodString;
|
|
321
|
+
label: z.ZodString;
|
|
322
|
+
body: z.ZodOptional<z.ZodEnum<{
|
|
323
|
+
required: "required";
|
|
324
|
+
optional: "optional";
|
|
325
|
+
}>>;
|
|
326
|
+
}, z.core.$strict>>>;
|
|
327
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
328
|
+
match: z.ZodOptional<z.ZodEnum<{
|
|
329
|
+
all: "all";
|
|
330
|
+
first: "first";
|
|
331
|
+
}>>;
|
|
332
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
333
|
+
when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
334
|
+
to: z.ZodString;
|
|
335
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
336
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
337
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
338
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
339
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
340
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
341
|
+
}, z.core.$strict>]>>;
|
|
342
|
+
}, z.core.$strict>]>>>;
|
|
343
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
344
|
+
over: z.ZodString;
|
|
345
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
346
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
347
|
+
count: z.ZodInt;
|
|
348
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
349
|
+
percent: z.ZodNumber;
|
|
350
|
+
}, z.core.$strict>]>>;
|
|
351
|
+
}, z.core.$strict>>;
|
|
352
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
353
|
+
}, z.core.$strict>>;
|
|
354
|
+
otherwise: z.ZodOptional<z.ZodObject<{
|
|
355
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
356
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
357
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
358
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
359
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
360
|
+
}, z.core.$strict>]>>;
|
|
361
|
+
}, z.core.$strict>]>>>;
|
|
362
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
363
|
+
over: z.ZodString;
|
|
364
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
365
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
366
|
+
count: z.ZodInt;
|
|
367
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
368
|
+
percent: z.ZodNumber;
|
|
369
|
+
}, z.core.$strict>]>>;
|
|
370
|
+
}, z.core.$strict>>;
|
|
371
|
+
to: z.ZodString;
|
|
372
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
373
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
374
|
+
}, z.core.$strict>>;
|
|
375
|
+
}, z.core.$strict>>;
|
|
376
|
+
catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
377
|
+
on: z.ZodArray<z.ZodString>;
|
|
378
|
+
to: z.ZodString;
|
|
379
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
380
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
381
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
382
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
383
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
384
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
385
|
+
}, z.core.$strict>]>>;
|
|
386
|
+
}, z.core.$strict>]>>>;
|
|
387
|
+
}, z.core.$strict>>>;
|
|
388
|
+
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
389
|
+
maxRuns: z.ZodOptional<z.ZodInt>;
|
|
390
|
+
}, z.core.$strict>;
|
|
391
|
+
export declare const succeedNodeSchema: z.ZodObject<{
|
|
392
|
+
kind: z.ZodLiteral<"succeed">;
|
|
393
|
+
title: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, z.core.$strict>;
|
|
395
|
+
export declare const failNodeSchema: z.ZodObject<{
|
|
396
|
+
kind: z.ZodLiteral<"fail">;
|
|
397
|
+
title: z.ZodOptional<z.ZodString>;
|
|
398
|
+
error: z.ZodOptional<z.ZodString>;
|
|
399
|
+
cause: z.ZodOptional<z.ZodString>;
|
|
400
|
+
}, z.core.$strict>;
|
|
401
|
+
export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
402
|
+
kind: z.ZodLiteral<"step">;
|
|
403
|
+
title: z.ZodOptional<z.ZodString>;
|
|
404
|
+
step: z.ZodString;
|
|
405
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
406
|
+
match: z.ZodOptional<z.ZodEnum<{
|
|
407
|
+
all: "all";
|
|
408
|
+
first: "first";
|
|
409
|
+
}>>;
|
|
410
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
411
|
+
when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
412
|
+
to: z.ZodString;
|
|
413
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
414
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
415
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
416
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
417
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
418
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
419
|
+
}, z.core.$strict>]>>;
|
|
420
|
+
}, z.core.$strict>]>>>;
|
|
421
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
422
|
+
over: z.ZodString;
|
|
423
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
424
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
425
|
+
count: z.ZodInt;
|
|
426
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
427
|
+
percent: z.ZodNumber;
|
|
428
|
+
}, z.core.$strict>]>>;
|
|
429
|
+
}, z.core.$strict>>;
|
|
430
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
431
|
+
}, z.core.$strict>>;
|
|
432
|
+
otherwise: z.ZodOptional<z.ZodObject<{
|
|
433
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
434
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
435
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
436
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
437
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
438
|
+
}, z.core.$strict>]>>;
|
|
439
|
+
}, z.core.$strict>]>>>;
|
|
440
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
441
|
+
over: z.ZodString;
|
|
442
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
443
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
444
|
+
count: z.ZodInt;
|
|
445
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
446
|
+
percent: z.ZodNumber;
|
|
447
|
+
}, z.core.$strict>]>>;
|
|
448
|
+
}, z.core.$strict>>;
|
|
449
|
+
to: z.ZodString;
|
|
450
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
451
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
452
|
+
}, z.core.$strict>>;
|
|
453
|
+
}, z.core.$strict>>;
|
|
454
|
+
retry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
455
|
+
on: z.ZodArray<z.ZodString>;
|
|
456
|
+
maxAttempts: z.ZodInt;
|
|
457
|
+
intervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
458
|
+
backoffRate: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
maxDelaySeconds: z.ZodOptional<z.ZodNumber>;
|
|
460
|
+
}, z.core.$strict>>>;
|
|
461
|
+
catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
462
|
+
on: z.ZodArray<z.ZodString>;
|
|
463
|
+
to: z.ZodString;
|
|
464
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
465
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
466
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
467
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
468
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
469
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
470
|
+
}, z.core.$strict>]>>;
|
|
471
|
+
}, z.core.$strict>]>>>;
|
|
472
|
+
}, z.core.$strict>>>;
|
|
473
|
+
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
474
|
+
heartbeatSeconds: z.ZodOptional<z.ZodInt>;
|
|
475
|
+
maxRuns: z.ZodOptional<z.ZodInt>;
|
|
476
|
+
maxTurns: z.ZodOptional<z.ZodInt>;
|
|
477
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
478
|
+
kind: z.ZodLiteral<"wait">;
|
|
479
|
+
title: z.ZodOptional<z.ZodString>;
|
|
480
|
+
for: z.ZodEnum<{
|
|
481
|
+
event: "event";
|
|
482
|
+
decision: "decision";
|
|
483
|
+
reply: "reply";
|
|
484
|
+
timer: "timer";
|
|
485
|
+
}>;
|
|
486
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
487
|
+
key: z.ZodString;
|
|
488
|
+
label: z.ZodString;
|
|
489
|
+
body: z.ZodOptional<z.ZodEnum<{
|
|
490
|
+
required: "required";
|
|
491
|
+
optional: "optional";
|
|
492
|
+
}>>;
|
|
493
|
+
}, z.core.$strict>>>;
|
|
494
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
495
|
+
match: z.ZodOptional<z.ZodEnum<{
|
|
496
|
+
all: "all";
|
|
497
|
+
first: "first";
|
|
498
|
+
}>>;
|
|
499
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
500
|
+
when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
501
|
+
to: z.ZodString;
|
|
502
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
503
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
504
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
505
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
506
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
507
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
508
|
+
}, z.core.$strict>]>>;
|
|
509
|
+
}, z.core.$strict>]>>>;
|
|
510
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
511
|
+
over: z.ZodString;
|
|
512
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
513
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
514
|
+
count: z.ZodInt;
|
|
515
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
516
|
+
percent: z.ZodNumber;
|
|
517
|
+
}, z.core.$strict>]>>;
|
|
518
|
+
}, z.core.$strict>>;
|
|
519
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
520
|
+
}, z.core.$strict>>;
|
|
521
|
+
otherwise: z.ZodOptional<z.ZodObject<{
|
|
522
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
523
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
524
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
525
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
526
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
527
|
+
}, z.core.$strict>]>>;
|
|
528
|
+
}, z.core.$strict>]>>>;
|
|
529
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
530
|
+
over: z.ZodString;
|
|
531
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
532
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
533
|
+
count: z.ZodInt;
|
|
534
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
535
|
+
percent: z.ZodNumber;
|
|
536
|
+
}, z.core.$strict>]>>;
|
|
537
|
+
}, z.core.$strict>>;
|
|
538
|
+
to: z.ZodString;
|
|
539
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
540
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
541
|
+
}, z.core.$strict>>;
|
|
542
|
+
}, z.core.$strict>>;
|
|
543
|
+
catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
544
|
+
on: z.ZodArray<z.ZodString>;
|
|
545
|
+
to: z.ZodString;
|
|
546
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
547
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
548
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
549
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
550
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
551
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
552
|
+
}, z.core.$strict>]>>;
|
|
553
|
+
}, z.core.$strict>]>>>;
|
|
554
|
+
}, z.core.$strict>>>;
|
|
555
|
+
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
556
|
+
maxRuns: z.ZodOptional<z.ZodInt>;
|
|
557
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
558
|
+
kind: z.ZodLiteral<"succeed">;
|
|
559
|
+
title: z.ZodOptional<z.ZodString>;
|
|
560
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
561
|
+
kind: z.ZodLiteral<"fail">;
|
|
562
|
+
title: z.ZodOptional<z.ZodString>;
|
|
563
|
+
error: z.ZodOptional<z.ZodString>;
|
|
564
|
+
cause: z.ZodOptional<z.ZodString>;
|
|
565
|
+
}, z.core.$strict>], "kind">;
|
|
566
|
+
export declare const pipelineDocumentSchema: z.ZodObject<{
|
|
567
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
568
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
569
|
+
key: z.ZodString;
|
|
570
|
+
title: z.ZodOptional<z.ZodString>;
|
|
571
|
+
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
572
|
+
workItemFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
573
|
+
start: z.ZodObject<{
|
|
574
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
575
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
576
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
577
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
578
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
579
|
+
}, z.core.$strict>]>>;
|
|
580
|
+
}, z.core.$strict>]>>>;
|
|
581
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
582
|
+
over: z.ZodString;
|
|
583
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
584
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
585
|
+
count: z.ZodInt;
|
|
586
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
587
|
+
percent: z.ZodNumber;
|
|
588
|
+
}, z.core.$strict>]>>;
|
|
589
|
+
}, z.core.$strict>>;
|
|
590
|
+
when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
591
|
+
to: z.ZodString;
|
|
592
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, z.core.$strict>;
|
|
594
|
+
nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
595
|
+
kind: z.ZodLiteral<"step">;
|
|
596
|
+
title: z.ZodOptional<z.ZodString>;
|
|
597
|
+
step: z.ZodString;
|
|
598
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
599
|
+
match: z.ZodOptional<z.ZodEnum<{
|
|
600
|
+
all: "all";
|
|
601
|
+
first: "first";
|
|
602
|
+
}>>;
|
|
603
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
604
|
+
when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
605
|
+
to: z.ZodString;
|
|
606
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
607
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
608
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
609
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
610
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
611
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
612
|
+
}, z.core.$strict>]>>;
|
|
613
|
+
}, z.core.$strict>]>>>;
|
|
614
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
615
|
+
over: z.ZodString;
|
|
616
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
617
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
618
|
+
count: z.ZodInt;
|
|
619
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
620
|
+
percent: z.ZodNumber;
|
|
621
|
+
}, z.core.$strict>]>>;
|
|
622
|
+
}, z.core.$strict>>;
|
|
623
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
624
|
+
}, z.core.$strict>>;
|
|
625
|
+
otherwise: z.ZodOptional<z.ZodObject<{
|
|
626
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
627
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
628
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
629
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
630
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
631
|
+
}, z.core.$strict>]>>;
|
|
632
|
+
}, z.core.$strict>]>>>;
|
|
633
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
634
|
+
over: z.ZodString;
|
|
635
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
636
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
637
|
+
count: z.ZodInt;
|
|
638
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
639
|
+
percent: z.ZodNumber;
|
|
640
|
+
}, z.core.$strict>]>>;
|
|
641
|
+
}, z.core.$strict>>;
|
|
642
|
+
to: z.ZodString;
|
|
643
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
644
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
645
|
+
}, z.core.$strict>>;
|
|
646
|
+
}, z.core.$strict>>;
|
|
647
|
+
retry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
648
|
+
on: z.ZodArray<z.ZodString>;
|
|
649
|
+
maxAttempts: z.ZodInt;
|
|
650
|
+
intervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
651
|
+
backoffRate: z.ZodOptional<z.ZodNumber>;
|
|
652
|
+
maxDelaySeconds: z.ZodOptional<z.ZodNumber>;
|
|
653
|
+
}, z.core.$strict>>>;
|
|
654
|
+
catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
655
|
+
on: z.ZodArray<z.ZodString>;
|
|
656
|
+
to: z.ZodString;
|
|
657
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
658
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
659
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
660
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
661
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
662
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
663
|
+
}, z.core.$strict>]>>;
|
|
664
|
+
}, z.core.$strict>]>>>;
|
|
665
|
+
}, z.core.$strict>>>;
|
|
666
|
+
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
667
|
+
heartbeatSeconds: z.ZodOptional<z.ZodInt>;
|
|
668
|
+
maxRuns: z.ZodOptional<z.ZodInt>;
|
|
669
|
+
maxTurns: z.ZodOptional<z.ZodInt>;
|
|
670
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
671
|
+
kind: z.ZodLiteral<"wait">;
|
|
672
|
+
title: z.ZodOptional<z.ZodString>;
|
|
673
|
+
for: z.ZodEnum<{
|
|
674
|
+
event: "event";
|
|
675
|
+
decision: "decision";
|
|
676
|
+
reply: "reply";
|
|
677
|
+
timer: "timer";
|
|
678
|
+
}>;
|
|
679
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
680
|
+
key: z.ZodString;
|
|
681
|
+
label: z.ZodString;
|
|
682
|
+
body: z.ZodOptional<z.ZodEnum<{
|
|
683
|
+
required: "required";
|
|
684
|
+
optional: "optional";
|
|
685
|
+
}>>;
|
|
686
|
+
}, z.core.$strict>>>;
|
|
687
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
688
|
+
match: z.ZodOptional<z.ZodEnum<{
|
|
689
|
+
all: "all";
|
|
690
|
+
first: "first";
|
|
691
|
+
}>>;
|
|
692
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
693
|
+
when: z.ZodOptional<z.ZodType<Condition, unknown, z.core.$ZodTypeInternals<Condition, unknown>>>;
|
|
694
|
+
to: z.ZodString;
|
|
695
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
696
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
697
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
698
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
699
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
700
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
701
|
+
}, z.core.$strict>]>>;
|
|
702
|
+
}, z.core.$strict>]>>>;
|
|
703
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
704
|
+
over: z.ZodString;
|
|
705
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
706
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
707
|
+
count: z.ZodInt;
|
|
708
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
709
|
+
percent: z.ZodNumber;
|
|
710
|
+
}, z.core.$strict>]>>;
|
|
711
|
+
}, z.core.$strict>>;
|
|
712
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
713
|
+
}, z.core.$strict>>;
|
|
714
|
+
otherwise: z.ZodOptional<z.ZodObject<{
|
|
715
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
716
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
717
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
718
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
719
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
720
|
+
}, z.core.$strict>]>>;
|
|
721
|
+
}, z.core.$strict>]>>>;
|
|
722
|
+
each: z.ZodOptional<z.ZodObject<{
|
|
723
|
+
over: z.ZodString;
|
|
724
|
+
maxConcurrency: z.ZodOptional<z.ZodInt>;
|
|
725
|
+
toleratedFailures: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
726
|
+
count: z.ZodInt;
|
|
727
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
728
|
+
percent: z.ZodNumber;
|
|
729
|
+
}, z.core.$strict>]>>;
|
|
730
|
+
}, z.core.$strict>>;
|
|
731
|
+
to: z.ZodString;
|
|
732
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
733
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
734
|
+
}, z.core.$strict>>;
|
|
735
|
+
}, z.core.$strict>>;
|
|
736
|
+
catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
737
|
+
on: z.ZodArray<z.ZodString>;
|
|
738
|
+
to: z.ZodString;
|
|
739
|
+
pipeline: z.ZodOptional<z.ZodString>;
|
|
740
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
741
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
742
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
743
|
+
list: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
744
|
+
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
745
|
+
}, z.core.$strict>]>>;
|
|
746
|
+
}, z.core.$strict>]>>>;
|
|
747
|
+
}, z.core.$strict>>>;
|
|
748
|
+
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
749
|
+
maxRuns: z.ZodOptional<z.ZodInt>;
|
|
750
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
751
|
+
kind: z.ZodLiteral<"succeed">;
|
|
752
|
+
title: z.ZodOptional<z.ZodString>;
|
|
753
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
754
|
+
kind: z.ZodLiteral<"fail">;
|
|
755
|
+
title: z.ZodOptional<z.ZodString>;
|
|
756
|
+
error: z.ZodOptional<z.ZodString>;
|
|
757
|
+
cause: z.ZodOptional<z.ZodString>;
|
|
758
|
+
}, z.core.$strict>], "kind">>;
|
|
759
|
+
}, z.core.$strict>;
|
|
760
|
+
export type ArgValue = z.infer<typeof argValueSchema>;
|
|
761
|
+
export type ListArg = z.infer<typeof listSchema>;
|
|
762
|
+
export type Each = z.infer<typeof eachSchema>;
|
|
763
|
+
export type ToleratedFailures = z.infer<typeof toleratedFailuresSchema>;
|
|
764
|
+
export type Route = z.infer<typeof routeSchema>;
|
|
765
|
+
export type Otherwise = z.infer<typeof otherwiseSchema>;
|
|
766
|
+
export type Start = z.infer<typeof startSchema>;
|
|
767
|
+
export type Next = z.infer<typeof nextSchema>;
|
|
768
|
+
export type MatchMode = (typeof MATCH_MODES)[number];
|
|
769
|
+
export type Retry = z.infer<typeof retrySchema>;
|
|
770
|
+
export type Catch = z.infer<typeof catchSchema>;
|
|
771
|
+
export type StepNode = z.infer<typeof stepNodeSchema>;
|
|
772
|
+
export type WaitNode = z.infer<typeof waitNodeSchema>;
|
|
773
|
+
export type DecisionAction = z.infer<typeof decisionActionSchema>;
|
|
774
|
+
export type DecisionBody = (typeof DECISION_BODY_MODES)[number];
|
|
775
|
+
export type SucceedNode = z.infer<typeof succeedNodeSchema>;
|
|
776
|
+
export type FailNode = z.infer<typeof failNodeSchema>;
|
|
777
|
+
export type PipelineNode = z.infer<typeof nodeSchema>;
|
|
778
|
+
export type PipelineDocument = z.infer<typeof pipelineDocumentSchema>;
|
|
779
|
+
/** The JSON Schema for pipeline documents, for editors and external tools. */
|
|
780
|
+
export declare function pipelineDocumentJsonSchema(): Record<string, unknown>;
|