@scarn/sdk 0.8.18 → 0.8.20

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 (35) hide show
  1. package/dist/automations/index.js +5 -5
  2. package/dist/{chunk-61jf8b6s.js → chunk-5dny5jg1.js} +11 -1
  3. package/dist/{chunk-ymywp5ht.js → chunk-91f5gm5z.js} +1 -1
  4. package/dist/{chunk-p1fs73bd.js → chunk-a56zc4s5.js} +1 -1
  5. package/dist/{chunk-evb3hw48.js → chunk-b9ja6ss5.js} +6 -3
  6. package/dist/{chunk-2tmrw253.js → chunk-g4j5cfpc.js} +1 -1
  7. package/dist/{chunk-9we3vqsv.js → chunk-habmdf89.js} +2 -2
  8. package/dist/{chunk-x0hjhqrf.js → chunk-mp2rqtcj.js} +1 -1
  9. package/dist/{chunk-mmy80pec.js → chunk-n3ywwx7n.js} +1 -1
  10. package/dist/{chunk-3zp2qtf8.js → chunk-rq5k7m33.js} +10 -0
  11. package/dist/{chunk-tvjcfh6s.js → chunk-tr3v83cn.js} +1 -1
  12. package/dist/{chunk-jj9pezwb.js → chunk-xqfj56m9.js} +43 -3
  13. package/dist/{chunk-833ef6dg.js → chunk-yq0sf8sb.js} +2 -2
  14. package/dist/{chunk-aknfw08j.js → chunk-z4smq8qd.js} +15 -12
  15. package/dist/client.js +2 -2
  16. package/dist/contracts/automation-document/index.js +2 -2
  17. package/dist/contracts/pipeline-document/index.js +4 -2
  18. package/dist/contracts/pipeline-document/routes.d.ts +9 -0
  19. package/dist/contracts/pipeline-document/schema.d.ts +40 -1
  20. package/dist/defaults/index.js +2 -2
  21. package/dist/definitions/automations/index.js +2 -2
  22. package/dist/definitions/environments/index.js +2 -2
  23. package/dist/definitions/pipelines/index.js +2 -2
  24. package/dist/definitions/steps/index.js +3 -3
  25. package/dist/generated/index.d.ts +1 -1
  26. package/dist/generated/sdk.gen.d.ts +7 -3
  27. package/dist/generated/types.gen.d.ts +349 -0
  28. package/dist/index.js +11 -11
  29. package/dist/pipelines/index.d.ts +1 -1
  30. package/dist/pipelines/index.js +5 -5
  31. package/dist/pipelines/model.d.ts +10 -4
  32. package/dist/pipelines/types.d.ts +13 -1
  33. package/dist/push/index.js +6 -6
  34. package/dist/task-plane-client.d.ts +8 -0
  35. package/package.json +1 -1
@@ -4,11 +4,11 @@ import {
4
4
  defineAutomation,
5
5
  onEvent,
6
6
  skip
7
- } from "../chunk-9we3vqsv.js";
8
- import"../chunk-x0hjhqrf.js";
9
- import"../chunk-p1fs73bd.js";
10
- import"../chunk-61jf8b6s.js";
11
- import"../chunk-evb3hw48.js";
7
+ } from "../chunk-habmdf89.js";
8
+ import"../chunk-mp2rqtcj.js";
9
+ import"../chunk-a56zc4s5.js";
10
+ import"../chunk-5dny5jg1.js";
11
+ import"../chunk-b9ja6ss5.js";
12
12
  import"../chunk-y11p1q7r.js";
13
13
  import"../chunk-01nfqm18.js";
14
14
  import"../chunk-yf15kdte.js";
@@ -50,4 +50,14 @@ function routeAt(next, kind, index) {
50
50
  }
51
51
  return kind === "otherwise" ? next.otherwise : next.routes[index];
52
52
  }
