@peac/kernel 0.12.0 → 0.12.2
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/dist/carrier.d.ts +9 -9
- package/dist/constants.cjs +10 -1
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.ts +34 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.mjs +10 -2
- package/dist/constants.mjs.map +1 -1
- package/dist/error-categories.generated.d.ts +1 -1
- package/dist/errors.cjs +40 -0
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.generated.d.ts +5 -1
- package/dist/errors.generated.d.ts.map +1 -1
- package/dist/errors.mjs +40 -0
- package/dist/errors.mjs.map +1 -1
- package/dist/index.cjs +353 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +345 -26
- package/dist/index.mjs.map +1 -1
- package/dist/registries.cjs +303 -24
- package/dist/registries.cjs.map +1 -1
- package/dist/registries.d.ts +9 -49
- package/dist/registries.d.ts.map +1 -1
- package/dist/registries.generated.cjs +418 -0
- package/dist/registries.generated.cjs.map +1 -0
- package/dist/registries.generated.d.ts +78 -0
- package/dist/registries.generated.d.ts.map +1 -0
- package/dist/registries.generated.mjs +400 -0
- package/dist/registries.generated.mjs.map +1 -0
- package/dist/registries.mjs +296 -25
- package/dist/registries.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/wire-02-types.d.ts +6 -6
- package/dist/wire-02-types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/registries.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// src/registries.ts
|
|
1
|
+
// src/registries.generated.ts
|
|
2
2
|
var PAYMENT_RAILS = [
|
|
3
3
|
{
|
|
4
|
-
id: "
|
|
5
|
-
category: "
|
|
6
|
-
description: "
|
|
7
|
-
reference:
|
|
4
|
+
id: "card-network",
|
|
5
|
+
category: "card",
|
|
6
|
+
description: "Generic card network authorizations/clearing",
|
|
7
|
+
reference: null,
|
|
8
8
|
status: "informational"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
@@ -15,10 +15,17 @@ var PAYMENT_RAILS = [
|
|
|
15
15
|
status: "informational"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
id: "
|
|
19
|
-
category: "
|
|
20
|
-
description: "
|
|
21
|
-
reference:
|
|
18
|
+
id: "razorpay",
|
|
19
|
+
category: "payment-gateway",
|
|
20
|
+
description: "Razorpay payment gateway (UPI, cards, netbanking, wallets)",
|
|
21
|
+
reference: "https://razorpay.com/docs/",
|
|
22
|
+
status: "informational"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "stripe",
|
|
26
|
+
category: "payment-gateway",
|
|
27
|
+
description: "Stripe payment processing",
|
|
28
|
+
reference: "https://stripe.com/docs",
|
|
22
29
|
status: "informational"
|
|
23
30
|
},
|
|
24
31
|
{
|
|
@@ -27,13 +34,20 @@ var PAYMENT_RAILS = [
|
|
|
27
34
|
description: "Unified Payments Interface",
|
|
28
35
|
reference: "https://www.npci.org.in/",
|
|
29
36
|
status: "informational"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: "x402",
|
|
40
|
+
category: "agentic-payment",
|
|
41
|
+
description: "HTTP 402-based paid call receipts",
|
|
42
|
+
reference: "https://www.x402.org/",
|
|
43
|
+
status: "informational"
|
|
30
44
|
}
|
|
31
45
|
];
|
|
32
46
|
var CONTROL_ENGINES = [
|
|
33
47
|
{
|
|
34
|
-
id: "
|
|
35
|
-
category: "
|
|
36
|
-
description: "Generic
|
|
48
|
+
id: "mandate-service",
|
|
49
|
+
category: "mandate",
|
|
50
|
+
description: "Generic enterprise mandate/approval chain evaluator",
|
|
37
51
|
reference: null,
|
|
38
52
|
status: "informational"
|
|
39
53
|
},
|
|
@@ -45,11 +59,25 @@ var CONTROL_ENGINES = [
|
|
|
45
59
|
status: "informational"
|
|
46
60
|
},
|
|
47
61
|
{
|
|
48
|
-
id: "
|
|
49
|
-
category: "
|
|
50
|
-
description: "
|
|
62
|
+
id: "rsl",
|
|
63
|
+
category: "access-policy",
|
|
64
|
+
description: "Robots Specification Layer usage token evaluation",
|
|
65
|
+
reference: null,
|
|
66
|
+
status: "informational"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "spend-control-service",
|
|
70
|
+
category: "limits",
|
|
71
|
+
description: "Generic spend control decisions (per-tx, daily, monthly limits)",
|
|
51
72
|
reference: null,
|
|
52
73
|
status: "informational"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: "tap",
|
|
77
|
+
category: "agent-verification",
|
|
78
|
+
description: "Trusted Agent Protocol control decisions (HTTP signature verification)",
|
|
79
|
+
reference: "https://developer.visa.com/",
|
|
80
|
+
status: "informational"
|
|
53
81
|
}
|
|
54
82
|
];
|
|
55
83
|
var TRANSPORT_METHODS = [
|
|
@@ -77,10 +105,10 @@ var TRANSPORT_METHODS = [
|
|
|
77
105
|
];
|
|
78
106
|
var AGENT_PROTOCOLS = [
|
|
79
107
|
{
|
|
80
|
-
id: "
|
|
81
|
-
category: "
|
|
82
|
-
description: "
|
|
83
|
-
reference: "https://
|
|
108
|
+
id: "a2a",
|
|
109
|
+
category: "agent-protocol",
|
|
110
|
+
description: "Agent-to-Agent Protocol (A2A, Linux Foundation)",
|
|
111
|
+
reference: "https://a2a-protocol.org/",
|
|
84
112
|
status: "informational"
|
|
85
113
|
},
|
|
86
114
|
{
|
|
@@ -97,33 +125,276 @@ var AGENT_PROTOCOLS = [
|
|
|
97
125
|
reference: null,
|
|
98
126
|
status: "informational"
|
|
99
127
|
},
|
|
128
|
+
{
|
|
129
|
+
id: "mcp",
|
|
130
|
+
category: "tool-protocol",
|
|
131
|
+
description: "Model Context Protocol (MCP)",
|
|
132
|
+
reference: "https://modelcontextprotocol.io/",
|
|
133
|
+
status: "informational"
|
|
134
|
+
},
|
|
100
135
|
{
|
|
101
136
|
id: "tap",
|
|
102
137
|
category: "card-protocol",
|
|
103
138
|
description: "Trusted Agent Protocol (Visa TAP)",
|
|
104
139
|
reference: "https://developer.visa.com/",
|
|
105
140
|
status: "informational"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: "ucp",
|
|
144
|
+
category: "commerce-protocol",
|
|
145
|
+
description: "Universal Commerce Protocol (UCP)",
|
|
146
|
+
reference: null,
|
|
147
|
+
status: "informational"
|
|
148
|
+
}
|
|
149
|
+
];
|
|
150
|
+
var PROOF_TYPES = [
|
|
151
|
+
{
|
|
152
|
+
id: "custom",
|
|
153
|
+
category: "vendor-defined",
|
|
154
|
+
description: "Vendor-defined proof type; registered per-issuer in extension metadata",
|
|
155
|
+
reference: null,
|
|
156
|
+
status: "informational"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: "did",
|
|
160
|
+
category: "decentralized-identity",
|
|
161
|
+
description: "W3C Decentralized Identifier (DID) resolution and verification",
|
|
162
|
+
reference: "https://www.w3.org/TR/did-core/",
|
|
163
|
+
status: "informational"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
id: "eat-background-check",
|
|
167
|
+
category: "rats",
|
|
168
|
+
description: "Verifier fetches attestation result from registry in RATS Background-Check model (RFC 9711)",
|
|
169
|
+
reference: "https://www.rfc-editor.org/rfc/rfc9711",
|
|
170
|
+
status: "informational"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
id: "eat-passport",
|
|
174
|
+
category: "rats",
|
|
175
|
+
description: "Agent carries Entity Attestation Token in RATS Passport model (RFC 9711)",
|
|
176
|
+
reference: "https://www.rfc-editor.org/rfc/rfc9711",
|
|
177
|
+
status: "informational"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
id: "ed25519-cert-chain",
|
|
181
|
+
category: "attestation-chain",
|
|
182
|
+
description: "Ed25519 issuer-to-holder attestation chain (RFC 8032)",
|
|
183
|
+
reference: "https://www.rfc-editor.org/rfc/rfc8032",
|
|
184
|
+
status: "informational"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
id: "sigstore-oidc",
|
|
188
|
+
category: "keyless-signing",
|
|
189
|
+
description: "OIDC-bound keyless signing via Sigstore (Fulcio + Rekor transparency log)",
|
|
190
|
+
reference: "https://docs.sigstore.dev/",
|
|
191
|
+
status: "informational"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: "spiffe",
|
|
195
|
+
category: "workload-identity",
|
|
196
|
+
description: "CNCF SPIFFE workload identity (spiffe:// URI scheme)",
|
|
197
|
+
reference: "https://spiffe.io/docs/latest/spiffe-about/overview/",
|
|
198
|
+
status: "informational"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: "x509-pki",
|
|
202
|
+
category: "pki",
|
|
203
|
+
description: "Traditional X.509 PKI certificate chain verification (RFC 5280)",
|
|
204
|
+
reference: "https://www.rfc-editor.org/rfc/rfc5280",
|
|
205
|
+
status: "informational"
|
|
206
|
+
}
|
|
207
|
+
];
|
|
208
|
+
var RECEIPT_TYPES = [
|
|
209
|
+
{
|
|
210
|
+
id: "org.peacprotocol/access-decision",
|
|
211
|
+
pillar: "access",
|
|
212
|
+
description: "Access control decision evidence (allow, deny, review)",
|
|
213
|
+
extension_group: "org.peacprotocol/access",
|
|
214
|
+
status: "informational"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
id: "org.peacprotocol/attribution-event",
|
|
218
|
+
pillar: "attribution",
|
|
219
|
+
description: "Content or action attribution evidence",
|
|
220
|
+
extension_group: "org.peacprotocol/attribution",
|
|
221
|
+
status: "informational"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
id: "org.peacprotocol/compliance-check",
|
|
225
|
+
pillar: "compliance",
|
|
226
|
+
description: "Regulatory compliance check evidence",
|
|
227
|
+
extension_group: "org.peacprotocol/compliance",
|
|
228
|
+
status: "informational"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
id: "org.peacprotocol/consent-record",
|
|
232
|
+
pillar: "consent",
|
|
233
|
+
description: "Consent collection or withdrawal evidence",
|
|
234
|
+
extension_group: "org.peacprotocol/consent",
|
|
235
|
+
status: "informational"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: "org.peacprotocol/identity-attestation",
|
|
239
|
+
pillar: "identity",
|
|
240
|
+
description: "Identity verification or attestation evidence",
|
|
241
|
+
extension_group: "org.peacprotocol/identity",
|
|
242
|
+
status: "informational"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
id: "org.peacprotocol/payment",
|
|
246
|
+
pillar: "commerce",
|
|
247
|
+
description: "Commerce transaction evidence (payment, authorization, settlement)",
|
|
248
|
+
extension_group: "org.peacprotocol/commerce",
|
|
249
|
+
status: "informational"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
id: "org.peacprotocol/privacy-signal",
|
|
253
|
+
pillar: "privacy",
|
|
254
|
+
description: "Privacy signal observation or enforcement evidence",
|
|
255
|
+
extension_group: "org.peacprotocol/privacy",
|
|
256
|
+
status: "informational"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
id: "org.peacprotocol/provenance-record",
|
|
260
|
+
pillar: "provenance",
|
|
261
|
+
description: "Data or content provenance tracking evidence",
|
|
262
|
+
extension_group: "org.peacprotocol/provenance",
|
|
263
|
+
status: "informational"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
id: "org.peacprotocol/purpose-declaration",
|
|
267
|
+
pillar: "purpose",
|
|
268
|
+
description: "Purpose declaration or limitation evidence",
|
|
269
|
+
extension_group: "org.peacprotocol/purpose",
|
|
270
|
+
status: "informational"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
id: "org.peacprotocol/safety-review",
|
|
274
|
+
pillar: "safety",
|
|
275
|
+
description: "Content or agent safety review evidence",
|
|
276
|
+
extension_group: "org.peacprotocol/safety",
|
|
277
|
+
status: "informational"
|
|
106
278
|
}
|
|
107
279
|
];
|
|
280
|
+
var EXTENSION_GROUPS = [
|
|
281
|
+
{
|
|
282
|
+
id: "org.peacprotocol/access",
|
|
283
|
+
description: "Access extension: resource, action, decision (allow/deny/review)",
|
|
284
|
+
status: "informational"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
id: "org.peacprotocol/attribution",
|
|
288
|
+
description: "Attribution extension: creator_ref, license_spdx, obligation_type, attribution_text, content_signal_source, content_digest",
|
|
289
|
+
status: "informational"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
id: "org.peacprotocol/challenge",
|
|
293
|
+
description: "Challenge extension: challenge_type, problem (RFC 9457), requirements",
|
|
294
|
+
status: "informational"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
id: "org.peacprotocol/commerce",
|
|
298
|
+
description: "Commerce extension: payment_rail, amount_minor, currency, reference, asset, env",
|
|
299
|
+
status: "informational"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
id: "org.peacprotocol/compliance",
|
|
303
|
+
description: "Compliance extension: framework, compliance_status, audit_ref, auditor, audit_date, scope, validity_period, evidence_ref",
|
|
304
|
+
status: "informational"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
id: "org.peacprotocol/consent",
|
|
308
|
+
description: "Consent extension: consent_basis, consent_status, data_categories, retention_period, consent_method, withdrawal_uri, scope, jurisdiction",
|
|
309
|
+
status: "informational"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
id: "org.peacprotocol/correlation",
|
|
313
|
+
description: "Correlation extension: trace_id, span_id, workflow_id, parent_jti, depends_on",
|
|
314
|
+
status: "informational"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
id: "org.peacprotocol/identity",
|
|
318
|
+
description: "Identity extension: proof_ref",
|
|
319
|
+
status: "informational"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
id: "org.peacprotocol/privacy",
|
|
323
|
+
description: "Privacy extension: data_classification, processing_basis, retention_period, retention_mode, recipient_scope, anonymization_method, data_subject_category, transfer_mechanism",
|
|
324
|
+
status: "informational"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
id: "org.peacprotocol/provenance",
|
|
328
|
+
description: "Provenance extension: source_type, source_ref, source_uri, build_provenance_uri, verification_method, custody_chain, slsa",
|
|
329
|
+
status: "informational"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
id: "org.peacprotocol/purpose",
|
|
333
|
+
description: "Purpose extension: external_purposes, purpose_basis, purpose_limitation, data_minimization, compatible_purposes, peac_purpose_mapping",
|
|
334
|
+
status: "informational"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
id: "org.peacprotocol/safety",
|
|
338
|
+
description: "Safety extension: review_status, risk_level, assessment_method, safety_measures, incident_ref, model_ref, category",
|
|
339
|
+
status: "informational"
|
|
340
|
+
}
|
|
341
|
+
];
|
|
342
|
+
var TYPE_TO_EXTENSION_MAP = /* @__PURE__ */ new Map([
|
|
343
|
+
["org.peacprotocol/access-decision", "org.peacprotocol/access"],
|
|
344
|
+
["org.peacprotocol/attribution-event", "org.peacprotocol/attribution"],
|
|
345
|
+
["org.peacprotocol/compliance-check", "org.peacprotocol/compliance"],
|
|
346
|
+
["org.peacprotocol/consent-record", "org.peacprotocol/consent"],
|
|
347
|
+
["org.peacprotocol/identity-attestation", "org.peacprotocol/identity"],
|
|
348
|
+
["org.peacprotocol/payment", "org.peacprotocol/commerce"],
|
|
349
|
+
["org.peacprotocol/privacy-signal", "org.peacprotocol/privacy"],
|
|
350
|
+
["org.peacprotocol/provenance-record", "org.peacprotocol/provenance"],
|
|
351
|
+
["org.peacprotocol/purpose-declaration", "org.peacprotocol/purpose"],
|
|
352
|
+
["org.peacprotocol/safety-review", "org.peacprotocol/safety"]
|
|
353
|
+
]);
|
|
354
|
+
var PILLAR_VALUES = [
|
|
355
|
+
"access",
|
|
356
|
+
"attribution",
|
|
357
|
+
"commerce",
|
|
358
|
+
"compliance",
|
|
359
|
+
"consent",
|
|
360
|
+
"identity",
|
|
361
|
+
"privacy",
|
|
362
|
+
"provenance",
|
|
363
|
+
"purpose",
|
|
364
|
+
"safety"
|
|
365
|
+
];
|
|
108
366
|
var REGISTRIES = {
|
|
109
367
|
payment_rails: PAYMENT_RAILS,
|
|
110
368
|
control_engines: CONTROL_ENGINES,
|
|
111
369
|
transport_methods: TRANSPORT_METHODS,
|
|
112
|
-
agent_protocols: AGENT_PROTOCOLS
|
|
370
|
+
agent_protocols: AGENT_PROTOCOLS,
|
|
371
|
+
proof_types: PROOF_TYPES,
|
|
372
|
+
receipt_types: RECEIPT_TYPES,
|
|
373
|
+
extension_groups: EXTENSION_GROUPS,
|
|
374
|
+
pillar_values: PILLAR_VALUES
|
|
113
375
|
};
|
|
114
376
|
function findPaymentRail(id) {
|
|
115
|
-
return PAYMENT_RAILS.find((
|
|
377
|
+
return PAYMENT_RAILS.find((entry) => entry.id === id);
|
|
116
378
|
}
|
|
117
379
|
function findControlEngine(id) {
|
|
118
|
-
return CONTROL_ENGINES.find((
|
|
380
|
+
return CONTROL_ENGINES.find((entry) => entry.id === id);
|
|
119
381
|
}
|
|
120
382
|
function findTransportMethod(id) {
|
|
121
|
-
return TRANSPORT_METHODS.find((
|
|
383
|
+
return TRANSPORT_METHODS.find((entry) => entry.id === id);
|
|
122
384
|
}
|
|
123
385
|
function findAgentProtocol(id) {
|
|
124
|
-
return AGENT_PROTOCOLS.find((
|
|
386
|
+
return AGENT_PROTOCOLS.find((entry) => entry.id === id);
|
|
387
|
+
}
|
|
388
|
+
function findProofType(id) {
|
|
389
|
+
return PROOF_TYPES.find((entry) => entry.id === id);
|
|
390
|
+
}
|
|
391
|
+
function findReceiptType(id) {
|
|
392
|
+
return RECEIPT_TYPES.find((entry) => entry.id === id);
|
|
393
|
+
}
|
|
394
|
+
function findExtensionGroup(id) {
|
|
395
|
+
return EXTENSION_GROUPS.find((entry) => entry.id === id);
|
|
125
396
|
}
|
|
126
397
|
|
|
127
|
-
export { AGENT_PROTOCOLS, CONTROL_ENGINES, PAYMENT_RAILS, REGISTRIES, TRANSPORT_METHODS, findAgentProtocol, findControlEngine, findPaymentRail, findTransportMethod };
|
|
398
|
+
export { AGENT_PROTOCOLS, CONTROL_ENGINES, EXTENSION_GROUPS, PAYMENT_RAILS, PILLAR_VALUES, PROOF_TYPES, RECEIPT_TYPES, REGISTRIES, TRANSPORT_METHODS, TYPE_TO_EXTENSION_MAP, findAgentProtocol, findControlEngine, findExtensionGroup, findPaymentRail, findProofType, findReceiptType, findTransportMethod };
|
|
128
399
|
//# sourceMappingURL=registries.mjs.map
|
|
129
400
|
//# sourceMappingURL=registries.mjs.map
|
package/dist/registries.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/registries.ts"],"names":[],"mappings":";AAmBO,IAAM,aAAA,GAA6C;AAAA,EACxD;AAAA,IACE,EAAA,EAAI,MAAA;AAAA,IACJ,QAAA,EAAU,iBAAA;AAAA,IACV,WAAA,EAAa,mCAAA;AAAA,IACb,SAAA,EAAW,uBAAA;AAAA,IACX,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,EAAA,EAAI,MAAA;AAAA,IACJ,QAAA,EAAU,iBAAA;AAAA,IACV,WAAA,EAAa,0CAAA;AAAA,IACb,SAAA,EAAW,+DAAA;AAAA,IACX,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,EAAA,EAAI,cAAA;AAAA,IACJ,QAAA,EAAU,MAAA;AAAA,IACV,WAAA,EAAa,8CAAA;AAAA,IACb,SAAA,EAAW,IAAA;AAAA,IACX,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,EAAA,EAAI,KAAA;AAAA,IACJ,QAAA,EAAU,oBAAA;AAAA,IACV,WAAA,EAAa,4BAAA;AAAA,IACb,SAAA,EAAW,0BAAA;AAAA,IACX,MAAA,EAAQ;AAAA;AAEZ;AAMO,I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E: This file is manually synced for v0.9.15.\n * From v0.9.16+, this will be auto-generated via codegen.\n */\n\nimport type {\n PaymentRailEntry,\n ControlEngineEntry,\n TransportMethodEntry,\n AgentProtocolEntry,\n} from './types.js';\n\n/**\n * Payment Rails Registry\n * Settlement layer identifiers\n */\nexport const PAYMENT_RAILS: readonly PaymentRailEntry[] = [\n {\n id: 'x402',\n category: 'agentic-payment',\n description: 'HTTP 402-based paid call receipts',\n reference: 'https://www.x402.org/',\n status: 'informational',\n },\n {\n id: 'l402',\n category: 'agentic-payment',\n description: 'Lightning HTTP 402 Protocol (LSAT-based)',\n reference: 'https://docs.lightning.engineering/the-lightning-network/l402',\n status: 'informational',\n },\n {\n id: 'card-network',\n category: 'card',\n description: 'Generic card network authorizations/clearing',\n reference: null,\n status: 'informational',\n },\n {\n id: 'upi',\n category: 'account-to-account',\n description: 'Unified Payments Interface',\n reference: 'https://www.npci.org.in/',\n status: 'informational',\n },\n] as const;\n\n/**\n * Control Engines Registry\n * Governance and authorization engine identifiers\n */\nexport const CONTROL_ENGINES: readonly ControlEngineEntry[] = [\n {\n id: 'spend-control-service',\n category: 'limits',\n description: 'Generic spend control decisions (per-tx, daily, monthly limits)',\n reference: null,\n status: 'informational',\n },\n {\n id: 'risk-engine',\n category: 'fraud',\n description: 'Generic risk/fraud scoring engine',\n reference: null,\n status: 'informational',\n },\n {\n id: 'mandate-service',\n category: 'mandate',\n description: 'Generic enterprise mandate/approval chain evaluator',\n reference: null,\n status: 'informational',\n },\n] as const;\n\n/**\n * Transport Methods Registry\n * Transport-layer binding identifiers\n */\nexport const TRANSPORT_METHODS: readonly TransportMethodEntry[] = [\n {\n id: 'dpop',\n category: 'proof-of-possession',\n description: 'Demonstrating Proof-of-Possession at the Application Layer',\n reference: 'https://www.rfc-editor.org/rfc/rfc9449',\n status: 'informational',\n },\n {\n id: 'http-signature',\n category: 'message-signature',\n description: 'HTTP Message Signatures',\n reference: 'https://www.rfc-editor.org/rfc/rfc9421',\n status: 'informational',\n },\n {\n id: 'none',\n category: 'none',\n description: 'No transport binding',\n reference: null,\n status: 'informational',\n },\n] as const;\n\n/**\n * Agent Protocols Registry\n * Agentic protocol integration identifiers\n */\nexport const AGENT_PROTOCOLS: readonly AgentProtocolEntry[] = [\n {\n id: 'mcp',\n category: 'tool-protocol',\n description: 'Model Context Protocol (MCP)',\n reference: 'https://modelcontextprotocol.io/',\n status: 'informational',\n },\n {\n id: 'acp',\n category: 'commerce-protocol',\n description: 'Agentic Commerce Protocol',\n reference: null,\n status: 'informational',\n },\n {\n id: 'ap2',\n category: 'agent-protocol',\n description: 'Google Agent Protocol v2',\n reference: null,\n status: 'informational',\n },\n {\n id: 'tap',\n category: 'card-protocol',\n description: 'Trusted Agent Protocol (Visa TAP)',\n reference: 'https://developer.visa.com/',\n status: 'informational',\n },\n] as const;\n\n/**\n * All registries export\n */\nexport const REGISTRIES = {\n payment_rails: PAYMENT_RAILS,\n control_engines: CONTROL_ENGINES,\n transport_methods: TRANSPORT_METHODS,\n agent_protocols: AGENT_PROTOCOLS,\n} as const;\n\n/**\n * Find payment rail by ID\n */\nexport function findPaymentRail(id: string): PaymentRailEntry | undefined {\n return PAYMENT_RAILS.find((rail) => rail.id === id);\n}\n\n/**\n * Find control engine by ID\n */\nexport function findControlEngine(id: string): ControlEngineEntry | undefined {\n return CONTROL_ENGINES.find((engine) => engine.id === id);\n}\n\n/**\n * Find transport method by ID\n */\nexport function findTransportMethod(id: string): TransportMethodEntry | undefined {\n return TRANSPORT_METHODS.find((method) => method.id === id);\n}\n\n/**\n * Find agent protocol by ID\n */\nexport function findAgentProtocol(id: string): AgentProtocolEntry | undefined {\n return AGENT_PROTOCOLS.find((protocol) => protocol.id === id);\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/registries.generated.ts"],"names":[],"mappings":";AAyCO,IAAM,aAAA,GAA6C;AAAA,EACxD;AAAA,IACE,EAAA,EAAI,cAAA;AAAA,IACJ,QAAA,EAAU,MAAA;AAAA,IACV,WAAA,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GO,SAAS,gBAAgB,EAAA,EAA0C;AACxE,EAAA,OAAO,cAAc,IAAA,CAAK,CAAC,KAAA,KAAU,KAAA,CAAM,OAAO,EAAE,CAAA;AACtD;AAGO,SAAS,kBAAkB,EAAA,EAA4C;AAC5E,EAAA,OAAO,gBAAgB,IAAA,CAAK,CAAC,KAAA,KAAU,KAAA,CAAM,OAAO,EAAE,CAAA;AACxD;AAGO,SAAS,oBAAoB,EAAA,EAA8C;AAChF,EAAA,OAAO,kBAAkB,IAAA,CAAK,CAAC,KAAA,KAAU,KAAA,CAAM,OAAO,EAAE,CAAA;AAC1D;AAGO,SAAS,kBAAkB,EAAA,EAA4C;AAC5E,EAAA,OAAO,gBAAgB,IAAA,CAAK,CAAC,KAAA,KAAU,KAAA,CAAM,OAAO,EAAE,CAAA;AACxD;AAGO,SAAS,cAAc,EAAA,EAAwC;AACpE,EAAA,OAAO,YAAY,IAAA,CAAK,CAAC,KAAA,KAAU,KAAA,CAAM,OAAO,EAAE,CAAA;AACpD;AAGO,SAAS,gBAAgB,EAAA,EAA0C;AACxE,EAAA,OAAO,cAAc,IAAA,CAAK,CAAC,KAAA,KAAU,KAAA,CAAM,OAAO,EAAE,CAAA;AACtD;AAGO,SAAS,mBAAmB,EAAA,EAA6C;AAC9E,EAAA,OAAO,iBAAiB,IAAA,CAAK,CAAC,KAAA,KAAU,KAAA,CAAM,OAAO,EAAE,CAAA;AACzD","file":"registries.mjs","sourcesContent":["/**\n * PEAC Protocol Registries\n *\n * AUTO-GENERATED from specs/kernel/registries.json\n * DO NOT EDIT MANUALLY - run: npx tsx scripts/codegen-registries.ts\n * Spec version: 0.5.0\n */\n\nimport type {\n PaymentRailEntry,\n ControlEngineEntry,\n TransportMethodEntry,\n AgentProtocolEntry,\n} from './types.js';\n\n/** Proof type registry entry */\nexport interface ProofTypeEntry {\n id: string;\n category: string;\n description: string;\n reference: string | null;\n status: string;\n}\n\n/** Receipt type registry entry (Wire 0.2) */\nexport interface ReceiptTypeEntry {\n id: string;\n pillar: string;\n description: string;\n extension_group: string | null;\n status: string;\n}\n\n/** Extension group registry entry (Wire 0.2) */\nexport interface ExtensionGroupEntry {\n id: string;\n description: string;\n status: string;\n}\n\n/** payment rails registry */\nexport const PAYMENT_RAILS: readonly PaymentRailEntry[] = [\n {\n id: 'card-network',\n category: 'card',\n description: 'Generic card network authorizations/clearing',\n reference: null,\n status: 'informational',\n },\n {\n id: 'l402',\n category: 'agentic-payment',\n description: 'Lightning HTTP 402 Protocol (LSAT-based)',\n reference: 'https://docs.lightning.engineering/the-lightning-network/l402',\n status: 'informational',\n },\n {\n id: 'razorpay',\n category: 'payment-gateway',\n description: 'Razorpay payment gateway (UPI, cards, netbanking, wallets)',\n reference: 'https://razorpay.com/docs/',\n status: 'informational',\n },\n {\n id: 'stripe',\n category: 'payment-gateway',\n description: 'Stripe payment processing',\n reference: 'https://stripe.com/docs',\n status: 'informational',\n },\n {\n id: 'upi',\n category: 'account-to-account',\n description: 'Unified Payments Interface',\n reference: 'https://www.npci.org.in/',\n status: 'informational',\n },\n {\n id: 'x402',\n category: 'agentic-payment',\n description: 'HTTP 402-based paid call receipts',\n reference: 'https://www.x402.org/',\n status: 'informational',\n },\n];\n\n/** control engines registry */\nexport const CONTROL_ENGINES: readonly ControlEngineEntry[] = [\n {\n id: 'mandate-service',\n category: 'mandate',\n description: 'Generic enterprise mandate/approval chain evaluator',\n reference: null,\n status: 'informational',\n },\n {\n id: 'risk-engine',\n category: 'fraud',\n description: 'Generic risk/fraud scoring engine',\n reference: null,\n status: 'informational',\n },\n {\n id: 'rsl',\n category: 'access-policy',\n description: 'Robots Specification Layer usage token evaluation',\n reference: null,\n status: 'informational',\n },\n {\n id: 'spend-control-service',\n category: 'limits',\n description: 'Generic spend control decisions (per-tx, daily, monthly limits)',\n reference: null,\n status: 'informational',\n },\n {\n id: 'tap',\n category: 'agent-verification',\n description: 'Trusted Agent Protocol control decisions (HTTP signature verification)',\n reference: 'https://developer.visa.com/',\n status: 'informational',\n },\n];\n\n/** transport methods registry */\nexport const TRANSPORT_METHODS: readonly TransportMethodEntry[] = [\n {\n id: 'dpop',\n category: 'proof-of-possession',\n description: 'Demonstrating Proof-of-Possession at the Application Layer',\n reference: 'https://www.rfc-editor.org/rfc/rfc9449',\n status: 'informational',\n },\n {\n id: 'http-signature',\n category: 'message-signature',\n description: 'HTTP Message Signatures',\n reference: 'https://www.rfc-editor.org/rfc/rfc9421',\n status: 'informational',\n },\n {\n id: 'none',\n category: 'none',\n description: 'No transport binding',\n reference: null,\n status: 'informational',\n },\n];\n\n/** agent protocols registry */\nexport const AGENT_PROTOCOLS: readonly AgentProtocolEntry[] = [\n {\n id: 'a2a',\n category: 'agent-protocol',\n description: 'Agent-to-Agent Protocol (A2A, Linux Foundation)',\n reference: 'https://a2a-protocol.org/',\n status: 'informational',\n },\n {\n id: 'acp',\n category: 'commerce-protocol',\n description: 'Agentic Commerce Protocol',\n reference: null,\n status: 'informational',\n },\n {\n id: 'ap2',\n category: 'agent-protocol',\n description: 'Google Agent Protocol v2',\n reference: null,\n status: 'informational',\n },\n {\n id: 'mcp',\n category: 'tool-protocol',\n description: 'Model Context Protocol (MCP)',\n reference: 'https://modelcontextprotocol.io/',\n status: 'informational',\n },\n {\n id: 'tap',\n category: 'card-protocol',\n description: 'Trusted Agent Protocol (Visa TAP)',\n reference: 'https://developer.visa.com/',\n status: 'informational',\n },\n {\n id: 'ucp',\n category: 'commerce-protocol',\n description: 'Universal Commerce Protocol (UCP)',\n reference: null,\n status: 'informational',\n },\n];\n\n/** proof types registry */\nexport const PROOF_TYPES: readonly ProofTypeEntry[] = [\n {\n id: 'custom',\n category: 'vendor-defined',\n description: 'Vendor-defined proof type; registered per-issuer in extension metadata',\n reference: null,\n status: 'informational',\n },\n {\n id: 'did',\n category: 'decentralized-identity',\n description: 'W3C Decentralized Identifier (DID) resolution and verification',\n reference: 'https://www.w3.org/TR/did-core/',\n status: 'informational',\n },\n {\n id: 'eat-background-check',\n category: 'rats',\n description:\n 'Verifier fetches attestation result from registry in RATS Background-Check model (RFC 9711)',\n reference: 'https://www.rfc-editor.org/rfc/rfc9711',\n status: 'informational',\n },\n {\n id: 'eat-passport',\n category: 'rats',\n description: 'Agent carries Entity Attestation Token in RATS Passport model (RFC 9711)',\n reference: 'https://www.rfc-editor.org/rfc/rfc9711',\n status: 'informational',\n },\n {\n id: 'ed25519-cert-chain',\n category: 'attestation-chain',\n description: 'Ed25519 issuer-to-holder attestation chain (RFC 8032)',\n reference: 'https://www.rfc-editor.org/rfc/rfc8032',\n status: 'informational',\n },\n {\n id: 'sigstore-oidc',\n category: 'keyless-signing',\n description: 'OIDC-bound keyless signing via Sigstore (Fulcio + Rekor transparency log)',\n reference: 'https://docs.sigstore.dev/',\n status: 'informational',\n },\n {\n id: 'spiffe',\n category: 'workload-identity',\n description: 'CNCF SPIFFE workload identity (spiffe:// URI scheme)',\n reference: 'https://spiffe.io/docs/latest/spiffe-about/overview/',\n status: 'informational',\n },\n {\n id: 'x509-pki',\n category: 'pki',\n description: 'Traditional X.509 PKI certificate chain verification (RFC 5280)',\n reference: 'https://www.rfc-editor.org/rfc/rfc5280',\n status: 'informational',\n },\n];\n\n/** Receipt type registry (Wire 0.2, 10 pillar-aligned types) */\nexport const RECEIPT_TYPES: readonly ReceiptTypeEntry[] = [\n {\n id: 'org.peacprotocol/access-decision',\n pillar: 'access',\n description: 'Access control decision evidence (allow, deny, review)',\n extension_group: 'org.peacprotocol/access',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/attribution-event',\n pillar: 'attribution',\n description: 'Content or action attribution evidence',\n extension_group: 'org.peacprotocol/attribution',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/compliance-check',\n pillar: 'compliance',\n description: 'Regulatory compliance check evidence',\n extension_group: 'org.peacprotocol/compliance',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/consent-record',\n pillar: 'consent',\n description: 'Consent collection or withdrawal evidence',\n extension_group: 'org.peacprotocol/consent',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/identity-attestation',\n pillar: 'identity',\n description: 'Identity verification or attestation evidence',\n extension_group: 'org.peacprotocol/identity',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/payment',\n pillar: 'commerce',\n description: 'Commerce transaction evidence (payment, authorization, settlement)',\n extension_group: 'org.peacprotocol/commerce',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/privacy-signal',\n pillar: 'privacy',\n description: 'Privacy signal observation or enforcement evidence',\n extension_group: 'org.peacprotocol/privacy',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/provenance-record',\n pillar: 'provenance',\n description: 'Data or content provenance tracking evidence',\n extension_group: 'org.peacprotocol/provenance',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/purpose-declaration',\n pillar: 'purpose',\n description: 'Purpose declaration or limitation evidence',\n extension_group: 'org.peacprotocol/purpose',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/safety-review',\n pillar: 'safety',\n description: 'Content or agent safety review evidence',\n extension_group: 'org.peacprotocol/safety',\n status: 'informational',\n },\n];\n\n/** Extension group registry (Wire 0.2) */\nexport const EXTENSION_GROUPS: readonly ExtensionGroupEntry[] = [\n {\n id: 'org.peacprotocol/access',\n description: 'Access extension: resource, action, decision (allow/deny/review)',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/attribution',\n description:\n 'Attribution extension: creator_ref, license_spdx, obligation_type, attribution_text, content_signal_source, content_digest',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/challenge',\n description: 'Challenge extension: challenge_type, problem (RFC 9457), requirements',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/commerce',\n description: 'Commerce extension: payment_rail, amount_minor, currency, reference, asset, env',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/compliance',\n description:\n 'Compliance extension: framework, compliance_status, audit_ref, auditor, audit_date, scope, validity_period, evidence_ref',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/consent',\n description:\n 'Consent extension: consent_basis, consent_status, data_categories, retention_period, consent_method, withdrawal_uri, scope, jurisdiction',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/correlation',\n description: 'Correlation extension: trace_id, span_id, workflow_id, parent_jti, depends_on',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/identity',\n description: 'Identity extension: proof_ref',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/privacy',\n description:\n 'Privacy extension: data_classification, processing_basis, retention_period, retention_mode, recipient_scope, anonymization_method, data_subject_category, transfer_mechanism',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/provenance',\n description:\n 'Provenance extension: source_type, source_ref, source_uri, build_provenance_uri, verification_method, custody_chain, slsa',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/purpose',\n description:\n 'Purpose extension: external_purposes, purpose_basis, purpose_limitation, data_minimization, compatible_purposes, peac_purpose_mapping',\n status: 'informational',\n },\n {\n id: 'org.peacprotocol/safety',\n description:\n 'Safety extension: review_status, risk_level, assessment_method, safety_measures, incident_ref, model_ref, category',\n status: 'informational',\n },\n];\n\n/**\n * Type-to-extension group mapping for first-party receipt types.\n * Used by @peac/protocol.verifyLocal() for type-to-extension enforcement.\n * Entries with extension_group === null are excluded (no enforcement yet).\n */\nexport const TYPE_TO_EXTENSION_MAP: ReadonlyMap<string, string> = new Map([\n ['org.peacprotocol/access-decision', 'org.peacprotocol/access'],\n ['org.peacprotocol/attribution-event', 'org.peacprotocol/attribution'],\n ['org.peacprotocol/compliance-check', 'org.peacprotocol/compliance'],\n ['org.peacprotocol/consent-record', 'org.peacprotocol/consent'],\n ['org.peacprotocol/identity-attestation', 'org.peacprotocol/identity'],\n ['org.peacprotocol/payment', 'org.peacprotocol/commerce'],\n ['org.peacprotocol/privacy-signal', 'org.peacprotocol/privacy'],\n ['org.peacprotocol/provenance-record', 'org.peacprotocol/provenance'],\n ['org.peacprotocol/purpose-declaration', 'org.peacprotocol/purpose'],\n ['org.peacprotocol/safety-review', 'org.peacprotocol/safety'],\n]);\n\n/** Closed pillar vocabulary (10 values, sorted alphabetically) */\nexport const PILLAR_VALUES = [\n 'access',\n 'attribution',\n 'commerce',\n 'compliance',\n 'consent',\n 'identity',\n 'privacy',\n 'provenance',\n 'purpose',\n 'safety',\n] as const;\n\n/** All registries export */\nexport const REGISTRIES = {\n payment_rails: PAYMENT_RAILS,\n control_engines: CONTROL_ENGINES,\n transport_methods: TRANSPORT_METHODS,\n agent_protocols: AGENT_PROTOCOLS,\n proof_types: PROOF_TYPES,\n receipt_types: RECEIPT_TYPES,\n extension_groups: EXTENSION_GROUPS,\n pillar_values: PILLAR_VALUES,\n} as const;\n\n/** Find paymentrail by ID */\nexport function findPaymentRail(id: string): PaymentRailEntry | undefined {\n return PAYMENT_RAILS.find((entry) => entry.id === id);\n}\n\n/** Find controlengine by ID */\nexport function findControlEngine(id: string): ControlEngineEntry | undefined {\n return CONTROL_ENGINES.find((entry) => entry.id === id);\n}\n\n/** Find transportmethod by ID */\nexport function findTransportMethod(id: string): TransportMethodEntry | undefined {\n return TRANSPORT_METHODS.find((entry) => entry.id === id);\n}\n\n/** Find agentprotocol by ID */\nexport function findAgentProtocol(id: string): AgentProtocolEntry | undefined {\n return AGENT_PROTOCOLS.find((entry) => entry.id === id);\n}\n\n/** Find prooftype by ID */\nexport function findProofType(id: string): ProofTypeEntry | undefined {\n return PROOF_TYPES.find((entry) => entry.id === id);\n}\n\n/** Find receipt type by ID */\nexport function findReceiptType(id: string): ReceiptTypeEntry | undefined {\n return RECEIPT_TYPES.find((entry) => entry.id === id);\n}\n\n/** Find extension group by ID */\nexport function findExtensionGroup(id: string): ExtensionGroupEntry | undefined {\n return EXTENSION_GROUPS.find((entry) => entry.id === id);\n}\n"]}
|
package/dist/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/error-categories.generated.ts"],"names":[],"mappings":";;;AAaO,IAAM,gBAAA,GAAmB;AAAA,EAC9B,aAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,gBAAA;AAAA,EACA,aAAA;AAAA,EACA,KAAA;AAAA,EACA,YAAA;AAAA,EACA,cAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF","file":"types.cjs","sourcesContent":["/**\n * PEAC Protocol Error Categories\n *\n * AUTO-GENERATED from specs/kernel/errors.json\n * DO NOT EDIT MANUALLY - run: npx tsx scripts/codegen-errors.ts\n * Spec version: 0.12.
|
|
1
|
+
{"version":3,"sources":["../src/error-categories.generated.ts"],"names":[],"mappings":";;;AAaO,IAAM,gBAAA,GAAmB;AAAA,EAC9B,aAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,gBAAA;AAAA,EACA,aAAA;AAAA,EACA,KAAA;AAAA,EACA,YAAA;AAAA,EACA,cAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF","file":"types.cjs","sourcesContent":["/**\n * PEAC Protocol Error Categories\n *\n * AUTO-GENERATED from specs/kernel/errors.json\n * DO NOT EDIT MANUALLY - run: npx tsx scripts/codegen-errors.ts\n * Spec version: 0.12.2\n */\n\n/**\n * Canonical error categories derived from specs/kernel/errors.json.\n * This is the single source of truth for all error category definitions.\n * Sorted alphabetically. This ordering is a codegen invariant.\n */\nexport const ERROR_CATEGORIES = [\n 'attribution',\n 'bundle',\n 'control',\n 'cryptography',\n 'dispute',\n 'identity',\n 'infrastructure',\n 'interaction',\n 'ucp',\n 'validation',\n 'verification',\n 'verifier',\n 'workflow',\n] as const;\n\n/**\n * Error category type - union of all categories in specs/kernel/errors.json\n */\nexport type ErrorCategory = (typeof ERROR_CATEGORIES)[number];\n"]}
|
package/dist/types.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export type JsonObject = {
|
|
|
38
38
|
export { ERROR_CATEGORIES } from './error-categories.generated.js';
|
|
39
39
|
export type { ErrorCategory } from './error-categories.generated.js';
|
|
40
40
|
/**
|
|
41
|
-
* Agent-actionable recovery hint
|
|
41
|
+
* Agent-actionable recovery hint.
|
|
42
42
|
*
|
|
43
43
|
* Best-effort guidance for agents; servers MAY change mappings between versions
|
|
44
44
|
* without breaking the protocol. Agents SHOULD NOT build hard dependencies on
|
package/dist/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/error-categories.generated.ts"],"names":[],"mappings":";AAaO,IAAM,gBAAA,GAAmB;AAAA,EAC9B,aAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,gBAAA;AAAA,EACA,aAAA;AAAA,EACA,KAAA;AAAA,EACA,YAAA;AAAA,EACA,cAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF","file":"types.mjs","sourcesContent":["/**\n * PEAC Protocol Error Categories\n *\n * AUTO-GENERATED from specs/kernel/errors.json\n * DO NOT EDIT MANUALLY - run: npx tsx scripts/codegen-errors.ts\n * Spec version: 0.12.
|
|
1
|
+
{"version":3,"sources":["../src/error-categories.generated.ts"],"names":[],"mappings":";AAaO,IAAM,gBAAA,GAAmB;AAAA,EAC9B,aAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,gBAAA;AAAA,EACA,aAAA;AAAA,EACA,KAAA;AAAA,EACA,YAAA;AAAA,EACA,cAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF","file":"types.mjs","sourcesContent":["/**\n * PEAC Protocol Error Categories\n *\n * AUTO-GENERATED from specs/kernel/errors.json\n * DO NOT EDIT MANUALLY - run: npx tsx scripts/codegen-errors.ts\n * Spec version: 0.12.2\n */\n\n/**\n * Canonical error categories derived from specs/kernel/errors.json.\n * This is the single source of truth for all error category definitions.\n * Sorted alphabetically. This ordering is a codegen invariant.\n */\nexport const ERROR_CATEGORIES = [\n 'attribution',\n 'bundle',\n 'control',\n 'cryptography',\n 'dispute',\n 'identity',\n 'infrastructure',\n 'interaction',\n 'ucp',\n 'validation',\n 'verification',\n 'verifier',\n 'workflow',\n] as const;\n\n/**\n * Error category type - union of all categories in specs/kernel/errors.json\n */\nexport type ErrorCategory = (typeof ERROR_CATEGORIES)[number];\n"]}
|
package/dist/wire-02-types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Wire 0.2 pure primitive types (v0.12.0-preview.1
|
|
2
|
+
* Wire 0.2 pure primitive types (v0.12.0-preview.1)
|
|
3
3
|
*
|
|
4
4
|
* This file contains ONLY types whose fields are built-in TypeScript primitives
|
|
5
5
|
* (string, number). No imports from @peac/schema or any other package.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ActorBinding and other schema-layer types (Layer 0 cannot import Layer 1).
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
|
-
* Policy binding block for Wire 0.2 envelopes
|
|
12
|
+
* Policy binding block for Wire 0.2 envelopes.
|
|
13
13
|
*
|
|
14
14
|
* Records a cryptographic reference to the policy document that governed
|
|
15
15
|
* this interaction. The digest MUST be the JCS+SHA-256 of the policy JSON
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
export interface PolicyBlock {
|
|
19
19
|
/** JCS+SHA-256 digest of the policy document: 'sha256:<64 lowercase hex>' */
|
|
20
20
|
digest: string;
|
|
21
|
-
/** HTTPS locator hint for the policy document. MUST NOT trigger auto-fetch
|
|
21
|
+
/** HTTPS locator hint for the policy document. MUST NOT trigger auto-fetch. */
|
|
22
22
|
uri?: string;
|
|
23
23
|
/** Caller-assigned version label for the policy. */
|
|
24
24
|
version?: string;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* Representation fields for Wire 0.2 envelopes
|
|
27
|
+
* Representation fields for Wire 0.2 envelopes.
|
|
28
28
|
*
|
|
29
29
|
* Records metadata about the content representation that was observed or served,
|
|
30
30
|
* enabling reproducible content drift detection.
|
|
31
|
-
* Maps to RepresentationObservation
|
|
31
|
+
* Maps to RepresentationObservation at the schema layer.
|
|
32
32
|
*/
|
|
33
33
|
export interface RepresentationFields {
|
|
34
34
|
/** FingerprintRef of the served content body: 'sha256:<64 lowercase hex>' */
|
|
@@ -39,7 +39,7 @@ export interface RepresentationFields {
|
|
|
39
39
|
content_length?: number;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
* A verification warning emitted during Wire 0.2 parsing or verification
|
|
42
|
+
* A verification warning emitted during Wire 0.2 parsing or verification.
|
|
43
43
|
*
|
|
44
44
|
* Warnings do NOT affect the allow/deny decision unless caller policy requires it.
|
|
45
45
|
* Warning codes are append-only stable string literals.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-02-types.d.ts","sourceRoot":"","sources":["../src/wire-02-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,6EAA6E;IAC7E,MAAM,EAAE,MAAM,CAAC;IACf
|
|
1
|
+
{"version":3,"file":"wire-02-types.d.ts","sourceRoot":"","sources":["../src/wire-02-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,6EAA6E;IAC7E,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|