@shipfox/api-workflows-dto 12.0.0 → 12.2.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.
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 15 files with swc (107.83ms)
2
+ Successfully compiled: 15 files with swc (461.04ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @shipfox/api-workflows-dto
2
2
 
3
+ ## 12.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ce0984d: Preserve structured values when jobs map typed step outputs, normalize them for JSON persistence, and bound materialized job output sizes and entry counts.
8
+
9
+ ### Patch Changes
10
+
11
+ - @shipfox/api-agent-dto@12.2.0
12
+
13
+ ## 12.1.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 312a137: Add typed step errors for invalid checkout paths and occupied checkout destinations.
18
+
3
19
  ## 12.0.0
4
20
 
5
21
  ### Major Changes
package/dist/events.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import { z } from 'zod';
2
- export declare const WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED: "workflows.workflow_run_attempt.created";
3
- export declare const WORKFLOWS_WORKFLOW_RUN_TERMINATED: "workflows.workflow_run.terminated";
4
- export declare const WORKFLOWS_WORKFLOW_RUN_CANCELLED: "workflows.workflow_run.cancelled";
5
- export declare const WORKFLOWS_JOB_EXECUTION_TIMED_OUT: "workflows.job_execution.timed_out";
6
- export declare const WORKFLOWS_JOB_ACTIVATED: "workflows.job.activated";
7
- export declare const WORKFLOWS_JOB_EVENT_DELIVERED: "workflows.job_event.delivered";
8
- export declare const WORKFLOWS_JOB_TERMINATED: "workflows.job.terminated";
9
- export declare const WORKFLOWS_JOB_STEPS_SETTLED: "workflows.job.steps_settled";
10
- export declare const WORKFLOWS_STEP_RESTART_ENQUEUED: "workflows.step.restart_enqueued";
11
- export declare const WORKFLOWS_STEP_ATTEMPT_TERMINATED: "workflows.step_attempt.terminated";
2
+ export declare const WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED: 'workflows.workflow_run_attempt.created';
3
+ export declare const WORKFLOWS_WORKFLOW_RUN_TERMINATED: 'workflows.workflow_run.terminated';
4
+ export declare const WORKFLOWS_WORKFLOW_RUN_CANCELLED: 'workflows.workflow_run.cancelled';
5
+ export declare const WORKFLOWS_JOB_EXECUTION_TIMED_OUT: 'workflows.job_execution.timed_out';
6
+ export declare const WORKFLOWS_JOB_ACTIVATED: 'workflows.job.activated';
7
+ export declare const WORKFLOWS_JOB_EVENT_DELIVERED: 'workflows.job_event.delivered';
8
+ export declare const WORKFLOWS_JOB_TERMINATED: 'workflows.job.terminated';
9
+ export declare const WORKFLOWS_JOB_STEPS_SETTLED: 'workflows.job.steps_settled';
10
+ export declare const WORKFLOWS_STEP_RESTART_ENQUEUED: 'workflows.step.restart_enqueued';
11
+ export declare const WORKFLOWS_STEP_ATTEMPT_TERMINATED: 'workflows.step_attempt.terminated';
12
12
  export declare const workflowsWorkflowRunAttemptCreatedSchema: z.ZodObject<{
13
13
  workflowRunId: z.ZodString;
14
14
  workflowRunAttemptId: z.ZodString;
@@ -20,19 +20,19 @@ export declare const workflowsWorkflowRunAttemptCreatedSchema: z.ZodObject<{
20
20
  export type WorkflowsWorkflowRunAttemptCreatedEventDto = z.infer<typeof workflowsWorkflowRunAttemptCreatedSchema>;
21
21
  export declare const workflowRunTerminalStatusSchema: z.ZodEnum<{
22
22
  cancelled: "cancelled";
23
- succeeded: "succeeded";
24
23
  failed: "failed";
24
+ succeeded: "succeeded";
25
25
  }>;
26
26
  export declare const jobTerminalStatusSchema: z.ZodEnum<{
27
27
  cancelled: "cancelled";
28
- succeeded: "succeeded";
29
28
  failed: "failed";
30
29
  skipped: "skipped";
30
+ succeeded: "succeeded";
31
31
  }>;
32
32
  export declare const terminalStatusSchema: z.ZodEnum<{
33
33
  cancelled: "cancelled";
34
- succeeded: "succeeded";
35
34
  failed: "failed";
35
+ succeeded: "succeeded";
36
36
  }>;
37
37
  export declare const workflowsWorkflowRunTerminatedSchema: z.ZodObject<{
38
38
  workflowRunId: z.ZodString;
@@ -40,8 +40,8 @@ export declare const workflowsWorkflowRunTerminatedSchema: z.ZodObject<{
40
40
  projectId: z.ZodString;
41
41
  status: z.ZodEnum<{
42
42
  cancelled: "cancelled";
43
- succeeded: "succeeded";
44
43
  failed: "failed";
44
+ succeeded: "succeeded";
45
45
  }>;
46
46
  }, z.core.$strip>;
47
47
  export type WorkflowsWorkflowRunTerminatedEventDto = z.infer<typeof workflowsWorkflowRunTerminatedSchema>;
@@ -57,6 +57,17 @@ export declare const workflowsJobExecutionTimedOutSchema: z.ZodObject<{
57
57
  workflowRunAttemptId: z.ZodString;
58
58
  }, z.core.$strip>;
59
59
  export type WorkflowsJobExecutionTimedOutEventDto = z.infer<typeof workflowsJobExecutionTimedOutSchema>;
60
+ export type ListenerFilterExpressionType = 'string' | 'int' | 'double' | 'bool' | 'null' | 'timestamp' | {
61
+ kind: 'object';
62
+ fields: Record<string, ListenerFilterExpressionType>;
63
+ } | {
64
+ kind: 'map';
65
+ } | {
66
+ kind: 'list';
67
+ element: ListenerFilterExpressionType;
68
+ };
69
+ export declare const listenerFilterOutputTypesSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ListenerFilterExpressionType, unknown, z.core.$ZodTypeInternals<ListenerFilterExpressionType, unknown>>>>;
70
+ export type ListenerFilterOutputTypes = z.infer<typeof listenerFilterOutputTypesSchema>;
60
71
  export declare const workflowsJobActivatedSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
61
72
  jobId: z.ZodString;
62
73
  workflowRunId: z.ZodString;
@@ -68,6 +79,7 @@ export declare const workflowsJobActivatedSchema: z.ZodDiscriminatedUnion<[z.Zod
68
79
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
69
80
  filter: z.ZodOptional<z.ZodString>;
70
81
  filter_snapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
82
+ filter_output_types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ListenerFilterExpressionType, unknown, z.core.$ZodTypeInternals<ListenerFilterExpressionType, unknown>>>>>;
71
83
  }, z.core.$strip>>>>;
72
84
  until: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
73
85
  source: z.ZodString;
@@ -75,6 +87,7 @@ export declare const workflowsJobActivatedSchema: z.ZodDiscriminatedUnion<[z.Zod
75
87
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
76
88
  filter: z.ZodOptional<z.ZodString>;
77
89
  filter_snapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
90
+ filter_output_types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ListenerFilterExpressionType, unknown, z.core.$ZodTypeInternals<ListenerFilterExpressionType, unknown>>>>>;
78
91
  }, z.core.$strip>>>>;
79
92
  }, z.core.$strip>, z.ZodObject<{
80
93
  jobId: z.ZodString;
@@ -87,6 +100,7 @@ export declare const workflowsJobActivatedSchema: z.ZodDiscriminatedUnion<[z.Zod
87
100
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
88
101
  filter: z.ZodOptional<z.ZodString>;
89
102
  filter_snapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
103
+ filter_output_types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ListenerFilterExpressionType, unknown, z.core.$ZodTypeInternals<ListenerFilterExpressionType, unknown>>>>>;
90
104
  }, z.core.$strip>>;
91
105
  until: z.ZodNullable<z.ZodArray<z.ZodObject<{
92
106
  source: z.ZodString;
@@ -94,6 +108,7 @@ export declare const workflowsJobActivatedSchema: z.ZodDiscriminatedUnion<[z.Zod
94
108
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
95
109
  filter: z.ZodOptional<z.ZodString>;
96
110
  filter_snapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
111
+ filter_output_types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ListenerFilterExpressionType, unknown, z.core.$ZodTypeInternals<ListenerFilterExpressionType, unknown>>>>>;
97
112
  }, z.core.$strip>>>;
98
113
  }, z.core.$strip>], "mode">;
99
114
  export type WorkflowsJobActivatedEventDto = z.infer<typeof workflowsJobActivatedSchema>;
@@ -113,22 +128,22 @@ export declare const workflowsJobTerminatedSchema: z.ZodObject<{
113
128
  workflowRunAttemptId: z.ZodString;
114
129
  status: z.ZodEnum<{
115
130
  cancelled: "cancelled";
116
- succeeded: "succeeded";
117
131
  failed: "failed";
118
132
  skipped: "skipped";
133
+ succeeded: "succeeded";
119
134
  }>;
120
135
  statusReason: z.ZodNullable<z.ZodEnum<{
121
- unknown: "unknown";
122
- dependency_not_completed: "dependency_not_completed";
136
+ condition_errored: "condition_errored";
123
137
  condition_false: "condition_false";
124
- default_gate_rejected: "default_gate_rejected";
125
138
  condition_rejected: "condition_rejected";
126
- condition_errored: "condition_errored";
127
- user_cancelled: "user_cancelled";
139
+ default_gate_rejected: "default_gate_rejected";
140
+ dependency_not_completed: "dependency_not_completed";
128
141
  run_cancelled: "run_cancelled";
129
- timed_out: "timed_out";
130
142
  runner_lost: "runner_lost";
131
143
  step_failed: "step_failed";
144
+ timed_out: "timed_out";
145
+ unknown: "unknown";
146
+ user_cancelled: "user_cancelled";
132
147
  }>>;
133
148
  }, z.core.$strip>;
134
149
  export type WorkflowsJobTerminatedEventDto = z.infer<typeof workflowsJobTerminatedSchema>;
@@ -138,8 +153,8 @@ export declare const workflowsJobStepsSettledSchema: z.ZodObject<{
138
153
  workflowRunId: z.ZodString;
139
154
  workflowRunAttemptId: z.ZodString;
140
155
  status: z.ZodEnum<{
141
- succeeded: "succeeded";
142
156
  failed: "failed";
157
+ succeeded: "succeeded";
143
158
  }>;
144
159
  }, z.core.$strip>;
145
160
  export type WorkflowsJobStepsSettledEventDto = z.infer<typeof workflowsJobStepsSettledSchema>;
@@ -162,8 +177,8 @@ export declare const workflowsStepAttemptTerminatedSchema: z.ZodObject<{
162
177
  stepId: z.ZodString;
163
178
  attempt: z.ZodNumber;
164
179
  logOutcome: z.ZodEnum<{
165
- drained: "drained";
166
180
  abandoned: "abandoned";
181
+ drained: "drained";
167
182
  }>;
168
183
  }, z.core.$strip>;
169
184
  export type WorkflowsStepAttemptTerminatedEventDto = z.infer<typeof workflowsStepAttemptTerminatedSchema>;
@@ -194,8 +209,8 @@ export declare const workflowsEventSchemas: {
194
209
  projectId: z.ZodString;
195
210
  status: z.ZodEnum<{
196
211
  cancelled: "cancelled";
197
- succeeded: "succeeded";
198
212
  failed: "failed";
213
+ succeeded: "succeeded";
199
214
  }>;
200
215
  }, z.core.$strip>;
201
216
  "workflows.workflow_run.cancelled": z.ZodObject<{
@@ -219,6 +234,7 @@ export declare const workflowsEventSchemas: {
219
234
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
220
235
  filter: z.ZodOptional<z.ZodString>;
221
236
  filter_snapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
237
+ filter_output_types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ListenerFilterExpressionType, unknown, z.core.$ZodTypeInternals<ListenerFilterExpressionType, unknown>>>>>;
222
238
  }, z.core.$strip>>>>;
223
239
  until: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
224
240
  source: z.ZodString;
@@ -226,6 +242,7 @@ export declare const workflowsEventSchemas: {
226
242
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
227
243
  filter: z.ZodOptional<z.ZodString>;
228
244
  filter_snapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
245
+ filter_output_types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ListenerFilterExpressionType, unknown, z.core.$ZodTypeInternals<ListenerFilterExpressionType, unknown>>>>>;
229
246
  }, z.core.$strip>>>>;
230
247
  }, z.core.$strip>, z.ZodObject<{
231
248
  jobId: z.ZodString;
@@ -238,6 +255,7 @@ export declare const workflowsEventSchemas: {
238
255
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
239
256
  filter: z.ZodOptional<z.ZodString>;
240
257
  filter_snapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
258
+ filter_output_types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ListenerFilterExpressionType, unknown, z.core.$ZodTypeInternals<ListenerFilterExpressionType, unknown>>>>>;
241
259
  }, z.core.$strip>>;
242
260
  until: z.ZodNullable<z.ZodArray<z.ZodObject<{
243
261
  source: z.ZodString;
@@ -245,6 +263,7 @@ export declare const workflowsEventSchemas: {
245
263
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
246
264
  filter: z.ZodOptional<z.ZodString>;
247
265
  filter_snapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
266
+ filter_output_types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ListenerFilterExpressionType, unknown, z.core.$ZodTypeInternals<ListenerFilterExpressionType, unknown>>>>>;
248
267
  }, z.core.$strip>>>;
249
268
  }, z.core.$strip>], "mode">;
250
269
  "workflows.job_event.delivered": z.ZodObject<{
@@ -262,22 +281,22 @@ export declare const workflowsEventSchemas: {
262
281
  workflowRunAttemptId: z.ZodString;
263
282
  status: z.ZodEnum<{
264
283
  cancelled: "cancelled";
265
- succeeded: "succeeded";
266
284
  failed: "failed";
267
285
  skipped: "skipped";
286
+ succeeded: "succeeded";
268
287
  }>;
269
288
  statusReason: z.ZodNullable<z.ZodEnum<{
270
- unknown: "unknown";
271
- dependency_not_completed: "dependency_not_completed";
289
+ condition_errored: "condition_errored";
272
290
  condition_false: "condition_false";
273
- default_gate_rejected: "default_gate_rejected";
274
291
  condition_rejected: "condition_rejected";
275
- condition_errored: "condition_errored";
276
- user_cancelled: "user_cancelled";
292
+ default_gate_rejected: "default_gate_rejected";
293
+ dependency_not_completed: "dependency_not_completed";
277
294
  run_cancelled: "run_cancelled";
278
- timed_out: "timed_out";
279
295
  runner_lost: "runner_lost";
280
296
  step_failed: "step_failed";
297
+ timed_out: "timed_out";
298
+ unknown: "unknown";
299
+ user_cancelled: "user_cancelled";
281
300
  }>>;
282
301
  }, z.core.$strip>;
283
302
  "workflows.job.steps_settled": z.ZodObject<{
@@ -286,8 +305,8 @@ export declare const workflowsEventSchemas: {
286
305
  workflowRunId: z.ZodString;
287
306
  workflowRunAttemptId: z.ZodString;
288
307
  status: z.ZodEnum<{
289
- succeeded: "succeeded";
290
308
  failed: "failed";
309
+ succeeded: "succeeded";
291
310
  }>;
292
311
  }, z.core.$strip>;
293
312
  "workflows.step.restart_enqueued": z.ZodObject<{
@@ -308,8 +327,8 @@ export declare const workflowsEventSchemas: {
308
327
  stepId: z.ZodString;
309
328
  attempt: z.ZodNumber;
310
329
  logOutcome: z.ZodEnum<{
311
- drained: "drained";
312
330
  abandoned: "abandoned";
331
+ drained: "drained";
313
332
  }>;
314
333
  }, z.core.$strip>;
315
334
  };
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,sCAAsC,EACjD,wCAAiD,CAAC;AAEpD,eAAO,MAAM,iCAAiC,EAAG,mCAA4C,CAAC;AAE9F,eAAO,MAAM,gCAAgC,EAAG,kCAA2C,CAAC;AAC5F,eAAO,MAAM,iCAAiC,EAAG,mCAA4C,CAAC;AAC9F,eAA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AM,oCAAoC;;;;;;;;;;;;iBAS/C,CAAC;AACH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,oCAAoC,CAC5C,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,CAAC,sCAAsC,CAAC,EAAE,0CAA0C,CAAC;IACrF,CAAC,iCAAiC,CAAC,EAAE,sCAAsC,CAAC;IAC5E,CAAC,gCAAgC,CAAC,EAAE,qCAAqC,CAAC;IAC1E,CAAC,iCAAiC,CAAC,EAAE,qCAAqC,CAAC;IAC3E,CAAC,uBAAuB,CAAC,EAAE,6BAA6B,CAAC;IACzD,CAAC,6BAA6B,CAAC,EAAE,kCAAkC,CAAC;IACpE,CAAC,wBAAwB,CAAC,EAAE,8BAA8B,CAAC;IAC3D,CAAC,2BAA2B,CAAC,EAAE,gCAAgC,CAAC;IAChE,CAAC,+BAA+B,CAAC,EAAE,oCAAoC,CAAC;IACxE,CAAC,iCAAiC,CAAC,EAAE,sCAAsC,CAAC;CAC7E;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWuB,CAAC"}
package/dist/events.js CHANGED
@@ -67,8 +67,31 @@ const workflowsJobActivatedBaseSchema = z.object({
67
67
  workflowRunId: nonEmptyStringSchema,
68
68
  workspaceId: nonEmptyStringSchema
69
69
  });
70
+ const listenerFilterExpressionTypeSchema = z.lazy(()=>z.union([
71
+ z.enum([
72
+ 'string',
73
+ 'int',
74
+ 'double',
75
+ 'bool',
76
+ 'null',
77
+ 'timestamp'
78
+ ]),
79
+ z.object({
80
+ kind: z.literal('object'),
81
+ fields: z.record(z.string(), listenerFilterExpressionTypeSchema)
82
+ }),
83
+ z.object({
84
+ kind: z.literal('map')
85
+ }),
86
+ z.object({
87
+ kind: z.literal('list'),
88
+ element: listenerFilterExpressionTypeSchema
89
+ })
90
+ ]));
91
+ export const listenerFilterOutputTypesSchema = z.record(z.string(), z.record(z.string(), listenerFilterExpressionTypeSchema));
70
92
  const resolvedListeningTriggerSchema = listeningTriggerSchema.extend({
71
- filter_snapshot: z.record(z.string(), z.unknown()).optional()
93
+ filter_snapshot: z.record(z.string(), z.unknown()).optional(),
94
+ filter_output_types: listenerFilterOutputTypesSchema.optional()
72
95
  });
73
96
  export const workflowsJobActivatedSchema = z.discriminatedUnion('mode', [
74
97
  workflowsJobActivatedBaseSchema.extend({
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\nimport {jobStatusReasonSchema} from './schemas/job.js';\nimport {listeningTriggerSchema} from './schemas/job-listening.js';\nimport {logOutcomeSchema} from './schemas/log-outcome.js';\n\nconst nonEmptyStringSchema = z.string().nonempty();\n\nexport const WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED =\n 'workflows.workflow_run_attempt.created' as const;\n// Terminal fact for a workflow run, written in the same transaction as the status flip.\nexport const WORKFLOWS_WORKFLOW_RUN_TERMINATED = 'workflows.workflow_run.terminated' as const;\n// Intent fact for cooperative run cancellation. Consumers use this to stop orchestration.\nexport const WORKFLOWS_WORKFLOW_RUN_CANCELLED = 'workflows.workflow_run.cancelled' as const;\nexport const WORKFLOWS_JOB_EXECUTION_TIMED_OUT = 'workflows.job_execution.timed_out' as const;\nexport const WORKFLOWS_JOB_ACTIVATED = 'workflows.job.activated' as const;\nexport const WORKFLOWS_JOB_EVENT_DELIVERED = 'workflows.job_event.delivered' as const;\n// Terminal fact for a job: the single reliable \"this job is over\" signal, written in\n// the same transaction as the status flip, on every terminal path.\nexport const WORKFLOWS_JOB_TERMINATED = 'workflows.job.terminated' as const;\n// Internal signal, not a terminal fact: a job's steps have all settled, so the\n// on-job-steps-settled subscriber can raise the Temporal JOB_FINISHED_SIGNAL. Fires\n// before the job row is terminal; observe WORKFLOWS_JOB_TERMINATED for the outcome.\nexport const WORKFLOWS_JOB_STEPS_SETTLED = 'workflows.job.steps_settled' as const;\n// Written in the same transaction as a durable gate restart: the failed attempt\n// plus the rewind of the projection from `restart_from`. The pull-based runner\n// re-dispatches the rewound step on its next pull, so consumers must treat this\n// at-least-once outbox event as idempotent audit data.\nexport const WORKFLOWS_STEP_RESTART_ENQUEUED = 'workflows.step.restart_enqueued' as const;\nexport const WORKFLOWS_STEP_ATTEMPT_TERMINATED = 'workflows.step_attempt.terminated' as const;\n\nexport const workflowsWorkflowRunAttemptCreatedSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n attempt: z.number().int().positive(),\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n definitionId: nonEmptyStringSchema,\n});\nexport type WorkflowsWorkflowRunAttemptCreatedEventDto = z.infer<\n typeof workflowsWorkflowRunAttemptCreatedSchema\n>;\n\n// Keep outbox terminal statuses narrower than the public status schemas, which\n// also carry pending/running and job-only skipped.\nexport const workflowRunTerminalStatusSchema = z.enum(['succeeded', 'failed', 'cancelled']);\nexport const jobTerminalStatusSchema = z.enum(['succeeded', 'failed', 'cancelled', 'skipped']);\nexport const terminalStatusSchema = workflowRunTerminalStatusSchema;\n\nexport const workflowsWorkflowRunTerminatedSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n status: workflowRunTerminalStatusSchema,\n});\nexport type WorkflowsWorkflowRunTerminatedEventDto = z.infer<\n typeof workflowsWorkflowRunTerminatedSchema\n>;\n\nexport const workflowsWorkflowRunCancelledSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n});\nexport type WorkflowsWorkflowRunCancelledEventDto = z.infer<\n typeof workflowsWorkflowRunCancelledSchema\n>;\n\nexport const workflowsJobExecutionTimedOutSchema = z.object({\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n});\nexport type WorkflowsJobExecutionTimedOutEventDto = z.infer<\n typeof workflowsJobExecutionTimedOutSchema\n>;\n\nconst workflowsJobActivatedBaseSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n});\n\nconst resolvedListeningTriggerSchema = listeningTriggerSchema.extend({\n filter_snapshot: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport const workflowsJobActivatedSchema = z.discriminatedUnion('mode', [\n workflowsJobActivatedBaseSchema.extend({\n mode: z.literal('one_shot'),\n on: z.array(resolvedListeningTriggerSchema).nullable().optional(),\n until: z.array(resolvedListeningTriggerSchema).nullable().optional(),\n }),\n workflowsJobActivatedBaseSchema.extend({\n mode: z.literal('listening'),\n on: z.array(resolvedListeningTriggerSchema).nonempty(),\n until: z.array(resolvedListeningTriggerSchema).nullable(),\n }),\n]);\nexport type WorkflowsJobActivatedEventDto = z.infer<typeof workflowsJobActivatedSchema>;\n\nexport const workflowsJobEventDeliveredSchema = z.object({\n jobId: nonEmptyStringSchema,\n disposition: z.enum(['fire', 'resolve']),\n eventRef: nonEmptyStringSchema,\n eventName: nonEmptyStringSchema,\n});\nexport type WorkflowsJobEventDeliveredEventDto = z.infer<typeof workflowsJobEventDeliveredSchema>;\n\nexport const workflowsJobTerminatedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n status: jobTerminalStatusSchema,\n statusReason: jobStatusReasonSchema.nullable(),\n});\nexport type WorkflowsJobTerminatedEventDto = z.infer<typeof workflowsJobTerminatedSchema>;\n\nconst settledStatusSchema = z.enum(['succeeded', 'failed']);\n\nexport const workflowsJobStepsSettledSchema = z.object({\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n status: settledStatusSchema,\n});\nexport type WorkflowsJobStepsSettledEventDto = z.infer<typeof workflowsJobStepsSettledSchema>;\n\nexport const workflowsStepRestartEnqueuedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n failedStepId: nonEmptyStringSchema,\n failedStepAttempt: z.number(),\n restartFromStepId: nonEmptyStringSchema,\n feedback: nonEmptyStringSchema,\n});\nexport type WorkflowsStepRestartEnqueuedEventDto = z.infer<\n typeof workflowsStepRestartEnqueuedSchema\n>;\n\nexport const workflowsStepAttemptTerminatedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n stepId: nonEmptyStringSchema,\n attempt: z.number().int().positive(),\n logOutcome: logOutcomeSchema,\n});\nexport type WorkflowsStepAttemptTerminatedEventDto = z.infer<\n typeof workflowsStepAttemptTerminatedSchema\n>;\n\nexport interface WorkflowsEventMapDto {\n [WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED]: WorkflowsWorkflowRunAttemptCreatedEventDto;\n [WORKFLOWS_WORKFLOW_RUN_TERMINATED]: WorkflowsWorkflowRunTerminatedEventDto;\n [WORKFLOWS_WORKFLOW_RUN_CANCELLED]: WorkflowsWorkflowRunCancelledEventDto;\n [WORKFLOWS_JOB_EXECUTION_TIMED_OUT]: WorkflowsJobExecutionTimedOutEventDto;\n [WORKFLOWS_JOB_ACTIVATED]: WorkflowsJobActivatedEventDto;\n [WORKFLOWS_JOB_EVENT_DELIVERED]: WorkflowsJobEventDeliveredEventDto;\n [WORKFLOWS_JOB_TERMINATED]: WorkflowsJobTerminatedEventDto;\n [WORKFLOWS_JOB_STEPS_SETTLED]: WorkflowsJobStepsSettledEventDto;\n [WORKFLOWS_STEP_RESTART_ENQUEUED]: WorkflowsStepRestartEnqueuedEventDto;\n [WORKFLOWS_STEP_ATTEMPT_TERMINATED]: WorkflowsStepAttemptTerminatedEventDto;\n}\n\nexport const workflowsEventSchemas = {\n [WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED]: workflowsWorkflowRunAttemptCreatedSchema,\n [WORKFLOWS_WORKFLOW_RUN_TERMINATED]: workflowsWorkflowRunTerminatedSchema,\n [WORKFLOWS_WORKFLOW_RUN_CANCELLED]: workflowsWorkflowRunCancelledSchema,\n [WORKFLOWS_JOB_EXECUTION_TIMED_OUT]: workflowsJobExecutionTimedOutSchema,\n [WORKFLOWS_JOB_ACTIVATED]: workflowsJobActivatedSchema,\n [WORKFLOWS_JOB_EVENT_DELIVERED]: workflowsJobEventDeliveredSchema,\n [WORKFLOWS_JOB_TERMINATED]: workflowsJobTerminatedSchema,\n [WORKFLOWS_JOB_STEPS_SETTLED]: workflowsJobStepsSettledSchema,\n [WORKFLOWS_STEP_RESTART_ENQUEUED]: workflowsStepRestartEnqueuedSchema,\n [WORKFLOWS_STEP_ATTEMPT_TERMINATED]: workflowsStepAttemptTerminatedSchema,\n} satisfies Record<keyof WorkflowsEventMapDto, z.ZodType>;\n"],"names":["z","jobStatusReasonSchema","listeningTriggerSchema","logOutcomeSchema","nonEmptyStringSchema","string","nonempty","WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED","WORKFLOWS_WORKFLOW_RUN_TERMINATED","WORKFLOWS_WORKFLOW_RUN_CANCELLED","WORKFLOWS_JOB_EXECUTION_TIMED_OUT","WORKFLOWS_JOB_ACTIVATED","WORKFLOWS_JOB_EVENT_DELIVERED","WORKFLOWS_JOB_TERMINATED","WORKFLOWS_JOB_STEPS_SETTLED","WORKFLOWS_STEP_RESTART_ENQUEUED","WORKFLOWS_STEP_ATTEMPT_TERMINATED","workflowsWorkflowRunAttemptCreatedSchema","object","workflowRunId","workflowRunAttemptId","attempt","number","int","positive","workspaceId","projectId","definitionId","workflowRunTerminalStatusSchema","enum","jobTerminalStatusSchema","terminalStatusSchema","workflowsWorkflowRunTerminatedSchema","status","workflowsWorkflowRunCancelledSchema","workflowsJobExecutionTimedOutSchema","jobId","jobExecutionId","workflowsJobActivatedBaseSchema","resolvedListeningTriggerSchema","extend","filter_snapshot","record","unknown","optional","workflowsJobActivatedSchema","discriminatedUnion","mode","literal","on","array","nullable","until","workflowsJobEventDeliveredSchema","disposition","eventRef","eventName","workflowsJobTerminatedSchema","statusReason","settledStatusSchema","workflowsJobStepsSettledSchema","workflowsStepRestartEnqueuedSchema","failedStepId","failedStepAttempt","restartFromStepId","feedback","workflowsStepAttemptTerminatedSchema","stepId","logOutcome","workflowsEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,qBAAqB,QAAO,mBAAmB;AACvD,SAAQC,sBAAsB,QAAO,6BAA6B;AAClE,SAAQC,gBAAgB,QAAO,2BAA2B;AAE1D,MAAMC,uBAAuBJ,EAAEK,MAAM,GAAGC,QAAQ;AAEhD,OAAO,MAAMC,yCACX,yCAAkD;AACpD,wFAAwF;AACxF,OAAO,MAAMC,oCAAoC,oCAA6C;AAC9F,0FAA0F;AAC1F,OAAO,MAAMC,mCAAmC,mCAA4C;AAC5F,OAAO,MAAMC,oCAAoC,oCAA6C;AAC9F,OAAO,MAAMC,0BAA0B,0BAAmC;AAC1E,OAAO,MAAMC,gCAAgC,gCAAyC;AACtF,qFAAqF;AACrF,mEAAmE;AACnE,OAAO,MAAMC,2BAA2B,2BAAoC;AAC5E,+EAA+E;AAC/E,oFAAoF;AACpF,oFAAoF;AACpF,OAAO,MAAMC,8BAA8B,8BAAuC;AAClF,gFAAgF;AAChF,+EAA+E;AAC/E,gFAAgF;AAChF,uDAAuD;AACvD,OAAO,MAAMC,kCAAkC,kCAA2C;AAC1F,OAAO,MAAMC,oCAAoC,oCAA6C;AAE9F,OAAO,MAAMC,2CAA2CjB,EAAEkB,MAAM,CAAC;I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AACT,kCAAkC,EAAEwB;IACrC,CAACvB,iCAAiC,EAAEyB;IACpC,CAACxB,kCAAkC,EAAEyB;IACrC,CAACxB,wBAAwB,EAAEkC;IAC3B,CAACjC,8BAA8B,EAAEyC;IACjC,CAACxC,yBAAyB,EAAE4C;IAC5B,CAAC3C,4BAA4B,EAAE8C;IAC/B,CAAC7C,gCAAgC,EAAE8C;IACnC,CAAC7C,kCAAkC,EAAEkD;AACvC,EAA0D"}
1
+ {"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\nimport {jobStatusReasonSchema} from './schemas/job.js';\nimport {listeningTriggerSchema} from './schemas/job-listening.js';\nimport {logOutcomeSchema} from './schemas/log-outcome.js';\n\nconst nonEmptyStringSchema = z.string().nonempty();\n\nexport const WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED =\n 'workflows.workflow_run_attempt.created' as const;\n// Terminal fact for a workflow run, written in the same transaction as the status flip.\nexport const WORKFLOWS_WORKFLOW_RUN_TERMINATED = 'workflows.workflow_run.terminated' as const;\n// Intent fact for cooperative run cancellation. Consumers use this to stop orchestration.\nexport const WORKFLOWS_WORKFLOW_RUN_CANCELLED = 'workflows.workflow_run.cancelled' as const;\nexport const WORKFLOWS_JOB_EXECUTION_TIMED_OUT = 'workflows.job_execution.timed_out' as const;\nexport const WORKFLOWS_JOB_ACTIVATED = 'workflows.job.activated' as const;\nexport const WORKFLOWS_JOB_EVENT_DELIVERED = 'workflows.job_event.delivered' as const;\n// Terminal fact for a job: the single reliable \"this job is over\" signal, written in\n// the same transaction as the status flip, on every terminal path.\nexport const WORKFLOWS_JOB_TERMINATED = 'workflows.job.terminated' as const;\n// Internal signal, not a terminal fact: a job's steps have all settled, so the\n// on-job-steps-settled subscriber can raise the Temporal JOB_FINISHED_SIGNAL. Fires\n// before the job row is terminal; observe WORKFLOWS_JOB_TERMINATED for the outcome.\nexport const WORKFLOWS_JOB_STEPS_SETTLED = 'workflows.job.steps_settled' as const;\n// Written in the same transaction as a durable gate restart: the failed attempt\n// plus the rewind of the projection from `restart_from`. The pull-based runner\n// re-dispatches the rewound step on its next pull, so consumers must treat this\n// at-least-once outbox event as idempotent audit data.\nexport const WORKFLOWS_STEP_RESTART_ENQUEUED = 'workflows.step.restart_enqueued' as const;\nexport const WORKFLOWS_STEP_ATTEMPT_TERMINATED = 'workflows.step_attempt.terminated' as const;\n\nexport const workflowsWorkflowRunAttemptCreatedSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n attempt: z.number().int().positive(),\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n definitionId: nonEmptyStringSchema,\n});\nexport type WorkflowsWorkflowRunAttemptCreatedEventDto = z.infer<\n typeof workflowsWorkflowRunAttemptCreatedSchema\n>;\n\n// Keep outbox terminal statuses narrower than the public status schemas, which\n// also carry pending/running and job-only skipped.\nexport const workflowRunTerminalStatusSchema = z.enum(['succeeded', 'failed', 'cancelled']);\nexport const jobTerminalStatusSchema = z.enum(['succeeded', 'failed', 'cancelled', 'skipped']);\nexport const terminalStatusSchema = workflowRunTerminalStatusSchema;\n\nexport const workflowsWorkflowRunTerminatedSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n status: workflowRunTerminalStatusSchema,\n});\nexport type WorkflowsWorkflowRunTerminatedEventDto = z.infer<\n typeof workflowsWorkflowRunTerminatedSchema\n>;\n\nexport const workflowsWorkflowRunCancelledSchema = z.object({\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n});\nexport type WorkflowsWorkflowRunCancelledEventDto = z.infer<\n typeof workflowsWorkflowRunCancelledSchema\n>;\n\nexport const workflowsJobExecutionTimedOutSchema = z.object({\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n});\nexport type WorkflowsJobExecutionTimedOutEventDto = z.infer<\n typeof workflowsJobExecutionTimedOutSchema\n>;\n\nconst workflowsJobActivatedBaseSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n});\n\n// Keep this passive DTO schema local so the transport package does not depend on expression runtime code.\nexport type ListenerFilterExpressionType =\n | 'string'\n | 'int'\n | 'double'\n | 'bool'\n | 'null'\n | 'timestamp'\n | {kind: 'object'; fields: Record<string, ListenerFilterExpressionType>}\n | {kind: 'map'}\n | {kind: 'list'; element: ListenerFilterExpressionType};\n\nconst listenerFilterExpressionTypeSchema: z.ZodType<ListenerFilterExpressionType> = z.lazy(() =>\n z.union([\n z.enum(['string', 'int', 'double', 'bool', 'null', 'timestamp']),\n z.object({\n kind: z.literal('object'),\n fields: z.record(z.string(), listenerFilterExpressionTypeSchema),\n }),\n z.object({kind: z.literal('map')}),\n z.object({kind: z.literal('list'), element: listenerFilterExpressionTypeSchema}),\n ]),\n);\n\nexport const listenerFilterOutputTypesSchema = z.record(\n z.string(),\n z.record(z.string(), listenerFilterExpressionTypeSchema),\n);\nexport type ListenerFilterOutputTypes = z.infer<typeof listenerFilterOutputTypesSchema>;\n\nconst resolvedListeningTriggerSchema = listeningTriggerSchema.extend({\n filter_snapshot: z.record(z.string(), z.unknown()).optional(),\n filter_output_types: listenerFilterOutputTypesSchema.optional(),\n});\n\nexport const workflowsJobActivatedSchema = z.discriminatedUnion('mode', [\n workflowsJobActivatedBaseSchema.extend({\n mode: z.literal('one_shot'),\n on: z.array(resolvedListeningTriggerSchema).nullable().optional(),\n until: z.array(resolvedListeningTriggerSchema).nullable().optional(),\n }),\n workflowsJobActivatedBaseSchema.extend({\n mode: z.literal('listening'),\n on: z.array(resolvedListeningTriggerSchema).nonempty(),\n until: z.array(resolvedListeningTriggerSchema).nullable(),\n }),\n]);\nexport type WorkflowsJobActivatedEventDto = z.infer<typeof workflowsJobActivatedSchema>;\n\nexport const workflowsJobEventDeliveredSchema = z.object({\n jobId: nonEmptyStringSchema,\n disposition: z.enum(['fire', 'resolve']),\n eventRef: nonEmptyStringSchema,\n eventName: nonEmptyStringSchema,\n});\nexport type WorkflowsJobEventDeliveredEventDto = z.infer<typeof workflowsJobEventDeliveredSchema>;\n\nexport const workflowsJobTerminatedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n status: jobTerminalStatusSchema,\n statusReason: jobStatusReasonSchema.nullable(),\n});\nexport type WorkflowsJobTerminatedEventDto = z.infer<typeof workflowsJobTerminatedSchema>;\n\nconst settledStatusSchema = z.enum(['succeeded', 'failed']);\n\nexport const workflowsJobStepsSettledSchema = z.object({\n jobId: nonEmptyStringSchema,\n jobExecutionId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n status: settledStatusSchema,\n});\nexport type WorkflowsJobStepsSettledEventDto = z.infer<typeof workflowsJobStepsSettledSchema>;\n\nexport const workflowsStepRestartEnqueuedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n failedStepId: nonEmptyStringSchema,\n failedStepAttempt: z.number(),\n restartFromStepId: nonEmptyStringSchema,\n feedback: nonEmptyStringSchema,\n});\nexport type WorkflowsStepRestartEnqueuedEventDto = z.infer<\n typeof workflowsStepRestartEnqueuedSchema\n>;\n\nexport const workflowsStepAttemptTerminatedSchema = z.object({\n jobId: nonEmptyStringSchema,\n workflowRunId: nonEmptyStringSchema,\n workflowRunAttemptId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n stepId: nonEmptyStringSchema,\n attempt: z.number().int().positive(),\n logOutcome: logOutcomeSchema,\n});\nexport type WorkflowsStepAttemptTerminatedEventDto = z.infer<\n typeof workflowsStepAttemptTerminatedSchema\n>;\n\nexport interface WorkflowsEventMapDto {\n [WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED]: WorkflowsWorkflowRunAttemptCreatedEventDto;\n [WORKFLOWS_WORKFLOW_RUN_TERMINATED]: WorkflowsWorkflowRunTerminatedEventDto;\n [WORKFLOWS_WORKFLOW_RUN_CANCELLED]: WorkflowsWorkflowRunCancelledEventDto;\n [WORKFLOWS_JOB_EXECUTION_TIMED_OUT]: WorkflowsJobExecutionTimedOutEventDto;\n [WORKFLOWS_JOB_ACTIVATED]: WorkflowsJobActivatedEventDto;\n [WORKFLOWS_JOB_EVENT_DELIVERED]: WorkflowsJobEventDeliveredEventDto;\n [WORKFLOWS_JOB_TERMINATED]: WorkflowsJobTerminatedEventDto;\n [WORKFLOWS_JOB_STEPS_SETTLED]: WorkflowsJobStepsSettledEventDto;\n [WORKFLOWS_STEP_RESTART_ENQUEUED]: WorkflowsStepRestartEnqueuedEventDto;\n [WORKFLOWS_STEP_ATTEMPT_TERMINATED]: WorkflowsStepAttemptTerminatedEventDto;\n}\n\nexport const workflowsEventSchemas = {\n [WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED]: workflowsWorkflowRunAttemptCreatedSchema,\n [WORKFLOWS_WORKFLOW_RUN_TERMINATED]: workflowsWorkflowRunTerminatedSchema,\n [WORKFLOWS_WORKFLOW_RUN_CANCELLED]: workflowsWorkflowRunCancelledSchema,\n [WORKFLOWS_JOB_EXECUTION_TIMED_OUT]: workflowsJobExecutionTimedOutSchema,\n [WORKFLOWS_JOB_ACTIVATED]: workflowsJobActivatedSchema,\n [WORKFLOWS_JOB_EVENT_DELIVERED]: workflowsJobEventDeliveredSchema,\n [WORKFLOWS_JOB_TERMINATED]: workflowsJobTerminatedSchema,\n [WORKFLOWS_JOB_STEPS_SETTLED]: workflowsJobStepsSettledSchema,\n [WORKFLOWS_STEP_RESTART_ENQUEUED]: workflowsStepRestartEnqueuedSchema,\n [WORKFLOWS_STEP_ATTEMPT_TERMINATED]: workflowsStepAttemptTerminatedSchema,\n} satisfies Record<keyof WorkflowsEventMapDto, z.ZodType>;\n"],"names":["z","jobStatusReasonSchema","listeningTriggerSchema","logOutcomeSchema","nonEmptyStringSchema","string","nonempty","WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED","WORKFLOWS_WORKFLOW_RUN_TERMINATED","WORKFLOWS_WORKFLOW_RUN_CANCELLED","WORKFLOWS_JOB_EXECUTION_TIMED_OUT","WORKFLOWS_JOB_ACTIVATED","WORKFLOWS_JOB_EVENT_DELIVERED","WORKFLOWS_JOB_TERMINATED","WORKFLOWS_JOB_STEPS_SETTLED","WORKFLOWS_STEP_RESTART_ENQUEUED","WORKFLOWS_STEP_ATTEMPT_TERMINATED","workflowsWorkflowRunAttemptCreatedSchema","object","workflowRunId","workflowRunAttemptId","attempt","number","int","positive","workspaceId","projectId","definitionId","workflowRunTerminalStatusSchema","enum","jobTerminalStatusSchema","terminalStatusSchema","workflowsWorkflowRunTerminatedSchema","status","workflowsWorkflowRunCancelledSchema","workflowsJobExecutionTimedOutSchema","jobId","jobExecutionId","workflowsJobActivatedBaseSchema","listenerFilterExpressionTypeSchema","lazy","union","kind","literal","fields","record","element","listenerFilterOutputTypesSchema","resolvedListeningTriggerSchema","extend","filter_snapshot","unknown","optional","filter_output_types","workflowsJobActivatedSchema","discriminatedUnion","mode","on","array","nullable","until","workflowsJobEventDeliveredSchema","disposition","eventRef","eventName","workflowsJobTerminatedSchema","statusReason","settledStatusSchema","workflowsJobStepsSettledSchema","workflowsStepRestartEnqueuedSchema","failedStepId","failedStepAttempt","restartFromStepId","feedback","workflowsStepAttemptTerminatedSchema","stepId","logOutcome","workflowsEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,qBAAqB,QAAO,mBAAmB;AACvD,SAAQC,sBAAsB,QAAO,6BAA6B;AAClE,SAAQC,gBAAgB,QAAO,2BAA2B;AAE1D,MAAMC,uBAAuBJ,EAAEK,MAAM,GAAGC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iC,EAAEyB;IACpC,CAACxB,kCAAkC,EAAEyB;IACrC,CAACxB,wBAAwB,EAAE2C;IAC3B,CAAC1C,8BAA8B,EAAEiD;IACjC,CAAChD,yBAAyB,EAAEoD;IAC5B,CAACnD,4BAA4B,EAAEsD;IAC/B,CAACrD,gCAAgC,EAAEsD;IACnC,CAACrD,kCAAkC,EAAE0D;AACvC,EAA0D"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { type AgentConfigIssueDto, type AgentRuntimeConfigQueryDto, agentConfigIssueSchema, agentRuntimeConfigQuerySchema, type CheckoutIntentDto, type CheckoutResultDto, type CheckoutTokenAuthDto, type CheckoutTokenParamsDto, type CheckoutTokenQueryDto, type CheckoutTokenResponseDto, checkoutIntentSchema, checkoutResultSchema, checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema, type JobDto, type JobExecutionDto, type JobListeningDto, type JobModeDto, type JobStatusDto, type JobStatusReasonDto, jobDtoSchema, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, jobStatusReasonSchema, jobStatusSchema, type ListenerStatusDto, type ListeningTriggerDto, type LogOutcomeDto, listenerStatusSchema, listeningTriggerSchema, logOutcomeSchema, type NextStepResponseDto, nextStepResponseSchema, type ReportStepBodyDto, type ReportStepResponseDto, type RerunWorkflowRunBodyDto, type ResolutionReasonDto, reportStepBodySchema, reportStepResponseSchema, rerunWorkflowRunBodySchema, resolutionReasonSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_RESPONSE_MAX_LENGTH, type StepAttemptDto, type StepDto, type StepErrorCategoryDto, type StepErrorDto, type StepErrorReasonDto, type StepGateResultDto, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, type TriggerEventsBatchDto, triggerEventsBatchSchema, type WorkflowExecutionContextDto, type WorkflowExecutionEventDto, type WorkflowRunAggregatesQueryDto, type WorkflowRunAggregatesResponseDto, type WorkflowRunAttemptDto, type WorkflowRunAttemptsResponseDto, type WorkflowRunDetailResponseDto, type WorkflowRunDto, type WorkflowRunJobDetailDto, type WorkflowRunJobExecutionDetailDto, type WorkflowRunListQueryDto, type WorkflowRunListResponseDto, type WorkflowRunRerunModeDto, type WorkflowRunResponseDto, type WorkflowRunStatusDto, type WorkflowRunStepDetailDto, workflowExecutionContextSchema, workflowExecutionEventSchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDetailResponseSchema, workflowRunDtoSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunStepDetailDtoSchema, } from '#schemas/index.js';
2
2
  export { type StepSourceLocationDto, stepSourceLocationSchema } from '#schemas/step.js';
3
3
  export { WORKFLOW_RUN_JOB_PREVIEW_LIMIT, type WorkflowRunJobStatusCountDto, type WorkflowRunJobSummaryDto, type WorkflowRunListItemDto, type WorkflowRunTriggerReferenceDto, type WorkflowSourceSnapshotDto, workflowRunTriggerReferenceSchema, workflowSourceSnapshotSchema, } from '#schemas/workflow-run.js';
4
- export { jobTerminalStatusSchema, terminalStatusSchema, WORKFLOWS_JOB_ACTIVATED, WORKFLOWS_JOB_EVENT_DELIVERED, WORKFLOWS_JOB_EXECUTION_TIMED_OUT, WORKFLOWS_JOB_STEPS_SETTLED, WORKFLOWS_JOB_TERMINATED, WORKFLOWS_STEP_ATTEMPT_TERMINATED, WORKFLOWS_STEP_RESTART_ENQUEUED, WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED, WORKFLOWS_WORKFLOW_RUN_CANCELLED, WORKFLOWS_WORKFLOW_RUN_TERMINATED, type WorkflowsEventMapDto, type WorkflowsJobActivatedEventDto, type WorkflowsJobEventDeliveredEventDto, type WorkflowsJobExecutionTimedOutEventDto, type WorkflowsJobStepsSettledEventDto, type WorkflowsJobTerminatedEventDto, type WorkflowsStepAttemptTerminatedEventDto, type WorkflowsStepRestartEnqueuedEventDto, type WorkflowsWorkflowRunAttemptCreatedEventDto, type WorkflowsWorkflowRunCancelledEventDto, type WorkflowsWorkflowRunTerminatedEventDto, workflowRunTerminalStatusSchema, workflowsEventSchemas, workflowsJobActivatedSchema, workflowsJobEventDeliveredSchema, workflowsJobExecutionTimedOutSchema, workflowsJobStepsSettledSchema, workflowsJobTerminatedSchema, workflowsStepAttemptTerminatedSchema, workflowsStepRestartEnqueuedSchema, workflowsWorkflowRunAttemptCreatedSchema, workflowsWorkflowRunCancelledSchema, workflowsWorkflowRunTerminatedSchema, } from './events.js';
4
+ export { jobTerminalStatusSchema, type ListenerFilterExpressionType, type ListenerFilterOutputTypes, listenerFilterOutputTypesSchema, terminalStatusSchema, WORKFLOWS_JOB_ACTIVATED, WORKFLOWS_JOB_EVENT_DELIVERED, WORKFLOWS_JOB_EXECUTION_TIMED_OUT, WORKFLOWS_JOB_STEPS_SETTLED, WORKFLOWS_JOB_TERMINATED, WORKFLOWS_STEP_ATTEMPT_TERMINATED, WORKFLOWS_STEP_RESTART_ENQUEUED, WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED, WORKFLOWS_WORKFLOW_RUN_CANCELLED, WORKFLOWS_WORKFLOW_RUN_TERMINATED, type WorkflowsEventMapDto, type WorkflowsJobActivatedEventDto, type WorkflowsJobEventDeliveredEventDto, type WorkflowsJobExecutionTimedOutEventDto, type WorkflowsJobStepsSettledEventDto, type WorkflowsJobTerminatedEventDto, type WorkflowsStepAttemptTerminatedEventDto, type WorkflowsStepRestartEnqueuedEventDto, type WorkflowsWorkflowRunAttemptCreatedEventDto, type WorkflowsWorkflowRunCancelledEventDto, type WorkflowsWorkflowRunTerminatedEventDto, workflowRunTerminalStatusSchema, workflowsEventSchemas, workflowsJobActivatedSchema, workflowsJobEventDeliveredSchema, workflowsJobExecutionTimedOutSchema, workflowsJobStepsSettledSchema, workflowsJobTerminatedSchema, workflowsStepAttemptTerminatedSchema, workflowsStepRestartEnqueuedSchema, workflowsWorkflowRunAttemptCreatedSchema, workflowsWorkflowRunCancelledSchema, workflowsWorkflowRunTerminatedSchema, } from './events.js';
5
5
  export { assertWorkingDirectory, InvalidWorkingDirectoryError } from './working-directory.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,sBAAsB,EACtB,6BAA6B,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,wBAAwB,EACxB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,K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EAC3B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,iCAAiC,EACjC,4BAA4B,GAC7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,+BAA+B,EAC/B,oBAAoB,EACpB,uBAAuB,EACvB,6BAA6B,EAC7B,iCAAiC,EACjC,2BAA2B,EAC3B,wBAAwB,EACxB,iCAAiC,EACjC,+BAA+B,EAC/B,sCAAsC,EACtC,gCAAgC,EAChC,iCAAiC,EACjC,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,sCAAsC,EAC3C,KAAK,oCAAoC,EACzC,KAAK,0CAA0C,EAC/C,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAC3C,+BAA+B,EAC/B,qBAAqB,EACrB,2BAA2B,EAC3B,gCAAgC,EAChC,mCAAmC,EACnC,8BAA8B,EAC9B,4BAA4B,EAC5B,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,mCAAmC,EACnC,oCAAoC,GACrC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,sBAAsB,EAAE,4BAA4B,EAAC,MAAM,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { agentConfigIssueSchema, agentRuntimeConfigQuerySchema, checkoutIntentSchema, checkoutResultSchema, checkoutTokenAuthSchema, checkoutTokenParamsSchema, checkoutTokenQuerySchema, checkoutTokenResponseSchema, jobDtoSchema, jobListeningBatchSchema, jobListeningSchema, jobModeSchema, jobStatusReasonSchema, jobStatusSchema, listenerStatusSchema, listeningTriggerSchema, logOutcomeSchema, nextStepResponseSchema, reportStepBodySchema, reportStepResponseSchema, rerunWorkflowRunBodySchema, resolutionReasonSchema, STEP_ERROR_MESSAGE_MAX_LENGTH, STEP_RESPONSE_MAX_LENGTH, stepAttemptDtoSchema, stepDtoSchema, stepErrorCategorySchema, stepErrorDtoSchema, stepErrorReasonSchema, stepGateResultDtoSchema, triggerEventsBatchSchema, workflowExecutionContextSchema, workflowExecutionEventSchema, workflowRunAggregatesQuerySchema, workflowRunAggregatesResponseSchema, workflowRunAttemptDtoSchema, workflowRunAttemptsResponseSchema, workflowRunDetailResponseSchema, workflowRunDtoSchema, workflowRunJobDetailDtoSchema, workflowRunJobExecutionDetailDtoSchema, workflowRunJobStatusCountDtoSchema, workflowRunJobSummaryDtoSchema, workflowRunListItemSchema, workflowRunListQuerySchema, workflowRunListResponseSchema, workflowRunRerunModeSchema, workflowRunResponseSchema, workflowRunStatusSchema, workflowRunStepDetailDtoSchema } from '#schemas/index.js';
2
2
  export { stepSourceLocationSchema } from '#schemas/step.js';
3
3
  export { WORKFLOW_RUN_JOB_PREVIEW_LIMIT, workflowRunTriggerReferenceSchema, workflowSourceSnapshotSchema } from '#schemas/workflow-run.js';
4
- export { jobTerminalStatusSchema, terminalStatusSchema, WORKFLOWS_JOB_ACTIVATED, WORKFLOWS_JOB_EVENT_DELIVERED, WORKFLOWS_JOB_EXECUTION_TIMED_OUT, WORKFLOWS_JOB_STEPS_SETTLED, WORKFLOWS_JOB_TERMINATED, WORKFLOWS_STEP_ATTEMPT_TERMINATED, WORKFLOWS_STEP_RESTART_ENQUEUED, WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED, WORKFLOWS_WORKFLOW_RUN_CANCELLED, WORKFLOWS_WORKFLOW_RUN_TERMINATED, workflowRunTerminalStatusSchema, workflowsEventSchemas, workflowsJobActivatedSchema, workflowsJobEventDeliveredSchema, workflowsJobExecutionTimedOutSchema, workflowsJobStepsSettledSchema, workflowsJobTerminatedSchema, workflowsStepAttemptTerminatedSchema, workflowsStepRestartEnqueuedSchema, workflowsWorkflowRunAttemptCreatedSchema, workflowsWorkflowRunCancelledSchema, workflowsWorkflowRunTerminatedSchema } from './events.js';
4
+ export { jobTerminalStatusSchema, listenerFilterOutputTypesSchema, terminalStatusSchema, WORKFLOWS_JOB_ACTIVATED, WORKFLOWS_JOB_EVENT_DELIVERED, WORKFLOWS_JOB_EXECUTION_TIMED_OUT, WORKFLOWS_JOB_STEPS_SETTLED, WORKFLOWS_JOB_TERMINATED, WORKFLOWS_STEP_ATTEMPT_TERMINATED, WORKFLOWS_STEP_RESTART_ENQUEUED, WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED, WORKFLOWS_WORKFLOW_RUN_CANCELLED, WORKFLOWS_WORKFLOW_RUN_TERMINATED, workflowRunTerminalStatusSchema, workflowsEventSchemas, workflowsJobActivatedSchema, workflowsJobEventDeliveredSchema, workflowsJobExecutionTimedOutSchema, workflowsJobStepsSettledSchema, workflowsJobTerminatedSchema, workflowsStepAttemptTerminatedSchema, workflowsStepRestartEnqueuedSchema, workflowsWorkflowRunAttemptCreatedSchema, workflowsWorkflowRunCancelledSchema, workflowsWorkflowRunTerminatedSchema } from './events.js';
5
5
  export { assertWorkingDirectory, InvalidWorkingDirectoryError } from './working-directory.js';
6
6
 
7
7
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type AgentConfigIssueDto,\n type AgentRuntimeConfigQueryDto,\n agentConfigIssueSchema,\n agentRuntimeConfigQuerySchema,\n type CheckoutIntentDto,\n type CheckoutResultDto,\n type CheckoutTokenAuthDto,\n type CheckoutTokenParamsDto,\n type CheckoutTokenQueryDto,\n type CheckoutTokenResponseDto,\n checkoutIntentSchema,\n checkoutResultSchema,\n checkoutTokenAuthSchema,\n checkoutTokenParamsSchema,\n checkoutTokenQuerySchema,\n checkoutTokenResponseSchema,\n type JobDto,\n type JobExecutionDto,\n type JobListeningDto,\n type JobModeDto,\n type JobStatusDto,\n type JobStatusReasonDto,\n jobDtoSchema,\n jobListeningBatchSchema,\n jobListeningSchema,\n jobModeSchema,\n jobStatusReasonSchema,\n jobStatusSchema,\n type ListenerStatusDto,\n type ListeningTriggerDto,\n type LogOutcomeDto,\n listenerStatusSchema,\n listeningTriggerSchema,\n logOutcomeSchema,\n type NextStepResponseDto,\n nextStepResponseSchema,\n type ReportStepBodyDto,\n type ReportStepResponseDto,\n type RerunWorkflowRunBodyDto,\n type ResolutionReasonDto,\n reportStepBodySchema,\n reportStepResponseSchema,\n rerunWorkflowRunBodySchema,\n resolutionReasonSchema,\n STEP_ERROR_MESSAGE_MAX_LENGTH,\n STEP_RESPONSE_MAX_LENGTH,\n type StepAttemptDto,\n type StepDto,\n type StepErrorCategoryDto,\n type StepErrorDto,\n type StepErrorReasonDto,\n type StepGateResultDto,\n stepAttemptDtoSchema,\n stepDtoSchema,\n stepErrorCategorySchema,\n stepErrorDtoSchema,\n stepErrorReasonSchema,\n stepGateResultDtoSchema,\n type TriggerEventsBatchDto,\n triggerEventsBatchSchema,\n type WorkflowExecutionContextDto,\n type WorkflowExecutionEventDto,\n type WorkflowRunAggregatesQueryDto,\n type WorkflowRunAggregatesResponseDto,\n type WorkflowRunAttemptDto,\n type WorkflowRunAttemptsResponseDto,\n type WorkflowRunDetailResponseDto,\n type WorkflowRunDto,\n type WorkflowRunJobDetailDto,\n type WorkflowRunJobExecutionDetailDto,\n type WorkflowRunListQueryDto,\n type WorkflowRunListResponseDto,\n type WorkflowRunRerunModeDto,\n type WorkflowRunResponseDto,\n type WorkflowRunStatusDto,\n type WorkflowRunStepDetailDto,\n workflowExecutionContextSchema,\n workflowExecutionEventSchema,\n workflowRunAggregatesQuerySchema,\n workflowRunAggregatesResponseSchema,\n workflowRunAttemptDtoSchema,\n workflowRunAttemptsResponseSchema,\n workflowRunDetailResponseSchema,\n workflowRunDtoSchema,\n workflowRunJobDetailDtoSchema,\n workflowRunJobExecutionDetailDtoSchema,\n workflowRunJobStatusCountDtoSchema,\n workflowRunJobSummaryDtoSchema,\n workflowRunListItemSchema,\n workflowRunListQuerySchema,\n workflowRunListResponseSchema,\n workflowRunRerunModeSchema,\n workflowRunResponseSchema,\n workflowRunStatusSchema,\n workflowRunStepDetailDtoSchema,\n} from '#schemas/index.js';\nexport {type StepSourceLocationDto, stepSourceLocationSchema} from '#schemas/step.js';\nexport {\n WORKFLOW_RUN_JOB_PREVIEW_LIMIT,\n type WorkflowRunJobStatusCountDto,\n type WorkflowRunJobSummaryDto,\n type WorkflowRunListItemDto,\n type WorkflowRunTriggerReferenceDto,\n type WorkflowSourceSnapshotDto,\n workflowRunTriggerReferenceSchema,\n workflowSourceSnapshotSchema,\n} from '#schemas/workflow-run.js';\nexport {\n jobTerminalStatusSchema,\n terminalStatusSchema,\n WORKFLOWS_JOB_ACTIVATED,\n WORKFLOWS_JOB_EVENT_DELIVERED,\n WORKFLOWS_JOB_EXECUTION_TIMED_OUT,\n WORKFLOWS_JOB_STEPS_SETTLED,\n WORKFLOWS_JOB_TERMINATED,\n WORKFLOWS_STEP_ATTEMPT_TERMINATED,\n WORKFLOWS_STEP_RESTART_ENQUEUED,\n WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED,\n WORKFLOWS_WORKFLOW_RUN_CANCELLED,\n WORKFLOWS_WORKFLOW_RUN_TERMINATED,\n type WorkflowsEventMapDto,\n type WorkflowsJobActivatedEventDto,\n type WorkflowsJobEventDeliveredEventDto,\n type WorkflowsJobExecutionTimedOutEventDto,\n type WorkflowsJobStepsSettledEventDto,\n type WorkflowsJobTerminatedEventDto,\n type WorkflowsStepAttemptTerminatedEventDto,\n type WorkflowsStepRestartEnqueuedEventDto,\n type WorkflowsWorkflowRunAttemptCreatedEventDto,\n type WorkflowsWorkflowRunCancelledEventDto,\n type WorkflowsWorkflowRunTerminatedEventDto,\n workflowRunTerminalStatusSchema,\n workflowsEventSchemas,\n workflowsJobActivatedSchema,\n workflowsJobEventDeliveredSchema,\n workflowsJobExecutionTimedOutSchema,\n workflowsJobStepsSettledSchema,\n workflowsJobTerminatedSchema,\n workflowsStepAttemptTerminatedSchema,\n workflowsStepRestartEnqueuedSchema,\n workflowsWorkflowRunAttemptCreatedSchema,\n workflowsWorkflowRunCancelledSchema,\n workflowsWorkflowRunTerminatedSchema,\n} from './events.js';\nexport {assertWorkingDirectory, InvalidWorkingDirectoryError} from './working-directory.js';\n"],"names":["agentConfigIssueSchema","agentRuntimeConfigQuerySchema","checkoutIntentSchema","checkoutResultSchema","checkoutTokenAuthSchema","checkoutTokenParamsSchema","checkoutTokenQuerySchema","checkoutTokenResponseSchema","jobDtoSchema","jobListeningBatchSchema","jobListeningSchema","jobModeSchema","jobStatusReasonSchema","jobStatusSchema","listenerStatusSchema","listeningTriggerSchema","logOutcomeSchema","nextStepResponseSchema","reportStepBodySchema","reportStepResponseSchema","rerunWorkflowRunBodySchema","resolutionReasonSchema","STEP_ERROR_MESSAGE_MAX_LENGTH","STEP_RESPONSE_MAX_LENGTH","stepAttemptDtoSchema","stepDtoSchema","stepErrorCategorySchema","stepErrorDtoSchema","stepErrorReasonSchema","stepGateResultDtoSchema","triggerEventsBatchSchema","workflowExecutionContextSchema","workflowExecutionEventSchema","workflowRunAggregatesQuerySchema","workflowRunAggregatesResponseSchema","workflowRunAttemptDtoSchema","workflowRunAttemptsResponseSchema","workflowRunDetailResponseSchema","workflowRunDtoSchema","workflowRunJobDetailDtoSchema","workflowRunJobExecutionDetailDtoSchema","workflowRunJobStatusCountDtoSchema","workflowRunJobSummaryDtoSchema","workflowRunListItemSchema","workflowRunListQuerySchema","workflowRunListResponseSchema","workflowRunRerunModeSchema","workflowRunResponseSchema","workflowRunStatusSchema","workflowRunStepDetailDtoSchema","stepSourceLocationSchema","WORKFLOW_RUN_JOB_PREVIEW_LIMIT","workflowRunTriggerReferenceSchema","workflowSourceSnapshotSchema","jobTerminalStatusSchema","terminalStatusSchema","WORKFLOWS_JOB_ACTIVATED","WORKFLOWS_JOB_EVENT_DELIVERED","WORKFLOWS_JOB_EXECUTION_TIMED_OUT","WORKFLOWS_JOB_STEPS_SETTLED","WORKFLOWS_JOB_TERMINATED","WORKFLOWS_STEP_ATTEMPT_TERMINATED","WORKFLOWS_STEP_RESTART_ENQUEUED","WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED","WORKFLOWS_WORKFLOW_RUN_CANCELLED","WORKFLOWS_WORKFLOW_RUN_TERMINATED","workflowRunTerminalStatusSchema","workflowsEventSchemas","workflowsJobActivatedSchema","workflowsJobEventDeliveredSchema","workflowsJobExecutionTimedOutSchema","workflowsJobStepsSettledSchema","workflowsJobTerminatedSchema","workflowsStepAttemptTerminatedSchema","workflowsStepRestartEnqueuedSchema","workflowsWorkflowRunAttemptCreatedSchema","workflowsWorkflowRunCancelledSchema","workflowsWorkflowRunTerminatedSchema","assertWorkingDirectory","InvalidWorkingDirectoryError"],"mappings":"AAAA,SAGEA,sBAAsB,EACtBC,6BAA6B,EAO7BC,oBAAoB,EACpBC,oBAAoB,EACpBC,uBAAuB,EACvBC,yBAAyB,EACzBC,wBAAwB,EACxBC,2BAA2B,EAO3BC,YAAY,EACZC,uBAAuB,EACvBC,kBAAkB,EAClBC,aAAa,EACbC,qBAAqB,EACrBC,eAAe,EAIfC,oBAAoB,EACpBC,sBAAsB,EACtBC,gBAAgB,EAEhBC,sBAAsB,EAKtBC,oBAAoB,EACpBC,wBAAwB,EACxBC,0BAA0B,EAC1BC,sBAAsB,EACtBC,6BAA6B,EAC7BC,wBAAwB,EAOxBC,oBAAoB,EACpBC,aAAa,EACbC,uBAAuB,EACvBC,kBAAkB,EAClBC,qBAAqB,EACrBC,uBAAuB,EAEvBC,wBAAwB,EAiBxBC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,gCAAgC,EAChCC,mCAAmC,EACnCC,2BAA2B,EAC3BC,iCAAiC,EACjCC,+BAA+B,EAC/BC,oBAAoB,EACpBC,6BAA6B,EAC7BC,sCAAsC,EACtCC,kCAAkC,EAClCC,8BAA8B,EAC9BC,yBAAyB,EACzBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,0BAA0B,EAC1BC,yBAAyB,EACzBC,uBAAuB,EACvBC,8BAA8B,QACzB,oBAAoB;AAC3B,SAAoCC,wBAAwB,QAAO,mBAAmB;AACtF,SACEC,8BAA8B,EAM9BC,iCAAiC,EACjCC,4BAA4B,QACvB,2BAA2B;AAClC,SACEC,uBAAuB,EACvBC,oBAAoB,EACpBC,uBAAuB,EACvBC,6BAA6B,EAC7BC,iCAAiC,EACjCC,2BAA2B,EAC3BC,wBAAwB,EACxBC,iCAAiC,EACjCC,+BAA+B,EAC/BC,sCAAsC,EACtCC,gCAAgC,EAChCC,iCAAiC,EAYjCC,+BAA+B,EAC/BC,qBAAqB,EACrBC,2BAA2B,EAC3BC,gCAAgC,EAChCC,mCAAmC,EACnCC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,oCAAoC,EACpCC,kCAAkC,EAClCC,wCAAwC,EACxCC,mCAAmC,EACnCC,oCAAoC,QAC/B,cAAc;AACrB,SAAQC,sBAAsB,EAAEC,4BAA4B,QAAO,yBAAyB"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n type AgentConfigIssueDto,\n type AgentRuntimeConfigQueryDto,\n agentConfigIssueSchema,\n agentRuntimeConfigQuerySchema,\n type CheckoutIntentDto,\n type CheckoutResultDto,\n type CheckoutTokenAuthDto,\n type CheckoutTokenParamsDto,\n type CheckoutTokenQueryDto,\n type CheckoutTokenResponseDto,\n checkoutIntentSchema,\n checkoutResultSchema,\n checkoutTokenAuthSchema,\n checkoutTokenParamsSchema,\n checkoutTokenQuerySchema,\n checkoutTokenResponseSchema,\n type JobDto,\n type JobExecutionDto,\n type JobListeningDto,\n type JobModeDto,\n type JobStatusDto,\n type JobStatusReasonDto,\n jobDtoSchema,\n jobListeningBatchSchema,\n jobListeningSchema,\n jobModeSchema,\n jobStatusReasonSchema,\n jobStatusSchema,\n type ListenerStatusDto,\n type ListeningTriggerDto,\n type LogOutcomeDto,\n listenerStatusSchema,\n listeningTriggerSchema,\n logOutcomeSchema,\n type NextStepResponseDto,\n nextStepResponseSchema,\n type ReportStepBodyDto,\n type ReportStepResponseDto,\n type RerunWorkflowRunBodyDto,\n type ResolutionReasonDto,\n reportStepBodySchema,\n reportStepResponseSchema,\n rerunWorkflowRunBodySchema,\n resolutionReasonSchema,\n STEP_ERROR_MESSAGE_MAX_LENGTH,\n STEP_RESPONSE_MAX_LENGTH,\n type StepAttemptDto,\n type StepDto,\n type StepErrorCategoryDto,\n type StepErrorDto,\n type StepErrorReasonDto,\n type StepGateResultDto,\n stepAttemptDtoSchema,\n stepDtoSchema,\n stepErrorCategorySchema,\n stepErrorDtoSchema,\n stepErrorReasonSchema,\n stepGateResultDtoSchema,\n type TriggerEventsBatchDto,\n triggerEventsBatchSchema,\n type WorkflowExecutionContextDto,\n type WorkflowExecutionEventDto,\n type WorkflowRunAggregatesQueryDto,\n type WorkflowRunAggregatesResponseDto,\n type WorkflowRunAttemptDto,\n type WorkflowRunAttemptsResponseDto,\n type WorkflowRunDetailResponseDto,\n type WorkflowRunDto,\n type WorkflowRunJobDetailDto,\n type WorkflowRunJobExecutionDetailDto,\n type WorkflowRunListQueryDto,\n type WorkflowRunListResponseDto,\n type WorkflowRunRerunModeDto,\n type WorkflowRunResponseDto,\n type WorkflowRunStatusDto,\n type WorkflowRunStepDetailDto,\n workflowExecutionContextSchema,\n workflowExecutionEventSchema,\n workflowRunAggregatesQuerySchema,\n workflowRunAggregatesResponseSchema,\n workflowRunAttemptDtoSchema,\n workflowRunAttemptsResponseSchema,\n workflowRunDetailResponseSchema,\n workflowRunDtoSchema,\n workflowRunJobDetailDtoSchema,\n workflowRunJobExecutionDetailDtoSchema,\n workflowRunJobStatusCountDtoSchema,\n workflowRunJobSummaryDtoSchema,\n workflowRunListItemSchema,\n workflowRunListQuerySchema,\n workflowRunListResponseSchema,\n workflowRunRerunModeSchema,\n workflowRunResponseSchema,\n workflowRunStatusSchema,\n workflowRunStepDetailDtoSchema,\n} from '#schemas/index.js';\nexport {type StepSourceLocationDto, stepSourceLocationSchema} from '#schemas/step.js';\nexport {\n WORKFLOW_RUN_JOB_PREVIEW_LIMIT,\n type WorkflowRunJobStatusCountDto,\n type WorkflowRunJobSummaryDto,\n type WorkflowRunListItemDto,\n type WorkflowRunTriggerReferenceDto,\n type WorkflowSourceSnapshotDto,\n workflowRunTriggerReferenceSchema,\n workflowSourceSnapshotSchema,\n} from '#schemas/workflow-run.js';\nexport {\n jobTerminalStatusSchema,\n type ListenerFilterExpressionType,\n type ListenerFilterOutputTypes,\n listenerFilterOutputTypesSchema,\n terminalStatusSchema,\n WORKFLOWS_JOB_ACTIVATED,\n WORKFLOWS_JOB_EVENT_DELIVERED,\n WORKFLOWS_JOB_EXECUTION_TIMED_OUT,\n WORKFLOWS_JOB_STEPS_SETTLED,\n WORKFLOWS_JOB_TERMINATED,\n WORKFLOWS_STEP_ATTEMPT_TERMINATED,\n WORKFLOWS_STEP_RESTART_ENQUEUED,\n WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED,\n WORKFLOWS_WORKFLOW_RUN_CANCELLED,\n WORKFLOWS_WORKFLOW_RUN_TERMINATED,\n type WorkflowsEventMapDto,\n type WorkflowsJobActivatedEventDto,\n type WorkflowsJobEventDeliveredEventDto,\n type WorkflowsJobExecutionTimedOutEventDto,\n type WorkflowsJobStepsSettledEventDto,\n type WorkflowsJobTerminatedEventDto,\n type WorkflowsStepAttemptTerminatedEventDto,\n type WorkflowsStepRestartEnqueuedEventDto,\n type WorkflowsWorkflowRunAttemptCreatedEventDto,\n type WorkflowsWorkflowRunCancelledEventDto,\n type WorkflowsWorkflowRunTerminatedEventDto,\n workflowRunTerminalStatusSchema,\n workflowsEventSchemas,\n workflowsJobActivatedSchema,\n workflowsJobEventDeliveredSchema,\n workflowsJobExecutionTimedOutSchema,\n workflowsJobStepsSettledSchema,\n workflowsJobTerminatedSchema,\n workflowsStepAttemptTerminatedSchema,\n workflowsStepRestartEnqueuedSchema,\n workflowsWorkflowRunAttemptCreatedSchema,\n workflowsWorkflowRunCancelledSchema,\n workflowsWorkflowRunTerminatedSchema,\n} from './events.js';\nexport {assertWorkingDirectory, InvalidWorkingDirectoryError} from './working-directory.js';\n"],"names":["agentConfigIssueSchema","agentRuntimeConfigQuerySchema","checkoutIntentSchema","checkoutResultSchema","checkoutTokenAuthSchema","checkoutTokenParamsSchema","checkoutTokenQuerySchema","checkoutTokenResponseSchema","jobDtoSchema","jobListeningBatchSchema","jobListeningSchema","jobModeSchema","jobStatusReasonSchema","jobStatusSchema","listenerStatusSchema","listeningTriggerSchema","logOutcomeSchema","nextStepResponseSchema","reportStepBodySchema","reportStepResponseSchema","rerunWorkflowRunBodySchema","resolutionReasonSchema","STEP_ERROR_MESSAGE_MAX_LENGTH","STEP_RESPONSE_MAX_LENGTH","stepAttemptDtoSchema","stepDtoSchema","stepErrorCategorySchema","stepErrorDtoSchema","stepErrorReasonSchema","stepGateResultDtoSchema","triggerEventsBatchSchema","workflowExecutionContextSchema","workflowExecutionEventSchema","workflowRunAggregatesQuerySchema","workflowRunAggregatesResponseSchema","workflowRunAttemptDtoSchema","workflowRunAttemptsResponseSchema","workflowRunDetailResponseSchema","workflowRunDtoSchema","workflowRunJobDetailDtoSchema","workflowRunJobExecutionDetailDtoSchema","workflowRunJobStatusCountDtoSchema","workflowRunJobSummaryDtoSchema","workflowRunListItemSchema","workflowRunListQuerySchema","workflowRunListResponseSchema","workflowRunRerunModeSchema","workflowRunResponseSchema","workflowRunStatusSchema","workflowRunStepDetailDtoSchema","stepSourceLocationSchema","WORKFLOW_RUN_JOB_PREVIEW_LIMIT","workflowRunTriggerReferenceSchema","workflowSourceSnapshotSchema","jobTerminalStatusSchema","listenerFilterOutputTypesSchema","terminalStatusSchema","WORKFLOWS_JOB_ACTIVATED","WORKFLOWS_JOB_EVENT_DELIVERED","WORKFLOWS_JOB_EXECUTION_TIMED_OUT","WORKFLOWS_JOB_STEPS_SETTLED","WORKFLOWS_JOB_TERMINATED","WORKFLOWS_STEP_ATTEMPT_TERMINATED","WORKFLOWS_STEP_RESTART_ENQUEUED","WORKFLOWS_WORKFLOW_RUN_ATTEMPT_CREATED","WORKFLOWS_WORKFLOW_RUN_CANCELLED","WORKFLOWS_WORKFLOW_RUN_TERMINATED","workflowRunTerminalStatusSchema","workflowsEventSchemas","workflowsJobActivatedSchema","workflowsJobEventDeliveredSchema","workflowsJobExecutionTimedOutSchema","workflowsJobStepsSettledSchema","workflowsJobTerminatedSchema","workflowsStepAttemptTerminatedSchema","workflowsStepRestartEnqueuedSchema","workflowsWorkflowRunAttemptCreatedSchema","workflowsWorkflowRunCancelledSchema","workflowsWorkflowRunTerminatedSchema","assertWorkingDirectory","InvalidWorkingDirectoryError"],"mappings":"AAAA,SAGEA,sBAAsB,EACtBC,6BAA6B,EAO7BC,oBAAoB,EACpBC,oBAAoB,EACpBC,uBAAuB,EACvBC,yBAAyB,EACzBC,wBAAwB,EACxBC,2BAA2B,EAO3BC,YAAY,EACZC,uBAAuB,EACvBC,kBAAkB,EAClBC,aAAa,EACbC,qBAAqB,EACrBC,eAAe,EAIfC,oBAAoB,EACpBC,sBAAsB,EACtBC,gBAAgB,EAEhBC,sBAAsB,EAKtBC,oBAAoB,EACpBC,wBAAwB,EACxBC,0BAA0B,EAC1BC,sBAAsB,EACtBC,6BAA6B,EAC7BC,wBAAwB,EAOxBC,oBAAoB,EACpBC,aAAa,EACbC,uBAAuB,EACvBC,kBAAkB,EAClBC,qBAAqB,EACrBC,uBAAuB,EAEvBC,wBAAwB,EAiBxBC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,gCAAgC,EAChCC,mCAAmC,EACnCC,2BAA2B,EAC3BC,iCAAiC,EACjCC,+BAA+B,EAC/BC,oBAAoB,EACpBC,6BAA6B,EAC7BC,sCAAsC,EACtCC,kCAAkC,EAClCC,8BAA8B,EAC9BC,yBAAyB,EACzBC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,0BAA0B,EAC1BC,yBAAyB,EACzBC,uBAAuB,EACvBC,8BAA8B,QACzB,oB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