@shipfox/api-workflows-dto 10.0.0 → 12.1.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.
Files changed (58) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +40 -0
  3. package/dist/index.d.ts +3 -2
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +3 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/inter-module.d.ts +53 -1
  8. package/dist/inter-module.d.ts.map +1 -1
  9. package/dist/inter-module.js +30 -2
  10. package/dist/inter-module.js.map +1 -1
  11. package/dist/schemas/checkout-token.d.ts +9 -0
  12. package/dist/schemas/checkout-token.d.ts.map +1 -1
  13. package/dist/schemas/checkout-token.js +7 -0
  14. package/dist/schemas/checkout-token.js.map +1 -1
  15. package/dist/schemas/index.d.ts +3 -3
  16. package/dist/schemas/index.d.ts.map +1 -1
  17. package/dist/schemas/index.js +3 -3
  18. package/dist/schemas/index.js.map +1 -1
  19. package/dist/schemas/job-execution.d.ts +17 -0
  20. package/dist/schemas/job-execution.d.ts.map +1 -1
  21. package/dist/schemas/job-execution.js +7 -0
  22. package/dist/schemas/job-execution.js.map +1 -1
  23. package/dist/schemas/job-listening.d.ts +18 -0
  24. package/dist/schemas/job-listening.d.ts.map +1 -1
  25. package/dist/schemas/job-listening.js +6 -0
  26. package/dist/schemas/job-listening.js.map +1 -1
  27. package/dist/schemas/step.d.ts +6 -0
  28. package/dist/schemas/step.d.ts.map +1 -1
  29. package/dist/schemas/step.js +3 -1
  30. package/dist/schemas/step.js.map +1 -1
  31. package/dist/schemas/workflow-run-detail.d.ts +40 -0
  32. package/dist/schemas/workflow-run-detail.d.ts.map +1 -1
  33. package/dist/schemas/workflow-run.d.ts +155 -0
  34. package/dist/schemas/workflow-run.d.ts.map +1 -1
  35. package/dist/schemas/workflow-run.js +39 -1
  36. package/dist/schemas/workflow-run.js.map +1 -1
  37. package/dist/tsconfig.test.tsbuildinfo +1 -1
  38. package/dist/working-directory.d.ts +9 -0
  39. package/dist/working-directory.d.ts.map +1 -0
  40. package/dist/working-directory.js +23 -0
  41. package/dist/working-directory.js.map +1 -0
  42. package/package.json +3 -3
  43. package/src/index.ts +16 -0
  44. package/src/inter-module.test.ts +17 -0
  45. package/src/inter-module.ts +27 -1
  46. package/src/schemas/checkout-token.test.ts +44 -2
  47. package/src/schemas/checkout-token.ts +13 -0
  48. package/src/schemas/index.ts +15 -0
  49. package/src/schemas/job-execution.test.ts +15 -0
  50. package/src/schemas/job-execution.ts +13 -0
  51. package/src/schemas/job-listening.test.ts +4 -0
  52. package/src/schemas/job-listening.ts +4 -0
  53. package/src/schemas/step.test.ts +12 -0
  54. package/src/schemas/step.ts +3 -1
  55. package/src/schemas/workflow-run.test.ts +106 -1
  56. package/src/schemas/workflow-run.ts +56 -1
  57. package/src/working-directory.ts +28 -0
  58. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/job-execution.ts"],"sourcesContent":["import {z} from 'zod';\nimport {logOutcomeSchema} from './log-outcome.js';\nimport {stepDtoSchema, stepErrorDtoSchema} from './step.js';\n\nexport const STEP_RESPONSE_MAX_LENGTH = 8 * 1024;\n\n/**\n * The job to progress is identified by the caller's lease-token claims, never by\n * the request. An unknown job is a 404, not a `done`.\n */\nexport const nextStepResponseSchema = z.discriminatedUnion('kind', [\n z.object({\n kind: z.literal('step'),\n step: stepDtoSchema,\n attempt: z\n .number()\n .int()\n .positive()\n .describe(\n 'Attempt number for this step dispatch. Echo it back when reporting the step result so stale reports from older attempts can be ignored.',\n ),\n lease_token: z\n .string()\n .min(1)\n .describe(\n 'Job-lease token re-scoped to this dispatched step attempt. The runner presents it as its lease for log-append authorization and carries it on later step requests.',\n ),\n }),\n z.object({\n kind: z.literal('done'),\n status: z\n .enum(['succeeded', 'failed'])\n .describe('Terminal status of the job when no step remains to run.'),\n }),\n]);\n\nexport type NextStepResponseDto = z.infer<typeof nextStepResponseSchema>;\n\nexport const reportStepBodySchema = z\n .object({\n status: z.enum(['succeeded', 'failed']).describe('Final status reported for the step attempt.'),\n error: stepErrorDtoSchema\n .optional()\n .describe('Failure details. Required when status is failed.'),\n attempt: z\n .number()\n .int()\n .positive()\n .optional()\n .describe(\n 'Attempt number echoed from next-step. Older runners may omit it; when present, it protects the workflow from stale reports.',\n ),\n exit_code: z\n .number()\n .int()\n .nullable()\n .optional()\n .describe(\n 'Process exit code for the step attempt. Persisted as the canonical attempt exit code and used by gate evaluation.',\n ),\n output: z\n .record(z.string(), z.unknown())\n .nullable()\n .optional()\n .describe(\n 'Structured output captured for attempt history. Large textual logs are stored separately.',\n ),\n response: z\n .string()\n .max(STEP_RESPONSE_MAX_LENGTH)\n .optional()\n .describe('Capped final assistant response for agent step attempts. Omitted for run steps.'),\n log_outcome: logOutcomeSchema.describe(\n 'Whether the runner drained all locally spooled logs before reporting, or abandoned the log stream for backend closure.',\n ),\n })\n .refine((body) => (body.status === 'succeeded' ? body.error == null : body.error != null), {\n message: 'succeeded steps must not include an error and failed steps must include one',\n });\n\nexport type ReportStepBodyDto = z.infer<typeof reportStepBodySchema>;\n\nexport const reportStepResponseSchema = z.object({\n ok: z.boolean().describe('Whether the step report was accepted.'),\n cancel: z\n .boolean()\n .describe(\n 'Whether the runner should stop working on the job because it finished without full success.',\n ),\n});\n\nexport type ReportStepResponseDto = z.infer<typeof reportStepResponseSchema>;\n"],"names":["z","logOutcomeSchema","stepDtoSchema","stepErrorDtoSchema","STEP_RESPONSE_MAX_LENGTH","nextStepResponseSchema","discriminatedUnion","object","kind","literal","step","attempt","number","int","positive","describe","lease_token","string","min","status","enum","reportStepBodySchema","error","optional","exit_code","nullable","output","record","unknown","response","max","log_outcome","refine","body","message","reportStepResponseSchema","ok","boolean","cancel"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,gBAAgB,QAAO,mBAAmB;AAClD,SAAQC,aAAa,EAAEC,kBAA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AA2BnC,EAAEO,MAAM,CAAC;IAC/C6B,IAAIpC,EAAEqC,OAAO,GAAGtB,QAAQ,CAAC;IACzBuB,QAAQtC,EACLqC,OAAO,GACPtB,QAAQ,CACP;AAEN,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/job-execution.ts"],"sourcesContent":["import {z} from 'zod';\nimport {logOutcomeSchema} from './log-outcome.js';\nimport {stepDtoSchema, stepErrorDtoSchema} from './step.js';\n\nexport const STEP_RESPONSE_MAX_LENGTH = 8 * 1024;\n\n/**\n * The job to progress is identified by the caller's lease-token claims, never by\n * the request. An unknown job is a 404, not a `done`.\n */\nexport const nextStepResponseSchema = z.discriminatedUnion('kind', [\n z.object({\n kind: z.literal('step'),\n step: stepDtoSchema,\n attempt: z\n .number()\n .int()\n .positive()\n .describe(\n 'Attempt number for this step dispatch. Echo it back when reporting the step result so stale reports from older attempts can be ignored.',\n ),\n lease_token: z\n .string()\n .min(1)\n .describe(\n 'Job-lease token re-scoped to this dispatched step attempt. The runner presents it as its lease for log-append authorization and carries it on later step requests.',\n ),\n }),\n z.object({\n kind: z.literal('done'),\n status: z\n .enum(['succeeded', 'failed'])\n .describe('Terminal status of the job when no step remains to run.'),\n }),\n]);\n\nexport type NextStepResponseDto = z.infer<typeof nextStepResponseSchema>;\n\nexport const checkoutResultSchema = z\n .object({\n repository: z.string().min(1),\n ref: z.string().min(1),\n commit: z.string().min(1),\n path: z.string().min(1),\n })\n .describe('Resolved repository checkout details reported by the runner.');\nexport type CheckoutResultDto = z.infer<typeof checkoutResultSchema>;\n\nexport const reportStepBodySchema = z\n .object({\n status: z.enum(['succeeded', 'failed']).describe('Final status reported for the step attempt.'),\n error: stepErrorDtoSchema\n .optional()\n .describe('Failure details. Required when status is failed.'),\n attempt: z\n .number()\n .int()\n .positive()\n .optional()\n .describe(\n 'Attempt number echoed from next-step. Older runners may omit it; when present, it protects the workflow from stale reports.',\n ),\n exit_code: z\n .number()\n .int()\n .nullable()\n .optional()\n .describe(\n 'Process exit code for the step attempt. Persisted as the canonical attempt exit code and used by gate evaluation.',\n ),\n output: z\n .record(z.string(), z.unknown())\n .nullable()\n .optional()\n .describe(\n 'Structured output captured for attempt history. Large textual logs are stored separately.',\n ),\n checkout: checkoutResultSchema\n .optional()\n .describe('Resolved repository checkout details captured for attempt history.'),\n response: z\n .string()\n .max(STEP_RESPONSE_MAX_LENGTH)\n .optional()\n .describe('Capped final assistant response for agent step attempts. Omitted for run steps.'),\n log_outcome: logOutcomeSchema.describe(\n 'Whether the runner drained all locally spooled logs before reporting, or abandoned the log stream for backend closure.',\n ),\n })\n .refine((body) => (body.status === 'succeeded' ? body.error == null : body.error != null), {\n message: 'succeeded steps must not include an error and failed steps must include one',\n });\n\nexport type ReportStepBodyDto = z.infer<typeof reportStepBodySchema>;\n\nexport const reportStepResponseSchema = z.object({\n ok: z.boolean().describe('Whether the step report was accepted.'),\n cancel: z\n .boolean()\n .describe(\n 'Whether the runner should stop working on the job because it finished without full success.',\n ),\n});\n\nexport type ReportStepResponseDto = z.infer<typeof reportStepResponseSchema>;\n"],"names":["z","logOutcomeSchema","stepDtoSchema","stepErrorDtoSchema","STEP_RESPONSE_MAX_LENGTH","nextStepResponseSchema","discriminatedUnion","object","kind","literal","step","attempt","number","int","positive","describe","lease_token","string","min","status","enum","checkoutResultSchema","repository","ref","commit","path","reportStepBodySchema","error","optional","exit_code","nullable","output","record","unknown","checkout","response","max","log_outcome","refine","body","message","reportStepResponseSchema","ok","boolean","cancel"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,gBAAgB,QAAO,mBAAmB;AAClD,SAAQC,aAAa,EAAEC,kBAAkB,QAAO,YAAY;AAE5D,OAAO,MAAMC,2BAA2B,IAAI,KAAK;AAEjD;;;CAGC,GACD,OAAO,MAAMC,yBAAyBL,EAAEM,kBAAkB,CAAC,QAAQ;IACjEN,EAAEO,MAAM,CAAC;QACPC,MAAMR,EAAES,OAAO,CAAC;QAChBC,MAAMR;QACNS,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KAAKpB,MAAM,KAAK,cAAcoB,KAAKZ,KAAK,IAAI,OAAOY,KAAKZ,KAAK,IAAI,MAAO;IACzFa,SAAS;AACX,GAAG;AAIL,OAAO,MAAMC,2BAA2BzC,EAAEO,MAAM,CAAC;IAC/CmC,IAAI1C,EAAE2C,OAAO,GAAG5B,QAAQ,CAAC;IACzB6B,QAAQ5C,EACL2C,OAAO,GACP5B,QAAQ,CACP;AAEN,GAAG"}
@@ -57,6 +57,12 @@ export declare const workflowExecutionEventSchema: z.ZodObject<{
57
57
  event: z.ZodString;
58
58
  delivery_id: z.ZodString;
59
59
  received_at: z.ZodString;
60
+ project: z.ZodNullable<z.ZodObject<{
61
+ id: z.ZodString;
62
+ }, z.core.$strip>>;
63
+ repository: z.ZodNullable<z.ZodString>;
64
+ ref: z.ZodNullable<z.ZodString>;
65
+ commit: z.ZodNullable<z.ZodString>;
60
66
  data: z.ZodUnknown;
61
67
  }, z.core.$strip>;
62
68
  export declare const workflowExecutionContextSchema: z.ZodObject<{
@@ -70,6 +76,12 @@ export declare const workflowExecutionContextSchema: z.ZodObject<{
70
76
  event: z.ZodString;
71
77
  delivery_id: z.ZodString;
72
78
  received_at: z.ZodString;
79
+ project: z.ZodNullable<z.ZodObject<{
80
+ id: z.ZodString;
81
+ }, z.core.$strip>>;
82
+ repository: z.ZodNullable<z.ZodString>;
83
+ ref: z.ZodNullable<z.ZodString>;
84
+ commit: z.ZodNullable<z.ZodString>;
73
85
  data: z.ZodUnknown;
74
86
  }, z.core.$strip>>;
75
87
  }, z.core.$strip>;
@@ -79,6 +91,12 @@ export declare const triggerEventsBatchSchema: z.ZodObject<{
79
91
  event: z.ZodString;
80
92
  delivery_id: z.ZodString;
81
93
  received_at: z.ZodString;
94
+ project: z.ZodNullable<z.ZodObject<{
95
+ id: z.ZodString;
96
+ }, z.core.$strip>>;
97
+ repository: z.ZodNullable<z.ZodString>;
98
+ ref: z.ZodNullable<z.ZodString>;
99
+ commit: z.ZodNullable<z.ZodString>;
82
100
  data: z.ZodUnknown;
83
101
  }, z.core.$strip>>;
84
102
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"job-listening.d.ts","sourceRoot":"","sources":["../../src/schemas/job-listening.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,aAAa;;;EAAoC,CAAC;AAC/D,eAAO,MAAM,oBAAoB;;;;EAAgD,CAAC;AAClF,eAAO,MAAM,sBAAsB;;;;;EAA8D,CAAC;AAElG,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS7B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;iBAMvC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;iBAOzC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;iBAEnC,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACvD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACrF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACzF,MAAM,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CAAC;AACzF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -43,6 +43,12 @@ export const workflowExecutionEventSchema = z.object({
43
43
  event: z.string(),
44
44
  delivery_id: z.string(),
45
45
  received_at: z.string(),
46
+ project: z.object({
47
+ id: z.string().uuid()
48
+ }).nullable(),
49
+ repository: z.string().nullable(),
50
+ ref: z.string().nullable(),
51
+ commit: z.string().nullable(),
46
52
  data: z.unknown()
47
53
  });
