@riddledc/riddle-proof 0.8.84 → 0.8.85
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/README.md +193 -0
- package/capabilities.json +17 -0
- package/dist/advanced/engine-harness.js +2 -2
- package/dist/advanced/index.js +4 -4
- package/dist/advanced/runner.js +2 -2
- package/dist/change-proof.cjs +22 -260
- package/dist/change-proof.d.cts +1 -1
- package/dist/change-proof.d.ts +1 -1
- package/dist/change-proof.js +2 -2
- package/dist/checked-meaning.cjs +67 -0
- package/dist/checked-meaning.d.cts +2 -0
- package/dist/checked-meaning.d.ts +2 -0
- package/dist/checked-meaning.js +41 -0
- package/dist/{chunk-QYZ3GKCP.js → chunk-AFARUBE4.js} +12 -11
- package/dist/chunk-J2SIQGQI.js +71 -0
- package/dist/{chunk-7OAETQU3.js → chunk-JZKLCY5G.js} +1 -1
- package/dist/chunk-KB7FYRBG.js +46 -0
- package/dist/chunk-NWLKJ2WI.js +31 -0
- package/dist/{chunk-LR4UYJDY.js → chunk-O2AO726C.js} +1 -1
- package/dist/chunk-ODLGSEP2.js +43 -0
- package/dist/chunk-OHDNCXRM.js +17 -0
- package/dist/cli/index.js +7 -7
- package/dist/cli.cjs +265 -1122
- package/dist/cli.d.cts +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +7 -7
- package/dist/engine-harness.js +2 -2
- package/dist/grounded-evidence.cjs +95 -0
- package/dist/grounded-evidence.d.cts +2 -0
- package/dist/grounded-evidence.d.ts +2 -0
- package/dist/grounded-evidence.js +69 -0
- package/dist/index.cjs +314 -2042
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +126 -18
- package/dist/pr-comment.cjs +17 -107
- package/dist/pr-comment.d.cts +1 -1
- package/dist/pr-comment.d.ts +1 -1
- package/dist/pr-comment.js +3 -3
- package/dist/receipts.cjs +10 -255
- package/dist/receipts.d.cts +7 -115
- package/dist/receipts.d.ts +7 -115
- package/dist/receipts.js +1 -1
- package/dist/riddle-client.cjs +23 -695
- package/dist/riddle-client.d.cts +1 -188
- package/dist/riddle-client.d.ts +1 -188
- package/dist/riddle-client.js +5 -2
- package/dist/runner.js +2 -2
- package/dist/runtime/index.cjs +23 -695
- package/dist/runtime/index.d.cts +1 -5
- package/dist/runtime/index.d.ts +1 -5
- package/dist/runtime/index.js +5 -2
- package/dist/runtime/riddle-client.cjs +23 -695
- package/dist/runtime/riddle-client.d.cts +1 -5
- package/dist/runtime/riddle-client.d.ts +1 -5
- package/dist/runtime/riddle-client.js +5 -2
- package/dist/semantic-certificate.cjs +17 -1083
- package/dist/semantic-certificate.d.cts +2 -310
- package/dist/semantic-certificate.d.ts +2 -310
- package/dist/semantic-certificate.js +1 -1
- package/package.json +28 -5
- package/runtime/lib/riddle_core_call.mjs +3 -806
- package/dist/chunk-5IFZSUPF.js +0 -644
- package/dist/chunk-AQTCU6W5.js +0 -1086
- package/dist/chunk-MEVVL4TI.js +0 -258
- package/dist/{chunk-WLUMLHII.js → chunk-BID7CKMM.js} +9 -9
- package/dist/{chunk-YH7ADFY4.js → chunk-IVSP24XI.js} +3 -3
|
@@ -1,310 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION: "riddle-proof.semantic-certificate.v0";
|
|
5
|
-
declare const RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION: "riddle-proof.semantic-certificate-closure.v0";
|
|
6
|
-
declare const RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES = 4096;
|
|
7
|
-
interface RiddleProofSemanticScope {
|
|
8
|
-
repository: string;
|
|
9
|
-
revision: string;
|
|
10
|
-
environment: string;
|
|
11
|
-
target: string;
|
|
12
|
-
proof_attempt: string;
|
|
13
|
-
}
|
|
14
|
-
interface RiddleProofSemanticClaimRef {
|
|
15
|
-
claim_id: string;
|
|
16
|
-
claim_version: string;
|
|
17
|
-
parameters?: Record<string, JsonValue>;
|
|
18
|
-
}
|
|
19
|
-
interface RiddleProofSemanticClaim extends RiddleProofSemanticClaimRef {
|
|
20
|
-
label: string;
|
|
21
|
-
}
|
|
22
|
-
interface RiddleProofSemanticClaimExpectation extends RiddleProofSemanticClaimRef {
|
|
23
|
-
label?: string;
|
|
24
|
-
}
|
|
25
|
-
interface RiddleProofSemanticEvidenceRef {
|
|
26
|
-
receipt_id: string;
|
|
27
|
-
artifact_digest: string;
|
|
28
|
-
role: string;
|
|
29
|
-
artifact_url?: string;
|
|
30
|
-
artifact_path?: string;
|
|
31
|
-
}
|
|
32
|
-
type RiddleProofSemanticEvidenceBundle = [
|
|
33
|
-
RiddleProofSemanticEvidenceRef,
|
|
34
|
-
...RiddleProofSemanticEvidenceRef[]
|
|
35
|
-
];
|
|
36
|
-
interface RiddleProofSemanticContractRef {
|
|
37
|
-
contract_id: string;
|
|
38
|
-
contract_version: string;
|
|
39
|
-
label: string;
|
|
40
|
-
}
|
|
41
|
-
interface RiddleProofSemanticContract extends RiddleProofSemanticContractRef {
|
|
42
|
-
claim: RiddleProofSemanticClaim;
|
|
43
|
-
}
|
|
44
|
-
interface RiddleProofSemanticRuntimeContract<Observation> extends RiddleProofSemanticContract {
|
|
45
|
-
accepts: (scope: RiddleProofSemanticScope, observation: Observation) => boolean;
|
|
46
|
-
}
|
|
47
|
-
interface RiddleProofSemanticRule {
|
|
48
|
-
rule_id: string;
|
|
49
|
-
rule_version: string;
|
|
50
|
-
label: string;
|
|
51
|
-
premises: [RiddleProofSemanticClaimRef, ...RiddleProofSemanticClaimRef[]];
|
|
52
|
-
conclusion: RiddleProofSemanticClaim;
|
|
53
|
-
}
|
|
54
|
-
type RiddleProofSemanticAssurance = "runtime_contract_accepted" | "declared_runtime_rule";
|
|
55
|
-
interface RiddleProofSemanticPremise {
|
|
56
|
-
certificate_id: string;
|
|
57
|
-
derivation_kind: RiddleProofSemanticDerivation["kind"];
|
|
58
|
-
assurance: RiddleProofSemanticAssurance;
|
|
59
|
-
scope: RiddleProofSemanticScope;
|
|
60
|
-
claim: RiddleProofSemanticClaim;
|
|
61
|
-
evidence: RiddleProofSemanticEvidenceBundle;
|
|
62
|
-
}
|
|
63
|
-
interface RiddleProofSemanticContractDerivation {
|
|
64
|
-
kind: "contract";
|
|
65
|
-
assurance: "runtime_contract_accepted";
|
|
66
|
-
contract: RiddleProofSemanticContract;
|
|
67
|
-
}
|
|
68
|
-
interface RiddleProofSemanticCompositionDerivation {
|
|
69
|
-
kind: "composition";
|
|
70
|
-
assurance: "declared_runtime_rule";
|
|
71
|
-
rule: RiddleProofSemanticRule;
|
|
72
|
-
premises: [RiddleProofSemanticPremise, ...RiddleProofSemanticPremise[]];
|
|
73
|
-
}
|
|
74
|
-
type RiddleProofSemanticDerivation = RiddleProofSemanticContractDerivation | RiddleProofSemanticCompositionDerivation;
|
|
75
|
-
interface RiddleProofSemanticCertificate {
|
|
76
|
-
version: typeof RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION;
|
|
77
|
-
certificate_id: string;
|
|
78
|
-
scope: RiddleProofSemanticScope;
|
|
79
|
-
claim: RiddleProofSemanticClaim;
|
|
80
|
-
evidence: RiddleProofSemanticEvidenceBundle;
|
|
81
|
-
derivation: RiddleProofSemanticDerivation;
|
|
82
|
-
issued_at: string;
|
|
83
|
-
}
|
|
84
|
-
interface CreateRiddleProofSemanticCertificateInput<Observation> {
|
|
85
|
-
scope: RiddleProofSemanticScope;
|
|
86
|
-
evidence: RiddleProofSemanticEvidenceBundle;
|
|
87
|
-
observation: Observation;
|
|
88
|
-
contract: RiddleProofSemanticRuntimeContract<Observation>;
|
|
89
|
-
issued_at?: string;
|
|
90
|
-
}
|
|
91
|
-
interface RiddleProofSemanticContractRejected {
|
|
92
|
-
code: "contract_rejected";
|
|
93
|
-
contract: RiddleProofSemanticContractRef;
|
|
94
|
-
message: string;
|
|
95
|
-
}
|
|
96
|
-
interface RiddleProofSemanticContractError {
|
|
97
|
-
code: "contract_error";
|
|
98
|
-
contract: RiddleProofSemanticContractRef;
|
|
99
|
-
message: string;
|
|
100
|
-
}
|
|
101
|
-
type RiddleProofSemanticCertificationResult = {
|
|
102
|
-
ok: true;
|
|
103
|
-
certificate: RiddleProofSemanticCertificate;
|
|
104
|
-
} | {
|
|
105
|
-
ok: false;
|
|
106
|
-
error: RiddleProofSemanticContractRejected | RiddleProofSemanticContractError;
|
|
107
|
-
};
|
|
108
|
-
interface ComposeRiddleProofSemanticCertificatesInput {
|
|
109
|
-
rule: RiddleProofSemanticRule;
|
|
110
|
-
certificates: [RiddleProofSemanticCertificate, ...RiddleProofSemanticCertificate[]];
|
|
111
|
-
issued_at?: string;
|
|
112
|
-
}
|
|
113
|
-
type RiddleProofSemanticScopeField = keyof RiddleProofSemanticScope;
|
|
114
|
-
interface RiddleProofSemanticScopeMismatch {
|
|
115
|
-
code: "scope_mismatch";
|
|
116
|
-
input_index: number;
|
|
117
|
-
field: RiddleProofSemanticScopeField;
|
|
118
|
-
expected: string;
|
|
119
|
-
observed: string;
|
|
120
|
-
message: string;
|
|
121
|
-
}
|
|
122
|
-
interface RiddleProofSemanticPremiseCountMismatch {
|
|
123
|
-
code: "premise_count_mismatch";
|
|
124
|
-
expected: number;
|
|
125
|
-
observed: number;
|
|
126
|
-
message: string;
|
|
127
|
-
}
|
|
128
|
-
interface RiddleProofSemanticPremiseMismatch {
|
|
129
|
-
code: "premise_mismatch";
|
|
130
|
-
input_index: number;
|
|
131
|
-
expected: RiddleProofSemanticClaimRef;
|
|
132
|
-
observed: RiddleProofSemanticClaimRef;
|
|
133
|
-
message: string;
|
|
134
|
-
}
|
|
135
|
-
type RiddleProofSemanticCompositionError = RiddleProofSemanticScopeMismatch | RiddleProofSemanticPremiseCountMismatch | RiddleProofSemanticPremiseMismatch;
|
|
136
|
-
type RiddleProofSemanticCompositionResult = {
|
|
137
|
-
ok: true;
|
|
138
|
-
certificate: RiddleProofSemanticCertificate;
|
|
139
|
-
} | {
|
|
140
|
-
ok: false;
|
|
141
|
-
error: RiddleProofSemanticCompositionError;
|
|
142
|
-
};
|
|
143
|
-
interface RiddleProofSemanticCertificateClosure {
|
|
144
|
-
version: typeof RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION;
|
|
145
|
-
root_certificate_id: string;
|
|
146
|
-
certificates: [
|
|
147
|
-
RiddleProofSemanticCertificate,
|
|
148
|
-
...RiddleProofSemanticCertificate[]
|
|
149
|
-
];
|
|
150
|
-
}
|
|
151
|
-
type RiddleProofSemanticPremiseSnapshotField = "derivation_kind" | "assurance" | "scope" | "claim" | "evidence";
|
|
152
|
-
interface RiddleProofSemanticCertificateClosureInvalid {
|
|
153
|
-
code: "invalid_closure";
|
|
154
|
-
message: string;
|
|
155
|
-
}
|
|
156
|
-
interface RiddleProofSemanticCertificateClosureCertificateInvalid {
|
|
157
|
-
code: "invalid_closure_certificate";
|
|
158
|
-
input_index: number;
|
|
159
|
-
message: string;
|
|
160
|
-
}
|
|
161
|
-
interface RiddleProofSemanticCertificateClosureDuplicateId {
|
|
162
|
-
code: "duplicate_certificate_id";
|
|
163
|
-
certificate_id: string;
|
|
164
|
-
first_index: number;
|
|
165
|
-
duplicate_index: number;
|
|
166
|
-
message: string;
|
|
167
|
-
}
|
|
168
|
-
interface RiddleProofSemanticCertificateClosureRootMissing {
|
|
169
|
-
code: "root_certificate_missing";
|
|
170
|
-
root_certificate_id: string;
|
|
171
|
-
message: string;
|
|
172
|
-
}
|
|
173
|
-
interface RiddleProofSemanticCertificateClosureDanglingPremise {
|
|
174
|
-
code: "dangling_premise";
|
|
175
|
-
parent_certificate_id: string;
|
|
176
|
-
premise_index: number;
|
|
177
|
-
premise_certificate_id: string;
|
|
178
|
-
message: string;
|
|
179
|
-
}
|
|
180
|
-
interface RiddleProofSemanticCertificateClosurePremiseMismatch {
|
|
181
|
-
code: "premise_snapshot_mismatch";
|
|
182
|
-
parent_certificate_id: string;
|
|
183
|
-
premise_index: number;
|
|
184
|
-
premise_certificate_id: string;
|
|
185
|
-
field: RiddleProofSemanticPremiseSnapshotField;
|
|
186
|
-
message: string;
|
|
187
|
-
}
|
|
188
|
-
interface RiddleProofSemanticCertificateClosureCycle {
|
|
189
|
-
code: "certificate_cycle";
|
|
190
|
-
certificate_ids: string[];
|
|
191
|
-
message: string;
|
|
192
|
-
}
|
|
193
|
-
interface RiddleProofSemanticCertificateClosureUnreachable {
|
|
194
|
-
code: "unreachable_certificates";
|
|
195
|
-
certificate_ids: string[];
|
|
196
|
-
message: string;
|
|
197
|
-
}
|
|
198
|
-
type RiddleProofSemanticCertificateClosureValidationError = RiddleProofSemanticCertificateClosureInvalid | RiddleProofSemanticCertificateClosureCertificateInvalid | RiddleProofSemanticCertificateClosureDuplicateId | RiddleProofSemanticCertificateClosureRootMissing | RiddleProofSemanticCertificateClosureDanglingPremise | RiddleProofSemanticCertificateClosurePremiseMismatch | RiddleProofSemanticCertificateClosureCycle | RiddleProofSemanticCertificateClosureUnreachable;
|
|
199
|
-
type RiddleProofSemanticCertificateClosureValidationResult = {
|
|
200
|
-
ok: true;
|
|
201
|
-
closure: RiddleProofSemanticCertificateClosure;
|
|
202
|
-
root_certificate: RiddleProofSemanticCertificate;
|
|
203
|
-
} | {
|
|
204
|
-
ok: false;
|
|
205
|
-
error: RiddleProofSemanticCertificateClosureValidationError;
|
|
206
|
-
};
|
|
207
|
-
interface CreateRiddleProofSemanticAtomicCertificateClosureInput {
|
|
208
|
-
certificate: unknown;
|
|
209
|
-
}
|
|
210
|
-
interface ComposeRiddleProofSemanticCertificateClosuresInput {
|
|
211
|
-
rule: RiddleProofSemanticRule;
|
|
212
|
-
closures: [unknown, ...unknown[]];
|
|
213
|
-
issued_at?: string;
|
|
214
|
-
}
|
|
215
|
-
interface RiddleProofSemanticCertificateClosureInputInvalid {
|
|
216
|
-
code: "input_closure_invalid";
|
|
217
|
-
input_index: number;
|
|
218
|
-
cause: RiddleProofSemanticCertificateClosureValidationError;
|
|
219
|
-
message: string;
|
|
220
|
-
}
|
|
221
|
-
interface RiddleProofSemanticCertificateClosureIdCollision {
|
|
222
|
-
code: "certificate_id_collision";
|
|
223
|
-
certificate_id: string;
|
|
224
|
-
message: string;
|
|
225
|
-
}
|
|
226
|
-
interface RiddleProofSemanticCertificateClosureConstructionFailed {
|
|
227
|
-
code: "closure_construction_failed";
|
|
228
|
-
cause: RiddleProofSemanticCertificateClosureValidationError;
|
|
229
|
-
message: string;
|
|
230
|
-
}
|
|
231
|
-
type RiddleProofSemanticCertificateClosureCompositionError = RiddleProofSemanticCompositionError | RiddleProofSemanticCertificateClosureInputInvalid | RiddleProofSemanticCertificateClosureIdCollision | RiddleProofSemanticCertificateClosureConstructionFailed;
|
|
232
|
-
type RiddleProofSemanticCertificateClosureCompositionResult = {
|
|
233
|
-
ok: true;
|
|
234
|
-
certificate: RiddleProofSemanticCertificate;
|
|
235
|
-
closure: RiddleProofSemanticCertificateClosure;
|
|
236
|
-
} | {
|
|
237
|
-
ok: false;
|
|
238
|
-
error: RiddleProofSemanticCertificateClosureCompositionError;
|
|
239
|
-
};
|
|
240
|
-
interface MatchRiddleProofSemanticCertificateInput {
|
|
241
|
-
certificate: unknown;
|
|
242
|
-
expected_certificate_id: string;
|
|
243
|
-
expected_scope: RiddleProofSemanticScope;
|
|
244
|
-
expected_claim: RiddleProofSemanticClaimExpectation;
|
|
245
|
-
expected_assurance: RiddleProofSemanticAssurance;
|
|
246
|
-
}
|
|
247
|
-
interface RiddleProofSemanticCertificateInvalid {
|
|
248
|
-
code: "invalid_certificate";
|
|
249
|
-
message: string;
|
|
250
|
-
}
|
|
251
|
-
interface RiddleProofSemanticCertificateIdMismatch {
|
|
252
|
-
code: "certificate_id_mismatch";
|
|
253
|
-
expected: string;
|
|
254
|
-
observed: string;
|
|
255
|
-
message: string;
|
|
256
|
-
}
|
|
257
|
-
interface RiddleProofSemanticCertificateMatchScopeMismatch {
|
|
258
|
-
code: "scope_mismatch";
|
|
259
|
-
field: RiddleProofSemanticScopeField;
|
|
260
|
-
expected: string;
|
|
261
|
-
observed: string;
|
|
262
|
-
message: string;
|
|
263
|
-
}
|
|
264
|
-
interface RiddleProofSemanticCertificateClaimMismatch {
|
|
265
|
-
code: "claim_mismatch";
|
|
266
|
-
expected: RiddleProofSemanticClaimRef;
|
|
267
|
-
observed: RiddleProofSemanticClaimRef;
|
|
268
|
-
message: string;
|
|
269
|
-
}
|
|
270
|
-
interface RiddleProofSemanticCertificateAssuranceMismatch {
|
|
271
|
-
code: "assurance_mismatch";
|
|
272
|
-
expected: RiddleProofSemanticAssurance;
|
|
273
|
-
observed: RiddleProofSemanticAssurance;
|
|
274
|
-
message: string;
|
|
275
|
-
}
|
|
276
|
-
type RiddleProofSemanticCertificateMatchError = RiddleProofSemanticCertificateInvalid | RiddleProofSemanticCertificateIdMismatch | RiddleProofSemanticCertificateMatchScopeMismatch | RiddleProofSemanticCertificateClaimMismatch | RiddleProofSemanticCertificateAssuranceMismatch;
|
|
277
|
-
type RiddleProofSemanticCertificateMatchResult = {
|
|
278
|
-
ok: true;
|
|
279
|
-
certificate: RiddleProofSemanticCertificate;
|
|
280
|
-
} | {
|
|
281
|
-
ok: false;
|
|
282
|
-
error: RiddleProofSemanticCertificateMatchError;
|
|
283
|
-
};
|
|
284
|
-
interface MatchRiddleProofSemanticCertificateClosureInput {
|
|
285
|
-
closure: unknown;
|
|
286
|
-
expected_root_certificate_id: string;
|
|
287
|
-
expected_scope: RiddleProofSemanticScope;
|
|
288
|
-
expected_claim: RiddleProofSemanticClaimExpectation;
|
|
289
|
-
expected_assurance: RiddleProofSemanticAssurance;
|
|
290
|
-
}
|
|
291
|
-
type RiddleProofSemanticCertificateClosureMatchError = RiddleProofSemanticCertificateClosureValidationError | RiddleProofSemanticCertificateMatchError;
|
|
292
|
-
type RiddleProofSemanticCertificateClosureMatchResult = {
|
|
293
|
-
ok: true;
|
|
294
|
-
closure: RiddleProofSemanticCertificateClosure;
|
|
295
|
-
root_certificate: RiddleProofSemanticCertificate;
|
|
296
|
-
} | {
|
|
297
|
-
ok: false;
|
|
298
|
-
error: RiddleProofSemanticCertificateClosureMatchError;
|
|
299
|
-
};
|
|
300
|
-
declare function riddleProofSemanticScopesEqual(left: RiddleProofSemanticScope, right: RiddleProofSemanticScope): boolean;
|
|
301
|
-
declare function createRiddleProofSemanticCertificate<Observation>(input: CreateRiddleProofSemanticCertificateInput<Observation>): RiddleProofSemanticCertificationResult;
|
|
302
|
-
declare function parseRiddleProofSemanticCertificate(value: unknown): RiddleProofSemanticCertificate;
|
|
303
|
-
declare function matchRiddleProofSemanticCertificate(input: MatchRiddleProofSemanticCertificateInput): RiddleProofSemanticCertificateMatchResult;
|
|
304
|
-
declare function composeRiddleProofSemanticCertificates(input: ComposeRiddleProofSemanticCertificatesInput): RiddleProofSemanticCompositionResult;
|
|
305
|
-
declare function validateRiddleProofSemanticCertificateClosure(value: unknown): RiddleProofSemanticCertificateClosureValidationResult;
|
|
306
|
-
declare function createRiddleProofSemanticAtomicCertificateClosure(input: CreateRiddleProofSemanticAtomicCertificateClosureInput): RiddleProofSemanticCertificateClosureValidationResult;
|
|
307
|
-
declare function composeRiddleProofSemanticCertificateClosures(input: ComposeRiddleProofSemanticCertificateClosuresInput): RiddleProofSemanticCertificateClosureCompositionResult;
|
|
308
|
-
declare function matchRiddleProofSemanticCertificateClosure(input: MatchRiddleProofSemanticCertificateClosureInput): RiddleProofSemanticCertificateClosureMatchResult;
|
|
309
|
-
|
|
310
|
-
export { type ComposeRiddleProofSemanticCertificateClosuresInput, type ComposeRiddleProofSemanticCertificatesInput, type CreateRiddleProofSemanticAtomicCertificateClosureInput, type CreateRiddleProofSemanticCertificateInput, type MatchRiddleProofSemanticCertificateClosureInput, type MatchRiddleProofSemanticCertificateInput, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION, type RiddleProofSemanticAssurance, type RiddleProofSemanticCertificate, type RiddleProofSemanticCertificateAssuranceMismatch, type RiddleProofSemanticCertificateClaimMismatch, type RiddleProofSemanticCertificateClosure, type RiddleProofSemanticCertificateClosureCertificateInvalid, type RiddleProofSemanticCertificateClosureCompositionError, type RiddleProofSemanticCertificateClosureCompositionResult, type RiddleProofSemanticCertificateClosureConstructionFailed, type RiddleProofSemanticCertificateClosureCycle, type RiddleProofSemanticCertificateClosureDanglingPremise, type RiddleProofSemanticCertificateClosureDuplicateId, type RiddleProofSemanticCertificateClosureIdCollision, type RiddleProofSemanticCertificateClosureInputInvalid, type RiddleProofSemanticCertificateClosureInvalid, type RiddleProofSemanticCertificateClosureMatchError, type RiddleProofSemanticCertificateClosureMatchResult, type RiddleProofSemanticCertificateClosurePremiseMismatch, type RiddleProofSemanticCertificateClosureRootMissing, type RiddleProofSemanticCertificateClosureUnreachable, type RiddleProofSemanticCertificateClosureValidationError, type RiddleProofSemanticCertificateClosureValidationResult, type RiddleProofSemanticCertificateIdMismatch, type RiddleProofSemanticCertificateInvalid, type RiddleProofSemanticCertificateMatchError, type RiddleProofSemanticCertificateMatchResult, type RiddleProofSemanticCertificateMatchScopeMismatch, type RiddleProofSemanticCertificationResult, type RiddleProofSemanticClaim, type RiddleProofSemanticClaimExpectation, type RiddleProofSemanticClaimRef, type RiddleProofSemanticCompositionDerivation, type RiddleProofSemanticCompositionError, type RiddleProofSemanticCompositionResult, type RiddleProofSemanticContract, type RiddleProofSemanticContractDerivation, type RiddleProofSemanticContractError, type RiddleProofSemanticContractRef, type RiddleProofSemanticContractRejected, type RiddleProofSemanticDerivation, type RiddleProofSemanticEvidenceBundle, type RiddleProofSemanticEvidenceRef, type RiddleProofSemanticPremise, type RiddleProofSemanticPremiseCountMismatch, type RiddleProofSemanticPremiseMismatch, type RiddleProofSemanticPremiseSnapshotField, type RiddleProofSemanticRule, type RiddleProofSemanticRuntimeContract, type RiddleProofSemanticScope, type RiddleProofSemanticScopeField, type RiddleProofSemanticScopeMismatch, composeRiddleProofSemanticCertificateClosures, composeRiddleProofSemanticCertificates, createRiddleProofSemanticAtomicCertificateClosure, createRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificateClosure, parseRiddleProofSemanticCertificate, riddleProofSemanticScopesEqual, validateRiddleProofSemanticCertificateClosure };
|
|
1
|
+
export * from '@riddledc/riddle-proof-core/semantic-certificate';
|
|
2
|
+
export { RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION, composeRiddleProofSemanticCertificateClosures, composeRiddleProofSemanticCertificates, createRiddleProofSemanticAtomicCertificateClosure, createRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificateClosure, parseRiddleProofSemanticCertificate, riddleProofSemanticScopesEqual, validateRiddleProofSemanticCertificateClosure } from '@riddledc/riddle-proof-core/semantic-certificate';
|
|
@@ -1,310 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION: "riddle-proof.semantic-certificate.v0";
|
|
5
|
-
declare const RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION: "riddle-proof.semantic-certificate-closure.v0";
|
|
6
|
-
declare const RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES = 4096;
|
|
7
|
-
interface RiddleProofSemanticScope {
|
|
8
|
-
repository: string;
|
|
9
|
-
revision: string;
|
|
10
|
-
environment: string;
|
|
11
|
-
target: string;
|
|
12
|
-
proof_attempt: string;
|
|
13
|
-
}
|
|
14
|
-
interface RiddleProofSemanticClaimRef {
|
|
15
|
-
claim_id: string;
|
|
16
|
-
claim_version: string;
|
|
17
|
-
parameters?: Record<string, JsonValue>;
|
|
18
|
-
}
|
|
19
|
-
interface RiddleProofSemanticClaim extends RiddleProofSemanticClaimRef {
|
|
20
|
-
label: string;
|
|
21
|
-
}
|
|
22
|
-
interface RiddleProofSemanticClaimExpectation extends RiddleProofSemanticClaimRef {
|
|
23
|
-
label?: string;
|
|
24
|
-
}
|
|
25
|
-
interface RiddleProofSemanticEvidenceRef {
|
|
26
|
-
receipt_id: string;
|
|
27
|
-
artifact_digest: string;
|
|
28
|
-
role: string;
|
|
29
|
-
artifact_url?: string;
|
|
30
|
-
artifact_path?: string;
|
|
31
|
-
}
|
|
32
|
-
type RiddleProofSemanticEvidenceBundle = [
|
|
33
|
-
RiddleProofSemanticEvidenceRef,
|
|
34
|
-
...RiddleProofSemanticEvidenceRef[]
|
|
35
|
-
];
|
|
36
|
-
interface RiddleProofSemanticContractRef {
|
|
37
|
-
contract_id: string;
|
|
38
|
-
contract_version: string;
|
|
39
|
-
label: string;
|
|
40
|
-
}
|
|
41
|
-
interface RiddleProofSemanticContract extends RiddleProofSemanticContractRef {
|
|
42
|
-
claim: RiddleProofSemanticClaim;
|
|
43
|
-
}
|
|
44
|
-
interface RiddleProofSemanticRuntimeContract<Observation> extends RiddleProofSemanticContract {
|
|
45
|
-
accepts: (scope: RiddleProofSemanticScope, observation: Observation) => boolean;
|
|
46
|
-
}
|
|
47
|
-
interface RiddleProofSemanticRule {
|
|
48
|
-
rule_id: string;
|
|
49
|
-
rule_version: string;
|
|
50
|
-
label: string;
|
|
51
|
-
premises: [RiddleProofSemanticClaimRef, ...RiddleProofSemanticClaimRef[]];
|
|
52
|
-
conclusion: RiddleProofSemanticClaim;
|
|
53
|
-
}
|
|
54
|
-
type RiddleProofSemanticAssurance = "runtime_contract_accepted" | "declared_runtime_rule";
|
|
55
|
-
interface RiddleProofSemanticPremise {
|
|
56
|
-
certificate_id: string;
|
|
57
|
-
derivation_kind: RiddleProofSemanticDerivation["kind"];
|
|
58
|
-
assurance: RiddleProofSemanticAssurance;
|
|
59
|
-
scope: RiddleProofSemanticScope;
|
|
60
|
-
claim: RiddleProofSemanticClaim;
|
|
61
|
-
evidence: RiddleProofSemanticEvidenceBundle;
|
|
62
|
-
}
|
|
63
|
-
interface RiddleProofSemanticContractDerivation {
|
|
64
|
-
kind: "contract";
|
|
65
|
-
assurance: "runtime_contract_accepted";
|
|
66
|
-
contract: RiddleProofSemanticContract;
|
|
67
|
-
}
|
|
68
|
-
interface RiddleProofSemanticCompositionDerivation {
|
|
69
|
-
kind: "composition";
|
|
70
|
-
assurance: "declared_runtime_rule";
|
|
71
|
-
rule: RiddleProofSemanticRule;
|
|
72
|
-
premises: [RiddleProofSemanticPremise, ...RiddleProofSemanticPremise[]];
|
|
73
|
-
}
|
|
74
|
-
type RiddleProofSemanticDerivation = RiddleProofSemanticContractDerivation | RiddleProofSemanticCompositionDerivation;
|
|
75
|
-
interface RiddleProofSemanticCertificate {
|
|
76
|
-
version: typeof RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION;
|
|
77
|
-
certificate_id: string;
|
|
78
|
-
scope: RiddleProofSemanticScope;
|
|
79
|
-
claim: RiddleProofSemanticClaim;
|
|
80
|
-
evidence: RiddleProofSemanticEvidenceBundle;
|
|
81
|
-
derivation: RiddleProofSemanticDerivation;
|
|
82
|
-
issued_at: string;
|
|
83
|
-
}
|
|
84
|
-
interface CreateRiddleProofSemanticCertificateInput<Observation> {
|
|
85
|
-
scope: RiddleProofSemanticScope;
|
|
86
|
-
evidence: RiddleProofSemanticEvidenceBundle;
|
|
87
|
-
observation: Observation;
|
|
88
|
-
contract: RiddleProofSemanticRuntimeContract<Observation>;
|
|
89
|
-
issued_at?: string;
|
|
90
|
-
}
|
|
91
|
-
interface RiddleProofSemanticContractRejected {
|
|
92
|
-
code: "contract_rejected";
|
|
93
|
-
contract: RiddleProofSemanticContractRef;
|
|
94
|
-
message: string;
|
|
95
|
-
}
|
|
96
|
-
interface RiddleProofSemanticContractError {
|
|
97
|
-
code: "contract_error";
|
|
98
|
-
contract: RiddleProofSemanticContractRef;
|
|
99
|
-
message: string;
|
|
100
|
-
}
|
|
101
|
-
type RiddleProofSemanticCertificationResult = {
|
|
102
|
-
ok: true;
|
|
103
|
-
certificate: RiddleProofSemanticCertificate;
|
|
104
|
-
} | {
|
|
105
|
-
ok: false;
|
|
106
|
-
error: RiddleProofSemanticContractRejected | RiddleProofSemanticContractError;
|
|
107
|
-
};
|
|
108
|
-
interface ComposeRiddleProofSemanticCertificatesInput {
|
|
109
|
-
rule: RiddleProofSemanticRule;
|
|
110
|
-
certificates: [RiddleProofSemanticCertificate, ...RiddleProofSemanticCertificate[]];
|
|
111
|
-
issued_at?: string;
|
|
112
|
-
}
|
|
113
|
-
type RiddleProofSemanticScopeField = keyof RiddleProofSemanticScope;
|
|
114
|
-
interface RiddleProofSemanticScopeMismatch {
|
|
115
|
-
code: "scope_mismatch";
|
|
116
|
-
input_index: number;
|
|
117
|
-
field: RiddleProofSemanticScopeField;
|
|
118
|
-
expected: string;
|
|
119
|
-
observed: string;
|
|
120
|
-
message: string;
|
|
121
|
-
}
|
|
122
|
-
interface RiddleProofSemanticPremiseCountMismatch {
|
|
123
|
-
code: "premise_count_mismatch";
|
|
124
|
-
expected: number;
|
|
125
|
-
observed: number;
|
|
126
|
-
message: string;
|
|
127
|
-
}
|
|
128
|
-
interface RiddleProofSemanticPremiseMismatch {
|
|
129
|
-
code: "premise_mismatch";
|
|
130
|
-
input_index: number;
|
|
131
|
-
expected: RiddleProofSemanticClaimRef;
|
|
132
|
-
observed: RiddleProofSemanticClaimRef;
|
|
133
|
-
message: string;
|
|
134
|
-
}
|
|
135
|
-
type RiddleProofSemanticCompositionError = RiddleProofSemanticScopeMismatch | RiddleProofSemanticPremiseCountMismatch | RiddleProofSemanticPremiseMismatch;
|
|
136
|
-
type RiddleProofSemanticCompositionResult = {
|
|
137
|
-
ok: true;
|
|
138
|
-
certificate: RiddleProofSemanticCertificate;
|
|
139
|
-
} | {
|
|
140
|
-
ok: false;
|
|
141
|
-
error: RiddleProofSemanticCompositionError;
|
|
142
|
-
};
|
|
143
|
-
interface RiddleProofSemanticCertificateClosure {
|
|
144
|
-
version: typeof RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION;
|
|
145
|
-
root_certificate_id: string;
|
|
146
|
-
certificates: [
|
|
147
|
-
RiddleProofSemanticCertificate,
|
|
148
|
-
...RiddleProofSemanticCertificate[]
|
|
149
|
-
];
|
|
150
|
-
}
|
|
151
|
-
type RiddleProofSemanticPremiseSnapshotField = "derivation_kind" | "assurance" | "scope" | "claim" | "evidence";
|
|
152
|
-
interface RiddleProofSemanticCertificateClosureInvalid {
|
|
153
|
-
code: "invalid_closure";
|
|
154
|
-
message: string;
|
|
155
|
-
}
|
|
156
|
-
interface RiddleProofSemanticCertificateClosureCertificateInvalid {
|
|
157
|
-
code: "invalid_closure_certificate";
|
|
158
|
-
input_index: number;
|
|
159
|
-
message: string;
|
|
160
|
-
}
|
|
161
|
-
interface RiddleProofSemanticCertificateClosureDuplicateId {
|
|
162
|
-
code: "duplicate_certificate_id";
|
|
163
|
-
certificate_id: string;
|
|
164
|
-
first_index: number;
|
|
165
|
-
duplicate_index: number;
|
|
166
|
-
message: string;
|
|
167
|
-
}
|
|
168
|
-
interface RiddleProofSemanticCertificateClosureRootMissing {
|
|
169
|
-
code: "root_certificate_missing";
|
|
170
|
-
root_certificate_id: string;
|
|
171
|
-
message: string;
|
|
172
|
-
}
|
|
173
|
-
interface RiddleProofSemanticCertificateClosureDanglingPremise {
|
|
174
|
-
code: "dangling_premise";
|
|
175
|
-
parent_certificate_id: string;
|
|
176
|
-
premise_index: number;
|
|
177
|
-
premise_certificate_id: string;
|
|
178
|
-
message: string;
|
|
179
|
-
}
|
|
180
|
-
interface RiddleProofSemanticCertificateClosurePremiseMismatch {
|
|
181
|
-
code: "premise_snapshot_mismatch";
|
|
182
|
-
parent_certificate_id: string;
|
|
183
|
-
premise_index: number;
|
|
184
|
-
premise_certificate_id: string;
|
|
185
|
-
field: RiddleProofSemanticPremiseSnapshotField;
|
|
186
|
-
message: string;
|
|
187
|
-
}
|
|
188
|
-
interface RiddleProofSemanticCertificateClosureCycle {
|
|
189
|
-
code: "certificate_cycle";
|
|
190
|
-
certificate_ids: string[];
|
|
191
|
-
message: string;
|
|
192
|
-
}
|
|
193
|
-
interface RiddleProofSemanticCertificateClosureUnreachable {
|
|
194
|
-
code: "unreachable_certificates";
|
|
195
|
-
certificate_ids: string[];
|
|
196
|
-
message: string;
|
|
197
|
-
}
|
|
198
|
-
type RiddleProofSemanticCertificateClosureValidationError = RiddleProofSemanticCertificateClosureInvalid | RiddleProofSemanticCertificateClosureCertificateInvalid | RiddleProofSemanticCertificateClosureDuplicateId | RiddleProofSemanticCertificateClosureRootMissing | RiddleProofSemanticCertificateClosureDanglingPremise | RiddleProofSemanticCertificateClosurePremiseMismatch | RiddleProofSemanticCertificateClosureCycle | RiddleProofSemanticCertificateClosureUnreachable;
|
|
199
|
-
type RiddleProofSemanticCertificateClosureValidationResult = {
|
|
200
|
-
ok: true;
|
|
201
|
-
closure: RiddleProofSemanticCertificateClosure;
|
|
202
|
-
root_certificate: RiddleProofSemanticCertificate;
|
|
203
|
-
} | {
|
|
204
|
-
ok: false;
|
|
205
|
-
error: RiddleProofSemanticCertificateClosureValidationError;
|
|
206
|
-
};
|
|
207
|
-
interface CreateRiddleProofSemanticAtomicCertificateClosureInput {
|
|
208
|
-
certificate: unknown;
|
|
209
|
-
}
|
|
210
|
-
interface ComposeRiddleProofSemanticCertificateClosuresInput {
|
|
211
|
-
rule: RiddleProofSemanticRule;
|
|
212
|
-
closures: [unknown, ...unknown[]];
|
|
213
|
-
issued_at?: string;
|
|
214
|
-
}
|
|
215
|
-
interface RiddleProofSemanticCertificateClosureInputInvalid {
|
|
216
|
-
code: "input_closure_invalid";
|
|
217
|
-
input_index: number;
|
|
218
|
-
cause: RiddleProofSemanticCertificateClosureValidationError;
|
|
219
|
-
message: string;
|
|
220
|
-
}
|
|
221
|
-
interface RiddleProofSemanticCertificateClosureIdCollision {
|
|
222
|
-
code: "certificate_id_collision";
|
|
223
|
-
certificate_id: string;
|
|
224
|
-
message: string;
|
|
225
|
-
}
|
|
226
|
-
interface RiddleProofSemanticCertificateClosureConstructionFailed {
|
|
227
|
-
code: "closure_construction_failed";
|
|
228
|
-
cause: RiddleProofSemanticCertificateClosureValidationError;
|
|
229
|
-
message: string;
|
|
230
|
-
}
|
|
231
|
-
type RiddleProofSemanticCertificateClosureCompositionError = RiddleProofSemanticCompositionError | RiddleProofSemanticCertificateClosureInputInvalid | RiddleProofSemanticCertificateClosureIdCollision | RiddleProofSemanticCertificateClosureConstructionFailed;
|
|
232
|
-
type RiddleProofSemanticCertificateClosureCompositionResult = {
|
|
233
|
-
ok: true;
|
|
234
|
-
certificate: RiddleProofSemanticCertificate;
|
|
235
|
-
closure: RiddleProofSemanticCertificateClosure;
|
|
236
|
-
} | {
|
|
237
|
-
ok: false;
|
|
238
|
-
error: RiddleProofSemanticCertificateClosureCompositionError;
|
|
239
|
-
};
|
|
240
|
-
interface MatchRiddleProofSemanticCertificateInput {
|
|
241
|
-
certificate: unknown;
|
|
242
|
-
expected_certificate_id: string;
|
|
243
|
-
expected_scope: RiddleProofSemanticScope;
|
|
244
|
-
expected_claim: RiddleProofSemanticClaimExpectation;
|
|
245
|
-
expected_assurance: RiddleProofSemanticAssurance;
|
|
246
|
-
}
|
|
247
|
-
interface RiddleProofSemanticCertificateInvalid {
|
|
248
|
-
code: "invalid_certificate";
|
|
249
|
-
message: string;
|
|
250
|
-
}
|
|
251
|
-
interface RiddleProofSemanticCertificateIdMismatch {
|
|
252
|
-
code: "certificate_id_mismatch";
|
|
253
|
-
expected: string;
|
|
254
|
-
observed: string;
|
|
255
|
-
message: string;
|
|
256
|
-
}
|
|
257
|
-
interface RiddleProofSemanticCertificateMatchScopeMismatch {
|
|
258
|
-
code: "scope_mismatch";
|
|
259
|
-
field: RiddleProofSemanticScopeField;
|
|
260
|
-
expected: string;
|
|
261
|
-
observed: string;
|
|
262
|
-
message: string;
|
|
263
|
-
}
|
|
264
|
-
interface RiddleProofSemanticCertificateClaimMismatch {
|
|
265
|
-
code: "claim_mismatch";
|
|
266
|
-
expected: RiddleProofSemanticClaimRef;
|
|
267
|
-
observed: RiddleProofSemanticClaimRef;
|
|
268
|
-
message: string;
|
|
269
|
-
}
|
|
270
|
-
interface RiddleProofSemanticCertificateAssuranceMismatch {
|
|
271
|
-
code: "assurance_mismatch";
|
|
272
|
-
expected: RiddleProofSemanticAssurance;
|
|
273
|
-
observed: RiddleProofSemanticAssurance;
|
|
274
|
-
message: string;
|
|
275
|
-
}
|
|
276
|
-
type RiddleProofSemanticCertificateMatchError = RiddleProofSemanticCertificateInvalid | RiddleProofSemanticCertificateIdMismatch | RiddleProofSemanticCertificateMatchScopeMismatch | RiddleProofSemanticCertificateClaimMismatch | RiddleProofSemanticCertificateAssuranceMismatch;
|
|
277
|
-
type RiddleProofSemanticCertificateMatchResult = {
|
|
278
|
-
ok: true;
|
|
279
|
-
certificate: RiddleProofSemanticCertificate;
|
|
280
|
-
} | {
|
|
281
|
-
ok: false;
|
|
282
|
-
error: RiddleProofSemanticCertificateMatchError;
|
|
283
|
-
};
|
|
284
|
-
interface MatchRiddleProofSemanticCertificateClosureInput {
|
|
285
|
-
closure: unknown;
|
|
286
|
-
expected_root_certificate_id: string;
|
|
287
|
-
expected_scope: RiddleProofSemanticScope;
|
|
288
|
-
expected_claim: RiddleProofSemanticClaimExpectation;
|
|
289
|
-
expected_assurance: RiddleProofSemanticAssurance;
|
|
290
|
-
}
|
|
291
|
-
type RiddleProofSemanticCertificateClosureMatchError = RiddleProofSemanticCertificateClosureValidationError | RiddleProofSemanticCertificateMatchError;
|
|
292
|
-
type RiddleProofSemanticCertificateClosureMatchResult = {
|
|
293
|
-
ok: true;
|
|
294
|
-
closure: RiddleProofSemanticCertificateClosure;
|
|
295
|
-
root_certificate: RiddleProofSemanticCertificate;
|
|
296
|
-
} | {
|
|
297
|
-
ok: false;
|
|
298
|
-
error: RiddleProofSemanticCertificateClosureMatchError;
|
|
299
|
-
};
|
|
300
|
-
declare function riddleProofSemanticScopesEqual(left: RiddleProofSemanticScope, right: RiddleProofSemanticScope): boolean;
|
|
301
|
-
declare function createRiddleProofSemanticCertificate<Observation>(input: CreateRiddleProofSemanticCertificateInput<Observation>): RiddleProofSemanticCertificationResult;
|
|
302
|
-
declare function parseRiddleProofSemanticCertificate(value: unknown): RiddleProofSemanticCertificate;
|
|
303
|
-
declare function matchRiddleProofSemanticCertificate(input: MatchRiddleProofSemanticCertificateInput): RiddleProofSemanticCertificateMatchResult;
|
|
304
|
-
declare function composeRiddleProofSemanticCertificates(input: ComposeRiddleProofSemanticCertificatesInput): RiddleProofSemanticCompositionResult;
|
|
305
|
-
declare function validateRiddleProofSemanticCertificateClosure(value: unknown): RiddleProofSemanticCertificateClosureValidationResult;
|
|
306
|
-
declare function createRiddleProofSemanticAtomicCertificateClosure(input: CreateRiddleProofSemanticAtomicCertificateClosureInput): RiddleProofSemanticCertificateClosureValidationResult;
|
|
307
|
-
declare function composeRiddleProofSemanticCertificateClosures(input: ComposeRiddleProofSemanticCertificateClosuresInput): RiddleProofSemanticCertificateClosureCompositionResult;
|
|
308
|
-
declare function matchRiddleProofSemanticCertificateClosure(input: MatchRiddleProofSemanticCertificateClosureInput): RiddleProofSemanticCertificateClosureMatchResult;
|
|
309
|
-
|
|
310
|
-
export { type ComposeRiddleProofSemanticCertificateClosuresInput, type ComposeRiddleProofSemanticCertificatesInput, type CreateRiddleProofSemanticAtomicCertificateClosureInput, type CreateRiddleProofSemanticCertificateInput, type MatchRiddleProofSemanticCertificateClosureInput, type MatchRiddleProofSemanticCertificateInput, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION, type RiddleProofSemanticAssurance, type RiddleProofSemanticCertificate, type RiddleProofSemanticCertificateAssuranceMismatch, type RiddleProofSemanticCertificateClaimMismatch, type RiddleProofSemanticCertificateClosure, type RiddleProofSemanticCertificateClosureCertificateInvalid, type RiddleProofSemanticCertificateClosureCompositionError, type RiddleProofSemanticCertificateClosureCompositionResult, type RiddleProofSemanticCertificateClosureConstructionFailed, type RiddleProofSemanticCertificateClosureCycle, type RiddleProofSemanticCertificateClosureDanglingPremise, type RiddleProofSemanticCertificateClosureDuplicateId, type RiddleProofSemanticCertificateClosureIdCollision, type RiddleProofSemanticCertificateClosureInputInvalid, type RiddleProofSemanticCertificateClosureInvalid, type RiddleProofSemanticCertificateClosureMatchError, type RiddleProofSemanticCertificateClosureMatchResult, type RiddleProofSemanticCertificateClosurePremiseMismatch, type RiddleProofSemanticCertificateClosureRootMissing, type RiddleProofSemanticCertificateClosureUnreachable, type RiddleProofSemanticCertificateClosureValidationError, type RiddleProofSemanticCertificateClosureValidationResult, type RiddleProofSemanticCertificateIdMismatch, type RiddleProofSemanticCertificateInvalid, type RiddleProofSemanticCertificateMatchError, type RiddleProofSemanticCertificateMatchResult, type RiddleProofSemanticCertificateMatchScopeMismatch, type RiddleProofSemanticCertificationResult, type RiddleProofSemanticClaim, type RiddleProofSemanticClaimExpectation, type RiddleProofSemanticClaimRef, type RiddleProofSemanticCompositionDerivation, type RiddleProofSemanticCompositionError, type RiddleProofSemanticCompositionResult, type RiddleProofSemanticContract, type RiddleProofSemanticContractDerivation, type RiddleProofSemanticContractError, type RiddleProofSemanticContractRef, type RiddleProofSemanticContractRejected, type RiddleProofSemanticDerivation, type RiddleProofSemanticEvidenceBundle, type RiddleProofSemanticEvidenceRef, type RiddleProofSemanticPremise, type RiddleProofSemanticPremiseCountMismatch, type RiddleProofSemanticPremiseMismatch, type RiddleProofSemanticPremiseSnapshotField, type RiddleProofSemanticRule, type RiddleProofSemanticRuntimeContract, type RiddleProofSemanticScope, type RiddleProofSemanticScopeField, type RiddleProofSemanticScopeMismatch, composeRiddleProofSemanticCertificateClosures, composeRiddleProofSemanticCertificates, createRiddleProofSemanticAtomicCertificateClosure, createRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificateClosure, parseRiddleProofSemanticCertificate, riddleProofSemanticScopesEqual, validateRiddleProofSemanticCertificateClosure };
|
|
1
|
+
export * from '@riddledc/riddle-proof-core/semantic-certificate';
|
|
2
|
+
export { RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_VERSION, RIDDLE_PROOF_SEMANTIC_CERTIFICATE_VERSION, composeRiddleProofSemanticCertificateClosures, composeRiddleProofSemanticCertificates, createRiddleProofSemanticAtomicCertificateClosure, createRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificate, matchRiddleProofSemanticCertificateClosure, parseRiddleProofSemanticCertificate, riddleProofSemanticScopesEqual, validateRiddleProofSemanticCertificateClosure } from '@riddledc/riddle-proof-core/semantic-certificate';
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
parseRiddleProofSemanticCertificate,
|
|
12
12
|
riddleProofSemanticScopesEqual,
|
|
13
13
|
validateRiddleProofSemanticCertificateClosure
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NWLKJ2WI.js";
|
|
15
15
|
import "./chunk-MLKGABMK.js";
|
|
16
16
|
export {
|
|
17
17
|
RIDDLE_PROOF_SEMANTIC_CERTIFICATE_CLOSURE_MAX_CERTIFICATES,
|