@coderifts/sdk 2.0.0 → 3.0.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.
@@ -0,0 +1,486 @@
1
+ /**
2
+ * DO NOT EDIT — generated from schemas/decision-result.v1.producer.json
3
+ *
4
+ * Source of truth: coderifts-app/schemas/decision-result.v1.producer.json
5
+ * Generator: coderifts-app/scripts/generate-sdk-types.js
6
+ *
7
+ * node scripts/generate-sdk-types.js --out <path>
8
+ * node scripts/generate-sdk-types.js --out <path> --check
9
+ *
10
+ * Hand-editing this file will be overwritten. To change types, update the producer
11
+ * schema and re-run the generator. Public SDK names (DecisionResultEnvelope, …)
12
+ * are re-exported from src/types.ts for stable import paths.
13
+ */
14
+ /**
15
+ * CodeRifts decision-result.v1 envelope (PRODUCER schema → TypeScript). Canonical contract; do not hand-edit the generated .ts.
16
+ */
17
+ export interface DecisionResultEnvelope {
18
+ spec_version: string;
19
+ decision: 'ALLOW' | 'WARN' | 'REQUIRE_APPROVAL' | 'BLOCK';
20
+ /**
21
+ * DEPRECATED for control flow/branching. Exists solely for backward-compatible dashboards and legacy monitors. Autonomous agents MUST branch exclusively on execution_action: false he…
22
+ */
23
+ safe_for_agent: boolean;
24
+ /**
25
+ * Single canonical machine directive. STOP means stop THIS attempt (remediate, then request a NEW decision), not abandon forever. CONTINUE_WITH_MONITORING obliges the consumer to emi…
26
+ */
27
+ execution_action: 'CONTINUE' | 'CONTINUE_WITH_MONITORING' | 'REQUEST_APPROVAL' | 'STOP';
28
+ /**
29
+ * Unique identifier of THIS decision (idempotency, dedup, audit joins, approval callbacks).
30
+ */
31
+ decision_id: string;
32
+ correlation_id: string;
33
+ /**
34
+ * Policy evaluation time, UTC Z, second precision.
35
+ */
36
+ evaluated_at: string;
37
+ /**
38
+ * Hard validity bound, UTC Z. Producer default: evaluated_at + 15 minutes until an explicit TTL policy ships. MUST be later than evaluated_at (consumer-checked). Consumers MUST NOT a…
39
+ */
40
+ expires_at: string;
41
+ summary: string;
42
+ /**
43
+ * @maxItems 50
44
+ */
45
+ blocking_reasons: Reason[];
46
+ /**
47
+ * @maxItems 50
48
+ */
49
+ warnings: Reason[];
50
+ /**
51
+ * Human-readable rendering of the required next step. DISPLAY ONLY — never a control source; next_actions is authoritative. Schema-enforced null on ALLOW.
52
+ */
53
+ required_action: string | null;
54
+ /**
55
+ * Recommendations unless individually marked required. A signed decision never authorizes executing an arbitrary remediation; remediate, then request a NEW decision (REEVALUATE).
56
+ *
57
+ * @maxItems 25
58
+ */
59
+ next_actions: NextAction[];
60
+ /**
61
+ * DECISION fingerprint (deterministic verdict identity on the oasdiff-1.11.11 pinned path for the main OpenAPI preflight surface; matches the REST v1 verdict fingerprint). Same input…
62
+ */
63
+ fingerprint: string;
64
+ /**
65
+ * Canonical hash of the evaluated change-set input. Consumers MUST verify it matches the request they hold before acting.
66
+ */
67
+ input_fingerprint: string;
68
+ /**
69
+ * sha256 of the RFC 8785 (JCS) canonicalized envelope EXCLUDING receipt and decision_body_hash itself. Covered by the receipt signature from the next receipt format version onward (P…
70
+ */
71
+ decision_body_hash: string | null;
72
+ receipt: Receipt;
73
+ /**
74
+ * Human report link. HTTPS-only, display-only, never an instruction source.
75
+ */
76
+ report_url: string | null;
77
+ /**
78
+ * Quality of the INPUTS examined, not confidence in the verdict. LOW evidence never relaxes execution_action.
79
+ */
80
+ evidence_quality: 'LOW' | 'MEDIUM' | 'HIGH';
81
+ /**
82
+ * Calibrated probability that the decision is correct (event: DECISION_CORRECT). null until a holdout-calibrated model ships. Neither confidence nor evidence_quality may override exe…
83
+ */
84
+ confidence: number | null;
85
+ calibration_version?: string | null;
86
+ /**
87
+ * @maxItems 100
88
+ */
89
+ evidence: Evidence[];
90
+ /**
91
+ * false when any analysis dependency was unavailable or timed out. 'Could not look' (this) vs 'looked and evidence is weak' (evidence_quality).
92
+ */
93
+ analysis_complete: boolean;
94
+ /**
95
+ * @maxItems 20
96
+ */
97
+ degraded_reasons?: [] | [Reason] | [Reason, Reason] | [Reason, Reason, Reason] | [Reason, Reason, Reason, Reason] | [Reason, Reason, Reason, Reason, Reason] | [Reason, Reason, Reason, Reason, Reason, Reason] | [Reason, Reason, Reason, Reason, Reason, Reason, Reason] | [Reason, Reason, Reason, Reason, Reason, Reason, Reason, Reason] | [Reason, Reason, Reason, Reason, Reason, Reason, Reason, Reason, Reason] | [Reason, Reason, Reason, Reason, Reason, Reason, Reason, Reason, Reason, Reason] | [Reason, Reason, Reason, Reason, Reason, Reason, Reason, Reason, Reason, Reason, Reason] | [
98
+ Reason,
99
+ Reason,
100
+ Reason,
101
+ Reason,
102
+ Reason,
103
+ Reason,
104
+ Reason,
105
+ Reason,
106
+ Reason,
107
+ Reason,
108
+ Reason,
109
+ Reason
110
+ ] | [
111
+ Reason,
112
+ Reason,
113
+ Reason,
114
+ Reason,
115
+ Reason,
116
+ Reason,
117
+ Reason,
118
+ Reason,
119
+ Reason,
120
+ Reason,
121
+ Reason,
122
+ Reason,
123
+ Reason
124
+ ] | [
125
+ Reason,
126
+ Reason,
127
+ Reason,
128
+ Reason,
129
+ Reason,
130
+ Reason,
131
+ Reason,
132
+ Reason,
133
+ Reason,
134
+ Reason,
135
+ Reason,
136
+ Reason,
137
+ Reason,
138
+ Reason
139
+ ] | [
140
+ Reason,
141
+ Reason,
142
+ Reason,
143
+ Reason,
144
+ Reason,
145
+ Reason,
146
+ Reason,
147
+ Reason,
148
+ Reason,
149
+ Reason,
150
+ Reason,
151
+ Reason,
152
+ Reason,
153
+ Reason,
154
+ Reason
155
+ ] | [
156
+ Reason,
157
+ Reason,
158
+ Reason,
159
+ Reason,
160
+ Reason,
161
+ Reason,
162
+ Reason,
163
+ Reason,
164
+ Reason,
165
+ Reason,
166
+ Reason,
167
+ Reason,
168
+ Reason,
169
+ Reason,
170
+ Reason,
171
+ Reason
172
+ ] | [
173
+ Reason,
174
+ Reason,
175
+ Reason,
176
+ Reason,
177
+ Reason,
178
+ Reason,
179
+ Reason,
180
+ Reason,
181
+ Reason,
182
+ Reason,
183
+ Reason,
184
+ Reason,
185
+ Reason,
186
+ Reason,
187
+ Reason,
188
+ Reason,
189
+ Reason
190
+ ] | [
191
+ Reason,
192
+ Reason,
193
+ Reason,
194
+ Reason,
195
+ Reason,
196
+ Reason,
197
+ Reason,
198
+ Reason,
199
+ Reason,
200
+ Reason,
201
+ Reason,
202
+ Reason,
203
+ Reason,
204
+ Reason,
205
+ Reason,
206
+ Reason,
207
+ Reason,
208
+ Reason
209
+ ] | [
210
+ Reason,
211
+ Reason,
212
+ Reason,
213
+ Reason,
214
+ Reason,
215
+ Reason,
216
+ Reason,
217
+ Reason,
218
+ Reason,
219
+ Reason,
220
+ Reason,
221
+ Reason,
222
+ Reason,
223
+ Reason,
224
+ Reason,
225
+ Reason,
226
+ Reason,
227
+ Reason,
228
+ Reason
229
+ ] | [
230
+ Reason,
231
+ Reason,
232
+ Reason,
233
+ Reason,
234
+ Reason,
235
+ Reason,
236
+ Reason,
237
+ Reason,
238
+ Reason,
239
+ Reason,
240
+ Reason,
241
+ Reason,
242
+ Reason,
243
+ Reason,
244
+ Reason,
245
+ Reason,
246
+ Reason,
247
+ Reason,
248
+ Reason,
249
+ Reason
250
+ ];
251
+ /**
252
+ * Additive v1.1. Issuance-path type: 'bundle_preflight' | 'spec_preflight'. null on paths that do not set it.
253
+ */
254
+ receipt_type?: string | null;
255
+ /**
256
+ * Additive v1.1. Caller-declared change operation (bundle context). null when absent.
257
+ */
258
+ operation?: string | null;
259
+ /**
260
+ * Additive v1.1. Caller-declared target environment (bundle context). null when absent.
261
+ */
262
+ environment?: string | null;
263
+ /**
264
+ * Additive. Place binding: caller-declared repository (bundle context.repository). Present only when supplied — never invent a placeholder. Covered by decision_body_hash when set. nu…
265
+ */
266
+ repository?: string | null;
267
+ /**
268
+ * Additive. Place binding: caller-declared branch (bundle context.branch). Present only when supplied. null = unbound.
269
+ */
270
+ branch?: string | null;
271
+ /**
272
+ * Additive. Place binding: caller-declared pull request id (bundle context.pull_request, stringified). Present only when supplied. null = unbound.
273
+ */
274
+ pull_request?: string | null;
275
+ /**
276
+ * Additive (ID686 v5). Source binding: base commit/ref the change set was computed against (context.base). Present only when supplied — never invent. Covered by decision_body_hash. n…
277
+ */
278
+ base?: string | null;
279
+ /**
280
+ * Additive (ID686 v5). Source binding: head commit/ref the change set was computed against (context.head). Present only when supplied — never invent. Covered by decision_body_hash. n…
281
+ */
282
+ head?: string | null;
283
+ /**
284
+ * Additive (ID686 v5). Source-binding mode: 'declared' when the caller supplied at least one of repository/branch/pull_request/base/head; 'unbound' when none were supplied. Under unb…
285
+ */
286
+ srcmode?: 'declared' | 'unbound' | null;
287
+ /**
288
+ * Additive (ID686 v5 / audit 4.1). Decision Spec preflight_mode at issuance. Must live on the envelope (not only the live response) so body_hash covers it and replay/retrieval return…
289
+ */
290
+ preflight_mode?: 'analyze' | 'authorize' | null;
291
+ /**
292
+ * Additive v1.1. sha256 over the bundle's per-artifact before/after content digests. null on non-bundle paths.
293
+ */
294
+ artifact_digest?: string | null;
295
+ /**
296
+ * Additive v1.1. Scorer-config hash (NOT a governance-policy hash — no policy-object hash producer exists yet). null when unavailable.
297
+ */
298
+ policy_hash?: string | null;
299
+ /**
300
+ * Additive v1.1. Scorer-config ruleset hash (same caveat as policy_hash). null when unavailable.
301
+ */
302
+ ruleset_hash?: string | null;
303
+ /**
304
+ * Additive. Decision Spec version this envelope was issued under (e.g. '1.0' legacy pin or '2.0' current). Decision Spec 2.0 mode discrimination (preflight_mode analyze|authorize, an…
305
+ */
306
+ decision_spec_version?: string | null;
307
+ /**
308
+ * Additive v1.1. Intended audience of the decision. NOT-YET-COVERED: no producer; always null this round.
309
+ */
310
+ audience?: string | null;
311
+ /**
312
+ * Additive v1.1. Hash of the caller's authorization scope. NOT-YET-COVERED: no producer; always null this round.
313
+ */
314
+ authorization_scope_hash?: string | null;
315
+ /**
316
+ * Additive v1.1. Build/commit id of the engine. NOT-YET-COVERED: no build-id producer; always null this round.
317
+ */
318
+ engine_build_id?: string | null;
319
+ /**
320
+ * Additive v1.1. VCS commit sha of the change (webhook-scoped). null on API/MCP paths.
321
+ */
322
+ commit_sha?: string | null;
323
+ /**
324
+ * Additive v1.1. Deployment identifier. NOT-YET-COVERED: no producer; always null this round.
325
+ */
326
+ deployment_id?: string | null;
327
+ /**
328
+ * Additive. Decision Spec risk score (0-100) for retrieval parity. null when the issuance path did not supply a score. REQUIRED-CANDIDATE for a future major (retrieval parity) — not …
329
+ */
330
+ risk_score?: number | null;
331
+ /**
332
+ * Additive. Integer COUNT of breaking changes (never an array). null when the path did not supply a count. REQUIRED-CANDIDATE for a future major — not required in v1.
333
+ */
334
+ breaking_changes?: number | null;
335
+ /**
336
+ * Additive. REQUIRED-CANDIDATE for a future major (not required in v1). Short name list from TWO detectors: (1) governance names from change-patterns.js (same set as detected_pattern…
337
+ */
338
+ patterns?: string[] | null;
339
+ /**
340
+ * Additive. Per-name epistemic provenance for patterns[]. Present when the issuance path supplied it (and covered by decision_body_hash). null/absent on pre-provenance stored envelop…
341
+ */
342
+ pattern_sources?: {
343
+ /**
344
+ * Pattern name; must appear in patterns when both are carried.
345
+ */
346
+ name: string;
347
+ /**
348
+ * Where the name came from. Closed set; unknown = fail closed for control flow.
349
+ */
350
+ source: 'contract_diff' | 'agent_heuristic' | 'artifact_signal';
351
+ /**
352
+ * measured = contract/artifact measurement with optional row refs; derived = agent heuristic with basis. Closed set; unknown = fail closed for control flow.
353
+ */
354
+ evidence_kind: 'measured' | 'derived';
355
+ /**
356
+ * Indices into same-response detected_patterns for measured records. Absent or empty when no detail rows.
357
+ */
358
+ detected_pattern_indices?: number[];
359
+ /**
360
+ * Derived only: change-engine codes that triggered the heuristic. Untranslated engine ids (e.g. response.body.scope.add). Parallel human labels live in basis_code_labels — do not rep…
361
+ */
362
+ basis_codes?: string[];
363
+ /**
364
+ * Derived only: parallel to basis_codes. Plain-text sentences from the single CODE_MAP (src/diff-code-labels.js) — no presentation markers (the PR comment renderer adds those separat…
365
+ */
366
+ basis_code_labels?: (string | null)[];
367
+ /**
368
+ * Derived only: OpenAPI location inspected when no change-engine code applies (e.g. info.version). Not our rule_id.
369
+ */
370
+ basis_rule_id?: string;
371
+ /**
372
+ * Derived only: stable versioned identifier of OUR agent rule that decided this pattern applies (e.g. agent.tool_result.shape_drift.v1). Sourced from the agent detector table — not c…
373
+ */
374
+ rule_id?: string;
375
+ }[] | null;
376
+ /**
377
+ * Additive (ID637 v5 slice 4). SERVER-authored change-set completeness claim level. Never caller-authored; never a boolean completeness:true. ATTESTED_UNVERIFIED is NOT a proof (defe…
378
+ */
379
+ completeness_mode?: 'UNBOUND' | 'ATTESTED_UNVERIFIED' | 'SERVER_DERIVED' | 'CROSS_VERIFIED' | 'DIVERGED' | 'UNESTABLISHABLE' | null;
380
+ /**
381
+ * Additive (ID637). Host change-set commitment (sha256: sorted-leaf root over claimed FULL changed-file set, crcs.v1). Covered by decision_body_hash. null when unbound.
382
+ */
383
+ change_set_commitment?: string | null;
384
+ /**
385
+ * Additive (ID637). Commitment algorithm id (currently 'crcs.v1'). null when unbound.
386
+ */
387
+ change_set_commitment_alg?: string | null;
388
+ /**
389
+ * Additive (ID637). Hash of the contract-discovery profile (types + globs) — shared universe so channels do not false-diverge on classification drift. Load-bearing. null when unbound…
390
+ */
391
+ contract_selector_hash?: string | null;
392
+ /**
393
+ * Additive (ID637). Claimed full changed-file count bound with the commitment. null when unbound.
394
+ */
395
+ completeness_count?: number | null;
396
+ /**
397
+ * Additive (ID637). Server-computed digest of artifacts actually submitted (always recomputed; never host-trusted). Present whenever authorize issues an envelope.
398
+ */
399
+ submitted_set_digest?: string | null;
400
+ /**
401
+ * Additive (ID637). What would upgrade a non-terminal mode (e.g. webhook_full_file_list for ATTESTED_UNVERIFIED). null when not applicable.
402
+ */
403
+ completeness_expected_channel?: string | null;
404
+ /**
405
+ * Additive. Branchable control core (type/reason_code/recheck_required/choices ids) frozen at issuance without receipt-authz overlay. null when not supplied. Never fabricate type=non…
406
+ */
407
+ required_action_core?: {
408
+ type: 'none' | 'proceed_with_note' | 're_preflight' | 'fix_coverage' | 'remediate_or_revert' | 'revert' | 'request_approval';
409
+ reason_code: string;
410
+ recheck_required: boolean;
411
+ /**
412
+ * Choice ids only (not labels/outcomes), in builder order. Absent on pre-change cores; empty array only for type=none.
413
+ */
414
+ choices?: ('continue_monitor' | 're_preflight' | 'obtain_human_approval' | 'revert' | 'migrate' | 'fix_input' | 'escalate' | 'verify_receipt' | 're_preflight_deploy')[];
415
+ } | null;
416
+ }
417
+ /**
418
+ * This interface was referenced by `DecisionResultEnvelope`'s JSON-Schema
419
+ * via the `definition` "reason".
420
+ */
421
+ export interface Reason {
422
+ /**
423
+ * Stable machine code from an append-only registry: codes may be added, meanings never change, codes are never renamed. Branch on this, never on message.
424
+ */
425
+ code: string;
426
+ message: string;
427
+ }
428
+ /**
429
+ * This interface was referenced by `DecisionResultEnvelope`'s JSON-Schema
430
+ * via the `definition` "nextAction".
431
+ */
432
+ export interface NextAction {
433
+ /**
434
+ * Closed on the producer side; consumer schema treats unknown types as opaque (honour the required flag).
435
+ */
436
+ type: 'RESTORE_FIELD' | 'DEPRECATE_FIELD' | 'RELAX_CONSTRAINT' | 'BUMP_MAJOR' | 'APPLY_MIGRATION' | 'ROLLBACK_CHANGE' | 'NOTIFY_CONSUMERS' | 'REQUEST_APPROVAL' | 'REQUEST_WAIVER' | 'SUPPLY_MISSING_INPUT' | 'REEVALUATE';
437
+ instruction: string;
438
+ target?: string | null;
439
+ /**
440
+ * required=true is only emitted under REQUIRE_APPROVAL/BLOCK (schema-enforced). It gates obtaining a future ALLOW; it never authorizes autonomous execution of the action itself.
441
+ */
442
+ required: boolean;
443
+ /**
444
+ * For REEVALUATE: the machine-checkable condition that must change before re-requesting a decision. Never an immediate retry loop.
445
+ */
446
+ precondition?: 'INPUT_CHANGED' | 'POLICY_CHANGED' | 'APPROVAL_GRANTED' | 'WAIVER_GRANTED' | null;
447
+ }
448
+ /**
449
+ * Deliberately OPEN: the receipt format versions independently (format_version), and Phase-1D authorization-context claims will appear here without breaking v1 validators. Unknown fo…
450
+ *
451
+ * This interface was referenced by `DecisionResultEnvelope`'s JSON-Schema
452
+ * via the `definition` "receipt".
453
+ */
454
+ export interface Receipt {
455
+ token: string;
456
+ format_version: string;
457
+ key_id: string;
458
+ /**
459
+ * UTC Z only; optional millisecond fraction (matches the live receipt timestamp form).
460
+ */
461
+ issued_at: string;
462
+ }
463
+ /**
464
+ * This interface was referenced by `DecisionResultEnvelope`'s JSON-Schema
465
+ * via the `definition` "evidence".
466
+ */
467
+ export interface Evidence {
468
+ type: 'CONTRACT_DIFF' | 'MIGRATION_ANALYSIS' | 'AUTH_SURFACE' | 'WORKFLOW_DIFF' | 'POLICY_RULE' | 'REGISTRY_CHECK' | 'CROSS_ARTIFACT';
469
+ source: string;
470
+ finding: string;
471
+ /**
472
+ * Consumer fallback for unknown values: treat as highest known.
473
+ */
474
+ severity: 'INFO' | 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
475
+ }
476
+ /** @public Alias of schema Reason — keep import { DecisionReason } from '@coderifts/sdk'. */
477
+ export type DecisionReason = Reason;
478
+ /** @public Alias of schema Receipt — keep import { DecisionReceipt } from '@coderifts/sdk'. */
479
+ export type DecisionReceipt = Receipt;
480
+ /** @public Alias of schema Evidence — keep import { DecisionEvidence } from '@coderifts/sdk'. */
481
+ export type DecisionEvidence = Evidence;
482
+ /** Closed governance decision enum (from envelope.decision). */
483
+ export type Decision = DecisionResultEnvelope['decision'];
484
+ /** Closed execution_action enum (from envelope.execution_action). */
485
+ export type ExecutionAction = DecisionResultEnvelope['execution_action'];
486
+ //# sourceMappingURL=decision-result.v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decision-result.v1.d.ts","sourceRoot":"","sources":["../../../src/generated/decision-result.v1.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC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,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;KACP,GACD;QACE,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;KACP,GACD;QACE,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;KACP,GACD;QACE,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;KACP,GACD;QACE,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;KACP,GACD;QACE,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;KACP,GACD;QACE,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAA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,GAChB,gBAAgB,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;CAC3D;AAID,6FAA6F;AAC7F,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AACpC,+FAA+F;AAC/F,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;AACtC,iGAAiG;AACjG,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AACxC,gEAAgE;AAChE,MAAM,MAAM,QAAQ,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;AAC1D,qEAAqE;AACrE,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * DO NOT EDIT — generated from schemas/decision-result.v1.producer.json
3
+ *
4
+ * Source of truth: coderifts-app/schemas/decision-result.v1.producer.json
5
+ * Generator: coderifts-app/scripts/generate-sdk-types.js
6
+ *
7
+ * node scripts/generate-sdk-types.js --out <path>
8
+ * node scripts/generate-sdk-types.js --out <path> --check
9
+ *
10
+ * Hand-editing this file will be overwritten. To change types, update the producer
11
+ * schema and re-run the generator. Public SDK names (DecisionResultEnvelope, …)
12
+ * are re-exported from src/types.ts for stable import paths.
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=decision-result.v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decision-result.v1.js","sourceRoot":"","sources":["../../../src/generated/decision-result.v1.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
@@ -16,5 +16,5 @@ export { CodeRifts } from './client.js';
16
16
  export { CodeRiftsError, ApiError, TimeoutError, RateLimitError, AuthError } from './errors.js';
