@peac/kernel 0.12.1 → 0.12.3
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 +12 -11
- package/dist/carrier.d.ts.map +1 -1
- 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
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/registries.generated.ts
|
|
4
|
+
var PAYMENT_RAILS = [
|
|
5
|
+
{
|
|
6
|
+
id: "card-network",
|
|
7
|
+
category: "card",
|
|
8
|
+
description: "Generic card network authorizations/clearing",
|
|
9
|
+
reference: null,
|
|
10
|
+
status: "informational"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: "l402",
|
|
14
|
+
category: "agentic-payment",
|
|
15
|
+
description: "Lightning HTTP 402 Protocol (LSAT-based)",
|
|
16
|
+
reference: "https://docs.lightning.engineering/the-lightning-network/l402",
|
|
17
|
+
status: "informational"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: "razorpay",
|
|
21
|
+
category: "payment-gateway",
|
|
22
|
+
description: "Razorpay payment gateway (UPI, cards, netbanking, wallets)",
|
|
23
|
+
reference: "https://razorpay.com/docs/",
|
|
24
|
+
status: "informational"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: "stripe",
|
|
28
|
+
category: "payment-gateway",
|
|
29
|
+
description: "Stripe payment processing",
|
|
30
|
+
reference: "https://stripe.com/docs",
|
|
31
|
+
status: "informational"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: "upi",
|
|
35
|
+
category: "account-to-account",
|
|
36
|
+
description: "Unified Payments Interface",
|
|
37
|
+
reference: "https://www.npci.org.in/",
|
|
38
|
+
status: "informational"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "x402",
|
|
42
|
+
category: "agentic-payment",
|
|
43
|
+
description: "HTTP 402-based paid call receipts",
|
|
44
|
+
reference: "https://www.x402.org/",
|
|
45
|
+
status: "informational"
|
|
46
|
+
}
|
|
47
|
+
];
|
|
48
|
+
var CONTROL_ENGINES = [
|
|
49
|
+
{
|
|
50
|
+
id: "mandate-service",
|
|
51
|
+
category: "mandate",
|
|
52
|
+
description: "Generic enterprise mandate/approval chain evaluator",
|
|
53
|
+
reference: null,
|
|
54
|
+
status: "informational"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "risk-engine",
|
|
58
|
+
category: "fraud",
|
|
59
|
+
description: "Generic risk/fraud scoring engine",
|
|
60
|
+
reference: null,
|
|
61
|
+
status: "informational"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "rsl",
|
|
65
|
+
category: "access-policy",
|
|
66
|
+
description: "Robots Specification Layer usage token evaluation",
|
|
67
|
+
reference: null,
|
|
68
|
+
status: "informational"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: "spend-control-service",
|
|
72
|
+
category: "limits",
|
|
73
|
+
description: "Generic spend control decisions (per-tx, daily, monthly limits)",
|
|
74
|
+
reference: null,
|
|
75
|
+
status: "informational"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: "tap",
|
|
79
|
+
category: "agent-verification",
|
|
80
|
+
description: "Trusted Agent Protocol control decisions (HTTP signature verification)",
|
|
81
|
+
reference: "https://developer.visa.com/",
|
|
82
|
+
status: "informational"
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
var TRANSPORT_METHODS = [
|
|
86
|
+
{
|
|
87
|
+
id: "dpop",
|
|
88
|
+
category: "proof-of-possession",
|
|
89
|
+
description: "Demonstrating Proof-of-Possession at the Application Layer",
|
|
90
|
+
reference: "https://www.rfc-editor.org/rfc/rfc9449",
|
|
91
|
+
status: "informational"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: "http-signature",
|
|
95
|
+
category: "message-signature",
|
|
96
|
+
description: "HTTP Message Signatures",
|
|
97
|
+
reference: "https://www.rfc-editor.org/rfc/rfc9421",
|
|
98
|
+
status: "informational"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "none",
|
|
102
|
+
category: "none",
|
|
103
|
+
description: "No transport binding",
|
|
104
|
+
reference: null,
|
|
105
|
+
status: "informational"
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
var AGENT_PROTOCOLS = [
|
|
109
|
+
{
|
|
110
|
+
id: "a2a",
|
|
111
|
+
category: "agent-protocol",
|
|
112
|
+
description: "Agent-to-Agent Protocol (A2A, Linux Foundation)",
|
|
113
|
+
reference: "https://a2a-protocol.org/",
|
|
114
|
+
status: "informational"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: "acp",
|
|
118
|
+
category: "commerce-protocol",
|
|
119
|
+
description: "Agentic Commerce Protocol",
|
|
120
|
+
reference: null,
|
|
121
|
+
status: "informational"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: "ap2",
|
|
125
|
+
category: "agent-protocol",
|
|
126
|
+
description: "Google Agent Protocol v2",
|
|
127
|
+
reference: null,
|
|
128
|
+
status: "informational"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: "mcp",
|
|
132
|
+
category: "tool-protocol",
|
|
133
|
+
description: "Model Context Protocol (MCP)",
|
|
134
|
+
reference: "https://modelcontextprotocol.io/",
|
|
135
|
+
status: "informational"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: "tap",
|
|
139
|
+
category: "card-protocol",
|
|
140
|
+
description: "Trusted Agent Protocol (Visa TAP)",
|
|
141
|
+
reference: "https://developer.visa.com/",
|
|
142
|
+
status: "informational"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: "ucp",
|
|
146
|
+
category: "commerce-protocol",
|
|
147
|
+
description: "Universal Commerce Protocol (UCP)",
|
|
148
|
+
reference: null,
|
|
149
|
+
status: "informational"
|
|
150
|
+
}
|
|
151
|
+
];
|
|
152
|
+
var PROOF_TYPES = [
|
|
153
|
+
{
|
|
154
|
+
id: "custom",
|
|
155
|
+
category: "vendor-defined",
|
|
156
|
+
description: "Vendor-defined proof type; registered per-issuer in extension metadata",
|
|
157
|
+
reference: null,
|
|
158
|
+
status: "informational"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: "did",
|
|
162
|
+
category: "decentralized-identity",
|
|
163
|
+
description: "W3C Decentralized Identifier (DID) resolution and verification",
|
|
164
|
+
reference: "https://www.w3.org/TR/did-core/",
|
|
165
|
+
status: "informational"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: "eat-background-check",
|
|
169
|
+
category: "rats",
|
|
170
|
+
description: "Verifier fetches attestation result from registry in RATS Background-Check model (RFC 9711)",
|
|
171
|
+
reference: "https://www.rfc-editor.org/rfc/rfc9711",
|
|
172
|
+
status: "informational"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: "eat-passport",
|
|
176
|
+
category: "rats",
|
|
177
|
+
description: "Agent carries Entity Attestation Token in RATS Passport model (RFC 9711)",
|
|
178
|
+
reference: "https://www.rfc-editor.org/rfc/rfc9711",
|
|
179
|
+
status: "informational"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: "ed25519-cert-chain",
|
|
183
|
+
category: "attestation-chain",
|
|
184
|
+
description: "Ed25519 issuer-to-holder attestation chain (RFC 8032)",
|
|
185
|
+
reference: "https://www.rfc-editor.org/rfc/rfc8032",
|
|
186
|
+
status: "informational"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: "sigstore-oidc",
|
|
190
|
+
category: "keyless-signing",
|
|
191
|
+
description: "OIDC-bound keyless signing via Sigstore (Fulcio + Rekor transparency log)",
|
|
192
|
+
reference: "https://docs.sigstore.dev/",
|
|
193
|
+
status: "informational"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
id: "spiffe",
|
|
197
|
+
category: "workload-identity",
|
|
198
|
+
description: "CNCF SPIFFE workload identity (spiffe:// URI scheme)",
|
|
199
|
+
reference: "https://spiffe.io/docs/latest/spiffe-about/overview/",
|
|
200
|
+
status: "informational"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: "x509-pki",
|
|
204
|
+
category: "pki",
|
|
205
|
+
description: "Traditional X.509 PKI certificate chain verification (RFC 5280)",
|
|
206
|
+
reference: "https://www.rfc-editor.org/rfc/rfc5280",
|
|
207
|
+
status: "informational"
|
|
208
|
+
}
|
|
209
|
+
];
|
|
210
|
+
var RECEIPT_TYPES = [
|
|
211
|
+
{
|
|
212
|
+
id: "org.peacprotocol/access-decision",
|
|
213
|
+
pillar: "access",
|
|
214
|
+
description: "Access control decision evidence (allow, deny, review)",
|
|
215
|
+
extension_group: "org.peacprotocol/access",
|
|
216
|
+
status: "informational"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: "org.peacprotocol/attribution-event",
|
|
220
|
+
pillar: "attribution",
|
|
221
|
+
description: "Content or action attribution evidence",
|
|
222
|
+
extension_group: "org.peacprotocol/attribution",
|
|
223
|
+
status: "informational"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
id: "org.peacprotocol/compliance-check",
|
|
227
|
+
pillar: "compliance",
|
|
228
|
+
description: "Regulatory compliance check evidence",
|
|
229
|
+
extension_group: "org.peacprotocol/compliance",
|
|
230
|
+
status: "informational"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
id: "org.peacprotocol/consent-record",
|
|
234
|
+
pillar: "consent",
|
|
235
|
+
description: "Consent collection or withdrawal evidence",
|
|
236
|
+
extension_group: "org.peacprotocol/consent",
|
|
237
|
+
status: "informational"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
id: "org.peacprotocol/identity-attestation",
|
|
241
|
+
pillar: "identity",
|
|
242
|
+
description: "Identity verification or attestation evidence",
|
|
243
|
+
extension_group: "org.peacprotocol/identity",
|
|
244
|
+
status: "informational"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
id: "org.peacprotocol/payment",
|
|
248
|
+
pillar: "commerce",
|
|
249
|
+
description: "Commerce transaction evidence (payment, authorization, settlement)",
|
|
250
|
+
extension_group: "org.peacprotocol/commerce",
|
|
251
|
+
status: "informational"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: "org.peacprotocol/privacy-signal",
|
|
255
|
+
pillar: "privacy",
|
|
256
|
+
description: "Privacy signal observation or enforcement evidence",
|
|
257
|
+
extension_group: "org.peacprotocol/privacy",
|
|
258
|
+
status: "informational"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
id: "org.peacprotocol/provenance-record",
|
|
262
|
+
pillar: "provenance",
|
|
263
|
+
description: "Data or content provenance tracking evidence",
|
|
264
|
+
extension_group: "org.peacprotocol/provenance",
|
|
265
|
+
status: "informational"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
id: "org.peacprotocol/purpose-declaration",
|
|
269
|
+
pillar: "purpose",
|
|
270
|
+
description: "Purpose declaration or limitation evidence",
|
|
271
|
+
extension_group: "org.peacprotocol/purpose",
|
|
272
|
+
status: "informational"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
id: "org.peacprotocol/safety-review",
|
|
276
|
+
pillar: "safety",
|
|
277
|
+
description: "Content or agent safety review evidence",
|
|
278
|
+
extension_group: "org.peacprotocol/safety",
|
|
279
|
+
status: "informational"
|
|
280
|
+
}
|
|
281
|
+
];
|
|
282
|
+
var EXTENSION_GROUPS = [
|
|
283
|
+
{
|
|
284
|
+
id: "org.peacprotocol/access",
|
|
285
|
+
description: "Access extension: resource, action, decision (allow/deny/review)",
|
|
286
|
+
status: "informational"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
id: "org.peacprotocol/attribution",
|
|
290
|
+
description: "Attribution extension: creator_ref, license_spdx, obligation_type, attribution_text, content_signal_source, content_digest",
|
|
291
|
+
status: "informational"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
id: "org.peacprotocol/challenge",
|
|
295
|
+
description: "Challenge extension: challenge_type, problem (RFC 9457), requirements",
|
|
296
|
+
status: "informational"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
id: "org.peacprotocol/commerce",
|
|
300
|
+
description: "Commerce extension: payment_rail, amount_minor, currency, reference, asset, env",
|
|
301
|
+
status: "informational"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
id: "org.peacprotocol/compliance",
|
|
305
|
+
description: "Compliance extension: framework, compliance_status, audit_ref, auditor, audit_date, scope, validity_period, evidence_ref",
|
|
306
|
+
status: "informational"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
id: "org.peacprotocol/consent",
|
|
310
|
+
description: "Consent extension: consent_basis, consent_status, data_categories, retention_period, consent_method, withdrawal_uri, scope, jurisdiction",
|
|
311
|
+
status: "informational"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
id: "org.peacprotocol/correlation",
|
|
315
|
+
description: "Correlation extension: trace_id, span_id, workflow_id, parent_jti, depends_on",
|
|
316
|
+
status: "informational"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
id: "org.peacprotocol/identity",
|
|
320
|
+
description: "Identity extension: proof_ref",
|
|
321
|
+
status: "informational"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
id: "org.peacprotocol/privacy",
|
|
325
|
+
description: "Privacy extension: data_classification, processing_basis, retention_period, retention_mode, recipient_scope, anonymization_method, data_subject_category, transfer_mechanism",
|
|
326
|
+
status: "informational"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
id: "org.peacprotocol/provenance",
|
|
330
|
+
description: "Provenance extension: source_type, source_ref, source_uri, build_provenance_uri, verification_method, custody_chain, slsa",
|
|
331
|
+
status: "informational"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
id: "org.peacprotocol/purpose",
|
|
335
|
+
description: "Purpose extension: external_purposes, purpose_basis, purpose_limitation, data_minimization, compatible_purposes, peac_purpose_mapping",
|
|
336
|
+
status: "informational"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
id: "org.peacprotocol/safety",
|
|
340
|
+
description: "Safety extension: review_status, risk_level, assessment_method, safety_measures, incident_ref, model_ref, category",
|
|
341
|
+
status: "informational"
|
|
342
|
+
}
|
|
343
|
+
];
|
|
344
|
+
var TYPE_TO_EXTENSION_MAP = /* @__PURE__ */ new Map([
|
|
345
|
+
["org.peacprotocol/access-decision", "org.peacprotocol/access"],
|
|
346
|
+
["org.peacprotocol/attribution-event", "org.peacprotocol/attribution"],
|
|
347
|
+
["org.peacprotocol/compliance-check", "org.peacprotocol/compliance"],
|
|
348
|
+
["org.peacprotocol/consent-record", "org.peacprotocol/consent"],
|
|
349
|
+
["org.peacprotocol/identity-attestation", "org.peacprotocol/identity"],
|
|
350
|
+
["org.peacprotocol/payment", "org.peacprotocol/commerce"],
|
|
351
|
+
["org.peacprotocol/privacy-signal", "org.peacprotocol/privacy"],
|
|
352
|
+
["org.peacprotocol/provenance-record", "org.peacprotocol/provenance"],
|
|
353
|
+
["org.peacprotocol/purpose-declaration", "org.peacprotocol/purpose"],
|
|
354
|
+
["org.peacprotocol/safety-review", "org.peacprotocol/safety"]
|
|
355
|
+
]);
|
|
356
|
+
var PILLAR_VALUES = [
|
|
357
|
+
"access",
|
|
358
|
+
"attribution",
|
|
359
|
+
"commerce",
|
|
360
|
+
"compliance",
|
|
361
|
+
"consent",
|
|
362
|
+
"identity",
|
|
363
|
+
"privacy",
|
|
364
|
+
"provenance",
|
|
365
|
+
"purpose",
|
|
366
|
+
"safety"
|
|
367
|
+
];
|
|
368
|
+
var REGISTRIES = {
|
|
369
|
+
payment_rails: PAYMENT_RAILS,
|
|
370
|
+
control_engines: CONTROL_ENGINES,
|
|
371
|
+
transport_methods: TRANSPORT_METHODS,
|
|
372
|
+
agent_protocols: AGENT_PROTOCOLS,
|
|
373
|
+
proof_types: PROOF_TYPES,
|
|
374
|
+
receipt_types: RECEIPT_TYPES,
|
|
375
|
+
extension_groups: EXTENSION_GROUPS,
|
|
376
|
+
pillar_values: PILLAR_VALUES
|
|
377
|
+
};
|
|
378
|
+
function findPaymentRail(id) {
|
|
379
|
+
return PAYMENT_RAILS.find((entry) => entry.id === id);
|
|
380
|
+
}
|
|
381
|
+
function findControlEngine(id) {
|
|
382
|
+
return CONTROL_ENGINES.find((entry) => entry.id === id);
|
|
383
|
+
}
|
|
384
|
+
function findTransportMethod(id) {
|
|
385
|
+
return TRANSPORT_METHODS.find((entry) => entry.id === id);
|
|
386
|
+
}
|
|
387
|
+
function findAgentProtocol(id) {
|
|
388
|
+
return AGENT_PROTOCOLS.find((entry) => entry.id === id);
|
|
389
|
+
}
|
|
390
|
+
function findProofType(id) {
|
|
391
|
+
return PROOF_TYPES.find((entry) => entry.id === id);
|
|
392
|
+
}
|
|
393
|
+
function findReceiptType(id) {
|
|
394
|
+
return RECEIPT_TYPES.find((entry) => entry.id === id);
|
|
395
|
+
}
|
|
396
|
+
function findExtensionGroup(id) {
|
|
397
|
+
return EXTENSION_GROUPS.find((entry) => entry.id === id);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
exports.AGENT_PROTOCOLS = AGENT_PROTOCOLS;
|
|
401
|
+
exports.CONTROL_ENGINES = CONTROL_ENGINES;
|
|
402
|
+
exports.EXTENSION_GROUPS = EXTENSION_GROUPS;
|
|
403
|
+
exports.PAYMENT_RAILS = PAYMENT_RAILS;
|
|
404
|
+
exports.PILLAR_VALUES = PILLAR_VALUES;
|
|
405
|
+
exports.PROOF_TYPES = PROOF_TYPES;
|
|
406
|
+
exports.RECEIPT_TYPES = RECEIPT_TYPES;
|
|
407
|
+
exports.REGISTRIES = REGISTRIES;
|
|
408
|
+
exports.TRANSPORT_METHODS = TRANSPORT_METHODS;
|
|
409
|
+
exports.TYPE_TO_EXTENSION_MAP = TYPE_TO_EXTENSION_MAP;
|
|
410
|
+
exports.findAgentProtocol = findAgentProtocol;
|
|
411
|
+
exports.findControlEngine = findControlEngine;
|
|
412
|
+
exports.findExtensionGroup = findExtensionGroup;
|
|
413
|
+
exports.findPaymentRail = findPaymentRail;
|
|
414
|
+
exports.findProofType = findProofType;
|
|
415
|
+
exports.findReceiptType = findReceiptType;
|
|
416
|
+
exports.findTransportMethod = findTransportMethod;
|
|
417
|
+
//# sourceMappingURL=registries.generated.cjs.map
|
|
418
|
+
//# sourceMappingURL=registries.generated.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/registries.generated.ts"],"names":[],"mappings":";;;AAyCO,IAAM,aAAA,GAA6C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,EACb,aAAA,EAAe,aAAA;AAAA,EACf,gBAAA,EAAkB,gBAAA;AAAA,EAClB,aAAA,EAAe;AACjB;AAGO,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.generated.cjs","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"]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PEAC Protocol Registries
|
|
3
|
+
*
|
|
4
|
+
* AUTO-GENERATED from specs/kernel/registries.json
|
|
5
|
+
* DO NOT EDIT MANUALLY - run: npx tsx scripts/codegen-registries.ts
|
|
6
|
+
* Spec version: 0.5.0
|
|
7
|
+
*/
|
|
8
|
+
import type { PaymentRailEntry, ControlEngineEntry, TransportMethodEntry, AgentProtocolEntry } from './types.js';
|
|
9
|
+
/** Proof type registry entry */
|
|
10
|
+
export interface ProofTypeEntry {
|
|
11
|
+
id: string;
|
|
12
|
+
category: string;
|
|
13
|
+
description: string;
|
|
14
|
+
reference: string | null;
|
|
15
|
+
status: string;
|
|
16
|
+
}
|
|
17
|
+
/** Receipt type registry entry (Wire 0.2) */
|
|
18
|
+
export interface ReceiptTypeEntry {
|
|
19
|
+
id: string;
|
|
20
|
+
pillar: string;
|
|
21
|
+
description: string;
|
|
22
|
+
extension_group: string | null;
|
|
23
|
+
status: string;
|
|
24
|
+
}
|
|
25
|
+
/** Extension group registry entry (Wire 0.2) */
|
|
26
|
+
export interface ExtensionGroupEntry {
|
|
27
|
+
id: string;
|
|
28
|
+
description: string;
|
|
29
|
+
status: string;
|
|
30
|
+
}
|
|
31
|
+
/** payment rails registry */
|
|
32
|
+
export declare const PAYMENT_RAILS: readonly PaymentRailEntry[];
|
|
33
|
+
/** control engines registry */
|
|
34
|
+
export declare const CONTROL_ENGINES: readonly ControlEngineEntry[];
|
|
35
|
+
/** transport methods registry */
|
|
36
|
+
export declare const TRANSPORT_METHODS: readonly TransportMethodEntry[];
|
|
37
|
+
/** agent protocols registry */
|
|
38
|
+
export declare const AGENT_PROTOCOLS: readonly AgentProtocolEntry[];
|
|
39
|
+
/** proof types registry */
|
|
40
|
+
export declare const PROOF_TYPES: readonly ProofTypeEntry[];
|
|
41
|
+
/** Receipt type registry (Wire 0.2, 10 pillar-aligned types) */
|
|
42
|
+
export declare const RECEIPT_TYPES: readonly ReceiptTypeEntry[];
|
|
43
|
+
/** Extension group registry (Wire 0.2) */
|
|
44
|
+
export declare const EXTENSION_GROUPS: readonly ExtensionGroupEntry[];
|
|
45
|
+
/**
|
|
46
|
+
* Type-to-extension group mapping for first-party receipt types.
|
|
47
|
+
* Used by @peac/protocol.verifyLocal() for type-to-extension enforcement.
|
|
48
|
+
* Entries with extension_group === null are excluded (no enforcement yet).
|
|
49
|
+
*/
|
|
50
|
+
export declare const TYPE_TO_EXTENSION_MAP: ReadonlyMap<string, string>;
|
|
51
|
+
/** Closed pillar vocabulary (10 values, sorted alphabetically) */
|
|
52
|
+
export declare const PILLAR_VALUES: readonly ["access", "attribution", "commerce", "compliance", "consent", "identity", "privacy", "provenance", "purpose", "safety"];
|
|
53
|
+
/** All registries export */
|
|
54
|
+
export declare const REGISTRIES: {
|
|
55
|
+
readonly payment_rails: readonly PaymentRailEntry[];
|
|
56
|
+
readonly control_engines: readonly ControlEngineEntry[];
|
|
57
|
+
readonly transport_methods: readonly TransportMethodEntry[];
|
|
58
|
+
readonly agent_protocols: readonly AgentProtocolEntry[];
|
|
59
|
+
readonly proof_types: readonly ProofTypeEntry[];
|
|
60
|
+
readonly receipt_types: readonly ReceiptTypeEntry[];
|
|
61
|
+
readonly extension_groups: readonly ExtensionGroupEntry[];
|
|
62
|
+
readonly pillar_values: readonly ["access", "attribution", "commerce", "compliance", "consent", "identity", "privacy", "provenance", "purpose", "safety"];
|
|
63
|
+
};
|
|
64
|
+
/** Find paymentrail by ID */
|
|
65
|
+
export declare function findPaymentRail(id: string): PaymentRailEntry | undefined;
|
|
66
|
+
/** Find controlengine by ID */
|
|
67
|
+
export declare function findControlEngine(id: string): ControlEngineEntry | undefined;
|
|
68
|
+
/** Find transportmethod by ID */
|
|
69
|
+
export declare function findTransportMethod(id: string): TransportMethodEntry | undefined;
|
|
70
|
+
/** Find agentprotocol by ID */
|
|
71
|
+
export declare function findAgentProtocol(id: string): AgentProtocolEntry | undefined;
|
|
72
|
+
/** Find prooftype by ID */
|
|
73
|
+
export declare function findProofType(id: string): ProofTypeEntry | undefined;
|
|
74
|
+
/** Find receipt type by ID */
|
|
75
|
+
export declare function findReceiptType(id: string): ReceiptTypeEntry | undefined;
|
|
76
|
+
/** Find extension group by ID */
|
|
77
|
+
export declare function findExtensionGroup(id: string): ExtensionGroupEntry | undefined;
|
|
78
|
+
//# sourceMappingURL=registries.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registries.generated.d.ts","sourceRoot":"","sources":["../src/registries.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB,gCAAgC;AAChC,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6CAA6C;AAC7C,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,gDAAgD;AAChD,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6BAA6B;AAC7B,eAAO,MAAM,aAAa,EAAE,SAAS,gBAAgB,EA2CpD,CAAC;AAEF,+BAA+B;AAC/B,eAAO,MAAM,eAAe,EAAE,SAAS,kBAAkB,EAoCxD,CAAC;AAEF,iCAAiC;AACjC,eAAO,MAAM,iBAAiB,EAAE,SAAS,oBAAoB,EAsB5D,CAAC;AAEF,+BAA+B;AAC/B,eAAO,MAAM,eAAe,EAAE,SAAS,kBAAk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