@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,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "58.5.0",
3
+ "version": "58.5.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
2
- export const SPEC_HASH = '433bb009d9f1' as const;
3
- export const SPEC_HASH_FULL = '433bb009d9f1037871adde049808503dc040cc4cb44122a8f2d603da02b4dd2b' as const;
2
+ export const SPEC_HASH = 'b4aa56c17639' as const;
3
+ export const SPEC_HASH_FULL = 'b4aa56c1763945ca5c741250d51eafeff80cd2d48b5e0441918233b5f9a6a16b' as const;
@@ -5070,6 +5070,9 @@ export interface components {
5070
5070
  /** @constant */
5071
5071
  type: "slack";
5072
5072
  workspaceId?: string;
5073
+ } | {
5074
+ /** @constant */
5075
+ type: "bamboohr";
5073
5076
  };
5074
5077
  /** @enum {string} */
5075
5078
  status: "pending" | "succeeded" | "failed";
@@ -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
- target: z.object({
194
- type: z.literal("slack"),
195
- workspaceId: z.string().optional(),
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"]),