@company-semantics/contracts 85.0.0 → 85.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.
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 = '6572e2e103c5' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = '6572e2e103c545b6ff678396dbc2d00a17212b56f4c489b9b76c1b327ccc821e' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -9598,6 +9598,7 @@ export interface components {
|
|
|
9598
9598
|
/** Format: date-time */
|
|
9599
9599
|
lastObservedAt: string;
|
|
9600
9600
|
dismissedAt: string | null;
|
|
9601
|
+
fingerprint?: string;
|
|
9601
9602
|
}[];
|
|
9602
9603
|
};
|
|
9603
9604
|
SourceSyncFinding: {
|
|
@@ -9622,9 +9623,11 @@ export interface components {
|
|
|
9622
9623
|
/** Format: date-time */
|
|
9623
9624
|
lastObservedAt: string;
|
|
9624
9625
|
dismissedAt: string | null;
|
|
9626
|
+
fingerprint?: string;
|
|
9625
9627
|
};
|
|
9626
9628
|
SourceSyncDismissFindingRequest: {
|
|
9627
9629
|
note?: string;
|
|
9630
|
+
expectedFingerprint?: string;
|
|
9628
9631
|
};
|
|
9629
9632
|
SourceSyncStandingOrdersResponse: {
|
|
9630
9633
|
orders: {
|
|
@@ -54,15 +54,30 @@ export const SourceSyncFindingSchema = z.object({
|
|
|
54
54
|
firstObservedAt: IsoDateTime,
|
|
55
55
|
lastObservedAt: IsoDateTime,
|
|
56
56
|
dismissedAt: IsoDateTime.nullable(),
|
|
57
|
+
/**
|
|
58
|
+
* What the finding says right now, as the reader saw it. A dismissal sends it
|
|
59
|
+
* back as `expectedFingerprint`. Optional while the backend starts sending it.
|
|
60
|
+
*/
|
|
61
|
+
fingerprint: z.string().length(32).optional(),
|
|
57
62
|
});
|
|
58
63
|
|
|
59
64
|
export const SourceSyncFindingsResponseSchema = z.object({
|
|
60
65
|
findings: z.array(SourceSyncFindingSchema).max(500),
|
|
61
66
|
});
|
|
62
67
|
|
|
63
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Dismiss one finding. Who dismissed it is the authenticated caller.
|
|
70
|
+
* `expectedFingerprint` is the finding's fingerprint as the caller rendered it:
|
|
71
|
+
* when present, a finding that moved since is refused as changed. Optional
|
|
72
|
+
* during the expand step of the backend decision
|
|
73
|
+
* `findings-lifecycle-is-domain-agnostic`; required once dismissal becomes
|
|
74
|
+
* compare-and-set.
|
|
75
|
+
*/
|
|
64
76
|
export const SourceSyncDismissFindingRequestSchema = z
|
|
65
|
-
.object({
|
|
77
|
+
.object({
|
|
78
|
+
note: z.string().max(500).optional(),
|
|
79
|
+
expectedFingerprint: z.string().length(32).optional(),
|
|
80
|
+
})
|
|
66
81
|
.strict();
|
|
67
82
|
|
|
68
83
|
/**
|