53
- export { isJsonObject, jsonPointer, deepEqual, routeEntries, routeAt };
53
+ function isRouteOverridable(next, transition) {
54
+ const route = routeAt(next, transition.kind, transition.index);
55
+ if (next === undefined || route === undefined) {
56
+ return false;
57
+ }
58
+ if (transition.kind === "route" && next.match === "all" && next.routes[transition.index]?.when === undefined) {
59
+ return false;
60
+ }
61
+ return route.overridable ?? next.overridable ?? false;
62
+ }
63
+ export { isJsonObject, jsonPointer, deepEqual, routeEntries, routeAt, isRouteOverridable };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  PipelineDefinitions,
4
4
  createClient
5
- } from "./chunk-3zp2qtf8.js";
5
+ } from "./chunk-rq5k7m33.js";
6
6
  import {
7
7
  exports_external
8
8
  } from "./chunk-yf15kdte.js";
@@ -3,7 +3,7 @@ import {
3
3
  MATCH_MODES,
4
4
  argValueSchema,
5
5
  conditionSchema
6
- } from "./chunk-evb3hw48.js";
6
+ } from "./chunk-b9ja6ss5.js";
7
7
  import {
8
8
  exports_external
9
9
  } from "./chunk-yf15kdte.js";
@@ -177,7 +177,9 @@ var routeShape = {
177
177
  pipeline: exports_external.string().min(1).optional(),
178
178
  args: exports_external.record(exports_external.string().min(1), argValueSchema).optional(),
179
179
  each: eachSchema.optional(),
180
- partial: exports_external.literal(true).optional()
180
+ partial: exports_external.literal(true).optional(),
181
+ label: exports_external.string().min(1).max(80).optional(),
182
+ overridable: exports_external.literal(true).optional()
181
183
  };
182
184
  function noPartialWithEach(route, ctx) {
183
185
  if (route.each !== undefined && route.partial !== undefined) {
@@ -190,12 +192,13 @@ function noPartialWithEach(route, ctx) {
190
192
  }
191
193
  var routeSchema = exports_external.strictObject(routeShape).superRefine(noPartialWithEach);
192
194
  var otherwiseSchema = exports_external.strictObject(routeShape).omit({ when: true }).superRefine(noPartialWithEach);
193
- var startSchema = exports_external.strictObject(routeShape).omit({ partial: true });
195
+ var startSchema = exports_external.strictObject(routeShape).omit({ partial: true, label: true, overridable: true });
194
196
  var MATCH_MODES = ["first", "all"];
195
197
  var nextSchema = exports_external.strictObject({
196
198
  match: exports_external.enum(MATCH_MODES).optional(),
197
199
  routes: exports_external.array(routeSchema).min(1),
198
- otherwise: otherwiseSchema.optional()
200
+ otherwise: otherwiseSchema.optional(),
201
+ overridable: exports_external.literal(true).optional()
199
202
  });
200
203
  var retrySchema = exports_external.strictObject({
201
204
  on: exports_external.array(exports_external.string().min(1)).min(1),
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Automations,
4
4
  createClient
5
- } from "./chunk-3zp2qtf8.js";
5
+ } from "./chunk-rq5k7m33.js";
6
6
  import {
7
7
  exports_external
8
8
  } from "./chunk-yf15kdte.js";
@@ -11,11 +11,11 @@ import {
11
11
  rootPlaceholder,
12
12
  withOwners,
13
13
  withTracker
14
- } from "./chunk-x0hjhqrf.js";
14
+ } from "./chunk-mp2rqtcj.js";
15
15
  import {
16
16
  eventHasChild,
17
17
  scopeOfEvent
18
- } from "./chunk-p1fs73bd.js";
18
+ } from "./chunk-a56zc4s5.js";
19
19
  import {
20
20
  AuthoringError,
21
21
  PipelineBuildError,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  jsonPointer
4
- } from "./chunk-61jf8b6s.js";
4
+ } from "./chunk-5dny5jg1.js";
5
5
  import {
6
6
  AuthoringError,
7
7
  captureSite
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Environments,
4
4
  createClient
5
- } from "./chunk-3zp2qtf8.js";
5
+ } from "./chunk-rq5k7m33.js";
6
6
  import {
7
7
  exports_external
8
8
  } from "./chunk-yf15kdte.js";
