@company-semantics/contracts 58.5.0 → 58.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
|
|
2
|
-
export const SPEC_HASH = '
|
|
3
|
-
export const SPEC_HASH_FULL = '
|
|
2
|
+
export const SPEC_HASH = 'b4aa56c17639' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = 'b4aa56c1763945ca5c741250d51eafeff80cd2d48b5e0441918233b5f9a6a16b' as const;
|
package/src/api/generated.ts
CHANGED
package/src/execution/schemas.ts
CHANGED
|
@@ -190,10 +190,18 @@ const EXECUTION_KIND_VALUES = Object.keys(EXECUTION_KINDS) as [
|
|
|
190
190
|
export const ExecutionSummaryProjectionSchema = z.object({
|
|
191
191
|
executionId: z.string(),
|
|
192
192
|
kind: z.enum(EXECUTION_KIND_VALUES),
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
// Mirrors the ExecutionTarget union (summary.ts): Slack carries an optional
|
|
194
|
+
// workspace qualifier; BambooHR is addressed by connectionId alone, so its
|
|
195
|
+
// target is bare (ADR-BE-610).
|
|
196
|
+
target: z.discriminatedUnion("type", [
|
|
197
|
+
z.object({
|
|
198
|
+
type: z.literal("slack"),
|
|
199
|
+
workspaceId: z.string().optional(),
|
|
200
|
+
}),
|
|
201
|
+
z.object({
|
|
202
|
+
type: z.literal("bamboohr"),
|
|
203
|
+
}),
|
|
204
|
+
]),
|
|
197
205
|
status: z.enum(["pending", "succeeded", "failed"]),
|
|
198
206
|
initiatedBy: z.object({
|
|
199
207
|
actorType: z.enum(["user", "system"]),
|