@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.
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- // src/registries.ts
3
+ // src/registries.generated.ts
4
4
  var PAYMENT_RAILS = [
5
5
  {
6
- id: "x402",
7
- category: "agentic-payment",
8
- description: "HTTP 402-based paid call receipts",
9
- reference: "https://www.x402.org/",
6
+ id: "card-network",
7
+ category: "card",
8
+ description: "Generic card network authorizations/clearing",
9
+ reference: null,
10
10
  status: "informational"
11
11
  },
12
12
  {
@@ -17,10 +17,17 @@ var PAYMENT_RAILS = [
17
17
  status: "informational"
18
18
  },
19
19
  {
20
- id: "card-network",
21
- category: "card",
22
- description: "Generic card network authorizations/clearing",
23
- reference: null,
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",
24
31
  status: "informational"
25
32
  },
26
33
  {
@@ -29,13 +36,20 @@ var PAYMENT_RAILS = [
29
36
  description: "Unified Payments Interface",
30
37
  reference: "https://www.npci.org.in/",
31
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"
32
46
  }
33
47
  ];
34
48
  var CONTROL_ENGINES = [
35
49
  {
36
- id: "spend-control-service",
37
- category: "limits",
38
- description: "Generic spend control decisions (per-tx, daily, monthly limits)",
50
+ id: "mandate-service",
51
+ category: "mandate",
52
+ description: "Generic enterprise mandate/approval chain evaluator",
39
53
  reference: null,
40
54
  status: "informational"
41
55
  },
@@ -47,11 +61,25 @@ var CONTROL_ENGINES = [
47
61
  status: "informational"
48
62
  },
49
63
  {
50
- id: "mandate-service",
51
- category: "mandate",
52
- description: "Generic enterprise mandate/approval chain evaluator",
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)",
53
74
  reference: null,
54
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"
55
83
  }
56
84
  ];
57
85
  var TRANSPORT_METHODS = [
@@ -79,10 +107,10 @@ var TRANSPORT_METHODS = [
79
107
  ];
80
108
  var AGENT_PROTOCOLS = [
81
109
  {
82
- id: "mcp",
83
- category: "tool-protocol",
84
- description: "Model Context Protocol (MCP)",
85
- reference: "https://modelcontextprotocol.io/",
110
+ id: "a2a",
111
+ category: "agent-protocol",
112
+ description: "Agent-to-Agent Protocol (A2A, Linux Foundation)",
113
+ reference: "https://a2a-protocol.org/",
86
114
  status: "informational"
87
115
  },
88
116
  {
@@ -99,41 +127,292 @@ var AGENT_PROTOCOLS = [
99
127
  reference: null,
100
128
  status: "informational"
101
129
  },
130
+ {
131
+ id: "mcp",
132
+ category: "tool-protocol",
133
+ description: "Model Context Protocol (MCP)",
134
+ reference: "https://modelcontextprotocol.io/",
135
+ status: "informational"
136
+ },
102
137
  {
103
138
  id: "tap",
104
139
  category: "card-protocol",
105
140
  description: "Trusted Agent Protocol (Visa TAP)",
106
141
  reference: "https://developer.visa.com/",
107
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"
108
280
  }
109
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
+ ];
110
368
  var REGISTRIES = {
111
369
  payment_rails: PAYMENT_RAILS,
112
370
  control_engines: CONTROL_ENGINES,
113
371
  transport_methods: TRANSPORT_METHODS,
114
- agent_protocols: AGENT_PROTOCOLS
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
115
377
  };
116
378
  function findPaymentRail(id) {
117
- return PAYMENT_RAILS.find((rail) => rail.id === id);
379
+ return PAYMENT_RAILS.find((entry) => entry.id === id);
118
380
  }
119
381
  function findControlEngine(id) {
120
- return CONTROL_ENGINES.find((engine) => engine.id === id);
382
+ return CONTROL_ENGINES.find((entry) => entry.id === id);
121
383
  }
122
384
  function findTransportMethod(id) {
123
- return TRANSPORT_METHODS.find((method) => method.id === id);
385
+ return TRANSPORT_METHODS.find((entry) => entry.id === id);
124
386
  }
125
387
  function findAgentProtocol(id) {
126
- return AGENT_PROTOCOLS.find((protocol) => protocol.id === 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);
127
398
  }
128
399
 
129
400
  exports.AGENT_PROTOCOLS = AGENT_PROTOCOLS;
130
401
  exports.CONTROL_ENGINES = CONTROL_ENGINES;
402
+ exports.EXTENSION_GROUPS = EXTENSION_GROUPS;
131
403
  exports.PAYMENT_RAILS = PAYMENT_RAILS;
404
+ exports.PILLAR_VALUES = PILLAR_VALUES;
405
+ exports.PROOF_TYPES = PROOF_TYPES;
406
+ exports.RECEIPT_TYPES = RECEIPT_TYPES;
132
407
  exports.REGISTRIES = REGISTRIES;
133
408
  exports.TRANSPORT_METHODS = TRANSPORT_METHODS;
409
+ exports.TYPE_TO_EXTENSION_MAP = TYPE_TO_EXTENSION_MAP;
134
410
  exports.findAgentProtocol = findAgentProtocol;
135
411
  exports.findControlEngine = findControlEngine;
412
+ exports.findExtensionGroup = findExtensionGroup;
136
413
  exports.findPaymentRail = findPaymentRail;
414
+ exports.findProofType = findProofType;
415
+ exports.findReceiptType = findReceiptType;
137
416
  exports.findTransportMethod = findTransportMethod;
138
417
  //# sourceMappingURL=registries.cjs.map
139
418
  //# sourceMappingURL=registries.cjs.map
@@ -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;AA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,CAAC,IAAA,KAAS,IAAA,CAAK,OAAO,EAAE,CAAA;AACpD;AAKO,SAAS,kBAAkB,EAAA,EAA4C;AAC5E,EAAA,OAAO,gBAAgB,IAAA,CAAK,CAAC,MAAA,KAAW,MAAA,CAAO,OAAO,EAAE,CAAA;AAC1D;AAKO,SAAS,oBAAoB,EAAA,EAA8C;AAChF,EAAA,OAAO,kBAAkB,IAAA,CAAK,CAAC,MAAA,KAAW,MAAA,CAAO,OAAO,EAAE,CAAA;AAC5D;AAKO,SAAS,kBAAkB,EAAA,EAA4C;AAC5E,EAAA,OAAO,gBAAgB,IAAA,CAAK,CAAC,QAAA,KAAa,QAAA,CAAS,OAAO,EAAE,CAAA;AAC9D","file":"registries.cjs","sourcesContent":["/**\n * PEAC Protocol Registries\n * Derived from specs/kernel/registries.json\n *\n * NOTE: 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,EAAa,8CAAA;AAAA,IACb,SAAA,EAAW,IAAA;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,UAAA;AAAA,IACJ,QAAA,EAAU,iBAAA;AAAA,IACV,WAAA,EAAa,4DAAA;AAAA,IACb,SAAA,EAAW,4BAAA;AAAA,IACX,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,EAAA,EAAI,QAAA;AAAA,IACJ,QAAA,EAAU,iBAAA;AAAA,IACV,WAAA,EAAa,2BAAA;AAAA,IACb,SAAA,EAAW,yBAAA;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,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M,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.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"]}
@@ -1,54 +1,14 @@
1
1
  /**
2
2
  * PEAC Protocol Registries
3
- * Derived from specs/kernel/registries.json
4
3
  *
5
- * NOTE: This file is manually synced for v0.9.15.
6
- * From v0.9.16+, this will be auto-generated via codegen.
7
- */
8
- import type { PaymentRailEntry, ControlEngineEntry, TransportMethodEntry, AgentProtocolEntry } from './types.js';
9
- /**
10
- * Payment Rails Registry
11
- * Settlement layer identifiers
12
- */
13
- export declare const PAYMENT_RAILS: readonly PaymentRailEntry[];
14
- /**
15
- * Control Engines Registry
16
- * Governance and authorization engine identifiers
17
- */
18
- export declare const CONTROL_ENGINES: readonly ControlEngineEntry[];
19
- /**
20
- * Transport Methods Registry
21
- * Transport-layer binding identifiers
22
- */
23
- export declare const TRANSPORT_METHODS: readonly TransportMethodEntry[];
24
- /**
25
- * Agent Protocols Registry
26
- * Agentic protocol integration identifiers
27
- */
28
- export declare const AGENT_PROTOCOLS: readonly AgentProtocolEntry[];
29
- /**
30
- * All registries export
31
- */
32
- export declare const REGISTRIES: {
33
- readonly payment_rails: readonly PaymentRailEntry[];
34
- readonly control_engines: readonly ControlEngineEntry[];
35
- readonly transport_methods: readonly TransportMethodEntry[];
36
- readonly agent_protocols: readonly AgentProtocolEntry[];
37
- };
38
- /**
39
- * Find payment rail by ID
40
- */
41
- export declare function findPaymentRail(id: string): PaymentRailEntry | undefined;
42
- /**
43
- * Find control engine by ID
44
- */
45
- export declare function findControlEngine(id: string): ControlEngineEntry | undefined;
46
- /**
47
- * Find transport method by ID
48
- */
49
- export declare function findTransportMethod(id: string): TransportMethodEntry | undefined;
50
- /**
51
- * Find agent protocol by ID
4
+ * BACKWARD-COMPATIBILITY BARREL: re-exports from registries.generated.ts.
5
+ * The generated file is the single source of truth (specs/kernel/registries.json).
6
+ *
7
+ * This file exists solely for the ./registries subpath export in package.json.
8
+ * All registry data, types, and finder functions come from the generated file.
9
+ *
10
+ * v0.12.2: migrated from manual sync to codegen.
52
11
  */
53
- export declare function findAgentProtocol(id: string): AgentProtocolEntry | undefined;
12
+ export { PAYMENT_RAILS, CONTROL_ENGINES, TRANSPORT_METHODS, AGENT_PROTOCOLS, PROOF_TYPES, RECEIPT_TYPES, EXTENSION_GROUPS, PILLAR_VALUES, TYPE_TO_EXTENSION_MAP, REGISTRIES, findPaymentRail, findControlEngine, findTransportMethod, findAgentProtocol, findProofType, findReceiptType, findExtensionGroup, } from './registries.generated.js';
13
+ export type { ProofTypeEntry, ReceiptTypeEntry, ExtensionGroupEntry, } from './registries.generated.js';
54
14
  //# sourceMappingURL=registries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registries.d.ts","sourceRoot":"","sources":["../src/registries.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,gBAAgB,EA6B3C,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,kBAAkB,EAsB/C,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,oBAAoB,EAsBnD,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,kBAAkB,EA6B/C,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AAEX;;GAEG;A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