@@ -1268,6 +1268,16 @@ class PipelineExecutions extends HeyApiClient {
1268
1268
  rerunPipelineExecutionVisit(options) {
1269
1269
  return (options.client ?? this.client).post({ url: "/api/pipeline-executions/{pipelineExecutionId}/visits/{visitId}/rerun", ...options });
1270
1270
  }
1271
+ overrulePipelineExecutionRoute(options) {
1272
+ return (options.client ?? this.client).post({
1273
+ url: "/api/pipeline-executions/{pipelineExecutionId}/visits/{visitId}/route",
1274
+ ...options,
1275
+ headers: {
1276
+ "Content-Type": "application/json",
1277
+ ...options.headers
1278
+ }
1279
+ });
1280
+ }
1271
1281
  answerQuestion(options) {
1272
1282
  return (options.client ?? this.client).post({
1273
1283
  url: "/api/pipeline-executions/{pipelineExecutionId}/questions/{questionId}/answer",
@@ -3,7 +3,7 @@ import {
3
3
  ScarnClient,
4
4
  TaskRuns,
5
5
  createClient
6
- } from "./chunk-3zp2qtf8.js";
6
+ } from "./chunk-rq5k7m33.js";
7
7
  // src/task-plane-client.ts
8
8
  function unwrap(result) {
9
9
  if (result.error)
@@ -36,13 +36,47 @@ function assertOpen(data, method) {
36
36
  function isTargetSpec(value) {
37
37
  return typeof value === "function" || nodeOf(value) !== undefined || targetOf(value) !== undefined || eachOf(value) !== undefined || chainOf(value) !== undefined;
38
38
  }
39
+ function overridableOf(id, value) {
40
+ if (value === undefined) {
41
+ return;
42
+ }
43
+ if (!value) {
44
+ throw new AuthoringError(`.next() for "${id}": "overridable" can only be true; leave it out instead`);
45
+ }
46
+ return true;
47
+ }
48
+ function otherwiseData(id, otherwise) {
49
+ if (otherwise === undefined) {
50
+ return;
51
+ }
52
+ if (isTargetSpec(otherwise)) {
53
+ return { target: otherwise, label: undefined, overridable: undefined };
54
+ }
55
+ const options = otherwise;
56
+ if (options.to === undefined) {
57
+ throw new AuthoringError(`.next() for "${id}": "otherwise" has no "to"`);
58
+ }
59
+ return {
60
+ target: options.to,
61
+ label: options.label,
62
+ overridable: overridableOf(id, options.overridable)
63
+ };
64
+ }
39
65
  function nextData(id, arg) {
40
66
  const site = captureSite();
41
67
  if (isTargetSpec(arg) || !("routes" in arg)) {
42
68
  return {
43
69
  match: undefined,
44
- routes: [{ when: undefined, target: arg }],
70
+ routes: [
71
+ {
72
+ when: undefined,
73
+ target: arg,
74
+ label: undefined,
75
+ overridable: undefined
76
+ }
77
+ ],
45
78
  otherwise: undefined,
79
+ overridable: undefined,
46
80
  site
47
81
  };
48
82
  }
@@ -57,12 +91,18 @@ function nextData(id, arg) {
57
91
  if (route.to === undefined) {
58
92
  throw new AuthoringError(`.next() for "${id}": route ${String(index)} has no "to"`);
59
93
  }
60
- return { when: route.when, target: route.to };
94
+ return {
95
+ when: route.when,
96
+ target: route.to,
97
+ label: route.label,
98
+ overridable: overridableOf(id, route.overridable)
99
+ };
61
100
  });
62
101
  return {
63
102
  match: options.match === "all" ? "all" : undefined,
64
103
  routes,
65
- otherwise: options.otherwise,
104
+ otherwise: otherwiseData(id, options.otherwise),
105
+ overridable: overridableOf(id, options.overridable),
66
106
  site
67
107
  };
68
108
  }
@@ -17,7 +17,7 @@ import {
17
17
  makeHandle,
18
18
  stepCall,
19
19
  stepNode
20
- } from "./chunk-jj9pezwb.js";
20
+ } from "./chunk-xqfj56m9.js";
21
21
  import {
22
22
  describeBaseBranchEnvProblem,
23
23
  findBaseBranchEnvProblems,
@@ -44,7 +44,7 @@ import {
44
44
  import {
45
45
  StepDefinitions,
46
46
  createClient
47
- } from "./chunk-3zp2qtf8.js";
47
+ } from "./chunk-rq5k7m33.js";
48
48
  import {
49
49
  buildArtifactMarker
50
50
  } from "./chunk-ngy1fdcx.js";
@@ -18,11 +18,11 @@ import {
18
18
  useRef,
19
19
  withOwners,
20
20
  withTracker
21
- } from "./chunk-x0hjhqrf.js";
21
+ } from "./chunk-mp2rqtcj.js";
22
22
  import {
23
23
  bareStepHandle,
24
24
  waitHandle
25
- } from "./chunk-jj9pezwb.js";
25
+ } from "./chunk-xqfj56m9.js";
26
26
  import {
27
27
  AuthoringError,
28
28
  PipelineBuildError,
@@ -237,9 +237,10 @@ function wireBody(state, chain, json) {
237
237
  return;
238
238
  }
239
239
  const context = makeContext(chain.node, "next");
240
- const compileRoute = (when, target, pointer) => {
240
+ const compileRoute = (route, pointer) => {
241
241
  mapSource(state, pointer, next.site);
242
242
  const entry = {};
243
+ const { when, target, label, overridable } = route;
243
244
  if (when !== undefined) {
244
245
  const compiled2 = attempt(state, [...pointer, "when"], next.site, () => withOwners([context], () => compileCondition(conditionData(when(context)))));
245
246
  if (compiled2 !== undefined) {
@@ -247,7 +248,12 @@ function wireBody(state, chain, json) {
247
248
  }
248
249
  }
249
250
  const compiled = compileTransition(state, target, context, pointer, next.site, "next");
250
- return { ...entry, ...compiled };
251
+ return {
252
+ ...entry,
253
+ ...compiled,
254
+ ...label === undefined ? {} : { label },
255
+ ...overridable === undefined ? {} : { overridable }
256
+ };
251
257
  };
252
258
  const out = {};
253
259
  if (next.match === "all") {
@@ -259,21 +265,18 @@ function wireBody(state, chain, json) {
259
265
  }
260
266
  });
261
267
  }
262
- out["routes"] = next.routes.map((route, index) => compileRoute(route.when, route.target, [
263
- "nodes",
264
- id,
265
- "next",
266
- "routes",
267
- index
268
- ]));
268
+ out["routes"] = next.routes.map((route, index) => compileRoute(route, ["nodes", id, "next", "routes", index]));
269
269
  if (next.otherwise !== undefined) {
270
- out["otherwise"] = compileRoute(undefined, next.otherwise, [
270
+ out["otherwise"] = compileRoute(next.otherwise, [
271
271
  "nodes",
272
272
  id,
273
273
  "next",
274
274
  "otherwise"
275
275
  ]);
276
276
  }
277
+ if (next.overridable !== undefined) {
278
+ out["overridable"] = next.overridable;
279
+ }
277
280
  json["next"] = out;
278
281
  }
279
282
 
package/dist/client.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  createScarnClient,
4
4
  createTaskPlaneClient
5
- } from "./chunk-tvjcfh6s.js";
5
+ } from "./chunk-tr3v83cn.js";
6
6
  import {
7
7
  Api,
8
8
  Automations,
@@ -31,7 +31,7 @@ import {
31
31
  WorkItemCommentDrafts,
32
32
  WorkItemComments,
33
33
  WorkItems
34
- } from "./chunk-3zp2qtf8.js";
34
+ } from "./chunk-rq5k7m33.js";
35
35
  import"./chunk-y64skrwp.js";
36
36
  export {
37
37
  Api,
@@ -13,8 +13,8 @@ import {
13
13
  automationTargetSchema,
14
14
  eventHasChild,
15
15
  scopeOfEvent
16
- } from "../../chunk-p1fs73bd.js";
17
- import"../../chunk-evb3hw48.js";
16
+ } from "../../chunk-a56zc4s5.js";
17
+ import"../../chunk-b9ja6ss5.js";
18
18
  import"../../chunk-yf15kdte.js";
19
19
  import"../../chunk-y64skrwp.js";
20
20
  export {
@@ -2,10 +2,11 @@
2
2
  import {
3
3
  deepEqual,
4
4
  isJsonObject,
5
+ isRouteOverridable,
5
6
  jsonPointer,
6
7
  routeAt,
7
8
  routeEntries
8
- } from "../../chunk-61jf8b6s.js";
9
+ } from "../../chunk-5dny5jg1.js";
9
10
  import {
10
11
  ALIAS_PATTERN,
11
12
  COMPARISON_OPERATORS,
@@ -40,7 +41,7 @@ import {
40
41
  succeedNodeSchema,
41
42
  toleratedFailuresSchema,
42
43
  waitNodeSchema
43
- } from "../../chunk-evb3hw48.js";
44
+ } from "../../chunk-b9ja6ss5.js";
44
45
  import {
45
46
  BUILT_IN_ERRORS,
46
47
  CONVERSATION_RESULT_SCHEMA,
@@ -81,6 +82,7 @@ export {
81
82
  eachSchema,
82
83
  failNodeSchema,
83
84
  isJsonObject,
85
+ isRouteOverridable,
84
86
  jsonPointer,
85
87
  listSchema,
86
88
  literalSchema,
@@ -14,3 +14,12 @@ export interface RouteEntry {
14
14
  export declare function routeEntries(next: Next | undefined): RouteEntry[];
15
15
  /** The route a `kind` and `index` name, if `next` has it. */
16
16
  export declare function routeAt(next: Next | undefined, kind: RouteKind, index: number): Route | Otherwise | undefined;
17
+ /**
18
+ * Whether a person may overrule a visit that took this route: the route's own
19
+ * `overridable`, else `next.overridable`. Under `match: "all"` a route without
20
+ * `when` always runs, so it is never overridable.
21
+ */
22
+ export declare function isRouteOverridable(next: Next | undefined, transition: {
23
+ kind: RouteKind;
24
+ index: number;
25
+ }): boolean;
@@ -99,9 +99,12 @@ export declare const routeSchema: z.ZodObject<{
99
99
  }, z.core.$strict>]>>;
100
100
  }, z.core.$strict>>;
101
101
  partial: z.ZodOptional<z.ZodLiteral<true>>;
102
+ label: z.ZodOptional<z.ZodString>;
103
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
102
104
  }, z.core.$strict>;
103
105
  /** The route taken when no route matched. It has no `when`. */
104
106
  export declare const otherwiseSchema: z.ZodObject<{
107
+ label: z.ZodOptional<z.ZodString>;
105
108
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
106
109
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
107
110
  }, z.core.$strict>, z.ZodObject<{
@@ -121,8 +124,9 @@ export declare const otherwiseSchema: z.ZodObject<{
121
124
  pipeline: z.ZodOptional<z.ZodString>;
122
125
  to: z.ZodString;
123
126
  partial: z.ZodOptional<z.ZodLiteral<true>>;
127
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
124
128
  }, z.core.$strict>;
125
- /** The pipeline's first route. It can't split or merge. */
129
+ /** The pipeline's first route. It can't split or merge, and has no visit to overrule. */
126
130
  export declare const startSchema: z.ZodObject<{
127
131
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
128
132
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
@@ -175,8 +179,11 @@ export declare const nextSchema: z.ZodObject<{
175
179
  }, z.core.$strict>]>>;
176
180
  }, z.core.$strict>>;
177
181
  partial: z.ZodOptional<z.ZodLiteral<true>>;
182
+ label: z.ZodOptional<z.ZodString>;
183
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
178
184
  }, z.core.$strict>>;
179
185
  otherwise: z.ZodOptional<z.ZodObject<{
186
+ label: z.ZodOptional<z.ZodString>;
180
187
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
181
188
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
182
189
  }, z.core.$strict>, z.ZodObject<{
@@ -196,7 +203,9 @@ export declare const nextSchema: z.ZodObject<{
196
203
  pipeline: z.ZodOptional<z.ZodString>;
197
204
  to: z.ZodString;
198
205
  partial: z.ZodOptional<z.ZodLiteral<true>>;
206
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
199
207
  }, z.core.$strict>>;
208
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
200
209
  }, z.core.$strict>;
201
210
  export declare const retrySchema: z.ZodObject<{
202
211
  on: z.ZodArray<z.ZodString>;
@@ -247,8 +256,11 @@ export declare const stepNodeSchema: z.ZodObject<{
247
256
  }, z.core.$strict>]>>;
248
257
  }, z.core.$strict>>;