48
54
  export const workflowExecutionContextSchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/job-listening.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const jobModeSchema = z.enum(['one_shot', 'listening']);\nexport const listenerStatusSchema = z.enum(['inactive', 'listening', 'resolved']);\nexport const resolutionReasonSchema = z.enum(['until', 'timeout', 'max_executions', 'cancelled']);\n\nexport const listeningTriggerSchema = z.object({\n source: z.string(),\n event: z.string(),\n inputs: z.record(z.string(), z.unknown()).optional(),\n filter: z.string().optional(),\n});\n\nexport const jobListeningBatchSchema = z.object({\n debounce_ms: z.number().int().positive().optional(),\n max_size: z.number().int().positive().optional(),\n max_wait_ms: z.number().int().positive().optional(),\n});\n\nexport const jobListeningSchema = z.object({\n on: z.array(listeningTriggerSchema).min(1),\n until: z.array(listeningTriggerSchema).min(1).nullable(),\n timeout_ms: z.number().int().positive().nullable(),\n max_executions: z.number().int().positive().nullable(),\n batch: jobListeningBatchSchema.nullable(),\n on_resolve: z.enum(['finish', 'cancel']),\n execution_timeout_ms: z.number().int().positive().nullable(),\n name: z.string().nullable(),\n});\n\nexport const workflowExecutionEventSchema = z.object({\n source: z.string(),\n event: z.string(),\n delivery_id: z.string(),\n received_at: z.string(),\n data: z.unknown(),\n});\n\nexport const workflowExecutionContextSchema = z.object({\n index: z.number().int().nonnegative(),\n name: z.string(),\n status: z.string(),\n started_at: z.string().nullable(),\n finished_at: z.string().nullable(),\n events: z.array(workflowExecutionEventSchema),\n});\n\nexport const triggerEventsBatchSchema = z.object({\n events: z.array(workflowExecutionEventSchema),\n});\n\nexport type JobModeDto = z.infer<typeof jobModeSchema>;\nexport type ListenerStatusDto = z.infer<typeof listenerStatusSchema>;\nexport type ResolutionReasonDto = z.infer<typeof resolutionReasonSchema>;\nexport type ListeningTriggerDto = z.infer<typeof listeningTriggerSchema>;\nexport type JobListeningDto = z.infer<typeof jobListeningSchema>;\nexport type WorkflowExecutionEventDto = z.infer<typeof workflowExecutionEventSchema>;\nexport type WorkflowExecutionContextDto = z.infer<typeof workflowExecutionContextSchema>;\nexport type TriggerEventsBatchDto = z.infer<typeof triggerEventsBatchSchema>;\n"],"names":["z","jobModeSchema","enum","listenerStatusSchema","resolutionReasonSchema","listeningTriggerSchema","object","source","string","event","inputs","record","unknown","optional","filter","jobListeningBatchSchema","debounce_ms","number","int","positive","max_size","max_wait_ms","jobListeningSchema","on","array","min","until","nullable","timeout_ms","max_executions","batch","on_resolve","execution_timeout_ms","name","workflowExecutionEventSchema","delivery_id","received_at","data","workflowExecutionContextSchema","index","nonnegative","status","started_at","finished_at","events","triggerEventsBatchSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,gBAAgBD,EAAEE,IAAI,CAAC;IAAC;IAAY;CAAY,EAAE;AAC/D,OAAO,MAAMC,uBAAuBH,EAAEE,IAAI,CAAC;IAAC;IAAY;IAAa;CAAW,EAAE;AAClF,OAAO,MAAME,yBAAyBJ,EAAEE,IAAI,CAAC;IAAC;IAAS;IAAW;IAAkB;CAAY,EAAE;AAElG,OAAO,MAAMG,yBAAyBL,EAAEM,MAAM,CAAC;IAC7CC,QAAQP,EAAEQ,MAAM;IAChBC,OAAOT,EAAEQ,MAAM;IACfE,QAAQV,EAAEW,MAAM,CAACX,EAAEQ,MAAM,IAAIR,EAAEY,OAAO,IAAIC,QAAQ;IAClDC,QAAQd,EAAEQ,MAAM,GAAGK,QAAQ;AAC7B,GA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EAAEQ,MAAM,GAAGmB,QAAQ;IAC/BgB,aAAa3C,EAAEQ,MAAM,GAAGmB,QAAQ;IAChCiB,QAAQ5C,EAAEwB,KAAK,CAACU;AAClB,GAAG;AAEH,OAAO,MAAMW,2BAA2B7C,EAAEM,MAAM,CAAC;IAC/CsC,QAAQ5C,EAAEwB,KAAK,CAACU;AAClB,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/job-listening.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const jobModeSchema = z.enum(['one_shot', 'listening']);\nexport const listenerStatusSchema = z.enum(['inactive', 'listening', 'resolved']);\nexport const resolutionReasonSchema = z.enum(['until', 'timeout', 'max_executions', 'cancelled']);\n\nexport const listeningTriggerSchema = z.object({\n source: z.string(),\n event: z.string(),\n inputs: z.record(z.string(), z.unknown()).optional(),\n filter: z.string().optional(),\n});\n\nexport const jobListeningBatchSchema = z.object({\n debounce_ms: z.number().int().positive().optional(),\n max_size: z.number().int().positive().optional(),\n max_wait_ms: z.number().int().positive().optional(),\n});\n\nexport const jobListeningSchema = z.object({\n on: z.array(listeningTriggerSchema).min(1),\n until: z.array(listeningTriggerSchema).min(1).nullable(),\n timeout_ms: z.number().int().positive().nullable(),\n max_executions: z.number().int().positive().nullable(),\n batch: jobListeningBatchSchema.nullable(),\n on_resolve: z.enum(['finish', 'cancel']),\n execution_timeout_ms: z.number().int().positive().nullable(),\n name: z.string().nullable(),\n});\n\nexport const workflowExecutionEventSchema = z.object({\n source: z.string(),\n event: z.string(),\n delivery_id: z.string(),\n received_at: z.string(),\n project: z.object({id: z.string().uuid()}).nullable(),\n repository: z.string().nullable(),\n ref: z.string().nullable(),\n commit: z.string().nullable(),\n data: z.unknown(),\n});\n\nexport const workflowExecutionContextSchema = z.object({\n index: z.number().int().nonnegative(),\n name: z.string(),\n status: z.string(),\n started_at: z.string().nullable(),\n finished_at: z.string().nullable(),\n events: z.array(workflowExecutionEventSchema),\n});\n\nexport const triggerEventsBatchSchema = z.object({\n events: z.array(workflowExecutionEventSchema),\n});\n\nexport type JobModeDto = z.infer<typeof jobModeSchema>;\nexport type ListenerStatusDto = z.infer<typeof listenerStatusSchema>;\nexport type ResolutionReasonDto = z.infer<typeof resolutionReasonSchema>;\nexport type ListeningTriggerDto = z.infer<typeof listeningTriggerSchema>;\nexport type JobListeningDto = z.infer<typeof jobListeningSchema>;\nexport type WorkflowExecutionEventDto = z.infer<typeof workflowExecutionEventSchema>;\nexport type WorkflowExecutionContextDto = z.infer<typeof workflowExecutionContextSchema>;\nexport type TriggerEventsBatchDto = z.infer<typeof triggerEventsBatchSchema>;\n"],"names":["z","jobModeSchema","enum","listenerStatusSchema","resolutionReasonSchema","listeningTriggerSchema","object","source","string","event","inputs","record","unknown","optional","filter","jobListeningBatchSchema","debounce_ms","number","int","positive","max_size","max_wait_ms","jobListeningSchema","on","array","min","until","nullable","timeout_ms","max_executions","batch","on_resolve","execution_timeout_ms","name","workflowExecutionEventSchema","delivery_id","received_at","project","id","uuid","repository","ref","commit","data","workflowExecutionContextSchema","index","nonnegative","status","started_at","finished_at","events","triggerEventsBatchSchema"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,gBAAgBD,EAAEE,IAAI,CAAC;IAAC;IAAY;CAAY,EAAE;AAC/D,OAAO,MAAMC,uBAAuBH,EAAEE,IAAI,CAAC;IAAC;IAAY;IAAa;CAAW,EAAE;AAClF,OAAO,MAAME,yBAAyBJ,EAAEE,IAAI,CAAC;IAAC;IAAS;IAAW;IAAkB;CAAY,EAAE;AAElG,OAAO,MAAMG,yBAAyBL,EAAEM,MAAM,CAAC;IAC7CC,QAAQP,EAAEQ,MAAM;IAChBC,OAAOT,EAAEQ,MAAM;IACfE,QAAQV,EAAEW,MAAM,CAACX,EAAEQ,MAAM,IAAIR,EAAEY,OAAO,IAAIC,QAAQ;IAClDC,QAAQd,EAAEQ,MAAM,GAAGK,QAAQ;AAC7B,GAAG;AAEH,OAAO,MAAME,0BAA0Bf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AAEY,OAAO;AACjB,GAAG;AAEH,OAAO,MAAMgC,iCAAiC5C,EAAEM,MAAM,CAAC;IACrDuC,OAAO7C,EAAEiB,MAAM,GAAGC,GAAG,GAAG4B,WAAW;IACnCb,MAAMjC,EAAEQ,MAAM;IACduC,QAAQ/C,EAAEQ,MAAM;IAChBwC,YAAYhD,EAAEQ,MAAM,GAAGmB,QAAQ;IAC/BsB,aAAajD,EAAEQ,MAAM,GAAGmB,QAAQ;IAChCuB,QAAQlD,EAAEwB,KAAK,CAACU;AAClB,GAAG;AAEH,OAAO,MAAMiB,2BAA2BnD,EAAEM,MAAM,CAAC;IAC/C4C,QAAQlD,EAAEwB,KAAK,CAACU;AAClB,GAAG"}
