@peac/schema 0.10.0 → 0.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,7 +10,7 @@ pnpm add @peac/schema
10
10
 
11
11
  ## Documentation
12
12
 
13
- See [peacprotocol.org](https://peacprotocol.org) for full documentation.
13
+ See [peacprotocol.org](https://www.peacprotocol.org) for full documentation.
14
14
 
15
15
  ## License
16
16
 
@@ -20,4 +20,4 @@ Apache-2.0
20
20
 
21
21
  PEAC Protocol is an open source project stewarded by Originary and community contributors.
22
22
 
23
- [Originary](https://www.originary.xyz) | [Docs](https://peacprotocol.org) | [GitHub](https://github.com/peacprotocol/peac)
23
+ [Docs](https://www.peacprotocol.org) | [GitHub](https://github.com/peacprotocol/peac) | [Originary](https://www.originary.xyz)
@@ -106,9 +106,9 @@ export declare const AgentProofSchema: z.ZodObject<{
106
106
  body_hash?: string | undefined;
107
107
  }>>;
108
108
  }, "strict", z.ZodTypeAny, {
109
- alg: string;
110
109
  method: "http-message-signature" | "dpop" | "mtls" | "jwk-thumbprint";
111
110
  key_id: string;
111
+ alg: string;
112
112
  signature?: string | undefined;
113
113
  dpop_proof?: string | undefined;
114
114
  cert_thumbprint?: string | undefined;
@@ -190,9 +190,9 @@ export declare const AgentIdentityEvidenceSchema: z.ZodObject<{
190
190
  body_hash?: string | undefined;
191
191
  }>>;
192
192
  }, "strict", z.ZodTypeAny, {
193
- alg: string;
194
193
  method: "http-message-signature" | "dpop" | "mtls" | "jwk-thumbprint";
195
194
  key_id: string;
195
+ alg: string;
196
196
  signature?: string | undefined;
197
197
  dpop_proof?: string | undefined;
198
198
  cert_thumbprint?: string | undefined;
@@ -229,14 +229,13 @@ export declare const AgentIdentityEvidenceSchema: z.ZodObject<{
229
229
  }, "strict", z.ZodTypeAny, {
230
230
  agent_id: string;
231
231
  control_type: "operator" | "user-delegated";
232
- metadata?: Record<string, JsonValue> | undefined;
233
232
  operator?: string | undefined;
234
233
  capabilities?: string[] | undefined;
235
234
  delegation_chain?: string[] | undefined;
236
235
  proof?: {
237
- alg: string;
238
236
  method: "http-message-signature" | "dpop" | "mtls" | "jwk-thumbprint";
239
237
  key_id: string;
238
+ alg: string;
240
239
  signature?: string | undefined;
241
240
  dpop_proof?: string | undefined;
242
241
  cert_thumbprint?: string | undefined;
@@ -250,10 +249,10 @@ export declare const AgentIdentityEvidenceSchema: z.ZodObject<{
250
249
  } | undefined;
251
250
  key_directory_url?: string | undefined;
252
251
  user_id?: string | undefined;
252
+ metadata?: Record<string, JsonValue> | undefined;
253
253
  }, {
254
254
  agent_id: string;
255
255
  control_type: "operator" | "user-delegated";
256
- metadata?: Record<string, JsonValue> | undefined;
257
256
  operator?: string | undefined;
258
257
  capabilities?: string[] | undefined;
259
258
  delegation_chain?: string[] | undefined;
@@ -274,6 +273,7 @@ export declare const AgentIdentityEvidenceSchema: z.ZodObject<{
274
273
  } | undefined;
275
274
  key_directory_url?: string | undefined;
276
275
  user_id?: string | undefined;
276
+ metadata?: Record<string, JsonValue> | undefined;
277
277
  }>;
278
278
  export type AgentIdentityEvidence = z.infer<typeof AgentIdentityEvidenceSchema>;
279
279
  /**
@@ -367,9 +367,9 @@ export declare const AgentIdentityAttestationSchema: z.ZodObject<{
367
367
  body_hash?: string | undefined;
368
368
  }>>;
369
369
  }, "strict", z.ZodTypeAny, {
370
- alg: string;
371
370
  method: "http-message-signature" | "dpop" | "mtls" | "jwk-thumbprint";
372
371
  key_id: string;
372
+ alg: string;
373
373
  signature?: string | undefined;
374
374
  dpop_proof?: string | undefined;
375
375
  cert_thumbprint?: string | undefined;
@@ -406,14 +406,13 @@ export declare const AgentIdentityAttestationSchema: z.ZodObject<{
406
406
  }, "strict", z.ZodTypeAny, {
407
407
  agent_id: string;
408
408
  control_type: "operator" | "user-delegated";
409
- metadata?: Record<string, JsonValue> | undefined;
410
409
  operator?: string | undefined;
411
410
  capabilities?: string[] | undefined;
412
411
  delegation_chain?: string[] | undefined;
413
412
  proof?: {
414
- alg: string;
415
413
  method: "http-message-signature" | "dpop" | "mtls" | "jwk-thumbprint";
416
414
  key_id: string;
415
+ alg: string;
417
416
  signature?: string | undefined;
418
417
  dpop_proof?: string | undefined;
419
418
  cert_thumbprint?: string | undefined;
@@ -427,10 +426,10 @@ export declare const AgentIdentityAttestationSchema: z.ZodObject<{
427
426
  } | undefined;
428
427
  key_directory_url?: string | undefined;
429
428
  user_id?: string | undefined;
429
+ metadata?: Record<string, JsonValue> | undefined;
430
430
  }, {
431
431
  agent_id: string;
432
432
  control_type: "operator" | "user-delegated";
433
- metadata?: Record<string, JsonValue> | undefined;
434
433
  operator?: string | undefined;
435
434
  capabilities?: string[] | undefined;
436
435
  delegation_chain?: string[] | undefined;
@@ -451,6 +450,7 @@ export declare const AgentIdentityAttestationSchema: z.ZodObject<{
451
450
  } | undefined;
452
451
  key_directory_url?: string | undefined;
453
452
  user_id?: string | undefined;
453
+ metadata?: Record<string, JsonValue> | undefined;
454
454
  }>;
455
455
  }, "strict", z.ZodTypeAny, {
456
456
  type: "peac/agent-identity";
@@ -459,14 +459,13 @@ export declare const AgentIdentityAttestationSchema: z.ZodObject<{
459
459
  evidence: {
460
460
  agent_id: string;
461
461
  control_type: "operator" | "user-delegated";
462
- metadata?: Record<string, JsonValue> | undefined;
463
462
  operator?: string | undefined;
464
463
  capabilities?: string[] | undefined;
465
464
  delegation_chain?: string[] | undefined;
466
465
  proof?: {
467
- alg: string;
468
466
  method: "http-message-signature" | "dpop" | "mtls" | "jwk-thumbprint";
469
467
  key_id: string;
468
+ alg: string;
470
469
  signature?: string | undefined;
471
470
  dpop_proof?: string | undefined;
472
471
  cert_thumbprint?: string | undefined;
@@ -480,6 +479,7 @@ export declare const AgentIdentityAttestationSchema: z.ZodObject<{
480
479
  } | undefined;
481
480
  key_directory_url?: string | undefined;
482
481
  user_id?: string | undefined;
482
+ metadata?: Record<string, JsonValue> | undefined;
483
483
  };
484
484
  expires_at?: string | undefined;
485
485
  ref?: string | undefined;
@@ -490,7 +490,6 @@ export declare const AgentIdentityAttestationSchema: z.ZodObject<{
490
490
  evidence: {
491
491
  agent_id: string;
492
492
  control_type: "operator" | "user-delegated";
493
- metadata?: Record<string, JsonValue> | undefined;
494
493
  operator?: string | undefined;
495
494
  capabilities?: string[] | undefined;
496
495
  delegation_chain?: string[] | undefined;
@@ -511,6 +510,7 @@ export declare const AgentIdentityAttestationSchema: z.ZodObject<{
511
510
  } | undefined;
512
511
  key_directory_url?: string | undefined;
513
512
  user_id?: string | undefined;
513
+ metadata?: Record<string, JsonValue> | undefined;
514
514
  };
515
515
  expires_at?: string | undefined;
516
516
  ref?: string | undefined;
@@ -61,12 +61,12 @@ export declare const ContentHashSchema: z.ZodObject<{
61
61
  /** Encoding format (REQUIRED, must be 'base64url') */
62
62
  enc: z.ZodLiteral<"base64url">;
63
63
  }, "strict", z.ZodTypeAny, {
64
- alg: "sha-256";
65
64
  value: string;
65
+ alg: "sha-256";
66
66
  enc: "base64url";
67
67
  }, {
68
- alg: "sha-256";
69
68
  value: string;
69
+ alg: "sha-256";
70
70
  enc: "base64url";
71
71
  }>;
72
72
  export type ContentHash = z.infer<typeof ContentHashSchema>;
@@ -137,12 +137,12 @@ export declare const AttributionSourceSchema: z.ZodObject<{
137
137
  /** Encoding format (REQUIRED, must be 'base64url') */
138
138
  enc: z.ZodLiteral<"base64url">;
139
139
  }, "strict", z.ZodTypeAny, {
140
- alg: "sha-256";
141
140
  value: string;
141
+ alg: "sha-256";
142
142
  enc: "base64url";
143
143
  }, {
144
- alg: "sha-256";
145
144
  value: string;
145
+ alg: "sha-256";
146
146
  enc: "base64url";
147
147
  }>>;
148
148
  /** Hash of used excerpt (OPTIONAL, content-minimizing, not privacy-preserving for short text) */
@@ -154,12 +154,12 @@ export declare const AttributionSourceSchema: z.ZodObject<{
154
154
  /** Encoding format (REQUIRED, must be 'base64url') */
155
155
  enc: z.ZodLiteral<"base64url">;
156
156
  }, "strict", z.ZodTypeAny, {
157
- alg: "sha-256";
158
157
  value: string;
158
+ alg: "sha-256";
159
159
  enc: "base64url";
160
160
  }, {
161
- alg: "sha-256";
162
161
  value: string;
162
+ alg: "sha-256";
163
163
  enc: "base64url";
164
164
  }>>;
165
165
  /** How the source was used (REQUIRED) */
@@ -171,13 +171,13 @@ export declare const AttributionSourceSchema: z.ZodObject<{
171
171
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
172
172
  receipt_issuer?: string | undefined;
173
173
  content_hash?: {
174
- alg: "sha-256";
175
174
  value: string;
175
+ alg: "sha-256";
176
176
  enc: "base64url";
177
177
  } | undefined;
178
178
  excerpt_hash?: {
179
- alg: "sha-256";
180
179
  value: string;
180
+ alg: "sha-256";
181
181
  enc: "base64url";
182
182
  } | undefined;
183
183
  weight?: number | undefined;
@@ -186,13 +186,13 @@ export declare const AttributionSourceSchema: z.ZodObject<{
186
186
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
187
187
  receipt_issuer?: string | undefined;
188
188
  content_hash?: {
189
- alg: "sha-256";
190
189
  value: string;
190
+ alg: "sha-256";
191
191
  enc: "base64url";
192
192
  } | undefined;
193
193
  excerpt_hash?: {
194
- alg: "sha-256";
195
194
  value: string;
195
+ alg: "sha-256";
196
196
  enc: "base64url";
197
197
  } | undefined;
198
198
  weight?: number | undefined;
@@ -225,12 +225,12 @@ export declare const AttributionEvidenceSchema: z.ZodObject<{
225
225
  /** Encoding format (REQUIRED, must be 'base64url') */
226
226
  enc: z.ZodLiteral<"base64url">;
227
227
  }, "strict", z.ZodTypeAny, {
228
- alg: "sha-256";
229
228
  value: string;
229
+ alg: "sha-256";
230
230
  enc: "base64url";
231
231
  }, {
232
- alg: "sha-256";
233
232
  value: string;
233
+ alg: "sha-256";
234
234
  enc: "base64url";
235
235
  }>>;
236
236
  /** Hash of used excerpt (OPTIONAL, content-minimizing, not privacy-preserving for short text) */
@@ -242,12 +242,12 @@ export declare const AttributionEvidenceSchema: z.ZodObject<{
242
242
  /** Encoding format (REQUIRED, must be 'base64url') */
243
243
  enc: z.ZodLiteral<"base64url">;
244
244
  }, "strict", z.ZodTypeAny, {
245
- alg: "sha-256";
246
245
  value: string;
246
+ alg: "sha-256";
247
247
  enc: "base64url";
248
248
  }, {
249
- alg: "sha-256";
250
249
  value: string;
250
+ alg: "sha-256";
251
251
  enc: "base64url";
252
252
  }>>;
253
253
  /** How the source was used (REQUIRED) */
@@ -259,13 +259,13 @@ export declare const AttributionEvidenceSchema: z.ZodObject<{
259
259
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
260
260
  receipt_issuer?: string | undefined;
261
261
  content_hash?: {
262
- alg: "sha-256";
263
262
  value: string;
263
+ alg: "sha-256";
264
264
  enc: "base64url";
265
265
  } | undefined;
266
266
  excerpt_hash?: {
267
- alg: "sha-256";
268
267
  value: string;
268
+ alg: "sha-256";
269
269
  enc: "base64url";
270
270
  } | undefined;
271
271
  weight?: number | undefined;
@@ -274,13 +274,13 @@ export declare const AttributionEvidenceSchema: z.ZodObject<{
274
274
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
275
275
  receipt_issuer?: string | undefined;
276
276
  content_hash?: {
277
- alg: "sha-256";
278
277
  value: string;
278
+ alg: "sha-256";
279
279
  enc: "base64url";
280
280
  } | undefined;
281
281
  excerpt_hash?: {
282
- alg: "sha-256";
283
282
  value: string;
283
+ alg: "sha-256";
284
284
  enc: "base64url";
285
285
  } | undefined;
286
286
  weight?: number | undefined;
@@ -296,12 +296,12 @@ export declare const AttributionEvidenceSchema: z.ZodObject<{
296
296
  /** Encoding format (REQUIRED, must be 'base64url') */
297
297
  enc: z.ZodLiteral<"base64url">;
298
298
  }, "strict", z.ZodTypeAny, {
299
- alg: "sha-256";
300
299
  value: string;
300
+ alg: "sha-256";
301
301
  enc: "base64url";
302
302
  }, {
303
- alg: "sha-256";
304
303
  value: string;
304
+ alg: "sha-256";
305
305
  enc: "base64url";
306
306
  }>>;
307
307
  /** Model identifier (OPTIONAL) */
@@ -318,54 +318,54 @@ export declare const AttributionEvidenceSchema: z.ZodObject<{
318
318
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
319
319
  receipt_issuer?: string | undefined;
320
320
  content_hash?: {
321
- alg: "sha-256";
322
321
  value: string;
322
+ alg: "sha-256";
323
323
  enc: "base64url";
324
324
  } | undefined;
325
325
  excerpt_hash?: {
326
- alg: "sha-256";
327
326
  value: string;
327
+ alg: "sha-256";
328
328
  enc: "base64url";
329
329
  } | undefined;
330
330
  weight?: number | undefined;
331
331
  }[];
332
332
  derivation_type: "training" | "inference" | "rag" | "synthesis" | "embedding";
333
+ metadata?: Record<string, JsonValue> | undefined;
333
334
  output_hash?: {
334
- alg: "sha-256";
335
335
  value: string;
336
+ alg: "sha-256";
336
337
  enc: "base64url";
337
338
  } | undefined;
338
339
  model_id?: string | undefined;
339
340
  inference_provider?: string | undefined;
340
341
  session_id?: string | undefined;
341
- metadata?: Record<string, JsonValue> | undefined;
342
342
  }, {
343
343
  sources: {
344
344
  receipt_ref: string;
345
345
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
346
346
  receipt_issuer?: string | undefined;
347
347
  content_hash?: {
348
- alg: "sha-256";
349
348
  value: string;
349
+ alg: "sha-256";
350
350
  enc: "base64url";
351
351
  } | undefined;
352
352
  excerpt_hash?: {
353
- alg: "sha-256";
354
353
  value: string;
354
+ alg: "sha-256";
355
355
  enc: "base64url";
356
356
  } | undefined;
357
357
  weight?: number | undefined;
358
358
  }[];
359
359
  derivation_type: "training" | "inference" | "rag" | "synthesis" | "embedding";
360
+ metadata?: Record<string, JsonValue> | undefined;
360
361
  output_hash?: {
361
- alg: "sha-256";
362
362
  value: string;
363
+ alg: "sha-256";
363
364
  enc: "base64url";
364
365
  } | undefined;
365
366
  model_id?: string | undefined;
366
367
  inference_provider?: string | undefined;
367
368
  session_id?: string | undefined;
368
- metadata?: Record<string, JsonValue> | undefined;
369
369
  }>;
370
370
  export type AttributionEvidence = z.infer<typeof AttributionEvidenceSchema>;
371
371
  /**
@@ -429,12 +429,12 @@ export declare const AttributionAttestationSchema: z.ZodObject<{
429
429
  /** Encoding format (REQUIRED, must be 'base64url') */
430
430
  enc: z.ZodLiteral<"base64url">;
431
431
  }, "strict", z.ZodTypeAny, {
432
- alg: "sha-256";
433
432
  value: string;
433
+ alg: "sha-256";
434
434
  enc: "base64url";
435
435
  }, {
436
- alg: "sha-256";
437
436
  value: string;
437
+ alg: "sha-256";
438
438
  enc: "base64url";
439
439
  }>>;
440
440
  /** Hash of used excerpt (OPTIONAL, content-minimizing, not privacy-preserving for short text) */
@@ -446,12 +446,12 @@ export declare const AttributionAttestationSchema: z.ZodObject<{
446
446
  /** Encoding format (REQUIRED, must be 'base64url') */
447
447
  enc: z.ZodLiteral<"base64url">;
448
448
  }, "strict", z.ZodTypeAny, {
449
- alg: "sha-256";
450
449
  value: string;
450
+ alg: "sha-256";
451
451
  enc: "base64url";
452
452
  }, {
453
- alg: "sha-256";
454
453
  value: string;
454
+ alg: "sha-256";
455
455
  enc: "base64url";
456
456
  }>>;
457
457
  /** How the source was used (REQUIRED) */
@@ -463,13 +463,13 @@ export declare const AttributionAttestationSchema: z.ZodObject<{
463
463
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
464
464
  receipt_issuer?: string | undefined;
465
465
  content_hash?: {
466
- alg: "sha-256";
467
466
  value: string;
467
+ alg: "sha-256";
468
468
  enc: "base64url";
469
469
  } | undefined;
470
470
  excerpt_hash?: {
471
- alg: "sha-256";
472
471
  value: string;
472
+ alg: "sha-256";
473
473
  enc: "base64url";
474
474
  } | undefined;
475
475
  weight?: number | undefined;
@@ -478,13 +478,13 @@ export declare const AttributionAttestationSchema: z.ZodObject<{
478
478
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
479
479
  receipt_issuer?: string | undefined;
480
480
  content_hash?: {
481
- alg: "sha-256";
482
481
  value: string;
482
+ alg: "sha-256";
483
483
  enc: "base64url";
484
484
  } | undefined;
485
485
  excerpt_hash?: {
486
- alg: "sha-256";
487
486
  value: string;
487
+ alg: "sha-256";
488
488
  enc: "base64url";
489
489
  } | undefined;
490
490
  weight?: number | undefined;
@@ -500,12 +500,12 @@ export declare const AttributionAttestationSchema: z.ZodObject<{
500
500
  /** Encoding format (REQUIRED, must be 'base64url') */
501
501
  enc: z.ZodLiteral<"base64url">;
502
502
  }, "strict", z.ZodTypeAny, {
503
- alg: "sha-256";
504
503
  value: string;
504
+ alg: "sha-256";
505
505
  enc: "base64url";
506
506
  }, {
507
- alg: "sha-256";
508
507
  value: string;
508
+ alg: "sha-256";
509
509
  enc: "base64url";
510
510
  }>>;
511
511
  /** Model identifier (OPTIONAL) */
@@ -522,54 +522,54 @@ export declare const AttributionAttestationSchema: z.ZodObject<{
522
522
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
523
523
  receipt_issuer?: string | undefined;
524
524
  content_hash?: {
525
- alg: "sha-256";
526
525
  value: string;
526
+ alg: "sha-256";
527
527
  enc: "base64url";
528
528
  } | undefined;
529
529
  excerpt_hash?: {
530
- alg: "sha-256";
531
530
  value: string;
531
+ alg: "sha-256";
532
532
  enc: "base64url";
533
533
  } | undefined;
534
534
  weight?: number | undefined;
535
535
  }[];
536
536
  derivation_type: "training" | "inference" | "rag" | "synthesis" | "embedding";
537
+ metadata?: Record<string, JsonValue> | undefined;
537
538
  output_hash?: {
538
- alg: "sha-256";
539
539
  value: string;
540
+ alg: "sha-256";
540
541
  enc: "base64url";
541
542
  } | undefined;
542
543
  model_id?: string | undefined;
543
544
  inference_provider?: string | undefined;
544
545
  session_id?: string | undefined;
545
- metadata?: Record<string, JsonValue> | undefined;
546
546
  }, {
547
547
  sources: {
548
548
  receipt_ref: string;
549
549
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
550
550
  receipt_issuer?: string | undefined;
551
551
  content_hash?: {
552
- alg: "sha-256";
553
552
  value: string;
553
+ alg: "sha-256";
554
554
  enc: "base64url";
555
555
  } | undefined;
556
556
  excerpt_hash?: {
557
- alg: "sha-256";
558
557
  value: string;
558
+ alg: "sha-256";
559
559
  enc: "base64url";
560
560
  } | undefined;
561
561
  weight?: number | undefined;
562
562
  }[];
563
563
  derivation_type: "training" | "inference" | "rag" | "synthesis" | "embedding";
564
+ metadata?: Record<string, JsonValue> | undefined;
564
565
  output_hash?: {
565
- alg: "sha-256";
566
566
  value: string;
567
+ alg: "sha-256";
567
568
  enc: "base64url";
568
569
  } | undefined;
569
570
  model_id?: string | undefined;
570
571
  inference_provider?: string | undefined;
571
572
  session_id?: string | undefined;
572
- metadata?: Record<string, JsonValue> | undefined;
573
573
  }>;
574
574
  }, "strict", z.ZodTypeAny, {
575
575
  type: "peac/attribution";
@@ -581,27 +581,27 @@ export declare const AttributionAttestationSchema: z.ZodObject<{
581
581
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
582
582
  receipt_issuer?: string | undefined;
583
583
  content_hash?: {
584
- alg: "sha-256";
585
584
  value: string;
585
+ alg: "sha-256";
586
586
  enc: "base64url";
587
587
  } | undefined;
588
588
  excerpt_hash?: {
589
- alg: "sha-256";
590
589
  value: string;
590
+ alg: "sha-256";
591
591
  enc: "base64url";
592
592
  } | undefined;
593
593
  weight?: number | undefined;
594
594
  }[];
595
595
  derivation_type: "training" | "inference" | "rag" | "synthesis" | "embedding";
596
+ metadata?: Record<string, JsonValue> | undefined;
596
597
  output_hash?: {
597
- alg: "sha-256";
598
598
  value: string;
599
+ alg: "sha-256";
599
600
  enc: "base64url";
600
601
  } | undefined;
601
602
  model_id?: string | undefined;
602
603
  inference_provider?: string | undefined;
603
604
  session_id?: string | undefined;
604
- metadata?: Record<string, JsonValue> | undefined;
605
605
  };
606
606
  expires_at?: string | undefined;
607
607
  ref?: string | undefined;
@@ -615,27 +615,27 @@ export declare const AttributionAttestationSchema: z.ZodObject<{
615
615
  usage: "training_input" | "rag_context" | "direct_reference" | "synthesis_source" | "embedding_source";
616
616
  receipt_issuer?: string | undefined;
617
617
  content_hash?: {
618
- alg: "sha-256";
619
618
  value: string;
619
+ alg: "sha-256";
620
620
  enc: "base64url";
621
621
  } | undefined;
622
622
  excerpt_hash?: {
623
- alg: "sha-256";
624
623
  value: string;
624
+ alg: "sha-256";
625
625
  enc: "base64url";
626
626
  } | undefined;
627
627
  weight?: number | undefined;
628
628
  }[];
629
629
  derivation_type: "training" | "inference" | "rag" | "synthesis" | "embedding";
630
+ metadata?: Record<string, JsonValue> | undefined;
630
631
  output_hash?: {
631
- alg: "sha-256";
632
632
  value: string;
633
+ alg: "sha-256";
633
634
  enc: "base64url";
634
635
  } | undefined;
635
636
  model_id?: string | undefined;
636
637
  inference_provider?: string | undefined;
637
638
  session_id?: string | undefined;
638
- metadata?: Record<string, JsonValue> | undefined;
639
639
  };
640
640
  expires_at?: string | undefined;
641
641
  ref?: string | undefined;
@@ -65,5 +65,5 @@ export declare const PEAC_DISCOVERY_MAX_BYTES: 2000;
65
65
  *
66
66
  * @since v0.10.0
67
67
  */
68
- export declare const PEAC_RECEIPT_SCHEMA_URL: "https://peacprotocol.org/schemas/wire/0.1/peac-receipt.0.1.schema.json";
68
+ export declare const PEAC_RECEIPT_SCHEMA_URL: "https://www.peacprotocol.org/schemas/wire/0.1/peac-receipt.0.1.schema.json";
69
69
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;GAGG;AACH,eAAO,MAAM,aAAa,oBAAY,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,QAAQ,SAAqB,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,mBAAmB,gBAAkB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,mBAAmB,gBAAkB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CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,4BAA4B,OAAyB,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,mBAAmB,yBAAyB,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAG,IAAa,CAAC;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,EAClC,4EAAqF,CAAC"}
package/dist/constants.js CHANGED
@@ -69,5 +69,5 @@ exports.PEAC_DISCOVERY_MAX_BYTES = 2000;
69
69
  *
70
70
  * @since v0.10.0
71
71
  */
72
- exports.PEAC_RECEIPT_SCHEMA_URL = 'https://peacprotocol.org/schemas/wire/0.1/peac-receipt.0.1.schema.json';
72
+ exports.PEAC_RECEIPT_SCHEMA_URL = 'https://www.peacprotocol.org/schemas/wire/0.1/peac-receipt.0.1.schema.json';
73
73
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yCAAgG;AAEhG;;;GAGG;AACU,QAAA,aAAa,GAAG,kBAAS,CAAC;AAEvC;;GAEG;AACU,QAAA,QAAQ,GAAG,mBAAU,CAAC,OAAO,CAAC;AAE3C;;GAEG;AACU,QAAA,mBAAmB,GAAG,gBAAO,CAAC,OAAO,CAAC;AAEnD;;GAEG;AACU,QAAA,mBAAmB,GAAG,gBAAO,CAAC,OAAO,CAAC;AACtC,QAAA,2BAA2B,GAAG,gBAAO,CAAC,cAAc,CAAC;AACrD,QAAA,0BAA0B,GAAG,gBAAO,CAAC,aAAa,CAAC;AAEhE;;;GAGG;AACU,QAAA,gBAAgB,GAAG,eAAM,CAAC,YAAY,CAAC;AAEpD;;GAEG;AACU,QAAA,yBAAyB,GAAG,eAAM,CAAC,YAAY,CAAC;AAE7D;;GAEG;AACU,QAAA,qBAAqB,GAAG,eAAM,CAAC,QAAQ,CAAC;AAErD;;;GAGG;AACU,QAAA,uBAAuB,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