249
258
  partial: z.ZodOptional<z.ZodLiteral<true>>;
259
+ label: z.ZodOptional<z.ZodString>;
260
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
250
261
  }, z.core.$strict>>;
251
262
  otherwise: z.ZodOptional<z.ZodObject<{
263
+ label: z.ZodOptional<z.ZodString>;
252
264
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
253
265
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
254
266
  }, z.core.$strict>, z.ZodObject<{
@@ -268,7 +280,9 @@ export declare const stepNodeSchema: z.ZodObject<{
268
280
  pipeline: z.ZodOptional<z.ZodString>;
269
281
  to: z.ZodString;
270
282
  partial: z.ZodOptional<z.ZodLiteral<true>>;
283
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
271
284
  }, z.core.$strict>>;
285
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
272
286
  }, z.core.$strict>>;
273
287
  retry: z.ZodOptional<z.ZodArray<z.ZodObject<{
274
288
  on: z.ZodArray<z.ZodString>;
@@ -350,8 +364,11 @@ export declare const waitNodeSchema: z.ZodObject<{
350
364
  }, z.core.$strict>]>>;
351
365
  }, z.core.$strict>>;
352
366
  partial: z.ZodOptional<z.ZodLiteral<true>>;
367
+ label: z.ZodOptional<z.ZodString>;
368
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
353
369
  }, z.core.$strict>>;