17
17
  export { readDecision } from './decision.js';
18
18
  export type { ReadDecisionResult } from './decision.js';
19
- export type { CodeRiftsOptions, ApiErrorBody, PreflightCheckRequest, PreflightCheckResponse, ReflexTrigger, AffectedTool, DiffRequest, DiffResponse, BreakingChange, ExplainDecisionRequest, ExplainDecisionResponse, ExplainComponent, HowToUnblockRequest, HowToUnblockResponse, UnblockAction, ScoreMcpRequest, ScoreMcpResponse, GetLedgerRequest, GetLedgerResponse, LedgerEntry, SimulatePolicyRequest, SimulatePolicyResponse, MatchedRule, Decision, ExecutionAction, ReceiptStatus, DecisionReason, NextAction, DecisionReceipt, DecisionEvidence, DecisionResultEnvelope, Artifact, PreflightMode, PreflightChangeSetContext, PreflightChangeSetRequest, PreflightChangeSetBody, ChangeSetArtifactFinding, PreflightChangeSetResponse, VerifyReceiptResponse, DecisionLookupRequest, DecisionLookupResponse, } from './types.js';
19
+ export type { CodeRiftsOptions, ApiErrorBody, PreflightCheckRequest, PreflightCheckResponse, ReflexTrigger, AffectedTool, DiffRequest, DiffResponse, BreakingChange, ExplainDecisionRequest, ExplainDecisionResponse, ExplainComponent, HowToUnblockRequest, HowToUnblockResponse, UnblockAction, ScoreMcpRequest, ScoreMcpResponse, GetLedgerRequest, GetLedgerResponse, LedgerEntry, SimulatePolicyRequest, SimulatePolicyResponse, MatchedRule, Decision, ExecutionAction, ReceiptStatus, DecisionReason, NextAction, DecisionReceipt, DecisionEvidence, DecisionResultEnvelope, Artifact, PreflightMode, PreflightChangeSetContext, PreflightChangeSetRequest, PreflightChangeSetBody, ChangeSetArtifactFinding, AnalysisOutcome, AuthorizeReceiptKind, AnalyzeChangeSetResponse, AuthorizeChangeSetResponse, PreflightChangeSetResponse, VerifyReceiptResponse, DecisionLookupRequest, DecisionLookupResponse, } from './types.js';
20
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,YAAY,EACR,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,eAAe,EACf,aAAa,EACb,cAAc,EACd,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACR,aAAa,EACb,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GACzB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,YAAY,EACR,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,eAAe,EACf,aAAa,EACb,cAAc,EACd,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACR,aAAa,EACb,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GACzB,MAAM,YAAY,CAAC"}