@ixo/topic-protocol 0.7.0 → 0.8.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.
Files changed (37) hide show
  1. package/README.md +4 -2
  2. package/dist/schemas/action-receipt.schema.json +105 -11
  3. package/dist/schemas/decision-to-pay-template.schema.json +346 -0
  4. package/dist/schemas/payable-obligation.schema.json +312 -0
  5. package/dist/schemas/payment-terms.schema.json +287 -0
  6. package/dist/schemas/topic-action-request.schema.json +30 -0
  7. package/dist/schemas/topic-contract-state.schema.json +29 -3
  8. package/dist/schemas/topic-flow-binding.schema.json +28 -0
  9. package/dist/schemas/topic-kind-profile.schema.json +32 -2
  10. package/dist/schemas/topic-operation.schema.json +2 -2
  11. package/dist/src/action-runtime/types.d.ts +101 -0
  12. package/dist/src/action-runtime/types.js +12 -0
  13. package/dist/src/action-runtime/types.js.map +1 -0
  14. package/dist/src/contracts/schemas.d.ts +2608 -463
  15. package/dist/src/contracts/schemas.js +10 -0
  16. package/dist/src/contracts/schemas.js.map +1 -1
  17. package/dist/src/contracts/topic-contract.d.ts +8 -1
  18. package/dist/src/contracts/topic-contract.js.map +1 -1
  19. package/dist/src/contracts/topic-kind-profile.d.ts +29 -0
  20. package/dist/src/contracts/topic-kind-profile.js +31 -0
  21. package/dist/src/contracts/topic-kind-profile.js.map +1 -1
  22. package/dist/src/index.d.ts +2 -1
  23. package/dist/src/index.js +2 -1
  24. package/dist/src/index.js.map +1 -1
  25. package/dist/src/projector/payload.d.ts +18 -0
  26. package/dist/src/projector/payload.js +57 -1
  27. package/dist/src/projector/payload.js.map +1 -1
  28. package/dist/src/projector/state.js +144 -0
  29. package/dist/src/projector/state.js.map +1 -1
  30. package/dist/src/projector/types.d.ts +13 -3
  31. package/dist/src/projector/types.js.map +1 -1
  32. package/package.json +4 -2
  33. package/templates/decision-to-pay/README.md +59 -0
  34. package/templates/decision-to-pay/milestone-payment-release.template.json +195 -0
  35. package/templates/decision-to-pay/outcome-payment-claim.template.json +198 -0
  36. package/templates/decision-to-pay/payment-on-delivery.template.json +198 -0
  37. package/templates/decision-to-pay/verified-work-payment.template.json +283 -0