354
370
  otherwise: z.ZodOptional<z.ZodObject<{
371
+ label: z.ZodOptional<z.ZodString>;
355
372
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
356
373
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
357
374
  }, z.core.$strict>, z.ZodObject<{
@@ -371,7 +388,9 @@ export declare const waitNodeSchema: z.ZodObject<{
371
388
  pipeline: z.ZodOptional<z.ZodString>;
372
389
  to: z.ZodString;
373
390
  partial: z.ZodOptional<z.ZodLiteral<true>>;
391
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
374
392
  }, z.core.$strict>>;
393
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
375
394
  }, z.core.$strict>>;
376
395
  catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
377
396
  on: z.ZodArray<z.ZodString>;
@@ -428,8 +447,11 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
428
447
  }, z.core.$strict>]>>;
429
448
  }, z.core.$strict>>;
430
449
  partial: z.ZodOptional<z.ZodLiteral<true>>;
450
+ label: z.ZodOptional<z.ZodString>;
451
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
431
452
  }, z.core.$strict>>;
432
453
  otherwise: z.ZodOptional<z.ZodObject<{
454
+ label: z.ZodOptional<z.ZodString>;
433
455
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
434
456
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
435
457
  }, z.core.$strict>, z.ZodObject<{
@@ -449,7 +471,9 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
449
471
  pipeline: z.ZodOptional<z.ZodString>;
450
472
  to: z.ZodString;
451
473
  partial: z.ZodOptional<z.ZodLiteral<true>>;
474
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
452
475
  }, z.core.$strict>>;
