@peac/schema 0.9.31 → 0.10.0
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/agent-identity.d.ts +12 -12
- package/dist/attribution.d.ts +54 -54
- package/dist/constants.d.ts +34 -8
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +34 -8
- package/dist/constants.js.map +1 -1
- package/dist/dispute.d.ts +22 -22
- package/dist/types.d.ts +63 -19
- package/dist/types.d.ts.map +1 -1
- package/dist/validators.d.ts +57 -57
- package/package.json +2 -2
package/dist/validators.d.ts
CHANGED
|
@@ -18,19 +18,19 @@ export declare const NormalizedPayment: z.ZodObject<{
|
|
|
18
18
|
reference: string;
|
|
19
19
|
amount: number;
|
|
20
20
|
currency: string;
|
|
21
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
22
|
+
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
21
23
|
asset?: string | undefined;
|
|
22
24
|
env?: string | undefined;
|
|
23
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
24
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
rail: string;
|
|
27
27
|
reference: string;
|
|
28
28
|
amount: number;
|
|
29
29
|
currency: string;
|
|
30
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
31
|
+
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
30
32
|
asset?: string | undefined;
|
|
31
33
|
env?: string | undefined;
|
|
32
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
33
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
export declare const Subject: z.ZodObject<{
|
|
36
36
|
uri: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -84,16 +84,16 @@ export declare const Extensions: z.ZodObject<{
|
|
|
84
84
|
}>>;
|
|
85
85
|
}, z.ZodUnknown, "strip">>;
|
|
86
86
|
export declare const JWSHeader: z.ZodObject<{
|
|
87
|
-
typ: z.ZodLiteral<"peac
|
|
87
|
+
typ: z.ZodLiteral<"peac-receipt/0.1">;
|
|
88
88
|
alg: z.ZodLiteral<"EdDSA">;
|
|
89
89
|
kid: z.ZodString;
|
|
90
90
|
}, "strict", z.ZodTypeAny, {
|
|
91
|
-
typ: "peac.receipt/0.9";
|
|
92
91
|
alg: "EdDSA";
|
|
92
|
+
typ: "peac-receipt/0.1";
|
|
93
93
|
kid: string;
|
|
94
94
|
}, {
|
|
95
|
-
typ: "peac.receipt/0.9";
|
|
96
95
|
alg: "EdDSA";
|
|
96
|
+
typ: "peac-receipt/0.1";
|
|
97
97
|
kid: string;
|
|
98
98
|
}>;
|
|
99
99
|
export declare const ReceiptClaimsSchema: z.ZodObject<{
|
|
@@ -118,19 +118,19 @@ export declare const ReceiptClaimsSchema: z.ZodObject<{
|
|
|
118
118
|
reference: string;
|
|
119
119
|
amount: number;
|
|
120
120
|
currency: string;
|
|
121
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
122
|
+
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
121
123
|
asset?: string | undefined;
|
|
122
124
|
env?: string | undefined;
|
|
123
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
124
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
rail: string;
|
|
127
127
|
reference: string;
|
|
128
128
|
amount: number;
|
|
129
129
|
currency: string;
|
|
130
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
131
|
+
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
130
132
|
asset?: string | undefined;
|
|
131
133
|
env?: string | undefined;
|
|
132
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
133
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
134
134
|
}>;
|
|
135
135
|
subject: z.ZodOptional<z.ZodObject<{
|
|
136
136
|
uri: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -188,10 +188,10 @@ export declare const ReceiptClaimsSchema: z.ZodObject<{
|
|
|
188
188
|
reference: string;
|
|
189
189
|
amount: number;
|
|
190
190
|
currency: string;
|
|
191
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
192
|
+
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
191
193
|
asset?: string | undefined;
|
|
192
194
|
env?: string | undefined;
|
|
193
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
194
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
195
195
|
};
|
|
196
196
|
exp?: number | undefined;
|
|
197
197
|
subject?: {
|
|
@@ -210,7 +210,7 @@ export declare const ReceiptClaimsSchema: z.ZodObject<{
|
|
|
210
210
|
}>>;
|
|
211
211
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
212
212
|
purpose_declared?: string[] | undefined;
|
|
213
|
-
purpose_enforced?: "
|
|
213
|
+
purpose_enforced?: "inference" | "train" | "search" | "user_action" | "index" | undefined;
|
|
214
214
|
purpose_reason?: "allowed" | "constrained" | "denied" | "downgraded" | "undeclared_default" | "unknown_preserved" | undefined;
|
|
215
215
|
}, {
|
|
216
216
|
iss: string;
|
|
@@ -224,10 +224,10 @@ export declare const ReceiptClaimsSchema: z.ZodObject<{
|
|
|
224
224
|
reference: string;
|
|
225
225
|
amount: number;
|
|
226
226
|
currency: string;
|
|
227
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
228
|
+
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
227
229
|
asset?: string | undefined;
|
|
228
230
|
env?: string | undefined;
|
|
229
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
230
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
231
231
|
};
|
|
232
232
|
exp?: number | undefined;
|
|
233
233
|
subject?: {
|
|
@@ -246,7 +246,7 @@ export declare const ReceiptClaimsSchema: z.ZodObject<{
|
|
|
246
246
|
}>>;
|
|
247
247
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
248
248
|
purpose_declared?: string[] | undefined;
|
|
249
|
-
purpose_enforced?: "
|
|
249
|
+
purpose_enforced?: "inference" | "train" | "search" | "user_action" | "index" | undefined;
|
|
250
250
|
purpose_reason?: "allowed" | "constrained" | "denied" | "downgraded" | "undeclared_default" | "unknown_preserved" | undefined;
|
|
251
251
|
}>;
|
|
252
252
|
/**
|
|
@@ -281,19 +281,19 @@ export declare const ReceiptClaims: z.ZodObject<{
|
|
|
281
281
|
reference: string;
|
|
282
282
|
amount: number;
|
|
283
283
|
currency: string;
|
|
284
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
285
|
+
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
284
286
|
asset?: string | undefined;
|
|
285
287
|
env?: string | undefined;
|
|
286
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
287
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
288
288
|
}, {
|
|
289
289
|
rail: string;
|
|
290
290
|
reference: string;
|
|
291
291
|
amount: number;
|
|
292
292
|
currency: string;
|
|
293
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
294
|
+
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
293
295
|
asset?: string | undefined;
|
|
294
296
|
env?: string | undefined;
|
|
295
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
296
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
297
297
|
}>;
|
|
298
298
|
subject: z.ZodOptional<z.ZodObject<{
|
|
299
299
|
uri: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -351,10 +351,10 @@ export declare const ReceiptClaims: z.ZodObject<{
|
|
|
351
351
|
reference: string;
|
|
352
352
|
amount: number;
|
|
353
353
|
currency: string;
|
|
354
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
355
|
+
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
354
356
|
asset?: string | undefined;
|
|
355
357
|
env?: string | undefined;
|
|
356
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
357
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
358
358
|
};
|
|
359
359
|
exp?: number | undefined;
|
|
360
360
|
subject?: {
|
|
@@ -373,7 +373,7 @@ export declare const ReceiptClaims: z.ZodObject<{
|
|
|
373
373
|
}>>;
|
|
374
374
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
375
375
|
purpose_declared?: string[] | undefined;
|
|
376
|
-
purpose_enforced?: "
|
|
376
|
+
purpose_enforced?: "inference" | "train" | "search" | "user_action" | "index" | undefined;
|
|
377
377
|
purpose_reason?: "allowed" | "constrained" | "denied" | "downgraded" | "undeclared_default" | "unknown_preserved" | undefined;
|
|
378
378
|
}, {
|
|
379
379
|
iss: string;
|
|
@@ -387,10 +387,10 @@ export declare const ReceiptClaims: z.ZodObject<{
|
|
|
387
387
|
reference: string;
|
|
388
388
|
amount: number;
|
|
389
389
|
currency: string;
|
|
390
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
391
|
+
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
390
392
|
asset?: string | undefined;
|
|
391
393
|
env?: string | undefined;
|
|
392
|
-
evidence?: import("@peac/kernel").JsonValue | undefined;
|
|
393
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
394
394
|
};
|
|
395
395
|
exp?: number | undefined;
|
|
396
396
|
subject?: {
|
|
@@ -409,7 +409,7 @@ export declare const ReceiptClaims: z.ZodObject<{
|
|
|
409
409
|
}>>;
|
|
410
410
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
411
411
|
purpose_declared?: string[] | undefined;
|
|
412
|
-
purpose_enforced?: "
|
|
412
|
+
purpose_enforced?: "inference" | "train" | "search" | "user_action" | "index" | undefined;
|
|
413
413
|
purpose_reason?: "allowed" | "constrained" | "denied" | "downgraded" | "undeclared_default" | "unknown_preserved" | undefined;
|
|
414
414
|
}>;
|
|
415
415
|
export declare const VerifyRequest: z.ZodObject<{
|
|
@@ -454,25 +454,25 @@ export declare const ControlStepSchema: z.ZodObject<{
|
|
|
454
454
|
}, "strip", z.ZodTypeAny, {
|
|
455
455
|
engine: string;
|
|
456
456
|
result: "allow" | "deny" | "review";
|
|
457
|
+
evidence_ref?: string | undefined;
|
|
457
458
|
version?: string | undefined;
|
|
458
459
|
policy_id?: string | undefined;
|
|
459
460
|
reason?: string | undefined;
|
|
460
|
-
purpose?: "
|
|
461
|
+
purpose?: "inference" | "train" | "search" | "user_action" | "index" | "crawl" | "ai_input" | "ai_index" | undefined;
|
|
461
462
|
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
462
463
|
scope?: string | string[] | undefined;
|
|
463
464
|
limits_snapshot?: unknown;
|
|
464
|
-
evidence_ref?: string | undefined;
|
|
465
465
|
}, {
|
|
466
466
|
engine: string;
|
|
467
467
|
result: "allow" | "deny" | "review";
|
|
468
|
+
evidence_ref?: string | undefined;
|
|
468
469
|
version?: string | undefined;
|
|
469
470
|
policy_id?: string | undefined;
|
|
470
471
|
reason?: string | undefined;
|
|
471
|
-
purpose?: "
|
|
472
|
+
purpose?: "inference" | "train" | "search" | "user_action" | "index" | "crawl" | "ai_input" | "ai_index" | undefined;
|
|
472
473
|
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
473
474
|
scope?: string | string[] | undefined;
|
|
474
475
|
limits_snapshot?: unknown;
|
|
475
|
-
evidence_ref?: string | undefined;
|
|
476
476
|
}>;
|
|
477
477
|
/**
|
|
478
478
|
* Composable control block - multi-party governance
|
|
@@ -492,25 +492,25 @@ export declare const ControlBlockSchema: z.ZodEffects<z.ZodObject<{
|
|
|
492
492
|
}, "strip", z.ZodTypeAny, {
|
|
493
493
|
engine: string;
|
|
494
494
|
result: "allow" | "deny" | "review";
|
|
495
|
+
evidence_ref?: string | undefined;
|
|
495
496
|
version?: string | undefined;
|
|
496
497
|
policy_id?: string | undefined;
|
|
497
498
|
reason?: string | undefined;
|
|
498
|
-
purpose?: "
|
|
499
|
+
purpose?: "inference" | "train" | "search" | "user_action" | "index" | "crawl" | "ai_input" | "ai_index" | undefined;
|
|
499
500
|
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
500
501
|
scope?: string | string[] | undefined;
|
|
501
502
|
limits_snapshot?: unknown;
|
|
502
|
-
evidence_ref?: string | undefined;
|
|
503
503
|
}, {
|
|
504
504
|
engine: string;
|
|
505
505
|
result: "allow" | "deny" | "review";
|
|
506
|
+
evidence_ref?: string | undefined;
|
|
506
507
|
version?: string | undefined;
|
|
507
508
|
policy_id?: string | undefined;
|
|
508
509
|
reason?: string | undefined;
|
|
509
|
-
purpose?: "
|
|
510
|
+
purpose?: "inference" | "train" | "search" | "user_action" | "index" | "crawl" | "ai_input" | "ai_index" | undefined;
|
|
510
511
|
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
511
512
|
scope?: string | string[] | undefined;
|
|
512
513
|
limits_snapshot?: unknown;
|
|
513
|
-
evidence_ref?: string | undefined;
|
|
514
514
|
}>, "many">;
|
|
515
515
|
decision: z.ZodEnum<["allow", "deny", "review"]>;
|
|
516
516
|
combinator: z.ZodOptional<z.ZodLiteral<"any_can_veto">>;
|
|
@@ -518,14 +518,14 @@ export declare const ControlBlockSchema: z.ZodEffects<z.ZodObject<{
|
|
|
518
518
|
chain: {
|
|
519
519
|
engine: string;
|
|
520
520
|
result: "allow" | "deny" | "review";
|
|
521
|
+
evidence_ref?: string | undefined;
|
|
521
522
|
version?: string | undefined;
|
|
522
523
|
policy_id?: string | undefined;
|
|
523
524
|
reason?: string | undefined;
|
|
524
|
-
purpose?: "
|
|
525
|
+
purpose?: "inference" | "train" | "search" | "user_action" | "index" | "crawl" | "ai_input" | "ai_index" | undefined;
|
|
525
526
|
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
526
527
|
scope?: string | string[] | undefined;
|
|
527
528
|
limits_snapshot?: unknown;
|
|
528
|
-
evidence_ref?: string | undefined;
|
|
529
529
|
}[];
|
|
530
530
|
decision: "allow" | "deny" | "review";
|
|
531
531
|
combinator?: "any_can_veto" | undefined;
|
|
@@ -533,14 +533,14 @@ export declare const ControlBlockSchema: z.ZodEffects<z.ZodObject<{
|
|
|
533
533
|
chain: {
|
|
534
534
|
engine: string;
|
|
535
535
|
result: "allow" | "deny" | "review";
|
|
536
|
+
evidence_ref?: string | undefined;
|
|
536
537
|
version?: string | undefined;
|
|
537
538
|
policy_id?: string | undefined;
|
|
538
539
|
reason?: string | undefined;
|
|
539
|
-
purpose?: "
|
|
540
|
+
purpose?: "inference" | "train" | "search" | "user_action" | "index" | "crawl" | "ai_input" | "ai_index" | undefined;
|
|
540
541
|
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
541
542
|
scope?: string | string[] | undefined;
|
|
542
543
|
limits_snapshot?: unknown;
|
|
543
|
-
evidence_ref?: string | undefined;
|
|
544
544
|
}[];
|
|
545
545
|
decision: "allow" | "deny" | "review";
|
|
546
546
|
combinator?: "any_can_veto" | undefined;
|
|
@@ -548,14 +548,14 @@ export declare const ControlBlockSchema: z.ZodEffects<z.ZodObject<{
|
|
|
548
548
|
chain: {
|
|
549
549
|
engine: string;
|
|
550
550
|
result: "allow" | "deny" | "review";
|
|
551
|
+
evidence_ref?: string | undefined;
|
|
551
552
|
version?: string | undefined;
|
|
552
553
|
policy_id?: string | undefined;
|
|
553
554
|
reason?: string | undefined;
|
|
554
|
-
purpose?: "
|
|
555
|
+
purpose?: "inference" | "train" | "search" | "user_action" | "index" | "crawl" | "ai_input" | "ai_index" | undefined;
|
|
555
556
|
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
556
557
|
scope?: string | string[] | undefined;
|
|
557
558
|
limits_snapshot?: unknown;
|
|
558
|
-
evidence_ref?: string | undefined;
|
|
559
559
|
}[];
|
|
560
560
|
decision: "allow" | "deny" | "review";
|
|
561
561
|
combinator?: "any_can_veto" | undefined;
|
|
@@ -563,14 +563,14 @@ export declare const ControlBlockSchema: z.ZodEffects<z.ZodObject<{
|
|
|
563
563
|
chain: {
|
|
564
564
|
engine: string;
|
|
565
565
|
result: "allow" | "deny" | "review";
|
|
566
|
+
evidence_ref?: string | undefined;
|
|
566
567
|
version?: string | undefined;
|
|
567
568
|
policy_id?: string | undefined;
|
|
568
569
|
reason?: string | undefined;
|
|
569
|
-
purpose?: "
|
|
570
|
+
purpose?: "inference" | "train" | "search" | "user_action" | "index" | "crawl" | "ai_input" | "ai_index" | undefined;
|
|
570
571
|
licensing_mode?: "subscription" | "pay_per_crawl" | "pay_per_inference" | undefined;
|
|
571
572
|
scope?: string | string[] | undefined;
|
|
572
573
|
limits_snapshot?: unknown;
|
|
573
|
-
evidence_ref?: string | undefined;
|
|
574
574
|
}[];
|
|
575
575
|
decision: "allow" | "deny" | "review";
|
|
576
576
|
combinator?: "any_can_veto" | undefined;
|
|
@@ -618,34 +618,34 @@ export declare const PaymentSplitSchema: z.ZodEffects<z.ZodObject<{
|
|
|
618
618
|
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, z.ZodTypeDef, import("@peac/kernel").JsonObject>>;
|
|
619
619
|
}, "strict", z.ZodTypeAny, {
|
|
620
620
|
party: string;
|
|
621
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
621
622
|
rail?: string | undefined;
|
|
622
623
|
amount?: number | undefined;
|
|
623
624
|
currency?: string | undefined;
|
|
624
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
625
625
|
share?: number | undefined;
|
|
626
626
|
account_ref?: string | undefined;
|
|
627
627
|
}, {
|
|
628
628
|
party: string;
|
|
629
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
629
630
|
rail?: string | undefined;
|
|
630
631
|
amount?: number | undefined;
|
|
631
632
|
currency?: string | undefined;
|
|
632
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
633
633
|
share?: number | undefined;
|
|
634
634
|
account_ref?: string | undefined;
|
|
635
635
|
}>, {
|
|
636
636
|
party: string;
|
|
637
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
637
638
|
rail?: string | undefined;
|
|
638
639
|
amount?: number | undefined;
|
|
639
640
|
currency?: string | undefined;
|
|
640
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
641
641
|
share?: number | undefined;
|
|
642
642
|
account_ref?: string | undefined;
|
|
643
643
|
}, {
|
|
644
644
|
party: string;
|
|
645
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
645
646
|
rail?: string | undefined;
|
|
646
647
|
amount?: number | undefined;
|
|
647
648
|
currency?: string | undefined;
|
|
648
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
649
649
|
share?: number | undefined;
|
|
650
650
|
account_ref?: string | undefined;
|
|
651
651
|
}>;
|
|
@@ -692,76 +692,76 @@ export declare const PaymentEvidenceSchema: z.ZodObject<{
|
|
|
692
692
|
metadata: z.ZodOptional<z.ZodType<import("@peac/kernel").JsonObject, z.ZodTypeDef, import("@peac/kernel").JsonObject>>;
|
|
693
693
|
}, "strict", z.ZodTypeAny, {
|
|
694
694
|
party: string;
|
|
695
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
695
696
|
rail?: string | undefined;
|
|
696
697
|
amount?: number | undefined;
|
|
697
698
|
currency?: string | undefined;
|
|
698
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
699
699
|
share?: number | undefined;
|
|
700
700
|
account_ref?: string | undefined;
|
|
701
701
|
}, {
|
|
702
702
|
party: string;
|
|
703
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
703
704
|
rail?: string | undefined;
|
|
704
705
|
amount?: number | undefined;
|
|
705
706
|
currency?: string | undefined;
|
|
706
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
707
707
|
share?: number | undefined;
|
|
708
708
|
account_ref?: string | undefined;
|
|
709
709
|
}>, {
|
|
710
710
|
party: string;
|
|
711
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
711
712
|
rail?: string | undefined;
|
|
712
713
|
amount?: number | undefined;
|
|
713
714
|
currency?: string | undefined;
|
|
714
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
715
715
|
share?: number | undefined;
|
|
716
716
|
account_ref?: string | undefined;
|
|
717
717
|
}, {
|
|
718
718
|
party: string;
|
|
719
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
719
720
|
rail?: string | undefined;
|
|
720
721
|
amount?: number | undefined;
|
|
721
722
|
currency?: string | undefined;
|
|
722
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
723
723
|
share?: number | undefined;
|
|
724
724
|
account_ref?: string | undefined;
|
|
725
725
|
}>, "many">>;
|
|
726
726
|
routing: z.ZodOptional<z.ZodEnum<["direct", "callback", "role"]>>;
|
|
727
727
|
}, "strict", z.ZodTypeAny, {
|
|
728
|
+
evidence: import("@peac/kernel").JsonValue;
|
|
728
729
|
rail: string;
|
|
729
730
|
reference: string;
|
|
730
731
|
amount: number;
|
|
731
732
|
currency: string;
|
|
732
733
|
asset: string;
|
|
733
734
|
env: "live" | "test";
|
|
734
|
-
evidence: import("@peac/kernel").JsonValue;
|
|
735
735
|
network?: string | undefined;
|
|
736
736
|
facilitator_ref?: string | undefined;
|
|
737
737
|
aggregator?: string | undefined;
|
|
738
738
|
splits?: {
|
|
739
739
|
party: string;
|
|
740
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
740
741
|
rail?: string | undefined;
|
|
741
742
|
amount?: number | undefined;
|
|
742
743
|
currency?: string | undefined;
|
|
743
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
744
744
|
share?: number | undefined;
|
|
745
745
|
account_ref?: string | undefined;
|
|
746
746
|
}[] | undefined;
|
|
747
747
|
routing?: "direct" | "callback" | "role" | undefined;
|
|
748
748
|
}, {
|
|
749
|
+
evidence: import("@peac/kernel").JsonValue;
|
|
749
750
|
rail: string;
|
|
750
751
|
reference: string;
|
|
751
752
|
amount: number;
|
|
752
753
|
currency: string;
|
|
753
754
|
asset: string;
|
|
754
755
|
env: "live" | "test";
|
|
755
|
-
evidence: import("@peac/kernel").JsonValue;
|
|
756
756
|
network?: string | undefined;
|
|
757
757
|
facilitator_ref?: string | undefined;
|
|
758
758
|
aggregator?: string | undefined;
|
|
759
759
|
splits?: {
|
|
760
760
|
party: string;
|
|
761
|
+
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
761
762
|
rail?: string | undefined;
|
|
762
763
|
amount?: number | undefined;
|
|
763
764
|
currency?: string | undefined;
|
|
764
|
-
metadata?: import("@peac/kernel").JsonObject | undefined;
|
|
765
765
|
share?: number | undefined;
|
|
766
766
|
account_ref?: string | undefined;
|
|
767
767
|
}[] | undefined;
|
|
@@ -867,17 +867,17 @@ export declare const AttestationSchema: z.ZodObject<{
|
|
|
867
867
|
ref: z.ZodOptional<z.ZodString>;
|
|
868
868
|
evidence: z.ZodType<import("@peac/kernel").JsonValue, z.ZodTypeDef, import("@peac/kernel").JsonValue>;
|
|
869
869
|
}, "strict", z.ZodTypeAny, {
|
|
870
|
-
evidence: import("@peac/kernel").JsonValue;
|
|
871
870
|
type: string;
|
|
872
871
|
issuer: string;
|
|
873
872
|
issued_at: string;
|
|
873
|
+
evidence: import("@peac/kernel").JsonValue;
|
|
874
874
|
expires_at?: string | undefined;
|
|
875
875
|
ref?: string | undefined;
|
|
876
876
|
}, {
|
|
877
|
-
evidence: import("@peac/kernel").JsonValue;
|
|
878
877
|
type: string;
|
|
879
878
|
issuer: string;
|
|
880
879
|
issued_at: string;
|
|
880
|
+
evidence: import("@peac/kernel").JsonValue;
|
|
881
881
|
expires_at?: string | undefined;
|
|
882
882
|
ref?: string | undefined;
|
|
883
883
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peac/schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "PEAC Protocol JSON schemas, OpenAPI specs, and TypeScript types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"zod": "^3.22.4",
|
|
27
|
-
"@peac/kernel": "0.
|
|
27
|
+
"@peac/kernel": "0.10.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^20.10.0",
|