@@ -4,41 +4,258 @@ export declare const SCHEMA_REGISTRY: Readonly<{
4
4
  $id: string;
5
5
  title: string;
6
6
  type: string;
7
- required: string[];
8
- properties: {
9
- receiptId: {
10
- type: string;
11
- minLength: number;
12
- };
7
+ required: never[];
8
+ properties: {};
9
+ oneOf: {
10
+ $ref: string;
11
+ }[];
12
+ $defs: {
13
13
  topicId: {
14
14
  type: string;
15
15
  pattern: string;
16
16
  };
17
- action: {
18
- type: string;
19
- minLength: number;
20
- };
21
- actor: {
22
- type: string;
23
- minLength: number;
24
- };
25
- status: {
17
+ digest: {
26
18
  type: string;
27
- enum: string[];
19
+ pattern: string;
28
20
  };
29
- idempotencyKey: {
21
+ reference: {
30
22
  type: string;
31
- minLength: number;
23
+ required: string[];
24
+ properties: {
25
+ digest: {
26
+ $ref: string;
27
+ };
28
+ ref: {
29
+ type: string;
30
+ minLength: number;
31
+ };
32
+ summary: {
33
+ type: string;
34
+ maxProperties: number;
35
+ };
36
+ };
37
+ additionalProperties: boolean;
32
38
  };
33
- createdAt: {
39
+ v1: {
34
40
  type: string;
35
- format: string;
41
+ required: string[];
42
+ properties: {
43
+ receiptId: {
44
+ type: string;
45
+ minLength: number;
46
+ };
47
+ topicId: {
48
+ $ref: string;
49
+ };
50
+ action: {
51
+ type: string;
52
+ minLength: number;
53
+ };
54
+ actor: {
55
+ type: string;
56
+ minLength: number;
57
+ };
58
+ status: {
59
+ enum: string[];
60
+ };
61
+ idempotencyKey: {
62
+ type: string;
63
+ minLength: number;
64
+ };
65
+ createdAt: {
66
+ type: string;
67
+ format: string;
68
+ };
69
+ capability: {
70
+ type: string;
71
+ };
72
+ };
73
+ additionalProperties: boolean;
36
74
  };
37
- capability: {
75
+ v2: {
38
76
  type: string;
77
+ required: string[];
78
+ properties: {
79
+ version: {
80
+ const: number;
81
+ };
82
+ receiptId: {
83
+ type: string;
84
+ minLength: number;
85
+ };
86
+ sequence: {
87
+ type: string;
88
+ minimum: number;
89
+ };
90
+ requestId: {
91
+ type: string;
92
+ minLength: number;
93
+ };
94
+ topicId: {
95
+ $ref: string;
96
+ };
97
+ topicRevision: {
98
+ type: string;
99
+ minLength: number;
100
+ };
101
+ action: {
102
+ type: string;
103
+ required: string[];
104
+ properties: {
105
+ type: {
106
+ type: string;
107
+ pattern: string;
108
+ };
109
+ can: {
110
+ type: string;
111
+ minLength: number;
112
+ };
113
+ registryVersion: {
114
+ type: string;
115
+ minLength: number;
116
+ };
117
+ contractDigest: {
118
+ $ref: string;
119
+ };
120
+ };
121
+ additionalProperties: boolean;
122
+ };
123
+ runtime: {
124
+ type: string;
125
+ required: string[];
126
+ properties: {
127
+ provider: {
128
+ enum: string[];
129
+ };
130
+ bindingId: {
131
+ type: string;
132
+ minLength: number;
133
+ };
134
+ flowUri: {
135
+ type: string;
136
+ minLength: number;
137
+ };
138
+ sessionRunId: {
139
+ type: string;
140
+ minLength: number;
141
+ };
142
+ nodeId: {
143
+ type: string;
144
+ minLength: number;
145
+ };
146
+ executionId: {
147
+ type: string;
148
+ minLength: number;
149
+ };
150
+ };
151
+ additionalProperties: boolean;
152
+ };
153
+ actorDid: {
154
+ type: string;
155
+ pattern: string;
156
+ };
157
+ executorDid: {
158
+ type: string;
159
+ pattern: string;
160
+ };
161
+ status: {
162
+ enum: string[];
163
+ };
164
+ idempotencyKey: {
165
+ type: string;
166
+ minLength: number;
167
+ };
168
+ occurredAt: {
169
+ type: string;
170
+ format: string;
171
+ };
172
+ authorization: {
173
+ type: string;
174
+ required: string[];
175
+ properties: {
176
+ capability: {
177
+ type: string;
178
+ minLength: number;
179
+ };
180
+ invocation: {
181
+ type: string;
182
+ minLength: number;
183
+ };
184
+ confirmation: {
185
+ type: string;
186
+ minLength: number;
187
+ };
188
+ };
189
+ additionalProperties: boolean;
190
+ };
191
+ input: {
192
+ $ref: string;
193
+ };
194
+ output: {
195
+ $ref: string;
196
+ };
197
+ proof: {
198
+ type: string;
199
+ required: string[];
200
+ properties: {
201
+ kind: {
202
+ enum: string[];
203
+ };
204
+ digest: {
205
+ $ref: string;
206
+ };
207
+ refs: {
208
+ type: string;
209
+ uniqueItems: boolean;
210
+ maxItems: number;
211
+ items: {
212
+ type: string;
213
+ minLength: number;
214
+ };
215
+ };
216
+ };
217
+ additionalProperties: boolean;
218
+ };
219
+ evidenceRefs: {
220
+ type: string;
221
+ uniqueItems: boolean;
222
+ maxItems: number;
223
+ items: {
224
+ type: string;
225
+ minLength: number;
226
+ };
227
+ };
228
+ traceRef: {
229
+ type: string;
230
+ minLength: number;
231
+ };
232
+ error: {
233
+ type: string;
234
+ required: string[];
235
+ properties: {
236
+ code: {
237
+ type: string;
238
+ maxLength: number;
239
+ };
240
+ message: {
241
+ type: string;
242
+ maxLength: number;
243
+ };
244
+ };
245
+ additionalProperties: boolean;
246
+ };
247
+ issuerDid: {
248
+ type: string;
249
+ pattern: string;
250
+ };
251
+ signature: {
252
+ type: string;
253
+ minLength: number;
254
+ };
255
+ };
256
+ additionalProperties: boolean;
39
257
  };
40
258
  };
41
- additionalProperties: boolean;
42
259
  };
43
260
  "agent-run": {
44
261
  $schema: string;
@@ -313,353 +530,561 @@ export declare const SCHEMA_REGISTRY: Readonly<{
313
530
  };
314
531
  additionalProperties: boolean;
315
532
  };
316
- "delivery-decision": {
533
+ "decision-to-pay-template": {
317
534
  $schema: string;
318
535
  $id: string;
319
536
  title: string;
320
537
  type: string;
321
538
  required: string[];
322
539
  properties: {
540
+ $schema: {
541
+ type: string;
542
+ minLength: number;
543
+ };
323
544
  version: {
324
545
  const: number;
325
546
  };
326
- decisionId: {
327
- $ref: string;
547
+ id: {
548
+ type: string;
549
+ pattern: string;
328
550
  };
329
- topicId: {
330
- $ref: string;
551
+ templateVersion: {
552
+ type: string;
553
+ pattern: string;
331
554
  };
332
- deliveryPacketId: {
555
+ label: {
556
+ type: string;
557
+ minLength: number;
558
+ maxLength: number;
559
+ };
560
+ description: {
561
+ type: string;
562
+ minLength: number;
563
+ maxLength: number;
564
+ };
565
+ maturity: {
566
+ enum: string[];
567
+ };
568
+ compatibility: {
333
569
  $ref: string;
334
570
  };
335
- deliveryPacketDigest: {
571
+ topic: {
336
572
  $ref: string;
337
573
  };
338
- decision: {
339
- enum: string[];
574
+ topology: {
575
+ $ref: string;
340
576
  };
341
- reasons: {
577
+ actors: {
342
578
  type: string;
343
579
  minItems: number;
344
580
  items: {
345
- type: string;
346
- minLength: number;
347
- maxLength: number;
581
+ $ref: string;
348
582
  };
349
583
  };
350
- decidedBy: {
584
+ resources: {
351
585
  type: string;
352
- pattern: string;
586
+ minItems: number;
587
+ items: {
588
+ $ref: string;
589
+ };
353
590
  };
354
- decidedAt: {
591
+ protocolContracts: {
355
592
  type: string;
356
- format: string;
593
+ minItems: number;
594
+ items: {
595
+ $ref: string;
596
+ };
357
597
  };
358
- capability: {
598
+ operations: {
359
599
  type: string;
360
- minLength: number;
361
- };
362
- digest: {
600
+ minItems: number;
601
+ uniqueItems: boolean;
602
+ items: {
603
+ $ref: string;
604
+ };
605
+ };
606
+ gates: {
607
+ type: string;
608
+ minItems: number;
609
+ items: {
610
+ $ref: string;
611
+ };
612
+ };
613
+ settlement: {
614
+ $ref: string;
615
+ };
616
+ privacy: {
363
617
  $ref: string;
364
618
  };
619
+ acceptanceCriteria: {
620
+ type: string;
621
+ minItems: number;
622
+ items: {
623
+ $ref: string;
624
+ };
625
+ };
365
626
  extensions: {
366
627
  type: string;
367
628
  };
368
629
  };
630
+ additionalProperties: boolean;
369
631
  $defs: {
370
- uuidV7: {
632
+ digest: {
371
633
  type: string;
372
634
  pattern: string;
373
635
  };
374
- topicId: {
636
+ did: {
375
637
  type: string;
376
638
  pattern: string;
377
639
  };
378
- digest: {
640
+ jsonPointer: {
379
641
  type: string;
380
642
  pattern: string;
381
643
  };
382
- };
383
- additionalProperties: boolean;
384
- allOf: {
385
- if: {
644
+ compatibility: {
645
+ type: string;
646
+ required: string[];
386
647
  properties: {
387
- decision: {
648
+ protocolPackage: {
649
+ const: string;
650
+ };
651
+ protocolVersion: {
652
+ const: string;
653
+ };
654
+ sourceCommit: {
655
+ type: string;
656
+ pattern: string;
657
+ };
658
+ implementationStatus: {
388
659
  enum: string[];
389
660
  };
390
- };
391
- required: string[];
392
- };
393
- then: {
394
- properties: {
395
- reasons: {
661
+ requiredExtensions: {
396
662
  type: string;
397
- minItems: number;
663
+ uniqueItems: boolean;
664
+ items: {
665
+ type: string;
666
+ minLength: number;
667
+ };
668
+ };
669
+ constraints: {
670
+ type: string;
671
+ items: {
672
+ type: string;
673
+ minLength: number;
674
+ };
398
675
  };
399
676
  };
400
- required: string[];
401
- };
402
- }[];
403
- };
404
- "delivery-packet": {
405
- $schema: string;
406
- $id: string;
407
- title: string;
408
- type: string;
409
- required: string[];
410
- properties: {
411
- version: {
412
- const: number;
413
- };
414
- deliveryPacketId: {
415
- $ref: string;
416
- };
417
- sequence: {
418
- type: string;
419
- minimum: number;
677
+ additionalProperties: boolean;
420
678
  };
421
- topicId: {
422
- $ref: string;
679
+ persistedKind: {
680
+ enum: string[];
423
681
  };
424
- bindingId: {
425
- $ref: string;
682
+ recipe: {
683
+ enum: string[];
426
684
  };
427
- supersedes: {
428
- $ref: string;
685
+ kindRef: {
686
+ oneOf: ({
687
+ type: string;
688
+ required: string[];
689
+ properties: {
690
+ source: {
691
+ const: string;
692
+ };
693
+ kind: {
694
+ $ref: string;
695
+ };
696
+ customId?: never;
697
+ label?: never;
698
+ baseKind?: never;
699
+ };
700
+ additionalProperties: boolean;
701
+ } | {
702
+ type: string;
703
+ required: string[];
704
+ properties: {
705
+ source: {
706
+ const: string;
707
+ };
708
+ customId: {
709
+ type: string;
710
+ pattern: string;
711
+ };
712
+ label: {
713
+ type: string;
714
+ minLength: number;
715
+ maxLength: number;
716
+ };
717
+ baseKind: {
718
+ $ref: string;
719
+ };
720
+ kind?: never;
721
+ };
722
+ additionalProperties: boolean;
723
+ })[];
429
724
  };
430
- contract: {
725
+ kindProfile: {
431
726
  type: string;
432
727
  required: string[];
433
728
  properties: {
434
- revision: {
729
+ id: {
730
+ type: string;
731
+ format: string;
732
+ };
733
+ version: {
435
734
  type: string;
436
735
  minLength: number;
437
736
  };
737
+ schema: {
738
+ type: string;
739
+ format: string;
740
+ };
438
741
  digest: {
439
742
  $ref: string;
440
743
  };
441
- status: {
442
- const: string;
443
- };
444
744
  };
445
745
  additionalProperties: boolean;
446
746
  };
447
- workItemSnapshot: {
747
+ topic: {
448
748
  type: string;
449
749
  required: string[];
450
750
  properties: {
451
- snapshotId: {
751
+ primaryRole: {
752
+ enum: string[];
753
+ };
754
+ kindRef: {
452
755
  $ref: string;
453
756
  };
454
- ref: {
455
- type: string;
456
- format: string;
757
+ kindProfile: {
758
+ $ref: string;
457
759
  };
458
- digest: {
760
+ recipe: {
459
761
  $ref: string;
460
762
  };
763
+ workingMode: {
764
+ enum: string[];
765
+ };
766
+ temporalMode: {
767
+ enum: string[];
768
+ };
769
+ acceptance: {
770
+ type: string;
771
+ required: string[];
772
+ properties: {
773
+ requiredTopicContractPaths: {
774
+ type: string;
775
+ uniqueItems: boolean;
776
+ items: {
777
+ $ref: string;
778
+ };
779
+ };
780
+ allowHonestDraft: {
781
+ const: boolean;
782
+ };
783
+ };
784
+ additionalProperties: boolean;
785
+ };
786
+ lifecyclePolicy: {
787
+ type: string;
788
+ required: string[];
789
+ properties: {
790
+ separateTopicContractOutcomeAxes: {
791
+ const: boolean;
792
+ };
793
+ resolveRule: {
794
+ type: string;
795
+ minLength: number;
796
+ };
797
+ waitingRule: {
798
+ type: string;
799
+ minLength: number;
800
+ };
801
+ };
802
+ additionalProperties: boolean;
803
+ };
461
804
  };
462
805
  additionalProperties: boolean;
463
806
  };
464
- deliverables: {
465
- type: string;
466
- minItems: number;
467
- items: {
468
- $ref: string;
469
- };
470
- };
471
- evidence: {
472
- type: string;
473
- items: {
474
- $ref: string;
475
- };
476
- };
477
- traces: {
478
- type: string;
479
- items: {
480
- $ref: string;
481
- };
482
- };
483
- paymentTerms: {
807
+ topology: {
484
808
  type: string;
485
809
  required: string[];
486
810
  properties: {
487
- ref: {
811
+ requiresParentTopic: {
488
812
  type: string;
489
- format: string;
490
813
  };
491
- digest: {
814
+ parentBaseKind: {
492
815
  $ref: string;
493
816
  };
817
+ relation: {
818
+ enum: string[];
819
+ };
820
+ onePayableUnitPerTopic: {
821
+ type: string;
822
+ };
494
823
  };
495
824
  additionalProperties: boolean;
496
825
  };
497
- submittedBy: {
498
- type: string;
499
- pattern: string;
500
- };
501
- submittedAt: {
502
- type: string;
503
- format: string;
504
- };
505
- capability: {
506
- type: string;
507
- minLength: number;
508
- };
509
- status: {
510
- const: string;
511
- };
512
- digest: {
513
- $ref: string;
514
- };
515
- extensions: {
516
- type: string;
517
- };
518
- };
519
- $defs: {
520
- uuidV7: {
521
- type: string;
522
- pattern: string;
523
- };
524
- topicId: {
525
- type: string;
526
- pattern: string;
527
- };
528
- digest: {
529
- type: string;
530
- pattern: string;
531
- };
532
- artifact: {
826
+ actor: {
533
827
  type: string;
534
828
  required: string[];
535
829
  properties: {
536
- type: {
830
+ role: {
831
+ type: string;
832
+ pattern: string;
833
+ };
834
+ label: {
537
835
  type: string;
538
836
  minLength: number;
539
837
  };
540
- uri: {
838
+ required: {
541
839
  type: string;
542
- format: string;
543
840
  };
544
- digest: {
545
- $ref: string;
841
+ identity: {
842
+ const: string;
546
843
  };
547
- label: {
844
+ capabilities: {
548
845
  type: string;
549
- minLength: number;
846
+ uniqueItems: boolean;
847
+ items: {
848
+ type: string;
849
+ minLength: number;
850
+ };
550
851
  };
551
- mediaType: {
852
+ constraints: {
552
853
  type: string;
553
- minLength: number;
854
+ items: {
855
+ type: string;
856
+ minLength: number;
857
+ };
554
858
  };
555
859
  };
556
860
  additionalProperties: boolean;
557
861
  };
558
- evidence: {
862
+ resource: {
559
863
  type: string;
560
864
  required: string[];
561
865
  properties: {
866
+ role: {
867
+ type: string;
868
+ pattern: string;
869
+ };
562
870
  type: {
563
871
  type: string;
564
872
  minLength: number;
565
873
  };
566
- uri: {
874
+ required: {
567
875
  type: string;
568
- format: string;
569
876
  };
570
- digest: {
571
- $ref: string;
877
+ binding: {
878
+ enum: string[];
572
879
  };
573
- provenanceClass: {
880
+ authority: {
574
881
  enum: string[];
575
882
  };
576
- label: {
883
+ availability: {
884
+ enum: string[];
885
+ };
886
+ schemaRef: {
887
+ type: string;
888
+ format: string;
889
+ };
890
+ confidentiality: {
891
+ enum: string[];
892
+ };
893
+ notes: {
577
894
  type: string;
578
895
  minLength: number;
579
896
  };
580
897
  };
581
898
  additionalProperties: boolean;
582
899
  };
583
- };
584
- additionalProperties: boolean;
585
- };
586
- "evaluation-assertion": {
587
- $schema: string;
588
- $id: string;
589
- title: string;
590
- type: string;
591
- required: string[];
592
- properties: {
593
- version: {
594
- const: number;
595
- };
596
- evaluationId: {
597
- $ref: string;
598
- };
599
- topicId: {
600
- $ref: string;
900
+ protocolContract: {
901
+ type: string;
902
+ required: string[];
903
+ properties: {
904
+ name: {
905
+ type: string;
906
+ pattern: string;
907
+ };
908
+ source: {
909
+ enum: string[];
910
+ };
911
+ schemaRef: {
912
+ type: string;
913
+ format: string;
914
+ };
915
+ required: {
916
+ type: string;
917
+ };
918
+ };
919
+ additionalProperties: boolean;
601
920
  };
602
- deliveryPacketId: {
603
- $ref: string;
921
+ topicOperation: {
922
+ enum: string[];
604
923
  };
605
- deliveryPacketDigest: {
606
- $ref: string;
924
+ gateCondition: {
925
+ type: string;
926
+ required: string[];
927
+ properties: {
928
+ contract: {
929
+ enum: string[];
930
+ };
931
+ path: {
932
+ $ref: string;
933
+ };
934
+ operator: {
935
+ enum: string[];
936
+ };
937
+ value: {};
938
+ };
939
+ additionalProperties: boolean;
607
940
  };
608
- rubric: {
941
+ gate: {
609
942
  type: string;
610
943
  required: string[];
611
944
  properties: {
612
945
  id: {
613
946
  type: string;
614
- minLength: number;
947
+ pattern: string;
615
948
  };
616
- version: {
949
+ stage: {
950
+ enum: string[];
951
+ };
952
+ description: {
617
953
  type: string;
618
954
  minLength: number;
619
955
  };
620
- ref: {
956
+ all: {
621
957
  type: string;
622
- format: string;
958
+ minItems: number;
959
+ items: {
960
+ $ref: string;
961
+ };
623
962
  };
624
- digest: {
625
- $ref: string;
963
+ onFailure: {
964
+ enum: string[];
626
965
  };
627
- governanceStatus: {
966
+ };
967
+ additionalProperties: boolean;
968
+ };
969
+ settlement: {
970
+ type: string;
971
+ required: string[];
972
+ properties: {
973
+ movesFunds: {
974
+ const: boolean;
975
+ };
976
+ requiresExternalAdapter: {
977
+ const: boolean;
978
+ };
979
+ failClosed: {
980
+ const: boolean;
981
+ };
982
+ requiredAxes: {
983
+ type: string;
984
+ minItems: number;
985
+ uniqueItems: boolean;
986
+ items: {
987
+ enum: string[];
988
+ };
989
+ };
990
+ exactMatchFields: {
991
+ type: string;
992
+ minItems: number;
993
+ uniqueItems: boolean;
994
+ items: {
995
+ enum: string[];
996
+ };
997
+ };
998
+ terminalState: {
628
999
  const: string;
629
1000
  };
630
1001
  };
631
1002
  additionalProperties: boolean;
632
1003
  };
633
- evidenceDigests: {
1004
+ privacy: {
634
1005
  type: string;
635
- uniqueItems: boolean;
636
- items: {
637
- $ref: string;
1006
+ required: string[];
1007
+ properties: {
1008
+ topicIsConfidentialityBoundary: {
1009
+ const: boolean;
1010
+ };
1011
+ topicCapabilityGrantsVfsAccess: {
1012
+ const: boolean;
1013
+ };
1014
+ sensitiveResourceStorage: {
1015
+ const: string;
1016
+ };
1017
+ minimumRoomVisibleFields: {
1018
+ type: string;
1019
+ uniqueItems: boolean;
1020
+ items: {
1021
+ type: string;
1022
+ minLength: number;
1023
+ };
1024
+ };
638
1025
  };
1026
+ additionalProperties: boolean;
639
1027
  };
640
- traceDigests: {
1028
+ acceptanceCriterion: {
641
1029
  type: string;
642
- uniqueItems: boolean;
643
- items: {
644
- $ref: string;
1030
+ required: string[];
1031
+ properties: {
1032
+ id: {
1033
+ type: string;
1034
+ pattern: string;
1035
+ };
1036
+ statement: {
1037
+ type: string;
1038
+ minLength: number;
1039
+ };
1040
+ verification: {
1041
+ type: string;
1042
+ minLength: number;
1043
+ };
645
1044
  };
1045
+ additionalProperties: boolean;
646
1046
  };
647
- outcome: {
648
- enum: string[];
1047
+ };
1048
+ };
1049
+ "delivery-decision": {
1050
+ $schema: string;
1051
+ $id: string;
1052
+ title: string;
1053
+ type: string;
1054
+ required: string[];
1055
+ properties: {
1056
+ version: {
1057
+ const: number;
649
1058
  };
650
- confidence: {
651
- type: string;
652
- minimum: number;
653
- maximum: number;
1059
+ decisionId: {
1060
+ $ref: string;
654
1061
  };
655
- result: {
1062
+ topicId: {
1063
+ $ref: string;
1064
+ };
1065
+ deliveryPacketId: {
1066
+ $ref: string;
1067
+ };
1068
+ deliveryPacketDigest: {
1069
+ $ref: string;
1070
+ };
1071
+ decision: {
1072
+ enum: string[];
1073
+ };
1074
+ reasons: {
656
1075
  type: string;
1076
+ minItems: number;
1077
+ items: {
1078
+ type: string;
1079
+ minLength: number;
1080
+ maxLength: number;
1081
+ };
657
1082
  };
658
- evaluatorDid: {
1083
+ decidedBy: {
659
1084
  type: string;
660
1085
  pattern: string;
661
1086
  };
662
- evaluatedAt: {
1087
+ decidedAt: {
663
1088
  type: string;
664
1089
  format: string;
665
1090
  };
@@ -667,25 +1092,6 @@ export declare const SCHEMA_REGISTRY: Readonly<{
667
1092
  type: string;
668
1093
  minLength: number;
669
1094
  };
670
- signature: {
671
- type: string;
672
- required: string[];
673
- properties: {
674
- type: {
675
- type: string;
676
- minLength: number;
677
- };
678
- verificationMethod: {
679
- type: string;
680
- format: string;
681
- };
682
- value: {
683
- type: string;
684
- minLength: number;
685
- };
686
- };
687
- additionalProperties: boolean;
688
- };
689
1095
  digest: {
690
1096
  $ref: string;
691
1097
  };
@@ -708,213 +1114,137 @@ export declare const SCHEMA_REGISTRY: Readonly<{
708
1114
  };
709
1115
  };
710
1116
  additionalProperties: boolean;
1117
+ allOf: {
1118
+ if: {
1119
+ properties: {
1120
+ decision: {
1121
+ enum: string[];
1122
+ };
1123
+ };
1124
+ required: string[];
1125
+ };
1126
+ then: {
1127
+ properties: {
1128
+ reasons: {
1129
+ type: string;
1130
+ minItems: number;
1131
+ };
1132
+ };
1133
+ required: string[];
1134
+ };
1135
+ }[];
711
1136
  };
712
- "external-session-binding": {
1137
+ "delivery-packet": {
713
1138
  $schema: string;
714
1139
  $id: string;
715
1140
  title: string;
716
1141
  type: string;
717
1142
  required: string[];
718
1143
  properties: {
719
- bindingId: {
720
- type: string;
721
- minLength: number;
1144
+ version: {
1145
+ const: number;
722
1146
  };
723
- topicId: {
724
- type: string;
725
- pattern: string;
726
- };
727
- provider: {
728
- type: string;
729
- minLength: number;
730
- };
731
- sessionReference: {
732
- type: string;
733
- minLength: number;
734
- };
735
- actor: {
736
- type: string;
737
- minLength: number;
738
- };
739
- createdAt: {
740
- type: string;
741
- format: string;
1147
+ deliveryPacketId: {
1148
+ $ref: string;
742
1149
  };
743
- policy: {
1150
+ sequence: {
744
1151
  type: string;
745
- required: string[];
746
- properties: {
747
- privateByDefault: {
748
- type: string;
749
- };
750
- };
751
- additionalProperties: boolean;
1152
+ minimum: number;
752
1153
  };
753
- };
754
- additionalProperties: boolean;
755
- };
756
- "external-work-binding": {
757
- $schema: string;
758
- $id: string;
759
- title: string;
760
- type: string;
761
- required: string[];
762
- properties: {
763
- version: {
764
- const: number;
1154
+ topicId: {
1155
+ $ref: string;
765
1156
  };
766
1157
  bindingId: {
767
1158
  $ref: string;
768
1159
  };
769
- topicId: {
1160
+ supersedes: {
770
1161
  $ref: string;
771
1162
  };
772
- role: {
773
- enum: string[];
774
- };
775
- createdFrom: {
776
- enum: string[];
777
- };
778
- external: {
1163
+ contract: {
779
1164
  type: string;
780
1165
  required: string[];
781
1166
  properties: {
782
- provider: {
783
- type: string;
784
- pattern: string;
785
- };
786
- resourceType: {
787
- type: string;
788
- minLength: number;
789
- maxLength: number;
790
- };
791
- organizationId: {
792
- type: string;
793
- minLength: number;
794
- maxLength: number;
795
- };
796
- teamId: {
797
- type: string;
798
- minLength: number;
799
- maxLength: number;
800
- };
801
- resourceId: {
802
- type: string;
803
- minLength: number;
804
- maxLength: number;
805
- };
806
- identifier: {
1167
+ revision: {
807
1168
  type: string;
808
1169
  minLength: number;
809
- maxLength: number;
810
- };
811
- url: {
812
- type: string;
813
- format: string;
814
- };
815
- };
816
- additionalProperties: boolean;
817
- };
818
- syncPolicy: {
819
- type: string;
820
- required: string[];
821
- properties: {
822
- mode: {
823
- enum: string[];
824
- };
825
- direction: {
826
- enum: string[];
827
- };
828
- comments: {
829
- enum: string[];
830
1170
  };
831
- files: {
832
- enum: string[];
1171
+ digest: {
1172
+ $ref: string;
833
1173
  };
834
- delete: {
1174
+ status: {
835
1175
  const: string;
836
1176
  };
837
- fieldPolicy: {
838
- type: string;
839
- required: string[];
840
- properties: {
841
- id: {
842
- type: string;
843
- format: string;
844
- };
845
- version: {
846
- type: string;
847
- minimum: number;
848
- };
849
- digest: {
850
- $ref: string;
851
- };
852
- };
853
- additionalProperties: boolean;
854
- };
855
1177
  };
856
1178
  additionalProperties: boolean;
857
1179
  };
858
- workState: {
859
- enum: string[];
860
- };
861
- checkpoint: {
1180
+ workItemSnapshot: {
862
1181
  type: string;
863
1182
  required: string[];
864
1183
  properties: {
865
- topicRevision: {
866
- type: string;
867
- minLength: number;
868
- };
869
- effectiveContractDigest: {
1184
+ snapshotId: {
870
1185
  $ref: string;
871
1186
  };
872
- externalUpdatedAt: {
1187
+ ref: {
873
1188
  type: string;
874
1189
  format: string;
875
1190
  };
876
- externalSnapshotDigest: {
1191
+ digest: {
877
1192
  $ref: string;
878
1193
  };
879
- lastEventId: {
880
- type: string;
881
- minLength: number;
882
- maxLength: number;
883
- };
884
- syncedAt: {
885
- type: string;
886
- format: string;
887
- };
888
1194
  };
889
1195
  additionalProperties: boolean;
890
1196
  };
891
- identity: {
1197
+ deliverables: {
1198
+ type: string;
1199
+ minItems: number;
1200
+ items: {
1201
+ $ref: string;
1202
+ };
1203
+ };
1204
+ evidence: {
1205
+ type: string;
1206
+ items: {
1207
+ $ref: string;
1208
+ };
1209
+ };
1210
+ traces: {
1211
+ type: string;
1212
+ items: {
1213
+ $ref: string;
1214
+ };
1215
+ };
1216
+ paymentTerms: {
892
1217
  type: string;
893
1218
  required: string[];
894
1219
  properties: {
895
- bridgeDid: {
1220
+ ref: {
896
1221
  type: string;
897
- pattern: string;
1222
+ format: string;
898
1223
  };
899
- externalAppActorId: {
900
- type: string;
901
- minLength: number;
902
- maxLength: number;
1224
+ digest: {
1225
+ $ref: string;
903
1226
  };
904
1227
  };
905
1228
  additionalProperties: boolean;
906
1229
  };
907
- health: {
908
- enum: string[];
909
- };
910
- createdBy: {
1230
+ submittedBy: {
911
1231
  type: string;
912
- minLength: number;
1232
+ pattern: string;
913
1233
  };
914
- createdAt: {
1234
+ submittedAt: {
915
1235
  type: string;
916
1236
  format: string;
917
1237
  };
1238
+ capability: {
1239
+ type: string;
1240
+ minLength: number;
1241
+ };
1242
+ status: {
1243
+ const: string;
1244
+ };
1245
+ digest: {
1246
+ $ref: string;
1247
+ };
918
1248
  extensions: {
919
1249
  type: string;
920
1250
  };
@@ -932,10 +1262,61 @@ export declare const SCHEMA_REGISTRY: Readonly<{
932
1262
  type: string;
933
1263
  pattern: string;
934
1264
  };
1265
+ artifact: {
1266
+ type: string;
1267
+ required: string[];
1268
+ properties: {
1269
+ type: {
1270
+ type: string;
1271
+ minLength: number;
1272
+ };
1273
+ uri: {
1274
+ type: string;
1275
+ format: string;
1276
+ };
1277
+ digest: {
1278
+ $ref: string;
1279
+ };
1280
+ label: {
1281
+ type: string;
1282
+ minLength: number;
1283
+ };
1284
+ mediaType: {
1285
+ type: string;
1286
+ minLength: number;
1287
+ };
1288
+ };
1289
+ additionalProperties: boolean;
1290
+ };
1291
+ evidence: {
1292
+ type: string;
1293
+ required: string[];
1294
+ properties: {
1295
+ type: {
1296
+ type: string;
1297
+ minLength: number;
1298
+ };
1299
+ uri: {
1300
+ type: string;
1301
+ format: string;
1302
+ };
1303
+ digest: {
1304
+ $ref: string;
1305
+ };
1306
+ provenanceClass: {
1307
+ enum: string[];
1308
+ };
1309
+ label: {
1310
+ type: string;
1311
+ minLength: number;
1312
+ };
1313
+ };
1314
+ additionalProperties: boolean;
1315
+ };
935
1316
  };
936
1317
  additionalProperties: boolean;
937
1318
  };
938
- "external-work-state-map": {
1319
+ "evaluation-assertion": {
939
1320
  $schema: string;
940
1321
  $id: string;
941
1322
  title: string;
@@ -945,136 +1326,1609 @@ export declare const SCHEMA_REGISTRY: Readonly<{
945
1326
  version: {
946
1327
  const: number;
947
1328
  };
948
- profileId: {
949
- type: string;
950
- format: string;
951
- };
952
- provider: {
1329
+ evaluationId: {
1330
+ $ref: string;
1331
+ };
1332
+ topicId: {
1333
+ $ref: string;
1334
+ };
1335
+ deliveryPacketId: {
1336
+ $ref: string;
1337
+ };
1338
+ deliveryPacketDigest: {
1339
+ $ref: string;
1340
+ };
1341
+ rubric: {
1342
+ type: string;
1343
+ required: string[];
1344
+ properties: {
1345
+ id: {
1346
+ type: string;
1347
+ minLength: number;
1348
+ };
1349
+ version: {
1350
+ type: string;
1351
+ minLength: number;
1352
+ };
1353
+ ref: {
1354
+ type: string;
1355
+ format: string;
1356
+ };
1357
+ digest: {
1358
+ $ref: string;
1359
+ };
1360
+ governanceStatus: {
1361
+ const: string;
1362
+ };
1363
+ };
1364
+ additionalProperties: boolean;
1365
+ };
1366
+ evidenceDigests: {
1367
+ type: string;
1368
+ uniqueItems: boolean;
1369
+ items: {
1370
+ $ref: string;
1371
+ };
1372
+ };
1373
+ traceDigests: {
1374
+ type: string;
1375
+ uniqueItems: boolean;
1376
+ items: {
1377
+ $ref: string;
1378
+ };
1379
+ };
1380
+ outcome: {
1381
+ enum: string[];
1382
+ };
1383
+ confidence: {
1384
+ type: string;
1385
+ minimum: number;
1386
+ maximum: number;
1387
+ };
1388
+ result: {
1389
+ type: string;
1390
+ };
1391
+ evaluatorDid: {
953
1392
  type: string;
954
1393
  pattern: string;
955
1394
  };
956
- organizationId: {
1395
+ evaluatedAt: {
957
1396
  type: string;
958
- minLength: number;
959
- maxLength: number;
1397
+ format: string;
960
1398
  };
961
- teamId: {
1399
+ capability: {
962
1400
  type: string;
963
1401
  minLength: number;
964
- maxLength: number;
965
1402
  };
966
- mappings: {
1403
+ signature: {
967
1404
  type: string;
968
- minItems: number;
969
- items: {
970
- type: string;
971
- required: string[];
972
- properties: {
973
- workflowStateId: {
974
- type: string;
975
- minLength: number;
976
- maxLength: number;
977
- };
978
- category: {
979
- enum: string[];
980
- };
981
- workState: {
982
- enum: string[];
983
- };
1405
+ required: string[];
1406
+ properties: {
1407
+ type: {
1408
+ type: string;
1409
+ minLength: number;
1410
+ };
1411
+ verificationMethod: {
1412
+ type: string;
1413
+ format: string;
1414
+ };
1415
+ value: {
1416
+ type: string;
1417
+ minLength: number;
984
1418
  };
985
- additionalProperties: boolean;
986
1419
  };
1420
+ additionalProperties: boolean;
1421
+ };
1422
+ digest: {
1423
+ $ref: string;
1424
+ };
1425
+ extensions: {
1426
+ type: string;
1427
+ };
1428
+ };
1429
+ $defs: {
1430
+ uuidV7: {
1431
+ type: string;
1432
+ pattern: string;
1433
+ };
1434
+ topicId: {
1435
+ type: string;
1436
+ pattern: string;
1437
+ };
1438
+ digest: {
1439
+ type: string;
1440
+ pattern: string;
987
1441
  };
988
1442
  };
989
1443
  additionalProperties: boolean;
990
1444
  };
991
- "job-card": {
1445
+ "external-session-binding": {
992
1446
  $schema: string;
993
1447
  $id: string;
994
1448
  title: string;
995
1449
  type: string;
996
1450
  required: string[];
997
1451
  properties: {
998
- version: {
999
- const: number;
1000
- };
1001
- type: {
1002
- const: string;
1452
+ bindingId: {
1453
+ type: string;
1454
+ minLength: number;
1003
1455
  };
1004
- id: {
1456
+ topicId: {
1005
1457
  type: string;
1006
1458
  pattern: string;
1007
1459
  };
1008
- jobNumber: {
1460
+ provider: {
1009
1461
  type: string;
1010
1462
  minLength: number;
1011
- maxLength: number;
1012
1463
  };
1013
- phase: {
1464
+ sessionReference: {
1014
1465
  type: string;
1015
- enum: string[];
1466
+ minLength: number;
1016
1467
  };
1017
- priority: {
1468
+ actor: {
1018
1469
  type: string;
1019
- enum: string[];
1470
+ minLength: number;
1020
1471
  };
1021
- instructions: {
1472
+ createdAt: {
1022
1473
  type: string;
1023
- minLength: number;
1024
- maxLength: number;
1474
+ format: string;
1025
1475
  };
1026
- scheduled: {
1476
+ policy: {
1027
1477
  type: string;
1478
+ required: string[];
1028
1479
  properties: {
1029
- start: {
1030
- $ref: string;
1031
- };
1032
- end: {
1033
- $ref: string;
1480
+ privateByDefault: {
1481
+ type: string;
1034
1482
  };
1035
1483
  };
1036
1484
  additionalProperties: boolean;
1037
1485
  };
1038
- site: {
1486
+ };
1487
+ additionalProperties: boolean;
1488
+ };
1489
+ "external-work-binding": {
1490
+ $schema: string;
1491
+ $id: string;
1492
+ title: string;
1493
+ type: string;
1494
+ required: string[];
1495
+ properties: {
1496
+ version: {
1497
+ const: number;
1498
+ };
1499
+ bindingId: {
1039
1500
  $ref: string;
1040
1501
  };
1041
- asset: {
1502
+ topicId: {
1042
1503
  $ref: string;
1043
1504
  };
1044
- requestedBy: {
1045
- type: string;
1046
- minLength: number;
1047
- maxLength: number;
1505
+ role: {
1506
+ enum: string[];
1048
1507
  };
1049
- assignedTo: {
1508
+ createdFrom: {
1509
+ enum: string[];
1510
+ };
1511
+ external: {
1050
1512
  type: string;
1051
- uniqueItems: boolean;
1052
- maxItems: number;
1053
- items: {
1054
- type: string;
1055
- minLength: number;
1056
- maxLength: number;
1513
+ required: string[];
1514
+ properties: {
1515
+ provider: {
1516
+ type: string;
1517
+ pattern: string;
1518
+ };
1519
+ resourceType: {
1520
+ type: string;
1521
+ minLength: number;
1522
+ maxLength: number;
1523
+ };
1524
+ organizationId: {
1525
+ type: string;
1526
+ minLength: number;
1527
+ maxLength: number;
1528
+ };
1529
+ teamId: {
1530
+ type: string;
1531
+ minLength: number;
1532
+ maxLength: number;
1533
+ };
1534
+ resourceId: {
1535
+ type: string;
1536
+ minLength: number;
1537
+ maxLength: number;
1538
+ };
1539
+ identifier: {
1540
+ type: string;
1541
+ minLength: number;
1542
+ maxLength: number;
1543
+ };
1544
+ url: {
1545
+ type: string;
1546
+ format: string;
1547
+ };
1057
1548
  };
1549
+ additionalProperties: boolean;
1058
1550
  };
1059
- extensions: {
1551
+ syncPolicy: {
1060
1552
  type: string;
1061
- };
1062
- };
1063
- additionalProperties: boolean;
1064
- $defs: {
1065
- resourceTarget: {
1553
+ required: string[];
1554
+ properties: {
1555
+ mode: {
1556
+ enum: string[];
1557
+ };
1558
+ direction: {
1559
+ enum: string[];
1560
+ };
1561
+ comments: {
1562
+ enum: string[];
1563
+ };
1564
+ files: {
1565
+ enum: string[];
1566
+ };
1567
+ delete: {
1568
+ const: string;
1569
+ };
1570
+ fieldPolicy: {
1571
+ type: string;
1572
+ required: string[];
1573
+ properties: {
1574
+ id: {
1575
+ type: string;
1576
+ format: string;
1577
+ };
1578
+ version: {
1579
+ type: string;
1580
+ minimum: number;
1581
+ };
1582
+ digest: {
1583
+ $ref: string;
1584
+ };
1585
+ };
1586
+ additionalProperties: boolean;
1587
+ };
1588
+ };
1589
+ additionalProperties: boolean;
1590
+ };
1591
+ workState: {
1592
+ enum: string[];
1593
+ };
1594
+ checkpoint: {
1595
+ type: string;
1596
+ required: string[];
1597
+ properties: {
1598
+ topicRevision: {
1599
+ type: string;
1600
+ minLength: number;
1601
+ };
1602
+ effectiveContractDigest: {
1603
+ $ref: string;
1604
+ };
1605
+ externalUpdatedAt: {
1606
+ type: string;
1607
+ format: string;
1608
+ };
1609
+ externalSnapshotDigest: {
1610
+ $ref: string;
1611
+ };
1612
+ lastEventId: {
1613
+ type: string;
1614
+ minLength: number;
1615
+ maxLength: number;
1616
+ };
1617
+ syncedAt: {
1618
+ type: string;
1619
+ format: string;
1620
+ };
1621
+ };
1622
+ additionalProperties: boolean;
1623
+ };
1624
+ identity: {
1625
+ type: string;
1626
+ required: string[];
1627
+ properties: {
1628
+ bridgeDid: {
1629
+ type: string;
1630
+ pattern: string;
1631
+ };
1632
+ externalAppActorId: {
1633
+ type: string;
1634
+ minLength: number;
1635
+ maxLength: number;
1636
+ };
1637
+ };
1638
+ additionalProperties: boolean;
1639
+ };
1640
+ health: {
1641
+ enum: string[];
1642
+ };
1643
+ createdBy: {
1644
+ type: string;
1645
+ minLength: number;
1646
+ };
1647
+ createdAt: {
1648
+ type: string;
1649
+ format: string;
1650
+ };
1651
+ extensions: {
1652
+ type: string;
1653
+ };
1654
+ };
1655
+ $defs: {
1656
+ uuidV7: {
1657
+ type: string;
1658
+ pattern: string;
1659
+ };
1660
+ topicId: {
1661
+ type: string;
1662
+ pattern: string;
1663
+ };
1664
+ digest: {
1665
+ type: string;
1666
+ pattern: string;
1667
+ };
1668
+ };
1669
+ additionalProperties: boolean;
1670
+ };
1671
+ "external-work-state-map": {
1672
+ $schema: string;
1673
+ $id: string;
1674
+ title: string;
1675
+ type: string;
1676
+ required: string[];
1677
+ properties: {
1678
+ version: {
1679
+ const: number;
1680
+ };
1681
+ profileId: {
1682
+ type: string;
1683
+ format: string;
1684
+ };
1685
+ provider: {
1686
+ type: string;
1687
+ pattern: string;
1688
+ };
1689
+ organizationId: {
1690
+ type: string;
1691
+ minLength: number;
1692
+ maxLength: number;
1693
+ };
1694
+ teamId: {
1695
+ type: string;
1696
+ minLength: number;
1697
+ maxLength: number;
1698
+ };
1699
+ mappings: {
1700
+ type: string;
1701
+ minItems: number;
1702
+ items: {
1703
+ type: string;
1704
+ required: string[];
1705
+ properties: {
1706
+ workflowStateId: {
1707
+ type: string;
1708
+ minLength: number;
1709
+ maxLength: number;
1710
+ };
1711
+ category: {
1712
+ enum: string[];
1713
+ };
1714
+ workState: {
1715
+ enum: string[];
1716
+ };
1717
+ };
1718
+ additionalProperties: boolean;
1719
+ };
1720
+ };
1721
+ };
1722
+ additionalProperties: boolean;
1723
+ };
1724
+ "job-card": {
1725
+ $schema: string;
1726
+ $id: string;
1727
+ title: string;
1728
+ type: string;
1729
+ required: string[];
1730
+ properties: {
1731
+ version: {
1732
+ const: number;
1733
+ };
1734
+ type: {
1735
+ const: string;
1736
+ };
1737
+ id: {
1738
+ type: string;
1739
+ pattern: string;
1740
+ };
1741
+ jobNumber: {
1742
+ type: string;
1743
+ minLength: number;
1744
+ maxLength: number;
1745
+ };
1746
+ phase: {
1747
+ type: string;
1748
+ enum: string[];
1749
+ };
1750
+ priority: {
1751
+ type: string;
1752
+ enum: string[];
1753
+ };
1754
+ instructions: {
1755
+ type: string;
1756
+ minLength: number;
1757
+ maxLength: number;
1758
+ };
1759
+ scheduled: {
1760
+ type: string;
1761
+ properties: {
1762
+ start: {
1763
+ $ref: string;
1764
+ };
1765
+ end: {
1766
+ $ref: string;
1767
+ };
1768
+ };
1769
+ additionalProperties: boolean;
1770
+ };
1771
+ site: {
1772
+ $ref: string;
1773
+ };
1774
+ asset: {
1775
+ $ref: string;
1776
+ };
1777
+ requestedBy: {
1778
+ type: string;
1779
+ minLength: number;
1780
+ maxLength: number;
1781
+ };
1782
+ assignedTo: {
1783
+ type: string;
1784
+ uniqueItems: boolean;
1785
+ maxItems: number;
1786
+ items: {
1787
+ type: string;
1788
+ minLength: number;
1789
+ maxLength: number;
1790
+ };
1791
+ };
1792
+ extensions: {
1793
+ type: string;
1794
+ };
1795
+ };
1796
+ additionalProperties: boolean;
1797
+ $defs: {
1798
+ resourceTarget: {
1799
+ type: string;
1800
+ required: string[];
1801
+ properties: {
1802
+ label: {
1803
+ type: string;
1804
+ minLength: number;
1805
+ maxLength: number;
1806
+ };
1807
+ id: {
1808
+ type: string;
1809
+ minLength: number;
1810
+ maxLength: number;
1811
+ };
1812
+ };
1813
+ additionalProperties: boolean;
1814
+ };
1815
+ };
1816
+ };
1817
+ "payable-obligation": {
1818
+ $schema: string;
1819
+ $id: string;
1820
+ title: string;
1821
+ description: string;
1822
+ type: string;
1823
+ required: string[];
1824
+ properties: {
1825
+ $schema: {
1826
+ type: string;
1827
+ minLength: number;
1828
+ };
1829
+ version: {
1830
+ const: number;
1831
+ };
1832
+ type: {
1833
+ const: string;
1834
+ };
1835
+ id: {
1836
+ type: string;
1837
+ pattern: string;
1838
+ };
1839
+ revision: {
1840
+ type: string;
1841
+ minLength: number;
1842
+ maxLength: number;
1843
+ };
1844
+ supersedes: {
1845
+ $ref: string;
1846
+ };
1847
+ status: {
1848
+ enum: string[];
1849
+ };
1850
+ topicId: {
1851
+ $ref: string;
1852
+ };
1853
+ basis: {
1854
+ enum: string[];
1855
+ };
1856
+ paymentTerms: {
1857
+ type: string;
1858
+ required: string[];
1859
+ properties: {
1860
+ id: {
1861
+ type: string;
1862
+ pattern: string;
1863
+ };
1864
+ revision: {
1865
+ type: string;
1866
+ minLength: number;
1867
+ };
1868
+ ref: {
1869
+ type: string;
1870
+ format: string;
1871
+ };
1872
+ digest: {
1873
+ $ref: string;
1874
+ };
1875
+ };
1876
+ additionalProperties: boolean;
1877
+ };
1878
+ payerDid: {
1879
+ $ref: string;
1880
+ };
1881
+ claimantDid: {
1882
+ $ref: string;
1883
+ };
1884
+ requested: {
1885
+ $ref: string;
1886
+ };
1887
+ sourceResources: {
1888
+ type: string;
1889
+ minItems: number;
1890
+ items: {
1891
+ $ref: string;
1892
+ };
1893
+ };
1894
+ evidence: {
1895
+ type: string;
1896
+ items: {
1897
+ $ref: string;
1898
+ };
1899
+ };
1900
+ axisProjection: {
1901
+ $ref: string;
1902
+ };
1903
+ recordRefs: {
1904
+ $ref: string;
1905
+ };
1906
+ reasons: {
1907
+ type: string;
1908
+ minItems: number;
1909
+ items: {
1910
+ type: string;
1911
+ minLength: number;
1912
+ maxLength: number;
1913
+ };
1914
+ };
1915
+ replayKey: {
1916
+ type: string;
1917
+ minLength: number;
1918
+ maxLength: number;
1919
+ };
1920
+ submittedBy: {
1921
+ $ref: string;
1922
+ };
1923
+ submittedAt: {
1924
+ type: string;
1925
+ format: string;
1926
+ };
1927
+ projectionAuthority: {
1928
+ const: string;
1929
+ };
1930
+ extensions: {
1931
+ type: string;
1932
+ };
1933
+ };
1934
+ additionalProperties: boolean;
1935
+ allOf: ({
1936
+ if: {
1937
+ properties: {
1938
+ status: {
1939
+ const: string;
1940
+ };
1941
+ axisProjection?: never;
1942
+ };
1943
+ required: string[];
1944
+ };
1945
+ then: {
1946
+ properties: {
1947
+ submittedBy: {
1948
+ $ref: string;
1949
+ };
1950
+ submittedAt: {
1951
+ type: string;
1952
+ format: string;
1953
+ };
1954
+ recordRefs?: never;
1955
+ axisProjection?: never;
1956
+ };
1957
+ required: string[];
1958
+ };
1959
+ } | {
1960
+ if: {
1961
+ properties: {
1962
+ axisProjection: {
1963
+ type: string;
1964
+ properties: {
1965
+ delivery: {
1966
+ enum: string[];
1967
+ };
1968
+ evaluation?: never;
1969
+ approval?: never;
1970
+ claim?: never;
1971
+ settlement?: never;
1972
+ };
1973
+ required: string[];
1974
+ };
1975
+ status?: never;
1976
+ };
1977
+ required?: never;
1978
+ };
1979
+ then: {
1980
+ properties: {
1981
+ recordRefs: {
1982
+ type: string;
1983
+ required: string[];
1984
+ properties: {
1985
+ deliveryPacket: {
1986
+ $ref: string;
1987
+ };
1988
+ deliveryDecision?: never;
1989
+ evaluations?: never;
1990
+ approval?: never;
1991
+ claim?: never;
1992
+ settlements?: never;
1993
+ };
1994
+ };
1995
+ submittedBy?: never;
1996
+ submittedAt?: never;
1997
+ axisProjection?: never;
1998
+ };
1999
+ required?: never;
2000
+ };
2001
+ } | {
2002
+ if: {
2003
+ properties: {
2004
+ axisProjection: {
2005
+ type: string;
2006
+ properties: {
2007
+ delivery: {
2008
+ enum: string[];
2009
+ };
2010
+ evaluation?: never;
2011
+ approval?: never;
2012
+ claim?: never;
2013
+ settlement?: never;
2014
+ };
2015
+ required: string[];
2016
+ };
2017
+ status?: never;
2018
+ };
2019
+ required?: never;
2020
+ };
2021
+ then: {
2022
+ properties: {
2023
+ recordRefs: {
2024
+ type: string;
2025
+ required: string[];
2026
+ properties: {
2027
+ deliveryDecision: {
2028
+ $ref: string;
2029
+ };
2030
+ deliveryPacket?: never;
2031
+ evaluations?: never;
2032
+ approval?: never;
2033
+ claim?: never;
2034
+ settlements?: never;
2035
+ };
2036
+ };
2037
+ submittedBy?: never;
2038
+ submittedAt?: never;
2039
+ axisProjection?: never;
2040
+ };
2041
+ required?: never;
2042
+ };
2043
+ } | {
2044
+ if: {
2045
+ properties: {
2046
+ axisProjection: {
2047
+ type: string;
2048
+ properties: {
2049
+ evaluation: {
2050
+ enum: string[];
2051
+ };
2052
+ delivery?: never;
2053
+ approval?: never;
2054
+ claim?: never;
2055
+ settlement?: never;
2056
+ };
2057
+ required: string[];
2058
+ };
2059
+ status?: never;
2060
+ };
2061
+ required?: never;
2062
+ };
2063
+ then: {
2064
+ properties: {
2065
+ recordRefs: {
2066
+ type: string;
2067
+ required: string[];
2068
+ properties: {
2069
+ evaluations: {
2070
+ type: string;
2071
+ minItems: number;
2072
+ items: {
2073
+ $ref: string;
2074
+ };
2075
+ };
2076
+ deliveryPacket?: never;
2077
+ deliveryDecision?: never;
2078
+ approval?: never;
2079
+ claim?: never;
2080
+ settlements?: never;
2081
+ };
2082
+ };
2083
+ submittedBy?: never;
2084
+ submittedAt?: never;
2085
+ axisProjection?: never;
2086
+ };
2087
+ required?: never;
2088
+ };
2089
+ } | {
2090
+ if: {
2091
+ properties: {
2092
+ axisProjection: {
2093
+ type: string;
2094
+ properties: {
2095
+ approval: {
2096
+ enum: string[];
2097
+ };
2098
+ delivery?: never;
2099
+ evaluation?: never;
2100
+ claim?: never;
2101
+ settlement?: never;
2102
+ };
2103
+ required: string[];
2104
+ };
2105
+ status?: never;
2106
+ };
2107
+ required?: never;
2108
+ };
2109
+ then: {
2110
+ properties: {
2111
+ recordRefs: {
2112
+ type: string;
2113
+ required: string[];
2114
+ properties: {
2115
+ approval: {
2116
+ $ref: string;
2117
+ };
2118
+ deliveryPacket?: never;
2119
+ deliveryDecision?: never;
2120
+ evaluations?: never;
2121
+ claim?: never;
2122
+ settlements?: never;
2123
+ };
2124
+ };
2125
+ submittedBy?: never;
2126
+ submittedAt?: never;
2127
+ axisProjection?: never;
2128
+ };
2129
+ required?: never;
2130
+ };
2131
+ } | {
2132
+ if: {
2133
+ properties: {
2134
+ axisProjection: {
2135
+ type: string;
2136
+ properties: {
2137
+ claim: {
2138
+ enum: string[];
2139
+ };
2140
+ delivery?: never;
2141
+ evaluation?: never;
2142
+ approval?: never;
2143
+ settlement?: never;
2144
+ };
2145
+ required: string[];
2146
+ };
2147
+ status?: never;
2148
+ };
2149
+ required?: never;
2150
+ };
2151
+ then: {
2152
+ properties: {
2153
+ recordRefs: {
2154
+ type: string;
2155
+ required: string[];
2156
+ properties: {
2157
+ claim: {
2158
+ $ref: string;
2159
+ };
2160
+ deliveryPacket?: never;
2161
+ deliveryDecision?: never;
2162
+ evaluations?: never;
2163
+ approval?: never;
2164
+ settlements?: never;
2165
+ };
2166
+ };
2167
+ submittedBy?: never;
2168
+ submittedAt?: never;
2169
+ axisProjection?: never;
2170
+ };
2171
+ required?: never;
2172
+ };
2173
+ } | {
2174
+ if: {
2175
+ properties: {
2176
+ axisProjection: {
2177
+ type: string;
2178
+ properties: {
2179
+ settlement: {
2180
+ enum: string[];
2181
+ };
2182
+ delivery?: never;
2183
+ evaluation?: never;
2184
+ approval?: never;
2185
+ claim?: never;
2186
+ };
2187
+ required: string[];
2188
+ };
2189
+ status?: never;
2190
+ };
2191
+ required?: never;
2192
+ };
2193
+ then: {
2194
+ properties: {
2195
+ recordRefs: {
2196
+ type: string;
2197
+ required: string[];
2198
+ properties: {
2199
+ settlements: {
2200
+ type: string;
2201
+ minItems: number;
2202
+ items: {
2203
+ $ref: string;
2204
+ };
2205
+ };
2206
+ deliveryPacket?: never;
2207
+ deliveryDecision?: never;
2208
+ evaluations?: never;
2209
+ approval?: never;
2210
+ claim?: never;
2211
+ };
2212
+ };
2213
+ submittedBy?: never;
2214
+ submittedAt?: never;
2215
+ axisProjection?: never;
2216
+ };
2217
+ required?: never;
2218
+ };
2219
+ } | {
2220
+ if: {
2221
+ properties: {
2222
+ axisProjection: {
2223
+ type: string;
2224
+ properties: {
2225
+ settlement: {
2226
+ enum: string[];
2227
+ };
2228
+ delivery?: never;
2229
+ evaluation?: never;
2230
+ approval?: never;
2231
+ claim?: never;
2232
+ };
2233
+ required: string[];
2234
+ };
2235
+ status?: never;
2236
+ };
2237
+ required?: never;
2238
+ };
2239
+ then: {
2240
+ properties: {
2241
+ axisProjection: {
2242
+ type: string;
2243
+ properties: {
2244
+ delivery: {
2245
+ const: string;
2246
+ };
2247
+ evaluation: {
2248
+ const: string;
2249
+ };
2250
+ approval: {
2251
+ const: string;
2252
+ };
2253
+ claim: {
2254
+ const: string;
2255
+ };
2256
+ };
2257
+ };
2258
+ recordRefs: {
2259
+ type: string;
2260
+ properties: {
2261
+ deliveryPacket: {
2262
+ $ref: string;
2263
+ };
2264
+ deliveryDecision: {
2265
+ $ref: string;
2266
+ };
2267
+ evaluations: {
2268
+ type: string;
2269
+ minItems: number;
2270
+ items: {
2271
+ $ref: string;
2272
+ };
2273
+ };
2274
+ approval: {
2275
+ $ref: string;
2276
+ };
2277
+ claim: {
2278
+ $ref: string;
2279
+ };
2280
+ settlements: {
2281
+ type: string;
2282
+ minItems: number;
2283
+ items: {
2284
+ $ref: string;
2285
+ };
2286
+ };
2287
+ };
2288
+ required: string[];
2289
+ };
2290
+ submittedBy?: never;
2291
+ submittedAt?: never;
2292
+ };
2293
+ required?: never;
2294
+ };
2295
+ })[];
2296
+ $defs: {
2297
+ did: {
2298
+ type: string;
2299
+ pattern: string;
2300
+ };
2301
+ topicId: {
2302
+ type: string;
2303
+ pattern: string;
2304
+ };
2305
+ digest: {
2306
+ type: string;
2307
+ pattern: string;
2308
+ };
2309
+ decimal: {
2310
+ type: string;
2311
+ pattern: string;
2312
+ };
2313
+ requested: {
2314
+ type: string;
2315
+ required: string[];
2316
+ properties: {
2317
+ amount: {
2318
+ $ref: string;
2319
+ };
2320
+ asset: {
2321
+ type: string;
2322
+ minLength: number;
2323
+ maxLength: number;
2324
+ };
2325
+ recipient: {
2326
+ type: string;
2327
+ minLength: number;
2328
+ maxLength: number;
2329
+ };
2330
+ };
2331
+ additionalProperties: boolean;
2332
+ };
2333
+ resourceDigestRef: {
2334
+ type: string;
2335
+ required: string[];
2336
+ properties: {
2337
+ type: {
2338
+ type: string;
2339
+ minLength: number;
2340
+ };
2341
+ ref: {
2342
+ type: string;
2343
+ format: string;
2344
+ };
2345
+ digest: {
2346
+ $ref: string;
2347
+ };
2348
+ };
2349
+ additionalProperties: boolean;
2350
+ };
2351
+ evidence: {
2352
+ type: string;
2353
+ required: string[];
2354
+ properties: {
2355
+ type: {
2356
+ type: string;
2357
+ minLength: number;
2358
+ };
2359
+ uri: {
2360
+ type: string;
2361
+ format: string;
2362
+ };
2363
+ digest: {
2364
+ $ref: string;
2365
+ };
2366
+ provenanceClass: {
2367
+ enum: string[];
2368
+ };
2369
+ label: {
2370
+ type: string;
2371
+ minLength: number;
2372
+ };
2373
+ };
2374
+ additionalProperties: boolean;
2375
+ };
2376
+ axisProjection: {
2377
+ type: string;
2378
+ required: string[];
2379
+ properties: {
2380
+ delivery: {
2381
+ enum: string[];
2382
+ };
2383
+ evaluation: {
2384
+ enum: string[];
2385
+ };
2386
+ approval: {
2387
+ enum: string[];
2388
+ };
2389
+ claim: {
2390
+ enum: string[];
2391
+ };
2392
+ settlement: {
2393
+ enum: string[];
2394
+ };
2395
+ };
2396
+ additionalProperties: boolean;
2397
+ };
2398
+ protocolRecordRef: {
2399
+ type: string;
2400
+ required: string[];
2401
+ properties: {
2402
+ id: {
2403
+ type: string;
2404
+ minLength: number;
2405
+ maxLength: number;
2406
+ };
2407
+ digest: {
2408
+ $ref: string;
2409
+ };
2410
+ };
2411
+ additionalProperties: boolean;
2412
+ };
2413
+ recordRefs: {
2414
+ type: string;
2415
+ properties: {
2416
+ deliveryPacket: {
2417
+ $ref: string;
2418
+ };
2419
+ deliveryDecision: {
2420
+ $ref: string;
2421
+ };
2422
+ evaluations: {
2423
+ type: string;
2424
+ uniqueItems: boolean;
2425
+ items: {
2426
+ $ref: string;
2427
+ };
2428
+ };
2429
+ approval: {
2430
+ $ref: string;
2431
+ };
2432
+ claim: {
2433
+ $ref: string;
2434
+ };
2435
+ settlements: {
2436
+ type: string;
2437
+ uniqueItems: boolean;
2438
+ items: {
2439
+ $ref: string;
2440
+ };
2441
+ };
2442
+ };
2443
+ additionalProperties: boolean;
2444
+ };
2445
+ };
2446
+ };
2447
+ "payment-terms": {
2448
+ $schema: string;
2449
+ $id: string;
2450
+ title: string;
2451
+ type: string;
2452
+ required: string[];
2453
+ properties: {
2454
+ $schema: {
2455
+ type: string;
2456
+ minLength: number;
2457
+ };
2458
+ version: {
2459
+ const: number;
2460
+ };
2461
+ type: {
2462
+ const: string;
2463
+ };
2464
+ id: {
2465
+ type: string;
2466
+ pattern: string;
2467
+ };
2468
+ revision: {
2469
+ type: string;
2470
+ minLength: number;
2471
+ maxLength: number;
2472
+ };
2473
+ status: {
2474
+ enum: string[];
2475
+ };
2476
+ payer: {
2477
+ $ref: string;
2478
+ };
2479
+ payee: {
2480
+ $ref: string;
2481
+ };
2482
+ asset: {
2483
+ $ref: string;
2484
+ };
2485
+ calculation: {
2486
+ oneOf: {
2487
+ $ref: string;
2488
+ }[];
2489
+ };
2490
+ paymentCondition: {
2491
+ $ref: string;
2492
+ };
2493
+ timing: {
2494
+ $ref: string;
2495
+ };
2496
+ partialPayments: {
2497
+ $ref: string;
2498
+ };
2499
+ approvalPolicy: {
2500
+ $ref: string;
2501
+ };
2502
+ settlementPolicy: {
2503
+ $ref: string;
2504
+ };
2505
+ disputePolicy: {
2506
+ $ref: string;
2507
+ };
2508
+ capabilityRequirements: {
2509
+ type: string;
2510
+ minItems: number;
2511
+ items: {
2512
+ $ref: string;
2513
+ };
2514
+ };
2515
+ authoredBy: {
2516
+ $ref: string;
2517
+ };
2518
+ authoredAt: {
2519
+ type: string;
2520
+ format: string;
2521
+ };
2522
+ extensions: {
2523
+ type: string;
2524
+ };
2525
+ };
2526
+ additionalProperties: boolean;
2527
+ allOf: {
2528
+ if: {
2529
+ type: string;
2530
+ properties: {
2531
+ calculation: {
2532
+ type: string;
2533
+ properties: {
2534
+ model: {
2535
+ const: string;
2536
+ };
2537
+ };
2538
+ required: string[];
2539
+ };
2540
+ };
2541
+ required: string[];
2542
+ };
2543
+ then: {
2544
+ properties: {
2545
+ paymentCondition: {
2546
+ type: string;
2547
+ properties: {
2548
+ type: {
2549
+ const: string;
2550
+ };
2551
+ supportedEvaluationsRequired: {
2552
+ type: string;
2553
+ minimum: number;
2554
+ };
2555
+ };
2556
+ };
2557
+ };
2558
+ };
2559
+ }[];
2560
+ $defs: {
2561
+ did: {
2562
+ type: string;
2563
+ pattern: string;
2564
+ };
2565
+ digest: {
2566
+ type: string;
2567
+ pattern: string;
2568
+ };
2569
+ decimal: {
2570
+ type: string;
2571
+ pattern: string;
2572
+ };
2573
+ policyRef: {
2574
+ type: string;
2575
+ required: string[];
2576
+ properties: {
2577
+ ref: {
2578
+ type: string;
2579
+ format: string;
2580
+ };
2581
+ version: {
2582
+ type: string;
2583
+ minLength: number;
2584
+ };
2585
+ digest: {
2586
+ $ref: string;
2587
+ };
2588
+ };
2589
+ additionalProperties: boolean;
2590
+ };
2591
+ payer: {
2592
+ type: string;
2593
+ required: string[];
2594
+ properties: {
2595
+ did: {
2596
+ $ref: string;
2597
+ };
2598
+ label: {
2599
+ type: string;
2600
+ minLength: number;
2601
+ maxLength: number;
2602
+ };
2603
+ };
2604
+ additionalProperties: boolean;
2605
+ };
2606
+ payee: {
2607
+ type: string;
2608
+ required: string[];
2609
+ properties: {
2610
+ did: {
2611
+ $ref: string;
2612
+ };
2613
+ recipient: {
2614
+ type: string;
2615
+ minLength: number;
2616
+ maxLength: number;
2617
+ };
2618
+ label: {
2619
+ type: string;
2620
+ minLength: number;
2621
+ maxLength: number;
2622
+ };
2623
+ };
2624
+ additionalProperties: boolean;
2625
+ };
2626
+ asset: {
2627
+ type: string;
2628
+ required: string[];
2629
+ properties: {
2630
+ id: {
2631
+ type: string;
2632
+ minLength: number;
2633
+ maxLength: number;
2634
+ };
2635
+ decimals: {
2636
+ type: string;
2637
+ minimum: number;
2638
+ maximum: number;
2639
+ };
2640
+ };
2641
+ additionalProperties: boolean;
2642
+ };
2643
+ fixedCalculation: {
2644
+ type: string;
2645
+ required: string[];
2646
+ properties: {
2647
+ model: {
2648
+ const: string;
2649
+ };
2650
+ amount: {
2651
+ $ref: string;
2652
+ };
2653
+ };
2654
+ additionalProperties: boolean;
2655
+ };
2656
+ formulaCalculation: {
2657
+ type: string;
2658
+ required: string[];
2659
+ properties: {
2660
+ model: {
2661
+ const: string;
2662
+ };
2663
+ formula: {
2664
+ $ref: string;
2665
+ };
2666
+ maximumAmount: {
2667
+ $ref: string;
2668
+ };
2669
+ requiredInputTypes: {
2670
+ type: string;
2671
+ minItems: number;
2672
+ uniqueItems: boolean;
2673
+ items: {
2674
+ type: string;
2675
+ minLength: number;
2676
+ };
2677
+ };
2678
+ };
2679
+ additionalProperties: boolean;
2680
+ };
2681
+ milestoneCalculation: {
2682
+ type: string;
2683
+ required: string[];
2684
+ properties: {
2685
+ model: {
2686
+ const: string;
2687
+ };
2688
+ milestoneId: {
2689
+ type: string;
2690
+ minLength: number;
2691
+ maxLength: number;
2692
+ };
2693
+ amount: {
2694
+ $ref: string;
2695
+ };
2696
+ };
2697
+ additionalProperties: boolean;
2698
+ };
2699
+ outcomeCalculation: {
2700
+ type: string;
2701
+ required: string[];
2702
+ properties: {
2703
+ model: {
2704
+ const: string;
2705
+ };
2706
+ rubric: {
2707
+ $ref: string;
2708
+ };
2709
+ amountRule: {
2710
+ $ref: string;
2711
+ };
2712
+ maximumAmount: {
2713
+ $ref: string;
2714
+ };
2715
+ };
2716
+ additionalProperties: boolean;
2717
+ };
2718
+ paymentCondition: {
2719
+ type: string;
2720
+ required: string[];
2721
+ properties: {
2722
+ type: {
2723
+ enum: string[];
2724
+ };
2725
+ requiredEvidenceTypes: {
2726
+ type: string;
2727
+ uniqueItems: boolean;
2728
+ items: {
2729
+ type: string;
2730
+ minLength: number;
2731
+ };
2732
+ };
2733
+ deliveryDecisionRequired: {
2734
+ type: string;
2735
+ };
2736
+ supportedEvaluationsRequired: {
2737
+ type: string;
2738
+ minimum: number;
2739
+ maximum: number;
2740
+ };
2741
+ };
2742
+ additionalProperties: boolean;
2743
+ };
2744
+ timing: {
2745
+ type: string;
2746
+ required: string[];
2747
+ properties: {
2748
+ trigger: {
2749
+ enum: string[];
2750
+ };
2751
+ dueWithin: {
2752
+ type: string;
2753
+ pattern: string;
2754
+ };
2755
+ dueAt: {
2756
+ type: string;
2757
+ format: string;
2758
+ };
2759
+ timezone: {
2760
+ type: string;
2761
+ minLength: number;
2762
+ };
2763
+ };
2764
+ additionalProperties: boolean;
2765
+ allOf: ({
2766
+ if: {
2767
+ type: string;
2768
+ properties: {
2769
+ trigger: {
2770
+ const: string;
2771
+ };
2772
+ };
2773
+ required: string[];
2774
+ };
2775
+ then: {
2776
+ properties: {
2777
+ dueWithin: {
2778
+ type: string;
2779
+ pattern: string;
2780
+ };
2781
+ dueAt?: never;
2782
+ timezone?: never;
2783
+ };
2784
+ required: string[];
2785
+ };
2786
+ } | {
2787
+ if: {
2788
+ type: string;
2789
+ properties: {
2790
+ trigger: {
2791
+ const: string;
2792
+ };
2793
+ };
2794
+ required: string[];
2795
+ };
2796
+ then: {
2797
+ properties: {
2798
+ dueAt: {
2799
+ type: string;
2800
+ format: string;
2801
+ };
2802
+ timezone: {
2803
+ type: string;
2804
+ minLength: number;
2805
+ };
2806
+ dueWithin?: never;
2807
+ };
2808
+ required: string[];
2809
+ };
2810
+ })[];
2811
+ };
2812
+ partialPayments: {
2813
+ type: string;
2814
+ required: string[];
2815
+ properties: {
2816
+ allowed: {
2817
+ type: string;
2818
+ };
2819
+ minimumAmount: {
2820
+ $ref: string;
2821
+ };
2822
+ maximumInstallments: {
2823
+ type: string;
2824
+ minimum: number;
2825
+ maximum: number;
2826
+ };
2827
+ };
2828
+ additionalProperties: boolean;
2829
+ };
2830
+ approvalPolicy: {
2831
+ type: string;
2832
+ required: string[];
2833
+ properties: {
2834
+ policy: {
2835
+ $ref: string;
2836
+ };
2837
+ authorityDids: {
2838
+ type: string;
2839
+ minItems: number;
2840
+ uniqueItems: boolean;
2841
+ items: {
2842
+ $ref: string;
2843
+ };
2844
+ };
2845
+ requiredApprovals: {
2846
+ type: string;
2847
+ minimum: number;
2848
+ maximum: number;
2849
+ };
2850
+ humanConfirmationRequired: {
2851
+ type: string;
2852
+ };
2853
+ };
2854
+ additionalProperties: boolean;
2855
+ };
2856
+ settlementPolicy: {
2857
+ type: string;
2858
+ required: string[];
2859
+ properties: {
2860
+ allowedPaymentRails: {
2861
+ type: string;
2862
+ minItems: number;
2863
+ uniqueItems: boolean;
2864
+ items: {
2865
+ type: string;
2866
+ minLength: number;
2867
+ maxLength: number;
2868
+ };
2869
+ };
2870
+ fundingCheckRequired: {
2871
+ type: string;
2872
+ };
2873
+ identityCheckRequired: {
2874
+ type: string;
2875
+ };
2876
+ kycCheckRequired: {
2877
+ type: string;
2878
+ };
2879
+ sanctionsCheckRequired: {
2880
+ type: string;
2881
+ };
2882
+ humanConfirmationRequired: {
2883
+ type: string;
2884
+ };
2885
+ humanConfirmationThreshold: {
2886
+ $ref: string;
2887
+ };
2888
+ };
2889
+ additionalProperties: boolean;
2890
+ };
2891
+ disputePolicy: {
2892
+ type: string;
2893
+ required: string[];
2894
+ properties: {
2895
+ window: {
2896
+ type: string;
2897
+ pattern: string;
2898
+ };
2899
+ authorityDids: {
2900
+ type: string;
2901
+ minItems: number;
2902
+ uniqueItems: boolean;
2903
+ items: {
2904
+ $ref: string;
2905
+ };
2906
+ };
2907
+ allowedRemedies: {
2908
+ type: string;
2909
+ minItems: number;
2910
+ uniqueItems: boolean;
2911
+ items: {
2912
+ enum: string[];
2913
+ };
2914
+ };
2915
+ };
2916
+ additionalProperties: boolean;
2917
+ };
2918
+ capabilityRequirement: {
1066
2919
  type: string;
1067
2920
  required: string[];
1068
2921
  properties: {
1069
- label: {
2922
+ action: {
2923
+ enum: string[];
2924
+ };
2925
+ ability: {
1070
2926
  type: string;
1071
2927
  minLength: number;
1072
- maxLength: number;
1073
2928
  };
1074
- id: {
2929
+ resource: {
1075
2930
  type: string;
1076
2931
  minLength: number;
1077
- maxLength: number;
1078
2932
  };
1079
2933
  };
1080
2934
  additionalProperties: boolean;
@@ -1350,6 +3204,84 @@ export declare const SCHEMA_REGISTRY: Readonly<{
1350
3204
  };
1351
3205
  additionalProperties: boolean;
1352
3206
  };
3207
+ "topic-action-request": {
3208
+ $schema: string;
3209
+ $id: string;
3210
+ title: string;
3211
+ type: string;
3212
+ required: string[];
3213
+ properties: {
3214
+ version: {
3215
+ const: number;
3216
+ };
3217
+ requestId: {
3218
+ type: string;
3219
+ minLength: number;
3220
+ };
3221
+ topicId: {
3222
+ type: string;
3223
+ pattern: string;
3224
+ };
3225
+ topicRevision: {
3226
+ type: string;
3227
+ minLength: number;
3228
+ };
3229
+ actionType: {
3230
+ type: string;
3231
+ pattern: string;
3232
+ };
3233
+ actionContractDigest: {
3234
+ $ref: string;
3235
+ };
3236
+ executor: {
3237
+ enum: string[];
3238
+ };
3239
+ inputs: {
3240
+ type: string;
3241
+ required: string[];
3242
+ properties: {
3243
+ digest: {
3244
+ $ref: string;
3245
+ };
3246
+ ref: {
3247
+ type: string;
3248
+ minLength: number;
3249
+ };
3250
+ };
3251
+ additionalProperties: boolean;
3252
+ };
3253
+ requestedBy: {
3254
+ type: string;
3255
+ pattern: string;
3256
+ };
3257
+ requestedAt: {
3258
+ type: string;
3259
+ format: string;
3260
+ };
3261
+ idempotencyKey: {
3262
+ type: string;
3263
+ minLength: number;
3264
+ };
3265
+ confirmation: {
3266
+ enum: string[];
3267
+ };
3268
+ flowBindingId: {
3269
+ type: string;
3270
+ minLength: number;
3271
+ };
3272
+ capability: {
3273
+ type: string;
3274
+ minLength: number;
3275
+ };
3276
+ };
3277
+ additionalProperties: boolean;
3278
+ $defs: {
3279
+ digest: {
3280
+ type: string;
3281
+ pattern: string;
3282
+ };
3283
+ };
3284
+ };
1353
3285
  "topic-contract-state": {
1354
3286
  $schema: string;
1355
3287
  $id: string;
@@ -1999,6 +3931,30 @@ export declare const SCHEMA_REGISTRY: Readonly<{
1999
3931
  type: string;
2000
3932
  minimum: number;
2001
3933
  };
3934
+ actions: {
3935
+ type: string;
3936
+ maxItems: number;
3937
+ items: {
3938
+ type: string;
3939
+ required: string[];
3940
+ properties: {
3941
+ request: {
3942
+ $ref: string;
3943
+ };
3944
+ latestReceipt: {
3945
+ $ref: string;
3946
+ };
3947
+ status: {
3948
+ enum: string[];
3949
+ };
3950
+ operationId: {
3951
+ type: string;
3952
+ minLength: number;
3953
+ };
3954
+ };
3955
+ additionalProperties: boolean;
3956
+ };
3957
+ };
2002
3958
  };
2003
3959
  additionalProperties: boolean;
2004
3960
  };
@@ -2064,6 +4020,37 @@ export declare const SCHEMA_REGISTRY: Readonly<{
2064
4020
  type: string;
2065
4021
  minLength: number;
2066
4022
  };
4023
+ target: {
4024
+ oneOf: ({
4025
+ type: string;
4026
+ required: string[];
4027
+ properties: {
4028
+ kind: {
4029
+ const: string;
4030
+ };
4031
+ actionType: {
4032
+ type: string;
4033
+ pattern: string;
4034
+ };
4035
+ bindingId?: never;
4036
+ };
4037
+ additionalProperties: boolean;
4038
+ } | {
4039
+ type: string;
4040
+ required: string[];
4041
+ properties: {
4042
+ kind: {
4043
+ const: string;
4044
+ };
4045
+ bindingId: {
4046
+ type: string;
4047
+ minLength: number;
4048
+ };
4049
+ actionType?: never;
4050
+ };
4051
+ additionalProperties: boolean;
4052
+ })[];
4053
+ };
2067
4054
  recurrence: {
2068
4055
  $ref: string;
2069
4056
  };
@@ -2077,6 +4064,19 @@ export declare const SCHEMA_REGISTRY: Readonly<{
2077
4064
  };
2078
4065
  };
2079
4066
  additionalProperties: boolean;
4067
+ anyOf: ({
4068
+ properties: {
4069
+ actionId: boolean;
4070
+ target?: never;
4071
+ };
4072
+ required: string[];
4073
+ } | {
4074
+ properties: {
4075
+ target: boolean;
4076
+ actionId?: never;
4077
+ };
4078
+ required: string[];
4079
+ })[];
2080
4080
  };
2081
4081
  bindings: {
2082
4082
  type: string;
@@ -2094,6 +4094,13 @@ export declare const SCHEMA_REGISTRY: Readonly<{
2094
4094
  $ref: string;
2095
4095
  };
2096
4096
  };
4097
+ flows: {
4098
+ type: string;
4099
+ maxItems: number;
4100
+ items: {
4101
+ $ref: string;
4102
+ };
4103
+ };
2097
4104
  context: {
2098
4105
  type: string;
2099
4106
  maxItems: number;
@@ -2167,6 +4174,87 @@ export declare const SCHEMA_REGISTRY: Readonly<{
2167
4174
  };
2168
4175
  additionalProperties: boolean;
2169
4176
  };
4177
+ "topic-flow-binding": {
4178
+ $schema: string;
4179
+ $id: string;
4180
+ title: string;
4181
+ type: string;
4182
+ required: string[];
4183
+ properties: {
4184
+ version: {
4185
+ const: number;
4186
+ };
4187
+ bindingId: {
4188
+ type: string;
4189
+ minLength: number;
4190
+ };
4191
+ topicId: {
4192
+ type: string;
4193
+ pattern: string;
4194
+ };
4195
+ flowUri: {
4196
+ type: string;
4197
+ pattern: string;
4198
+ };
4199
+ flowRevision: {
4200
+ type: string;
4201
+ minLength: number;
4202
+ };
4203
+ flowDigest: {
4204
+ $ref: string;
4205
+ };
4206
+ role: {
4207
+ enum: string[];
4208
+ };
4209
+ actionManifestDigest: {
4210
+ $ref: string;
4211
+ };
4212
+ controllerDid: {
4213
+ type: string;
4214
+ pattern: string;
4215
+ };
4216
+ startPolicy: {
4217
+ enum: string[];
4218
+ };
4219
+ triggerPolicy: {
4220
+ type: string;
4221
+ };
4222
+ receiptPolicy: {
4223
+ enum: string[];
4224
+ };
4225
+ status: {
4226
+ enum: string[];
4227
+ };
4228
+ capability: {
4229
+ type: string;
4230
+ minLength: number;
4231
+ };
4232
+ capabilityReferences: {
4233
+ type: string;
4234
+ minItems: number;
4235
+ items: {
4236
+ type: string;
4237
+ minLength: number;
4238
+ };
4239
+ uniqueItems: boolean;
4240
+ };
4241
+ createdBy: {
4242
+ type: string;
4243
+ pattern: string;
4244
+ };
4245
+ createdAt: {
4246
+ type: string;
4247
+ format: string;
4248
+ };
4249
+ };
4250
+ additionalProperties: boolean;
4251
+ $defs: {
4252
+ digest: {
4253
+ type: string;
4254
+ pattern: string;
4255
+ };
4256
+ };
4257
+ };
2170
4258
  "topic-index-entry": {
2171
4259
  $schema: string;
2172
4260
  $id: string;
@@ -2338,7 +4426,7 @@ export declare const SCHEMA_REGISTRY: Readonly<{
2338
4426
  required: string[];
2339
4427
  properties: {
2340
4428
  version: {
2341
- const: number;
4429
+ enum: number[];
2342
4430
  };
2343
4431
  id: {
2344
4432
  type: string;
@@ -2466,8 +4554,65 @@ export declare const SCHEMA_REGISTRY: Readonly<{
2466
4554
  maxLength: number;
2467
4555
  };
2468
4556
  };
4557
+ actionManifest: {
4558
+ type: string;
4559
+ required: string[];
4560
+ properties: {
4561
+ version: {
4562
+ type: string;
4563
+ minLength: number;
4564
+ maxLength: number;
4565
+ };
4566
+ digest: {
4567
+ type: string;
4568
+ pattern: string;
4569
+ };
4570
+ };
4571
+ additionalProperties: boolean;
4572
+ };
4573
+ actions: {
4574
+ type: string;
4575
+ uniqueItems: boolean;
4576
+ maxItems: number;
4577
+ items: {
4578
+ type: string;
4579
+ required: string[];
4580
+ properties: {
4581
+ type: {
4582
+ type: string;
4583
+ pattern: string;
4584
+ };
4585
+ role: {
4586
+ enum: string[];
4587
+ };
4588
+ label: {
4589
+ type: string;
4590
+ minLength: number;
4591
+ maxLength: number;
4592
+ };
4593
+ };
4594
+ additionalProperties: boolean;
4595
+ };
4596
+ };
2469
4597
  };
2470
4598
  additionalProperties: boolean;
4599
+ allOf: {
4600
+ if: {
4601
+ properties: {
4602
+ version: {
4603
+ const: number;
4604
+ };
4605
+ };
4606
+ required: string[];
4607
+ };
4608
+ then: {
4609
+ properties: {
4610
+ actionManifest: boolean;
4611
+ actions: boolean;
4612
+ };
4613
+ required: string[];
4614
+ };
4615
+ }[];
2471
4616
  };
2472
4617
  "topic-message": {
2473
4618
  $schema: string;
@@ -3406,4 +5551,4 @@ export declare const SCHEMA_REGISTRY: Readonly<{
3406
5551
  };
3407
5552
  }>;
3408
5553
  export type ContractName = keyof typeof SCHEMA_REGISTRY;
3409
- export declare const CONTRACT_NAMES: readonly ("action-receipt" | "agent-run" | "approval-decision" | "claim-record" | "delivery-decision" | "delivery-packet" | "evaluation-assertion" | "external-session-binding" | "external-work-binding" | "external-work-state-map" | "job-card" | "room-policy" | "settlement-receipt" | "topic-capsule" | "topic-contract-state" | "topic-file-attachment" | "topic-index-entry" | "topic-index" | "topic-kind-profile" | "topic-message" | "topic-operation" | "topic-preferences" | "topic-record" | "topic-record-message" | "topic-relation" | "topic-root" | "topic-state" | "topic-source-message" | "work-item-snapshot")[];
5554
+ export declare const CONTRACT_NAMES: readonly ("topic-contract-state" | "payment-terms" | "payable-obligation" | "external-work-binding" | "delivery-packet" | "delivery-decision" | "evaluation-assertion" | "approval-decision" | "claim-record" | "settlement-receipt" | "action-receipt" | "agent-run" | "decision-to-pay-template" | "external-session-binding" | "external-work-state-map" | "job-card" | "room-policy" | "topic-capsule" | "topic-action-request" | "topic-file-attachment" | "topic-flow-binding" | "topic-index-entry" | "topic-index" | "topic-kind-profile" | "topic-message" | "topic-operation" | "topic-preferences" | "topic-record" | "topic-record-message" | "topic-relation" | "topic-root" | "topic-state" | "topic-source-message" | "work-item-snapshot")[];