476
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
453
477
  }, z.core.$strict>>;
454
478
  retry: z.ZodOptional<z.ZodArray<z.ZodObject<{
455
479
  on: z.ZodArray<z.ZodString>;
@@ -517,8 +541,11 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
517
541
  }, z.core.$strict>]>>;
518
542
  }, z.core.$strict>>;
519
543
  partial: z.ZodOptional<z.ZodLiteral<true>>;
544
+ label: z.ZodOptional<z.ZodString>;
545
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
520
546
  }, z.core.$strict>>;
521
547
  otherwise: z.ZodOptional<z.ZodObject<{
548
+ label: z.ZodOptional<z.ZodString>;
522
549
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
523
550
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
524
551
  }, z.core.$strict>, z.ZodObject<{
@@ -538,7 +565,9 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
538
565
  pipeline: z.ZodOptional<z.ZodString>;
539
566
  to: z.ZodString;
540
567
  partial: z.ZodOptional<z.ZodLiteral<true>>;
568
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
541
569
  }, z.core.$strict>>;
570
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
542
571
  }, z.core.$strict>>;
543
572
  catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
544
573
  on: z.ZodArray<z.ZodString>;
@@ -621,8 +650,11 @@ export declare const pipelineDocumentSchema: z.ZodObject<{
621
650
  }, z.core.$strict>]>>;