@@ -3,6 +3,8 @@ export declare const stepErrorReasonSchema: z.ZodEnum<{
3
3
  checkout_failed: "checkout_failed";
4
4
  checkout_auth_failed: "checkout_auth_failed";
5
5
  checkout_unavailable: "checkout_unavailable";
6
+ checkout_path_invalid: "checkout_path_invalid";
7
+ checkout_destination_occupied: "checkout_destination_occupied";
6
8
  git_unavailable: "git_unavailable";
7
9
  workspace_prep_failed: "workspace_prep_failed";
8
10
  setup_aborted: "setup_aborted";
@@ -35,6 +37,8 @@ export declare const stepErrorDtoSchema: z.ZodNullable<z.ZodObject<{
35
37
  checkout_failed: "checkout_failed";
36
38
  checkout_auth_failed: "checkout_auth_failed";
37
39
  checkout_unavailable: "checkout_unavailable";
40
+ checkout_path_invalid: "checkout_path_invalid";
41
+ checkout_destination_occupied: "checkout_destination_occupied";
38
42
  git_unavailable: "git_unavailable";
39
43
  workspace_prep_failed: "workspace_prep_failed";
40
44
  setup_aborted: "setup_aborted";
@@ -84,6 +88,8 @@ export declare const stepDtoSchema: z.ZodObject<{
84
88
  checkout_failed: "checkout_failed";
85
89
  checkout_auth_failed: "checkout_auth_failed";
86
90
  checkout_unavailable: "checkout_unavailable";
91
+ checkout_path_invalid: "checkout_path_invalid";
92
+ checkout_destination_occupied: "checkout_destination_occupied";
87
93
  git_unavailable: "git_unavailable";
88
94
  workspace_prep_failed: "workspace_prep_failed";
89
95
  setup_aborted: "setup_aborted";
@@ -1 +1 @@
1
- {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../src/schemas/step.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAWtB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAYhC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEvE,eAAO,MAAM,sBAAsB;;;;;;EAMjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAIzE,eAAO,MAAM,uBAAuB;;;EAA4B,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAElD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkBlB,CAAC;AAEd,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,wBAAwB;;;iBAQjC,CAAC;AAEL,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE7E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAexB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAqCvB,CAAC;AAEd,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,O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AAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAqCvB,CAAC;AAEd,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqB/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  // Machine-readable cause of a step failure, for DB troubleshooting. The runner
3
3
  // reports it and the server stores it as-is. The `checkout_*`, `git_unavailable`,
4
- // `workspace_prep_failed`, and `setup_aborted` values cover setup-phase failures.
4
+ // `workspace_prep_failed`, and `setup_aborted` values cover checkout/setup failures.
5
5
  // For agent steps the cause is split three ways: `agent_config_invalid` is a user-fixable
6
6
  // configuration error and carries an `agent_config_issue`; `agent_invocation_failed`
7
7
  // covers a provider/API failure once the configuration is valid; and
@@ -12,6 +12,8 @@ export const stepErrorReasonSchema = z.enum([
12
12
  'checkout_failed',
13
13
  'checkout_auth_failed',
14
14
  'checkout_unavailable',
15
+ 'checkout_path_invalid',
16
+ 'checkout_destination_occupied',
15
17
  'git_unavailable',
16
18
  'workspace_prep_failed',
17
19
  'setup_aborted',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/schemas/step.ts"],"sourcesContent":["import {z} from 'zod';\n\n// Machine-readable cause of a step failure, for DB troubleshooting. The runner\n// reports it and the server stores it as-is. The `checkout_*`, `git_unavailable`,\n// `workspace_prep_failed`, and `setup_aborted` values cover setup-phase failures.\n// For agent steps the cause is split three ways: `agent_config_invalid` is a user-fixable\n// configuration error and carries an `agent_config_issue`; `agent_invocation_failed`\n// covers a provider/API failure once the configuration is valid; and\n// `agent_harness_unavailable` means the runner could not start its harness, so the model\n// was never called. The latter carries no `agent_config_issue`, because every issue code\n// names a user-fixable cause. (Aborts are never reported: the step loop stops before reporting.)\nexport const stepErrorReasonSchema = z.enum([\n 'checkout_failed',\n 'checkout_auth_failed',\n 'checkout_unavailable',\n 'git_unavailable',\n 'workspace_prep_failed',\n 'setup_aborted',\n 'config_unresolvable',\n 'output_invalid',\n 'agent_config_invalid',\n 'agent_invocation_failed',\n 'agent_harness_unavailable',\n]);\n\nexport type StepErrorReasonDto = z.infer<typeof stepErrorReasonSchema>;\n\nexport const agentConfigIssueSchema = z.enum([\n 'step_config_invalid',\n 'provider_not_configured',\n 'provider_unsupported',\n 'model_unavailable',\n 'credentials_invalid',\n]);\n\nexport type AgentConfigIssueDto = z.infer<typeof agentConfigIssueSchema>;\n\n// Whether a failure is infrastructure (`setup`) or user-code (`user`). Server-derived\n// from the step's type on the read path; the runner never sends it.\nexport const stepErrorCategorySchema = z.enum(['setup', 'user']);\n\nexport type StepErrorCategoryDto = z.infer<typeof stepErrorCategorySchema>;\n\nexport const STEP_ERROR_MESSAGE_MAX_LENGTH = 2048;\n\nexport const stepErrorDtoSchema = z\n .object({\n message: z.string().max(STEP_ERROR_MESSAGE_MAX_LENGTH),\n exit_code: z.number().int().nullable().optional(),\n signal: z.string().optional(),\n reason: stepErrorReasonSchema.optional(),\n field: z.string().optional(),\n source: z.string().optional(),\n agent_config_issue: agentConfigIssueSchema.optional(),\n category: stepErrorCategorySchema.optional(),\n })\n .refine(\n (error) => error.agent_config_issue === undefined || error.reason === 'agent_config_invalid',\n {\n message: 'agent_config_issue requires reason to be agent_config_invalid',\n path: ['agent_config_issue'],\n },\n )\n .nullable();\n\nexport type StepErrorDto = z.infer<typeof stepErrorDtoSchema>;\n\nexport const stepSourceLocationSchema = z\n .object({\n start_line: z.number().int().positive(),\n end_line: z.number().int().positive(),\n })\n .refine((value) => value.end_line >= value.start_line, {\n message: 'end_line must be greater than or equal to start_line',\n path: ['end_line'],\n });\n\nexport type StepSourceLocationDto = z.infer<typeof stepSourceLocationSchema>;\n\nexport const stepDtoSchema = z.object({\n id: z.string().uuid(),\n job_execution_id: z.string().uuid(),\n key: z.string().nullable(),\n name: z.string(),\n source_location: stepSourceLocationSchema.nullable(),\n status: z.string(),\n type: z.string(),\n config: z.record(z.string(), z.unknown()),\n error: stepErrorDtoSchema,\n position: z.number(),\n // Execution-attempt identity of the current projection (>1 after a restart).\n current_attempt: z.number().int(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type StepDto = z.infer<typeof stepDtoSchema>;\n\nexport const stepGateResultDtoSchema = z\n .discriminatedUnion('kind', [\n z.object({\n kind: z.literal('none'),\n }),\n z.object({\n kind: z.literal('not_evaluated'),\n }),\n z.object({\n kind: z.literal('passed'),\n passed: z.literal(true),\n source: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('failed'),\n passed: z.literal(false),\n source: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('uncheckable'),\n passed: z.literal(false),\n uncheckable: z.literal(true),\n reason: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('evaluation_error'),\n reason: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('unknown'),\n data: z.record(z.string(), z.unknown()),\n }),\n ])\n .nullable();\n\nexport type StepGateResultDto = z.infer<typeof stepGateResultDtoSchema>;\n\n// One execution attempt of a step (the durable history behind the current\n// projection). Surfaced in run details so a restarted step's attempts are visible.\nexport const stepAttemptDtoSchema = z.object({\n id: z.string().uuid(),\n step_id: z.string().uuid(),\n attempt: z.number().int().positive(),\n execution_order: z.number().int().positive(),\n status: z.string(),\n exit_code: z.number().int().nullable(),\n // `output` and `error` are opaque audit blobs: the raw jsonb persisted for the\n // attempt, NOT snake_case-normalized (their nested keys may be camelCase, e.g.\n // `error.exitCode`). Consume the top-level snake_case `exit_code` for the\n // numeric code; treat these as display/debug payloads.\n output: z.record(z.string(), z.unknown()).nullable(),\n outputs: z.record(z.string(), z.unknown()).nullable(),\n response: z.string().nullable(),\n error: z.record(z.string(), z.unknown()).nullable(),\n // `unknown.data` is the raw jsonb gate payload for legacy or unrecognized\n // rows; nested keys are not snake_case-normalized.\n gate_result: stepGateResultDtoSchema,\n restart_feedback: z.string().nullable(),\n started_at: z.string(),\n finished_at: z.string().nullable(),\n});\n\nexport type StepAttemptDto = z.infer<typeof stepAttemptDtoSchema>;\n"],"names":["z","stepErrorReasonSchema","enum","agentConfigIssueSchema","stepErrorCategorySchema","STEP_ERROR_MESSAGE_MAX_LENGTH","stepErrorDtoSchema","object","message","string","max","exit_code","number","int","nullable","optional","signal","reason","field","source","agent_config_issue","category","refine","error","undefined","path","stepSourceLocationSchema","start_line","positive","end_line","value","stepDtoSchema","id","uuid","job_execution_id","key","name","source_location","status","type","config","record","unknown","position","current_attempt","created_at","updated_at","stepGateResultDtoSchema","discriminatedUnion","kind","literal","passed","uncheckable","data","stepAttemptDtoSchema","step_id","attempt","execution_order","output","outputs","response","gate_result","restart_feedback","started_at","finished_at"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,+EAA+E;AAC/E,kFAAkF;AAClF,kFAAkF;AAClF,0FAA0F;AAC1F,qFAAqF;AACrF,qEAAqE;AACrE,yFAAyF;AACzF,yFAAyF;AACzF,iGAAiG;AACjG,OAAO,MAAMC,wBAAwBD,EAAEE,IAAI,CAAC;IAC1C;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD,EAAE;AAIH,OAAO,MAAMC,yBAAyBH,EAAEE,IAAI,CAAC;IAC3C;IACA;IACA;IACA;IACA;CACD,EAAE;AAIH,sFAAsF;AACtF,oEAAoE;AACpE,OAAO,MAAME,0BAA0BJ,EAAEE,IAAI,CAAC;IAAC;IAAS;CAAO,EAAE;AAIjE,OAAO,MAAMG,gCAAgC,KAAK;AAElD,OAAO,MAAMC,qBAAqBN,EAC/BO,MAAM,CAAC;IACNC,SAASR,EAAES,MAAM,GAAGC,GAAG,CAACL;IACxBM,WAAWX,EAAEY,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AAM,CAAC;IAC3CyB,IAAIhC,EAAES,MAAM,GAAGwB,IAAI;IACnBsB,SAASvD,EAAES,MAAM,GAAGwB,IAAI;IACxBuB,SAASxD,EAAEY,MAAM,GAAGC,GAAG,GAAGe,QAAQ;IAClC6B,iBAAiBzD,EAAEY,MAAM,GAAGC,GAAG,GAAGe,QAAQ;IAC1CU,QAAQtC,EAAES,MAAM;IAChBE,WAAWX,EAAEY,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IACpC,+EAA+E;IAC/E,+EAA+E;IAC/E,0EAA0E;IAC1E,uDAAuD;IACvD4C,QAAQ1D,EAAEyC,MAAM,CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO,IAAI5B,QAAQ;IAClD6C,SAAS3D,EAAEyC,MAAM,CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO,IAAI5B,QAAQ;IACnD8C,UAAU5D,EAAES,MAAM,GAAGK,QAAQ;IAC7BS,OAAOvB,EAAEyC,MAAM,CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO,IAAI5B,QAAQ;IACjD,0EAA0E;IAC1E,mDAAmD;IACnD+C,aAAad;IACbe,kBAAkB9D,EAAES,MAAM,GAAGK,QAAQ;IACrCiD,YAAY/D,EAAES,MAAM;IACpBuD,aAAahE,EAAES,MAAM,GAAGK,QAAQ;AAClC,GAAG"}
1
+ {"version":3,"sources":["../../src/schemas/step.ts"],"sourcesContent":["import {z} from 'zod';\n\n// Machine-readable cause of a step failure, for DB troubleshooting. The runner\n// reports it and the server stores it as-is. The `checkout_*`, `git_unavailable`,\n// `workspace_prep_failed`, and `setup_aborted` values cover checkout/setup failures.\n// For agent steps the cause is split three ways: `agent_config_invalid` is a user-fixable\n// configuration error and carries an `agent_config_issue`; `agent_invocation_failed`\n// covers a provider/API failure once the configuration is valid; and\n// `agent_harness_unavailable` means the runner could not start its harness, so the model\n// was never called. The latter carries no `agent_config_issue`, because every issue code\n// names a user-fixable cause. (Aborts are never reported: the step loop stops before reporting.)\nexport const stepErrorReasonSchema = z.enum([\n 'checkout_failed',\n 'checkout_auth_failed',\n 'checkout_unavailable',\n 'checkout_path_invalid',\n 'checkout_destination_occupied',\n 'git_unavailable',\n 'workspace_prep_failed',\n 'setup_aborted',\n 'config_unresolvable',\n 'output_invalid',\n 'agent_config_invalid',\n 'agent_invocation_failed',\n 'agent_harness_unavailable',\n]);\n\nexport type StepErrorReasonDto = z.infer<typeof stepErrorReasonSchema>;\n\nexport const agentConfigIssueSchema = z.enum([\n 'step_config_invalid',\n 'provider_not_configured',\n 'provider_unsupported',\n 'model_unavailable',\n 'credentials_invalid',\n]);\n\nexport type AgentConfigIssueDto = z.infer<typeof agentConfigIssueSchema>;\n\n// Whether a failure is infrastructure (`setup`) or user-code (`user`). Server-derived\n// from the step's type on the read path; the runner never sends it.\nexport const stepErrorCategorySchema = z.enum(['setup', 'user']);\n\nexport type StepErrorCategoryDto = z.infer<typeof stepErrorCategorySchema>;\n\nexport const STEP_ERROR_MESSAGE_MAX_LENGTH = 2048;\n\nexport const stepErrorDtoSchema = z\n .object({\n message: z.string().max(STEP_ERROR_MESSAGE_MAX_LENGTH),\n exit_code: z.number().int().nullable().optional(),\n signal: z.string().optional(),\n reason: stepErrorReasonSchema.optional(),\n field: z.string().optional(),\n source: z.string().optional(),\n agent_config_issue: agentConfigIssueSchema.optional(),\n category: stepErrorCategorySchema.optional(),\n })\n .refine(\n (error) => error.agent_config_issue === undefined || error.reason === 'agent_config_invalid',\n {\n message: 'agent_config_issue requires reason to be agent_config_invalid',\n path: ['agent_config_issue'],\n },\n )\n .nullable();\n\nexport type StepErrorDto = z.infer<typeof stepErrorDtoSchema>;\n\nexport const stepSourceLocationSchema = z\n .object({\n start_line: z.number().int().positive(),\n end_line: z.number().int().positive(),\n })\n .refine((value) => value.end_line >= value.start_line, {\n message: 'end_line must be greater than or equal to start_line',\n path: ['end_line'],\n });\n\nexport type StepSourceLocationDto = z.infer<typeof stepSourceLocationSchema>;\n\nexport const stepDtoSchema = z.object({\n id: z.string().uuid(),\n job_execution_id: z.string().uuid(),\n key: z.string().nullable(),\n name: z.string(),\n source_location: stepSourceLocationSchema.nullable(),\n status: z.string(),\n type: z.string(),\n config: z.record(z.string(), z.unknown()),\n error: stepErrorDtoSchema,\n position: z.number(),\n // Execution-attempt identity of the current projection (>1 after a restart).\n current_attempt: z.number().int(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type StepDto = z.infer<typeof stepDtoSchema>;\n\nexport const stepGateResultDtoSchema = z\n .discriminatedUnion('kind', [\n z.object({\n kind: z.literal('none'),\n }),\n z.object({\n kind: z.literal('not_evaluated'),\n }),\n z.object({\n kind: z.literal('passed'),\n passed: z.literal(true),\n source: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('failed'),\n passed: z.literal(false),\n source: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('uncheckable'),\n passed: z.literal(false),\n uncheckable: z.literal(true),\n reason: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('evaluation_error'),\n reason: z.string(),\n exit_code: z.number().int().nullable(),\n }),\n z.object({\n kind: z.literal('unknown'),\n data: z.record(z.string(), z.unknown()),\n }),\n ])\n .nullable();\n\nexport type StepGateResultDto = z.infer<typeof stepGateResultDtoSchema>;\n\n// One execution attempt of a step (the durable history behind the current\n// projection). Surfaced in run details so a restarted step's attempts are visible.\nexport const stepAttemptDtoSchema = z.object({\n id: z.string().uuid(),\n step_id: z.string().uuid(),\n attempt: z.number().int().positive(),\n execution_order: z.number().int().positive(),\n status: z.string(),\n exit_code: z.number().int().nullable(),\n // `output` and `error` are opaque audit blobs: the raw jsonb persisted for the\n // attempt, NOT snake_case-normalized (their nested keys may be camelCase, e.g.\n // `error.exitCode`). Consume the top-level snake_case `exit_code` for the\n // numeric code; treat these as display/debug payloads.\n output: z.record(z.string(), z.unknown()).nullable(),\n outputs: z.record(z.string(), z.unknown()).nullable(),\n response: z.string().nullable(),\n error: z.record(z.string(), z.unknown()).nullable(),\n // `unknown.data` is the raw jsonb gate payload for legacy or unrecognized\n // rows; nested keys are not snake_case-normalized.\n gate_result: stepGateResultDtoSchema,\n restart_feedback: z.string().nullable(),\n started_at: z.string(),\n finished_at: z.string().nullable(),\n});\n\nexport type StepAttemptDto = z.infer<typeof stepAttemptDtoSchema>;\n"],"names":["z","stepErrorReasonSchema","enum","agentConfigIssueSchema","stepErrorCategorySchema","STEP_ERROR_MESSAGE_MAX_LENGTH","stepErrorDtoSchema","object","message","string","max","exit_code","number","int","nullable","optional","signal","reason","field","source","agent_config_issue","category","refine","error","undefined","path","stepSourceLocationSchema","start_line","positive","end_line","value","stepDtoSchema","id","uuid","job_execution_id","key","name","source_location","status","type","config","record","unknown","position","current_attempt","created_at","updated_at","stepGateResultDtoSchema","discriminatedUnion","kind","literal","passed","uncheckable","data","stepAttemptDtoSchema","step_id","attempt","execution_order","output","outputs","response","gate_result","restart_feedback","started_at","finished_at"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,+EAA+E;AAC/E,kFAAkF;AAClF,qFAAqF;AACrF,0FAA0F;AAC1F,qFAAqF;AACrF,qEAAqE;AACrE,yFAAyF;AACzF,yFAAyF;AACzF,iGAAiG;AACjG,OAAO,MAAMC,wBAAwBD,EAAEE,IAAI,CAAC;IAC1C;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD,EAAE;AAIH,OAAO,MAAMC,yBAAyBH,EAAEE,IAAI,CAAC;IAC3C;IACA;IACA;IACA;IACA;CACD,EAAE;AAIH,sFAAsF;AACtF,oEAAoE;AACpE,OAAO,MAAME,0BAA0BJ,EAAEE,IAAI,CAAC;IAAC;IAAS;CAAO,EAAE;AAIjE,OAAO,MAAMG,gCAAgC,KAAK;AAElD,OAAO,MAAMC,qBAAqBN,EAC/BO,MAAM,CAAC;IACNC,SAASR,EAAES,MAAM,GAAGC,GAAG,CAACL;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C,uBAAuBtD,EAAEO,MAAM,CAAC;IAC3CyB,IAAIhC,EAAES,MAAM,GAAGwB,IAAI;IACnBsB,SAASvD,EAAES,MAAM,GAAGwB,IAAI;IACxBuB,SAASxD,EAAEY,MAAM,GAAGC,GAAG,GAAGe,QAAQ;IAClC6B,iBAAiBzD,EAAEY,MAAM,GAAGC,GAAG,GAAGe,QAAQ;IAC1CU,QAAQtC,EAAES,MAAM;IAChBE,WAAWX,EAAEY,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IACpC,+EAA+E;IAC/E,+EAA+E;IAC/E,0EAA0E;IAC1E,uDAAuD;IACvD4C,QAAQ1D,EAAEyC,MAAM,CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO,IAAI5B,QAAQ;IAClD6C,SAAS3D,EAAEyC,MAAM,CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO,IAAI5B,QAAQ;IACnD8C,UAAU5D,EAAES,MAAM,GAAGK,QAAQ;IAC7BS,OAAOvB,EAAEyC,MAAM,CAACzC,EAAES,MAAM,IAAIT,EAAE0C,OAAO,IAAI5B,QAAQ;IACjD,0EAA0E;IAC1E,mDAAmD;IACnD+C,aAAad;IACbe,kBAAkB9D,EAAES,MAAM,GAAGK,QAAQ;IACrCiD,YAAY/D,EAAES,MAAM;IACpBuD,aAAahE,EAAES,MAAM,GAAGK,QAAQ;AAClC,GAAG"}
@@ -24,6 +24,12 @@ export declare const jobExecutionDtoSchema: z.ZodObject<{
24
24
  event: z.ZodString;
25
25
  delivery_id: z.ZodString;
26
26
  received_at: z.ZodString;
27
+ project: z.ZodNullable<z.ZodObject<{
28
+ id: z.ZodString;
29
+ }, z.core.$strip>>;
30
+ repository: z.ZodNullable<z.ZodString>;
31
+ ref: z.ZodNullable<z.ZodString>;
32
+ commit: z.ZodNullable<z.ZodString>;
27
33
  data: z.ZodUnknown;
28
34
  }, z.core.$strip>>>;
29
35
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -55,6 +61,8 @@ export declare const workflowRunStepDetailDtoSchema: z.ZodObject<{
55
61
  checkout_failed: "checkout_failed";
56
62
  checkout_auth_failed: "checkout_auth_failed";
57
63
  checkout_unavailable: "checkout_unavailable";
64
+ checkout_path_invalid: "checkout_path_invalid";
65
+ checkout_destination_occupied: "checkout_destination_occupied";
58
66
  git_unavailable: "git_unavailable";
59
67
  workspace_prep_failed: "workspace_prep_failed";
60
68
  setup_aborted: "setup_aborted";
@@ -176,6 +184,12 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
176
184
  event: z.ZodString;
177
185
  delivery_id: z.ZodString;
178
186
  received_at: z.ZodString;
187
+ project: z.ZodNullable<z.ZodObject<{
188
+ id: z.ZodString;
189
+ }, z.core.$strip>>;
190
+ repository: z.ZodNullable<z.ZodString>;
191
+ ref: z.ZodNullable<z.ZodString>;
192
+ commit: z.ZodNullable<z.ZodString>;
179
193
  data: z.ZodUnknown;
180
194
  }, z.core.$strip>>>;
181
195
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -205,6 +219,8 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
205
219
  checkout_failed: "checkout_failed";
206
220
  checkout_auth_failed: "checkout_auth_failed";
207
221
  checkout_unavailable: "checkout_unavailable";
222
+ checkout_path_invalid: "checkout_path_invalid";
223
+ checkout_destination_occupied: "checkout_destination_occupied";
208
224
  git_unavailable: "git_unavailable";
209
225
  workspace_prep_failed: "workspace_prep_failed";
210
226
  setup_aborted: "setup_aborted";
@@ -401,6 +417,12 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
401
417
  event: z.ZodString;
402
418
  delivery_id: z.ZodString;
403
419
  received_at: z.ZodString;
420
+ project: z.ZodNullable<z.ZodObject<{
421
+ id: z.ZodString;
422
+ }, z.core.$strip>>;
423
+ repository: z.ZodNullable<z.ZodString>;
424
+ ref: z.ZodNullable<z.ZodString>;
425
+ commit: z.ZodNullable<z.ZodString>;
404
426
  data: z.ZodUnknown;
405
427
  }, z.core.$strip>>>;
406
428
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -430,6 +452,8 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
430
452
  checkout_failed: "checkout_failed";
431
453
  checkout_auth_failed: "checkout_auth_failed";
432
454
  checkout_unavailable: "checkout_unavailable";
455
+ checkout_path_invalid: "checkout_path_invalid";
456
+ checkout_destination_occupied: "checkout_destination_occupied";
433
457
  git_unavailable: "git_unavailable";
434
458
  workspace_prep_failed: "workspace_prep_failed";
435
459
  setup_aborted: "setup_aborted";
@@ -539,7 +563,9 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
539
563
  id: z.ZodString;
540
564
  project_id: z.ZodString;
541
565
  definition_id: z.ZodString;
566
+ number: z.ZodNumber;
542
567
  name: z.ZodString;
568
+ workflow_name: z.ZodString;
543
569
  status: z.ZodEnum<{
544
570
  cancelled: "cancelled";
545
571
  pending: "pending";
@@ -553,6 +579,12 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
553
579
  trigger_source: z.ZodString;
554
580
  trigger_event: z.ZodString;
555
581
  trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
582
+ trigger_reference: z.ZodNullable<z.ZodObject<{
583
+ repository: z.ZodNullable<z.ZodString>;
584
+ ref: z.ZodNullable<z.ZodString>;
585
+ commit: z.ZodNullable<z.ZodString>;
586
+ actor: z.ZodNullable<z.ZodString>;
587
+ }, z.core.$strip>>;
556
588
  inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
557
589
  source_snapshot: z.ZodNullable<z.ZodObject<{
558
590
  content: z.ZodString;
@@ -673,6 +705,12 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
673
705
  event: z.ZodString;
674
706
  delivery_id: z.ZodString;
675
707
  received_at: z.ZodString;
708
+ project: z.ZodNullable<z.ZodObject<{
709
+ id: z.ZodString;
710
+ }, z.core.$strip>>;
711
+ repository: z.ZodNullable<z.ZodString>;
712
+ ref: z.ZodNullable<z.ZodString>;
713
+ commit: z.ZodNullable<z.ZodString>;
676
714
  data: z.ZodUnknown;
677
715
  }, z.core.$strip>>>;
678
716
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -702,6 +740,8 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
702
740
  checkout_failed: "checkout_failed";
703
741
  checkout_auth_failed: "checkout_auth_failed";
704
742
  checkout_unavailable: "checkout_unavailable";
743
+ checkout_path_invalid: "checkout_path_invalid";
744
+ checkout_destination_occupied: "checkout_destination_occupied";
705
745
  git_unavailable: "git_unavailable";
706
746
  workspace_prep_failed: "workspace_prep_failed";
707
747
  setup_aborted: "setup_aborted";
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-run-detail.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-run-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAMtB,eAAO,MAAM,wBAAwB;;;;;;EAMnC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAehC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAIpE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -56,11 +56,20 @@ export declare const workflowSourceSnapshotSchema: z.ZodObject<{
56
56
  format: z.ZodLiteral<"yaml">;
57
57
  }, z.core.$strip>;
58
58
  export type WorkflowSourceSnapshotDto = z.infer<typeof workflowSourceSnapshotSchema>;
59
+ export declare const workflowRunTriggerReferenceSchema: z.ZodObject<{
60
+ repository: z.ZodNullable<z.ZodString>;
61
+ ref: z.ZodNullable<z.ZodString>;
62
+ commit: z.ZodNullable<z.ZodString>;
63
+ actor: z.ZodNullable<z.ZodString>;
64
+ }, z.core.$strip>;
65
+ export type WorkflowRunTriggerReferenceDto = z.infer<typeof workflowRunTriggerReferenceSchema>;
59
66
  export declare const workflowRunDtoSchema: z.ZodObject<{
60
67
  id: z.ZodString;
61
68
  project_id: z.ZodString;
62
69
  definition_id: z.ZodString;
70
+ number: z.ZodNumber;
63
71
  name: z.ZodString;
72
+ workflow_name: z.ZodString;
64
73
  status: z.ZodEnum<{
65
74
  cancelled: "cancelled";
66
75
  pending: "pending";
@@ -74,6 +83,12 @@ export declare const workflowRunDtoSchema: z.ZodObject<{
74
83
  trigger_source: z.ZodString;
75
84
  trigger_event: z.ZodString;
76
85
  trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
86
+ trigger_reference: z.ZodNullable<z.ZodObject<{
87
+ repository: z.ZodNullable<z.ZodString>;
88
+ ref: z.ZodNullable<z.ZodString>;
89
+ commit: z.ZodNullable<z.ZodString>;
90
+ actor: z.ZodNullable<z.ZodString>;
91
+ }, z.core.$strip>>;
77
92
  inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
78
93
  source_snapshot: z.ZodNullable<z.ZodObject<{
79
94
  content: z.ZodString;
@@ -109,7 +124,9 @@ export declare const workflowRunResponseSchema: z.ZodObject<{
109
124
  id: z.ZodString;
110
125
  project_id: z.ZodString;
111
126
  definition_id: z.ZodString;
127
+ number: z.ZodNumber;
112
128
  name: z.ZodString;
129
+ workflow_name: z.ZodString;
113
130
  status: z.ZodEnum<{
114
131
  cancelled: "cancelled";
115
132
  pending: "pending";
@@ -123,6 +140,12 @@ export declare const workflowRunResponseSchema: z.ZodObject<{
123
140
  trigger_source: z.ZodString;
124
141
  trigger_event: z.ZodString;
125
142
  trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
143
+ trigger_reference: z.ZodNullable<z.ZodObject<{
144
+ repository: z.ZodNullable<z.ZodString>;
145
+ ref: z.ZodNullable<z.ZodString>;
146
+ commit: z.ZodNullable<z.ZodString>;
147
+ actor: z.ZodNullable<z.ZodString>;
148
+ }, z.core.$strip>>;
126
149
  inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
127
150
  source_snapshot: z.ZodNullable<z.ZodObject<{
128
151
  content: z.ZodString;
@@ -156,12 +179,113 @@ export declare const workflowRunAttemptsResponseSchema: z.ZodObject<{
156
179
  }, z.core.$strip>>;
157
180
  }, z.core.$strip>;
158
181
  export type WorkflowRunAttemptsResponseDto = z.infer<typeof workflowRunAttemptsResponseSchema>;
182
+ export declare const workflowRunJobSummaryDtoSchema: z.ZodObject<{
183
+ id: z.ZodString;
184
+ key: z.ZodString;
185
+ name: z.ZodNullable<z.ZodString>;
186
+ status: z.ZodEnum<{
187
+ cancelled: "cancelled";
188
+ pending: "pending";
189
+ running: "running";
190
+ succeeded: "succeeded";
191
+ failed: "failed";
192
+ skipped: "skipped";
193
+ }>;
194
+ position: z.ZodNumber;
195
+ }, z.core.$strip>;
196
+ export type WorkflowRunJobSummaryDto = z.infer<typeof workflowRunJobSummaryDtoSchema>;
197
+ /**
198
+ * How many jobs a run list row carries in graph order.
199
+ *
200
+ * A workflow has no job limit, and the list is polled while runs are active, so the row
201
+ * cannot carry every job of every run on the page. This bound is the API's, deliberately set
202
+ * above what any current surface draws: a client is free to show fewer without a server
203
+ * change, and `job_status_counts` still describes the jobs beyond it.
204
+ */
205
+ export declare const WORKFLOW_RUN_JOB_PREVIEW_LIMIT = 16;
206
+ /** One status and how many of the run's jobs hold it, counted over all of them. */
207
+ export declare const workflowRunJobStatusCountDtoSchema: z.ZodObject<{
208
+ status: z.ZodEnum<{
209
+ cancelled: "cancelled";
210
+ pending: "pending";
211
+ running: "running";
212
+ succeeded: "succeeded";
213
+ failed: "failed";
214
+ skipped: "skipped";
215
+ }>;
216
+ count: z.ZodNumber;
217
+ }, z.core.$strip>;
218
+ export type WorkflowRunJobStatusCountDto = z.infer<typeof workflowRunJobStatusCountDtoSchema>;
219
+ export declare const workflowRunListItemSchema: z.ZodObject<{
220
+ id: z.ZodString;
221
+ project_id: z.ZodString;
222
+ definition_id: z.ZodString;
223
+ number: z.ZodNumber;
224
+ name: z.ZodString;
225
+ workflow_name: z.ZodString;
226
+ status: z.ZodEnum<{
227
+ cancelled: "cancelled";
228
+ pending: "pending";
229
+ running: "running";
230
+ succeeded: "succeeded";
231
+ failed: "failed";
232
+ }>;
233
+ current_attempt: z.ZodNumber;
234
+ latest_attempt: z.ZodNumber;
235
+ trigger_provider: z.ZodNullable<z.ZodString>;
236
+ trigger_source: z.ZodString;
237
+ trigger_event: z.ZodString;
238
+ trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
239
+ trigger_reference: z.ZodNullable<z.ZodObject<{
240
+ repository: z.ZodNullable<z.ZodString>;
241
+ ref: z.ZodNullable<z.ZodString>;
242
+ commit: z.ZodNullable<z.ZodString>;
243
+ actor: z.ZodNullable<z.ZodString>;
244
+ }, z.core.$strip>>;
245
+ inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
246
+ source_snapshot: z.ZodNullable<z.ZodObject<{
247
+ content: z.ZodString;
248
+ format: z.ZodLiteral<"yaml">;
249
+ }, z.core.$strip>>;
250
+ created_at: z.ZodString;
251
+ updated_at: z.ZodString;
252
+ started_at: z.ZodNullable<z.ZodString>;
253
+ finished_at: z.ZodNullable<z.ZodString>;
254
+ jobs: z.ZodArray<z.ZodObject<{
255
+ id: z.ZodString;
256
+ key: z.ZodString;
257
+ name: z.ZodNullable<z.ZodString>;
258
+ status: z.ZodEnum<{
259
+ cancelled: "cancelled";
260
+ pending: "pending";
261
+ running: "running";
262
+ succeeded: "succeeded";
263
+ failed: "failed";
264
+ skipped: "skipped";
265
+ }>;
266
+ position: z.ZodNumber;
267
+ }, z.core.$strip>>;
268
+ job_status_counts: z.ZodArray<z.ZodObject<{
269
+ status: z.ZodEnum<{
270
+ cancelled: "cancelled";
271
+ pending: "pending";
272
+ running: "running";
273
+ succeeded: "succeeded";
274
+ failed: "failed";
275
+ skipped: "skipped";
276
+ }>;
277
+ count: z.ZodNumber;
278
+ }, z.core.$strip>>;
279
+ }, z.core.$strip>;
280
+ export type WorkflowRunListItemDto = z.infer<typeof workflowRunListItemSchema>;
159
281
  export declare const workflowRunListResponseSchema: z.ZodObject<{
160
282
  runs: z.ZodArray<z.ZodObject<{
161
283
  id: z.ZodString;
162
284
  project_id: z.ZodString;
163
285
  definition_id: z.ZodString;
286
+ number: z.ZodNumber;
164
287
  name: z.ZodString;
288
+ workflow_name: z.ZodString;
165
289
  status: z.ZodEnum<{
166
290
  cancelled: "cancelled";
167
291
  pending: "pending";
@@ -175,6 +299,12 @@ export declare const workflowRunListResponseSchema: z.ZodObject<{
175
299
  trigger_source: z.ZodString;
176
300
  trigger_event: z.ZodString;
177
301
  trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
302
+ trigger_reference: z.ZodNullable<z.ZodObject<{
303
+ repository: z.ZodNullable<z.ZodString>;
304
+ ref: z.ZodNullable<z.ZodString>;
305
+ commit: z.ZodNullable<z.ZodString>;
306
+ actor: z.ZodNullable<z.ZodString>;
307
+ }, z.core.$strip>>;
178
308
  inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
179
309
  source_snapshot: z.ZodNullable<z.ZodObject<{
180
310
  content: z.ZodString;
@@ -184,6 +314,31 @@ export declare const workflowRunListResponseSchema: z.ZodObject<{
184
314
  updated_at: z.ZodString;
185
315
  started_at: z.ZodNullable<z.ZodString>;
186
316
  finished_at: z.ZodNullable<z.ZodString>;
317
+ jobs: z.ZodArray<z.ZodObject<{
318
+ id: z.ZodString;
319
+ key: z.ZodString;
320
+ name: z.ZodNullable<z.ZodString>;
321
+ status: z.ZodEnum<{
322
+ cancelled: "cancelled";
323
+ pending: "pending";
324
+ running: "running";
325
+ succeeded: "succeeded";
326
+ failed: "failed";
327
+ skipped: "skipped";
328
+ }>;
329
+ position: z.ZodNumber;
330
+ }, z.core.$strip>>;
331
+ job_status_counts: z.ZodArray<z.ZodObject<{
332
+ status: z.ZodEnum<{
333
+ cancelled: "cancelled";
334
+ pending: "pending";
335
+ running: "running";
336
+ succeeded: "succeeded";
337
+ failed: "failed";
338
+ skipped: "skipped";
339
+ }>;
340
+ count: z.ZodNumber;
341
+ }, z.core.$strip>>;
187
342
  }, z.core.$strip>>;
188
343
  next_cursor: z.ZodNullable<z.ZodString>;
189
344
  filtered_total_count: z.ZodNullable<z.ZodNumber>;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-run.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,uBAAuB;;;;;;EAMlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,O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