622
651
  }, z.core.$strict>>;
623
652
  partial: z.ZodOptional<z.ZodLiteral<true>>;
653
+ label: z.ZodOptional<z.ZodString>;
654
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
624
655
  }, z.core.$strict>>;
625
656
  otherwise: z.ZodOptional<z.ZodObject<{
657
+ label: z.ZodOptional<z.ZodString>;
626
658
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
627
659
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
628
660
  }, z.core.$strict>, z.ZodObject<{
@@ -642,7 +674,9 @@ export declare const pipelineDocumentSchema: z.ZodObject<{
642
674
  pipeline: z.ZodOptional<z.ZodString>;
643
675
  to: z.ZodString;
644
676
  partial: z.ZodOptional<z.ZodLiteral<true>>;
677
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
645
678
  }, z.core.$strict>>;
679
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
646
680
  }, z.core.$strict>>;
647
681
  retry: z.ZodOptional<z.ZodArray<z.ZodObject<{
648
682
  on: z.ZodArray<z.ZodString>;
@@ -710,8 +744,11 @@ export declare const pipelineDocumentSchema: z.ZodObject<{
710
744
  }, z.core.$strict>]>>;
711
745
  }, z.core.$strict>>;
712
746
  partial: z.ZodOptional<z.ZodLiteral<true>>;
747
+ label: z.ZodOptional<z.ZodString>;
748
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
713
749
  }, z.core.$strict>>;
714
750
  otherwise: z.ZodOptional<z.ZodObject<{
751
+ label: z.ZodOptional<z.ZodString>;
715
752
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
716
753
  value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
717
754
  }, z.core.$strict>, z.ZodObject<{
@@ -731,7 +768,9 @@ export declare const pipelineDocumentSchema: z.ZodObject<{
731
768
  pipeline: z.ZodOptional<z.ZodString>;
732
769
  to: z.ZodString;
733
770
  partial: z.ZodOptional<z.ZodLiteral<true>>;
771
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
734
772
  }, z.core.$strict>>;
773
+ overridable: z.ZodOptional<z.ZodLiteral<true>>;
735
774
  }, z.core.$strict>>;
736
775
  catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
737
776
  on: z.ZodArray<z.ZodString>;
@@ -4,8 +4,8 @@ import {
4
4
  } from "../chunk-rt9tq4j6.js";
5
5
  import {
6
6
  createScarnClient
7
- } from "../chunk-tvjcfh6s.js";
8
- import"../chunk-3zp2qtf8.js";
7
+ } from "../chunk-tr3v83cn.js";
8
+ import"../chunk-rq5k7m33.js";
9
9
  import"../chunk-y64skrwp.js";
10
10
 
11
11
  // src/defaults/auth-file.ts
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  AutomationsApiError,
4
4
  createAutomationsClient
5
- } from "../../chunk-2tmrw253.js";
6
- import"../../chunk-3zp2qtf8.js";
5
+ } from "../../chunk-g4j5cfpc.js";
6
+ import"../../chunk-rq5k7m33.js";
7
7
  import"../../chunk-yf15kdte.js";
8
8
  import"../../chunk-y64skrwp.js";
9
9
  export {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  EnvironmentsApiError,
4
4
  createEnvironmentsClient
5
- } from "../../chunk-mmy80pec.js";
5
+ } from "../../chunk-n3ywwx7n.js";
6
6
  import {
7
7
  Env,
8
8
  Runtime,
@@ -26,7 +26,7 @@ import"../../chunk-pqtd0hr7.js";
26
26
  import {
27
27
  containsInputToken
28
28
  } from "../../chunk-aemxz9r7.js";
29
- import"../../chunk-3zp2qtf8.js";
29
+ import"../../chunk-rq5k7m33.js";
30
30
  import"../../chunk-yf15kdte.js";
31
31
  import"../../chunk-y64skrwp.js";
32
32
 
@@ -5,8 +5,8 @@ import {
5
5
  WORK_ITEM_TOP_LEVEL_FIELDS,
6
6
  createPipelineDefinitionsClient,
7
7
  resolveWorkItemFieldPath
8
- } from "../../chunk-ymywp5ht.js";
9
- import"../../chunk-3zp2qtf8.js";
8
+ } from "../../chunk-91f5gm5z.js";
9
+ import"../../chunk-rq5k7m33.js";
10
10
  import"../../chunk-yf15kdte.js";
11
11
  import"../../chunk-y64skrwp.js";
12
12
  export {
@@ -28,7 +28,7 @@ import {
28
28
  stepEnvironmentHandle,
29
29
  toStepHandle,
30
30
  toStepSpec
31
- } from "../../chunk-833ef6dg.js";
31
+ } from "../../chunk-yq0sf8sb.js";
32
32
  import"../../chunk-y34zsgsw.js";
33
33
  import {
34
34
  Env,
@@ -44,7 +44,7 @@ import {
44
44
  renderPromptTemplate
45
45
  } from "../../chunk-t1dq2c2s.js";
46
46
  import"../../chunk-6tra3gw8.js";
47
- import"../../chunk-jj9pezwb.js";
47
+ import"../../chunk-xqfj56m9.js";
48
48
  import"../../chunk-y11p1q7r.js";
49
49
  import"../../chunk-rphfy0fj.js";
50
50
  import"../../chunk-e0pt5x0e.js";
@@ -53,7 +53,7 @@ import"../../chunk-46wmsgv7.js";
53
53
  import"../../chunk-qgkx89eg.js";
54
54
  import"../../chunk-pqtd0hr7.js";
55
55
  import"../../chunk-aemxz9r7.js";
56
- import"../../chunk-3zp2qtf8.js";
56
+ import"../../chunk-rq5k7m33.js";
57
57
  import"../../chunk-ngy1fdcx.js";
58
58
  import"../../chunk-19brnwkp.js";
59
59
  import"../../chunk-01nfqm18.js";