@qlever-llc/trellis 0.10.17 → 0.10.18

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 (65) hide show
  1. package/esm/auth/browser/portal.d.ts.map +1 -1
  2. package/esm/auth/browser/portal.js +2 -0
  3. package/esm/auth/browser.d.ts +2 -0
  4. package/esm/auth/browser.d.ts.map +1 -1
  5. package/esm/auth/browser.js +1 -0
  6. package/esm/auth/browser_recovery.d.ts +22 -0
  7. package/esm/auth/browser_recovery.d.ts.map +1 -0
  8. package/esm/auth/browser_recovery.js +238 -0
  9. package/esm/auth/mod.d.ts +2 -2
  10. package/esm/auth/mod.d.ts.map +1 -1
  11. package/esm/auth/mod.js +2 -2
  12. package/esm/auth/protocol.d.ts +362 -398
  13. package/esm/auth/protocol.d.ts.map +1 -1
  14. package/esm/auth/protocol.js +36 -33
  15. package/esm/browser.d.ts +2 -2
  16. package/esm/browser.d.ts.map +1 -1
  17. package/esm/browser.js +1 -1
  18. package/esm/client_connect.js +1 -1
  19. package/esm/generated-sdk/auth/contract.d.ts +1 -1
  20. package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
  21. package/esm/generated-sdk/auth/contract.js +1236 -1079
  22. package/esm/generated-sdk/auth/schemas.d.ts +1428 -1578
  23. package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
  24. package/esm/generated-sdk/auth/schemas.js +725 -669
  25. package/esm/generated-sdk/auth/types.d.ts +239 -281
  26. package/esm/generated-sdk/auth/types.d.ts.map +1 -1
  27. package/esm/generated-sdk/auth/types.js +1 -1
  28. package/package.json +2 -2
  29. package/script/auth/browser/portal.d.ts.map +1 -1
  30. package/script/auth/browser/portal.js +2 -0
  31. package/script/auth/browser.d.ts +2 -0
  32. package/script/auth/browser.d.ts.map +1 -1
  33. package/script/auth/browser.js +4 -1
  34. package/script/auth/browser_recovery.d.ts +22 -0
  35. package/script/auth/browser_recovery.d.ts.map +1 -0
  36. package/script/auth/browser_recovery.js +242 -0
  37. package/script/auth/mod.d.ts +2 -2
  38. package/script/auth/mod.d.ts.map +1 -1
  39. package/script/auth/mod.js +17 -6
  40. package/script/auth/protocol.d.ts +362 -398
  41. package/script/auth/protocol.d.ts.map +1 -1
  42. package/script/auth/protocol.js +41 -37
  43. package/script/browser.d.ts +2 -2
  44. package/script/browser.d.ts.map +1 -1
  45. package/script/browser.js +4 -2
  46. package/script/client_connect.js +1 -1
  47. package/script/generated-sdk/auth/contract.d.ts +1 -1
  48. package/script/generated-sdk/auth/contract.d.ts.map +1 -1
  49. package/script/generated-sdk/auth/contract.js +1236 -1079
  50. package/script/generated-sdk/auth/schemas.d.ts +1428 -1578
  51. package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
  52. package/script/generated-sdk/auth/schemas.js +725 -669
  53. package/script/generated-sdk/auth/types.d.ts +239 -281
  54. package/script/generated-sdk/auth/types.d.ts.map +1 -1
  55. package/script/generated-sdk/auth/types.js +1 -1
  56. package/src/auth/browser/portal.ts +1 -0
  57. package/src/auth/browser.ts +8 -0
  58. package/src/auth/browser_recovery.ts +319 -0
  59. package/src/auth/mod.ts +25 -2
  60. package/src/auth/protocol.ts +73 -37
  61. package/src/browser.ts +4 -0
  62. package/src/client_connect.ts +1 -1
  63. package/src/sdk/_generated/auth/contract.ts +1477 -1320
  64. package/src/sdk/_generated/auth/schemas.ts +919 -863
  65. package/src/sdk/_generated/auth/types.ts +242 -304
@@ -534,83 +534,87 @@ export const AuthDeploymentAuthorityAcceptResponseSchema = {
534
534
  "type": "array",
535
535
  },
536
536
  "needs": {
537
- "items": {
538
- "anyOf": [{
539
- "properties": {
540
- "contractId": { "minLength": 1, "type": "string" },
541
- "kind": { "const": "contract", "type": "string" },
542
- "required": { "type": "boolean" },
537
+ "properties": {
538
+ "capabilities": {
539
+ "items": {
540
+ "properties": {
541
+ "capability": { "minLength": 1, "type": "string" },
542
+ "required": { "type": "boolean" },
543
+ },
544
+ "required": ["capability", "required"],
545
+ "type": "object",
543
546
  },
544
- "required": ["kind", "contractId", "required"],
545
- "type": "object",
546
- }, {
547
- "properties": {
548
- "kind": { "const": "surface", "type": "string" },
549
- "required": { "type": "boolean" },
550
- "surface": {
551
- "properties": {
552
- "action": {
553
- "anyOf": [
554
- { "const": "call", "type": "string" },
555
- { "const": "publish", "type": "string" },
556
- { "const": "subscribe", "type": "string" },
557
- { "const": "observe", "type": "string" },
558
- { "const": "cancel", "type": "string" },
559
- ],
560
- },
561
- "contractId": { "minLength": 1, "type": "string" },
562
- "kind": {
563
- "anyOf": [
564
- { "const": "rpc", "type": "string" },
565
- { "const": "operation", "type": "string" },
566
- { "const": "event", "type": "string" },
567
- { "const": "feed", "type": "string" },
568
- ],
569
- },
570
- "name": { "minLength": 1, "type": "string" },
571
- },
572
- "required": ["contractId", "kind", "name"],
573
- "type": "object",
547
+ "type": "array",
548
+ },
549
+ "contracts": {
550
+ "items": {
551
+ "properties": {
552
+ "contractId": { "minLength": 1, "type": "string" },
553
+ "required": { "type": "boolean" },
574
554
  },
555
+ "required": ["contractId", "required"],
556
+ "type": "object",
575
557
  },
576
- "required": ["kind", "surface", "required"],
577
- "type": "object",
578
- }, {
579
- "properties": {
580
- "capability": { "minLength": 1, "type": "string" },
581
- "kind": { "const": "capability", "type": "string" },
582
- "required": { "type": "boolean" },
558
+ "type": "array",
559
+ },
560
+ "resources": {
561
+ "items": {
562
+ "properties": {
563
+ "alias": { "minLength": 1, "type": "string" },
564
+ "definition": { "type": "object" },
565
+ "kind": {
566
+ "anyOf": [
567
+ { "const": "kv", "type": "string" },
568
+ { "const": "store", "type": "string" },
569
+ { "const": "jobs", "type": "string" },
570
+ { "const": "event-consumer", "type": "string" },
571
+ { "const": "transfer", "type": "string" },
572
+ ],
573
+ },
574
+ "required": { "type": "boolean" },
575
+ },
576
+ "required": ["kind", "alias", "required"],
577
+ "type": "object",
583
578
  },
584
- "required": ["kind", "capability", "required"],
585
- "type": "object",
586
- }, {
587
- "properties": {
588
- "kind": { "const": "resource", "type": "string" },
589
- "required": { "type": "boolean" },
590
- "resource": {
591
- "properties": {
592
- "alias": { "minLength": 1, "type": "string" },
593
- "definition": { "type": "object" },
594
- "kind": {
595
- "anyOf": [
596
- { "const": "kv", "type": "string" },
597
- { "const": "store", "type": "string" },
598
- { "const": "jobs", "type": "string" },
599
- { "const": "event-consumer", "type": "string" },
600
- { "const": "transfer", "type": "string" },
601
- ],
602
- },
603
- "required": { "type": "boolean" },
579
+ "type": "array",
580
+ },
581
+ "surfaces": {
582
+ "items": {
583
+ "properties": {
584
+ "action": {
585
+ "anyOf": [
586
+ { "const": "call", "type": "string" },
587
+ { "const": "publish", "type": "string" },
588
+ { "const": "subscribe", "type": "string" },
589
+ { "const": "observe", "type": "string" },
590
+ { "const": "cancel", "type": "string" },
591
+ ],
604
592
  },
605
- "required": ["kind", "alias", "required"],
606
- "type": "object",
593
+ "contractId": { "minLength": 1, "type": "string" },
594
+ "kind": {
595
+ "anyOf": [
596
+ { "const": "rpc", "type": "string" },
597
+ { "const": "operation", "type": "string" },
598
+ { "const": "event", "type": "string" },
599
+ { "const": "feed", "type": "string" },
600
+ ],
601
+ },
602
+ "name": { "minLength": 1, "type": "string" },
603
+ "required": { "type": "boolean" },
607
604
  },
605
+ "required": ["contractId", "kind", "name", "required"],
606
+ "type": "object",
608
607
  },
609
- "required": ["kind", "resource", "required"],
610
- "type": "object",
611
- }],
608
+ "type": "array",
609
+ },
612
610
  },
613
- "type": "array",
611
+ "required": [
612
+ "contracts",
613
+ "surfaces",
614
+ "capabilities",
615
+ "resources",
616
+ ],
617
+ "type": "object",
614
618
  },
615
619
  "resources": {
616
620
  "items": {
@@ -723,83 +727,87 @@ export const AuthDeploymentAuthorityGetResponseSchema = {
723
727
  "type": "array",
724
728
  },
725
729
  "needs": {
726
- "items": {
727
- "anyOf": [{
728
- "properties": {
729
- "contractId": { "minLength": 1, "type": "string" },
730
- "kind": { "const": "contract", "type": "string" },
731
- "required": { "type": "boolean" },
730
+ "properties": {
731
+ "capabilities": {
732
+ "items": {
733
+ "properties": {
734
+ "capability": { "minLength": 1, "type": "string" },
735
+ "required": { "type": "boolean" },
736
+ },
737
+ "required": ["capability", "required"],
738
+ "type": "object",
732
739
  },
733
- "required": ["kind", "contractId", "required"],
734
- "type": "object",
735
- }, {
736
- "properties": {
737
- "kind": { "const": "surface", "type": "string" },
738
- "required": { "type": "boolean" },
739
- "surface": {
740
- "properties": {
741
- "action": {
742
- "anyOf": [
743
- { "const": "call", "type": "string" },
744
- { "const": "publish", "type": "string" },
745
- { "const": "subscribe", "type": "string" },
746
- { "const": "observe", "type": "string" },
747
- { "const": "cancel", "type": "string" },
748
- ],
749
- },
750
- "contractId": { "minLength": 1, "type": "string" },
751
- "kind": {
752
- "anyOf": [
753
- { "const": "rpc", "type": "string" },
754
- { "const": "operation", "type": "string" },
755
- { "const": "event", "type": "string" },
756
- { "const": "feed", "type": "string" },
757
- ],
758
- },
759
- "name": { "minLength": 1, "type": "string" },
760
- },
761
- "required": ["contractId", "kind", "name"],
762
- "type": "object",
740
+ "type": "array",
741
+ },
742
+ "contracts": {
743
+ "items": {
744
+ "properties": {
745
+ "contractId": { "minLength": 1, "type": "string" },
746
+ "required": { "type": "boolean" },
763
747
  },
748
+ "required": ["contractId", "required"],
749
+ "type": "object",
764
750
  },
765
- "required": ["kind", "surface", "required"],
766
- "type": "object",
767
- }, {
768
- "properties": {
769
- "capability": { "minLength": 1, "type": "string" },
770
- "kind": { "const": "capability", "type": "string" },
771
- "required": { "type": "boolean" },
751
+ "type": "array",
752
+ },
753
+ "resources": {
754
+ "items": {
755
+ "properties": {
756
+ "alias": { "minLength": 1, "type": "string" },
757
+ "definition": { "type": "object" },
758
+ "kind": {
759
+ "anyOf": [
760
+ { "const": "kv", "type": "string" },
761
+ { "const": "store", "type": "string" },
762
+ { "const": "jobs", "type": "string" },
763
+ { "const": "event-consumer", "type": "string" },
764
+ { "const": "transfer", "type": "string" },
765
+ ],
766
+ },
767
+ "required": { "type": "boolean" },
768
+ },
769
+ "required": ["kind", "alias", "required"],
770
+ "type": "object",
772
771
  },
773
- "required": ["kind", "capability", "required"],
774
- "type": "object",
775
- }, {
776
- "properties": {
777
- "kind": { "const": "resource", "type": "string" },
778
- "required": { "type": "boolean" },
779
- "resource": {
780
- "properties": {
781
- "alias": { "minLength": 1, "type": "string" },
782
- "definition": { "type": "object" },
783
- "kind": {
784
- "anyOf": [
785
- { "const": "kv", "type": "string" },
786
- { "const": "store", "type": "string" },
787
- { "const": "jobs", "type": "string" },
788
- { "const": "event-consumer", "type": "string" },
789
- { "const": "transfer", "type": "string" },
790
- ],
791
- },
792
- "required": { "type": "boolean" },
772
+ "type": "array",
773
+ },
774
+ "surfaces": {
775
+ "items": {
776
+ "properties": {
777
+ "action": {
778
+ "anyOf": [
779
+ { "const": "call", "type": "string" },
780
+ { "const": "publish", "type": "string" },
781
+ { "const": "subscribe", "type": "string" },
782
+ { "const": "observe", "type": "string" },
783
+ { "const": "cancel", "type": "string" },
784
+ ],
793
785
  },
794
- "required": ["kind", "alias", "required"],
795
- "type": "object",
786
+ "contractId": { "minLength": 1, "type": "string" },
787
+ "kind": {
788
+ "anyOf": [
789
+ { "const": "rpc", "type": "string" },
790
+ { "const": "operation", "type": "string" },
791
+ { "const": "event", "type": "string" },
792
+ { "const": "feed", "type": "string" },
793
+ ],
794
+ },
795
+ "name": { "minLength": 1, "type": "string" },
796
+ "required": { "type": "boolean" },
796
797
  },
798
+ "required": ["contractId", "kind", "name", "required"],
799
+ "type": "object",
797
800
  },
798
- "required": ["kind", "resource", "required"],
799
- "type": "object",
800
- }],
801
+ "type": "array",
802
+ },
801
803
  },
802
- "type": "array",
804
+ "required": [
805
+ "contracts",
806
+ "surfaces",
807
+ "capabilities",
808
+ "resources",
809
+ ],
810
+ "type": "object",
803
811
  },
804
812
  "resources": {
805
813
  "items": {
@@ -980,99 +988,107 @@ export const AuthDeploymentAuthorityGetResponseSchema = {
980
988
  "desiredVersion": { "minLength": 1, "type": "string" },
981
989
  "error": { "minLength": 1, "type": "string" },
982
990
  "grants": {
983
- "items": {
984
- "anyOf": [{
985
- "properties": {
986
- "capability": { "minLength": 1, "type": "string" },
987
- "kind": { "const": "capability", "type": "string" },
988
- },
989
- "required": ["kind", "capability"],
990
- "type": "object",
991
- }, {
992
- "properties": {
993
- "action": {
994
- "anyOf": [
995
- { "const": "call", "type": "string" },
996
- { "const": "publish", "type": "string" },
997
- { "const": "subscribe", "type": "string" },
998
- { "const": "observe", "type": "string" },
999
- { "const": "cancel", "type": "string" },
1000
- ],
1001
- },
1002
- "contractId": { "minLength": 1, "type": "string" },
1003
- "kind": { "const": "surface", "type": "string" },
1004
- "name": { "minLength": 1, "type": "string" },
1005
- "surfaceKind": {
1006
- "anyOf": [
1007
- { "const": "rpc", "type": "string" },
1008
- { "const": "operation", "type": "string" },
1009
- { "const": "event", "type": "string" },
1010
- { "const": "feed", "type": "string" },
1011
- ],
991
+ "properties": {
992
+ "capabilities": {
993
+ "items": {
994
+ "properties": {
995
+ "capability": { "minLength": 1, "type": "string" },
1012
996
  },
997
+ "required": ["capability"],
998
+ "type": "object",
1013
999
  },
1014
- "required": ["kind", "contractId", "surfaceKind", "name"],
1015
- "type": "object",
1016
- }, {
1017
- "properties": {
1018
- "direction": {
1019
- "anyOf": [{ "const": "publish", "type": "string" }, {
1020
- "const": "subscribe",
1021
- "type": "string",
1022
- }],
1023
- },
1024
- "grantSource": {
1025
- "anyOf": [
1026
- { "const": "owned-surface", "type": "string" },
1027
- { "const": "used-surface", "type": "string" },
1028
- { "const": "resource-binding", "type": "string" },
1029
- { "const": "platform-service", "type": "string" },
1030
- { "const": "transfer", "type": "string" },
1031
- ],
1032
- },
1033
- "kind": { "const": "nats", "type": "string" },
1034
- "requiredCapabilities": {
1035
- "items": { "minLength": 1, "type": "string" },
1036
- "type": "array",
1037
- },
1038
- "subject": { "minLength": 1, "type": "string" },
1039
- "surface": {
1040
- "properties": {
1041
- "action": {
1042
- "anyOf": [
1043
- { "const": "call", "type": "string" },
1044
- { "const": "publish", "type": "string" },
1045
- { "const": "subscribe", "type": "string" },
1046
- { "const": "observe", "type": "string" },
1047
- { "const": "cancel", "type": "string" },
1048
- ],
1049
- },
1050
- "contractId": { "minLength": 1, "type": "string" },
1051
- "kind": {
1052
- "anyOf": [
1053
- { "const": "rpc", "type": "string" },
1054
- { "const": "operation", "type": "string" },
1055
- { "const": "event", "type": "string" },
1056
- { "const": "feed", "type": "string" },
1057
- ],
1000
+ "type": "array",
1001
+ },
1002
+ "nats": {
1003
+ "items": {
1004
+ "properties": {
1005
+ "direction": {
1006
+ "anyOf": [{ "const": "publish", "type": "string" }, {
1007
+ "const": "subscribe",
1008
+ "type": "string",
1009
+ }],
1010
+ },
1011
+ "grantSource": {
1012
+ "anyOf": [
1013
+ { "const": "owned-surface", "type": "string" },
1014
+ { "const": "used-surface", "type": "string" },
1015
+ { "const": "resource-binding", "type": "string" },
1016
+ { "const": "platform-service", "type": "string" },
1017
+ { "const": "transfer", "type": "string" },
1018
+ ],
1019
+ },
1020
+ "requiredCapabilities": {
1021
+ "items": { "minLength": 1, "type": "string" },
1022
+ "type": "array",
1023
+ },
1024
+ "subject": { "minLength": 1, "type": "string" },
1025
+ "surface": {
1026
+ "properties": {
1027
+ "action": {
1028
+ "anyOf": [
1029
+ { "const": "call", "type": "string" },
1030
+ { "const": "publish", "type": "string" },
1031
+ { "const": "subscribe", "type": "string" },
1032
+ { "const": "observe", "type": "string" },
1033
+ { "const": "cancel", "type": "string" },
1034
+ ],
1035
+ },
1036
+ "contractId": { "minLength": 1, "type": "string" },
1037
+ "kind": {
1038
+ "anyOf": [
1039
+ { "const": "rpc", "type": "string" },
1040
+ { "const": "operation", "type": "string" },
1041
+ { "const": "event", "type": "string" },
1042
+ { "const": "feed", "type": "string" },
1043
+ ],
1044
+ },
1045
+ "name": { "minLength": 1, "type": "string" },
1058
1046
  },
1059
- "name": { "minLength": 1, "type": "string" },
1047
+ "required": ["contractId", "kind", "name"],
1048
+ "type": "object",
1060
1049
  },
1061
- "required": ["contractId", "kind", "name"],
1062
- "type": "object",
1063
1050
  },
1051
+ "required": [
1052
+ "direction",
1053
+ "subject",
1054
+ "requiredCapabilities",
1055
+ "grantSource",
1056
+ ],
1057
+ "type": "object",
1064
1058
  },
1065
- "required": [
1066
- "kind",
1067
- "direction",
1068
- "subject",
1069
- "requiredCapabilities",
1070
- "grantSource",
1071
- ],
1072
- "type": "object",
1073
- }],
1059
+ "type": "array",
1060
+ },
1061
+ "surfaces": {
1062
+ "items": {
1063
+ "properties": {
1064
+ "action": {
1065
+ "anyOf": [
1066
+ { "const": "call", "type": "string" },
1067
+ { "const": "publish", "type": "string" },
1068
+ { "const": "subscribe", "type": "string" },
1069
+ { "const": "observe", "type": "string" },
1070
+ { "const": "cancel", "type": "string" },
1071
+ ],
1072
+ },
1073
+ "contractId": { "minLength": 1, "type": "string" },
1074
+ "name": { "minLength": 1, "type": "string" },
1075
+ "surfaceKind": {
1076
+ "anyOf": [
1077
+ { "const": "rpc", "type": "string" },
1078
+ { "const": "operation", "type": "string" },
1079
+ { "const": "event", "type": "string" },
1080
+ { "const": "feed", "type": "string" },
1081
+ ],
1082
+ },
1083
+ },
1084
+ "required": ["contractId", "surfaceKind", "name"],
1085
+ "type": "object",
1086
+ },
1087
+ "type": "array",
1088
+ },
1074
1089
  },
1075
- "type": "array",
1090
+ "required": ["capabilities", "surfaces", "nats"],
1091
+ "type": "object",
1076
1092
  },
1077
1093
  "reconciledAt": {
1078
1094
  "anyOf": [{ "format": "date-time", "type": "string" }, {
@@ -1626,83 +1642,87 @@ export const AuthDeploymentAuthorityListResponseSchema = {
1626
1642
  "type": "array",
1627
1643
  },
1628
1644
  "needs": {
1629
- "items": {
1630
- "anyOf": [{
1631
- "properties": {
1632
- "contractId": { "minLength": 1, "type": "string" },
1633
- "kind": { "const": "contract", "type": "string" },
1634
- "required": { "type": "boolean" },
1645
+ "properties": {
1646
+ "capabilities": {
1647
+ "items": {
1648
+ "properties": {
1649
+ "capability": { "minLength": 1, "type": "string" },
1650
+ "required": { "type": "boolean" },
1651
+ },
1652
+ "required": ["capability", "required"],
1653
+ "type": "object",
1635
1654
  },
1636
- "required": ["kind", "contractId", "required"],
1637
- "type": "object",
1638
- }, {
1639
- "properties": {
1640
- "kind": { "const": "surface", "type": "string" },
1641
- "required": { "type": "boolean" },
1642
- "surface": {
1643
- "properties": {
1644
- "action": {
1645
- "anyOf": [
1646
- { "const": "call", "type": "string" },
1647
- { "const": "publish", "type": "string" },
1648
- { "const": "subscribe", "type": "string" },
1649
- { "const": "observe", "type": "string" },
1650
- { "const": "cancel", "type": "string" },
1651
- ],
1652
- },
1653
- "contractId": { "minLength": 1, "type": "string" },
1654
- "kind": {
1655
- "anyOf": [
1656
- { "const": "rpc", "type": "string" },
1657
- { "const": "operation", "type": "string" },
1658
- { "const": "event", "type": "string" },
1659
- { "const": "feed", "type": "string" },
1660
- ],
1661
- },
1662
- "name": { "minLength": 1, "type": "string" },
1663
- },
1664
- "required": ["contractId", "kind", "name"],
1665
- "type": "object",
1655
+ "type": "array",
1656
+ },
1657
+ "contracts": {
1658
+ "items": {
1659
+ "properties": {
1660
+ "contractId": { "minLength": 1, "type": "string" },
1661
+ "required": { "type": "boolean" },
1666
1662
  },
1663
+ "required": ["contractId", "required"],
1664
+ "type": "object",
1667
1665
  },
1668
- "required": ["kind", "surface", "required"],
1669
- "type": "object",
1670
- }, {
1671
- "properties": {
1672
- "capability": { "minLength": 1, "type": "string" },
1673
- "kind": { "const": "capability", "type": "string" },
1674
- "required": { "type": "boolean" },
1666
+ "type": "array",
1667
+ },
1668
+ "resources": {
1669
+ "items": {
1670
+ "properties": {
1671
+ "alias": { "minLength": 1, "type": "string" },
1672
+ "definition": { "type": "object" },
1673
+ "kind": {
1674
+ "anyOf": [
1675
+ { "const": "kv", "type": "string" },
1676
+ { "const": "store", "type": "string" },
1677
+ { "const": "jobs", "type": "string" },
1678
+ { "const": "event-consumer", "type": "string" },
1679
+ { "const": "transfer", "type": "string" },
1680
+ ],
1681
+ },
1682
+ "required": { "type": "boolean" },
1683
+ },
1684
+ "required": ["kind", "alias", "required"],
1685
+ "type": "object",
1675
1686
  },
1676
- "required": ["kind", "capability", "required"],
1677
- "type": "object",
1678
- }, {
1679
- "properties": {
1680
- "kind": { "const": "resource", "type": "string" },
1681
- "required": { "type": "boolean" },
1682
- "resource": {
1683
- "properties": {
1684
- "alias": { "minLength": 1, "type": "string" },
1685
- "definition": { "type": "object" },
1686
- "kind": {
1687
- "anyOf": [
1688
- { "const": "kv", "type": "string" },
1689
- { "const": "store", "type": "string" },
1690
- { "const": "jobs", "type": "string" },
1691
- { "const": "event-consumer", "type": "string" },
1692
- { "const": "transfer", "type": "string" },
1693
- ],
1694
- },
1695
- "required": { "type": "boolean" },
1687
+ "type": "array",
1688
+ },
1689
+ "surfaces": {
1690
+ "items": {
1691
+ "properties": {
1692
+ "action": {
1693
+ "anyOf": [
1694
+ { "const": "call", "type": "string" },
1695
+ { "const": "publish", "type": "string" },
1696
+ { "const": "subscribe", "type": "string" },
1697
+ { "const": "observe", "type": "string" },
1698
+ { "const": "cancel", "type": "string" },
1699
+ ],
1696
1700
  },
1697
- "required": ["kind", "alias", "required"],
1698
- "type": "object",
1701
+ "contractId": { "minLength": 1, "type": "string" },
1702
+ "kind": {
1703
+ "anyOf": [
1704
+ { "const": "rpc", "type": "string" },
1705
+ { "const": "operation", "type": "string" },
1706
+ { "const": "event", "type": "string" },
1707
+ { "const": "feed", "type": "string" },
1708
+ ],
1709
+ },
1710
+ "name": { "minLength": 1, "type": "string" },
1711
+ "required": { "type": "boolean" },
1699
1712
  },
1713
+ "required": ["contractId", "kind", "name", "required"],
1714
+ "type": "object",
1700
1715
  },
1701
- "required": ["kind", "resource", "required"],
1702
- "type": "object",
1703
- }],
1716
+ "type": "array",
1717
+ },
1704
1718
  },
1705
- "type": "array",
1719
+ "required": [
1720
+ "contracts",
1721
+ "surfaces",
1722
+ "capabilities",
1723
+ "resources",
1724
+ ],
1725
+ "type": "object",
1706
1726
  },
1707
1727
  "resources": {
1708
1728
  "items": {
@@ -1867,83 +1887,87 @@ export const AuthDeploymentAuthorityPlanResponseSchema = {
1867
1887
  "type": "array",
1868
1888
  },
1869
1889
  "requestedNeeds": {
1870
- "items": {
1871
- "anyOf": [{
1872
- "properties": {
1873
- "contractId": { "minLength": 1, "type": "string" },
1874
- "kind": { "const": "contract", "type": "string" },
1875
- "required": { "type": "boolean" },
1890
+ "properties": {
1891
+ "capabilities": {
1892
+ "items": {
1893
+ "properties": {
1894
+ "capability": { "minLength": 1, "type": "string" },
1895
+ "required": { "type": "boolean" },
1896
+ },
1897
+ "required": ["capability", "required"],
1898
+ "type": "object",
1876
1899
  },
1877
- "required": ["kind", "contractId", "required"],
1878
- "type": "object",
1879
- }, {
1880
- "properties": {
1881
- "kind": { "const": "surface", "type": "string" },
1882
- "required": { "type": "boolean" },
1883
- "surface": {
1884
- "properties": {
1885
- "action": {
1886
- "anyOf": [
1887
- { "const": "call", "type": "string" },
1888
- { "const": "publish", "type": "string" },
1889
- { "const": "subscribe", "type": "string" },
1890
- { "const": "observe", "type": "string" },
1891
- { "const": "cancel", "type": "string" },
1892
- ],
1893
- },
1894
- "contractId": { "minLength": 1, "type": "string" },
1895
- "kind": {
1896
- "anyOf": [
1897
- { "const": "rpc", "type": "string" },
1898
- { "const": "operation", "type": "string" },
1899
- { "const": "event", "type": "string" },
1900
- { "const": "feed", "type": "string" },
1901
- ],
1902
- },
1903
- "name": { "minLength": 1, "type": "string" },
1904
- },
1905
- "required": ["contractId", "kind", "name"],
1906
- "type": "object",
1900
+ "type": "array",
1901
+ },
1902
+ "contracts": {
1903
+ "items": {
1904
+ "properties": {
1905
+ "contractId": { "minLength": 1, "type": "string" },
1906
+ "required": { "type": "boolean" },
1907
1907
  },
1908
+ "required": ["contractId", "required"],
1909
+ "type": "object",
1908
1910
  },
1909
- "required": ["kind", "surface", "required"],
1910
- "type": "object",
1911
- }, {
1912
- "properties": {
1913
- "capability": { "minLength": 1, "type": "string" },
1914
- "kind": { "const": "capability", "type": "string" },
1915
- "required": { "type": "boolean" },
1911
+ "type": "array",
1912
+ },
1913
+ "resources": {
1914
+ "items": {
1915
+ "properties": {
1916
+ "alias": { "minLength": 1, "type": "string" },
1917
+ "definition": { "type": "object" },
1918
+ "kind": {
1919
+ "anyOf": [
1920
+ { "const": "kv", "type": "string" },
1921
+ { "const": "store", "type": "string" },
1922
+ { "const": "jobs", "type": "string" },
1923
+ { "const": "event-consumer", "type": "string" },
1924
+ { "const": "transfer", "type": "string" },
1925
+ ],
1926
+ },
1927
+ "required": { "type": "boolean" },
1928
+ },
1929
+ "required": ["kind", "alias", "required"],
1930
+ "type": "object",
1916
1931
  },
1917
- "required": ["kind", "capability", "required"],
1918
- "type": "object",
1919
- }, {
1920
- "properties": {
1921
- "kind": { "const": "resource", "type": "string" },
1922
- "required": { "type": "boolean" },
1923
- "resource": {
1924
- "properties": {
1925
- "alias": { "minLength": 1, "type": "string" },
1926
- "definition": { "type": "object" },
1927
- "kind": {
1928
- "anyOf": [
1929
- { "const": "kv", "type": "string" },
1930
- { "const": "store", "type": "string" },
1931
- { "const": "jobs", "type": "string" },
1932
- { "const": "event-consumer", "type": "string" },
1933
- { "const": "transfer", "type": "string" },
1934
- ],
1935
- },
1936
- "required": { "type": "boolean" },
1932
+ "type": "array",
1933
+ },
1934
+ "surfaces": {
1935
+ "items": {
1936
+ "properties": {
1937
+ "action": {
1938
+ "anyOf": [
1939
+ { "const": "call", "type": "string" },
1940
+ { "const": "publish", "type": "string" },
1941
+ { "const": "subscribe", "type": "string" },
1942
+ { "const": "observe", "type": "string" },
1943
+ { "const": "cancel", "type": "string" },
1944
+ ],
1937
1945
  },
1938
- "required": ["kind", "alias", "required"],
1939
- "type": "object",
1946
+ "contractId": { "minLength": 1, "type": "string" },
1947
+ "kind": {
1948
+ "anyOf": [
1949
+ { "const": "rpc", "type": "string" },
1950
+ { "const": "operation", "type": "string" },
1951
+ { "const": "event", "type": "string" },
1952
+ { "const": "feed", "type": "string" },
1953
+ ],
1954
+ },
1955
+ "name": { "minLength": 1, "type": "string" },
1956
+ "required": { "type": "boolean" },
1940
1957
  },
1958
+ "required": ["contractId", "kind", "name", "required"],
1959
+ "type": "object",
1941
1960
  },
1942
- "required": ["kind", "resource", "required"],
1943
- "type": "object",
1944
- }],
1961
+ "type": "array",
1962
+ },
1945
1963
  },
1946
- "type": "array",
1964
+ "required": [
1965
+ "contracts",
1966
+ "surfaces",
1967
+ "capabilities",
1968
+ "resources",
1969
+ ],
1970
+ "type": "object",
1947
1971
  },
1948
1972
  "summary": { "type": "object" },
1949
1973
  },
@@ -2043,83 +2067,87 @@ export const AuthDeploymentAuthorityPlanResponseSchema = {
2043
2067
  "type": "array",
2044
2068
  },
2045
2069
  "requestedNeeds": {
2046
- "items": {
2047
- "anyOf": [{
2048
- "properties": {
2049
- "contractId": { "minLength": 1, "type": "string" },
2050
- "kind": { "const": "contract", "type": "string" },
2051
- "required": { "type": "boolean" },
2070
+ "properties": {
2071
+ "capabilities": {
2072
+ "items": {
2073
+ "properties": {
2074
+ "capability": { "minLength": 1, "type": "string" },
2075
+ "required": { "type": "boolean" },
2076
+ },
2077
+ "required": ["capability", "required"],
2078
+ "type": "object",
2052
2079
  },
2053
- "required": ["kind", "contractId", "required"],
2054
- "type": "object",
2055
- }, {
2056
- "properties": {
2057
- "kind": { "const": "surface", "type": "string" },
2058
- "required": { "type": "boolean" },
2059
- "surface": {
2060
- "properties": {
2061
- "action": {
2062
- "anyOf": [
2063
- { "const": "call", "type": "string" },
2064
- { "const": "publish", "type": "string" },
2065
- { "const": "subscribe", "type": "string" },
2066
- { "const": "observe", "type": "string" },
2067
- { "const": "cancel", "type": "string" },
2068
- ],
2069
- },
2070
- "contractId": { "minLength": 1, "type": "string" },
2071
- "kind": {
2072
- "anyOf": [
2073
- { "const": "rpc", "type": "string" },
2074
- { "const": "operation", "type": "string" },
2075
- { "const": "event", "type": "string" },
2076
- { "const": "feed", "type": "string" },
2077
- ],
2078
- },
2079
- "name": { "minLength": 1, "type": "string" },
2080
- },
2081
- "required": ["contractId", "kind", "name"],
2082
- "type": "object",
2080
+ "type": "array",
2081
+ },
2082
+ "contracts": {
2083
+ "items": {
2084
+ "properties": {
2085
+ "contractId": { "minLength": 1, "type": "string" },
2086
+ "required": { "type": "boolean" },
2083
2087
  },
2088
+ "required": ["contractId", "required"],
2089
+ "type": "object",
2084
2090
  },
2085
- "required": ["kind", "surface", "required"],
2086
- "type": "object",
2087
- }, {
2088
- "properties": {
2089
- "capability": { "minLength": 1, "type": "string" },
2090
- "kind": { "const": "capability", "type": "string" },
2091
- "required": { "type": "boolean" },
2091
+ "type": "array",
2092
+ },
2093
+ "resources": {
2094
+ "items": {
2095
+ "properties": {
2096
+ "alias": { "minLength": 1, "type": "string" },
2097
+ "definition": { "type": "object" },
2098
+ "kind": {
2099
+ "anyOf": [
2100
+ { "const": "kv", "type": "string" },
2101
+ { "const": "store", "type": "string" },
2102
+ { "const": "jobs", "type": "string" },
2103
+ { "const": "event-consumer", "type": "string" },
2104
+ { "const": "transfer", "type": "string" },
2105
+ ],
2106
+ },
2107
+ "required": { "type": "boolean" },
2108
+ },
2109
+ "required": ["kind", "alias", "required"],
2110
+ "type": "object",
2092
2111
  },
2093
- "required": ["kind", "capability", "required"],
2094
- "type": "object",
2095
- }, {
2096
- "properties": {
2097
- "kind": { "const": "resource", "type": "string" },
2098
- "required": { "type": "boolean" },
2099
- "resource": {
2100
- "properties": {
2101
- "alias": { "minLength": 1, "type": "string" },
2102
- "definition": { "type": "object" },
2103
- "kind": {
2104
- "anyOf": [
2105
- { "const": "kv", "type": "string" },
2106
- { "const": "store", "type": "string" },
2107
- { "const": "jobs", "type": "string" },
2108
- { "const": "event-consumer", "type": "string" },
2109
- { "const": "transfer", "type": "string" },
2110
- ],
2111
- },
2112
- "required": { "type": "boolean" },
2112
+ "type": "array",
2113
+ },
2114
+ "surfaces": {
2115
+ "items": {
2116
+ "properties": {
2117
+ "action": {
2118
+ "anyOf": [
2119
+ { "const": "call", "type": "string" },
2120
+ { "const": "publish", "type": "string" },
2121
+ { "const": "subscribe", "type": "string" },
2122
+ { "const": "observe", "type": "string" },
2123
+ { "const": "cancel", "type": "string" },
2124
+ ],
2113
2125
  },
2114
- "required": ["kind", "alias", "required"],
2115
- "type": "object",
2126
+ "contractId": { "minLength": 1, "type": "string" },
2127
+ "kind": {
2128
+ "anyOf": [
2129
+ { "const": "rpc", "type": "string" },
2130
+ { "const": "operation", "type": "string" },
2131
+ { "const": "event", "type": "string" },
2132
+ { "const": "feed", "type": "string" },
2133
+ ],
2134
+ },
2135
+ "name": { "minLength": 1, "type": "string" },
2136
+ "required": { "type": "boolean" },
2116
2137
  },
2138
+ "required": ["contractId", "kind", "name", "required"],
2139
+ "type": "object",
2117
2140
  },
2118
- "required": ["kind", "resource", "required"],
2119
- "type": "object",
2120
- }],
2141
+ "type": "array",
2142
+ },
2121
2143
  },
2122
- "type": "array",
2144
+ "required": [
2145
+ "contracts",
2146
+ "surfaces",
2147
+ "capabilities",
2148
+ "resources",
2149
+ ],
2150
+ "type": "object",
2123
2151
  },
2124
2152
  "summary": { "type": "object" },
2125
2153
  },
@@ -2235,83 +2263,87 @@ export const AuthDeploymentAuthorityPlansGetResponseSchema = {
2235
2263
  "type": "array",
2236
2264
  },
2237
2265
  "requestedNeeds": {
2238
- "items": {
2239
- "anyOf": [{
2240
- "properties": {
2241
- "contractId": { "minLength": 1, "type": "string" },
2242
- "kind": { "const": "contract", "type": "string" },
2243
- "required": { "type": "boolean" },
2244
- },
2245
- "required": ["kind", "contractId", "required"],
2246
- "type": "object",
2247
- }, {
2248
- "properties": {
2249
- "kind": { "const": "surface", "type": "string" },
2250
- "required": { "type": "boolean" },
2251
- "surface": {
2252
- "properties": {
2253
- "action": {
2254
- "anyOf": [
2255
- { "const": "call", "type": "string" },
2256
- { "const": "publish", "type": "string" },
2257
- { "const": "subscribe", "type": "string" },
2258
- { "const": "observe", "type": "string" },
2259
- { "const": "cancel", "type": "string" },
2260
- ],
2261
- },
2262
- "contractId": { "minLength": 1, "type": "string" },
2263
- "kind": {
2264
- "anyOf": [
2265
- { "const": "rpc", "type": "string" },
2266
- { "const": "operation", "type": "string" },
2267
- { "const": "event", "type": "string" },
2268
- { "const": "feed", "type": "string" },
2269
- ],
2270
- },
2271
- "name": { "minLength": 1, "type": "string" },
2272
- },
2273
- "required": ["contractId", "kind", "name"],
2274
- "type": "object",
2266
+ "properties": {
2267
+ "capabilities": {
2268
+ "items": {
2269
+ "properties": {
2270
+ "capability": { "minLength": 1, "type": "string" },
2271
+ "required": { "type": "boolean" },
2275
2272
  },
2273
+ "required": ["capability", "required"],
2274
+ "type": "object",
2276
2275
  },
2277
- "required": ["kind", "surface", "required"],
2278
- "type": "object",
2279
- }, {
2280
- "properties": {
2281
- "capability": { "minLength": 1, "type": "string" },
2282
- "kind": { "const": "capability", "type": "string" },
2283
- "required": { "type": "boolean" },
2276
+ "type": "array",
2277
+ },
2278
+ "contracts": {
2279
+ "items": {
2280
+ "properties": {
2281
+ "contractId": { "minLength": 1, "type": "string" },
2282
+ "required": { "type": "boolean" },
2283
+ },
2284
+ "required": ["contractId", "required"],
2285
+ "type": "object",
2284
2286
  },
2285
- "required": ["kind", "capability", "required"],
2286
- "type": "object",
2287
- }, {
2288
- "properties": {
2289
- "kind": { "const": "resource", "type": "string" },
2290
- "required": { "type": "boolean" },
2291
- "resource": {
2292
- "properties": {
2293
- "alias": { "minLength": 1, "type": "string" },
2294
- "definition": { "type": "object" },
2295
- "kind": {
2296
- "anyOf": [
2297
- { "const": "kv", "type": "string" },
2298
- { "const": "store", "type": "string" },
2299
- { "const": "jobs", "type": "string" },
2300
- { "const": "event-consumer", "type": "string" },
2301
- { "const": "transfer", "type": "string" },
2302
- ],
2303
- },
2304
- "required": { "type": "boolean" },
2287
+ "type": "array",
2288
+ },
2289
+ "resources": {
2290
+ "items": {
2291
+ "properties": {
2292
+ "alias": { "minLength": 1, "type": "string" },
2293
+ "definition": { "type": "object" },
2294
+ "kind": {
2295
+ "anyOf": [
2296
+ { "const": "kv", "type": "string" },
2297
+ { "const": "store", "type": "string" },
2298
+ { "const": "jobs", "type": "string" },
2299
+ { "const": "event-consumer", "type": "string" },
2300
+ { "const": "transfer", "type": "string" },
2301
+ ],
2305
2302
  },
2306
- "required": ["kind", "alias", "required"],
2307
- "type": "object",
2303
+ "required": { "type": "boolean" },
2308
2304
  },
2305
+ "required": ["kind", "alias", "required"],
2306
+ "type": "object",
2309
2307
  },
2310
- "required": ["kind", "resource", "required"],
2311
- "type": "object",
2312
- }],
2308
+ "type": "array",
2309
+ },
2310
+ "surfaces": {
2311
+ "items": {
2312
+ "properties": {
2313
+ "action": {
2314
+ "anyOf": [
2315
+ { "const": "call", "type": "string" },
2316
+ { "const": "publish", "type": "string" },
2317
+ { "const": "subscribe", "type": "string" },
2318
+ { "const": "observe", "type": "string" },
2319
+ { "const": "cancel", "type": "string" },
2320
+ ],
2321
+ },
2322
+ "contractId": { "minLength": 1, "type": "string" },
2323
+ "kind": {
2324
+ "anyOf": [
2325
+ { "const": "rpc", "type": "string" },
2326
+ { "const": "operation", "type": "string" },
2327
+ { "const": "event", "type": "string" },
2328
+ { "const": "feed", "type": "string" },
2329
+ ],
2330
+ },
2331
+ "name": { "minLength": 1, "type": "string" },
2332
+ "required": { "type": "boolean" },
2333
+ },
2334
+ "required": ["contractId", "kind", "name", "required"],
2335
+ "type": "object",
2336
+ },
2337
+ "type": "array",
2338
+ },
2313
2339
  },
2314
- "type": "array",
2340
+ "required": [
2341
+ "contracts",
2342
+ "surfaces",
2343
+ "capabilities",
2344
+ "resources",
2345
+ ],
2346
+ "type": "object",
2315
2347
  },
2316
2348
  "summary": { "type": "object" },
2317
2349
  },
@@ -2411,83 +2443,87 @@ export const AuthDeploymentAuthorityPlansGetResponseSchema = {
2411
2443
  "type": "array",
2412
2444
  },
2413
2445
  "requestedNeeds": {
2414
- "items": {
2415
- "anyOf": [{
2416
- "properties": {
2417
- "contractId": { "minLength": 1, "type": "string" },
2418
- "kind": { "const": "contract", "type": "string" },
2419
- "required": { "type": "boolean" },
2446
+ "properties": {
2447
+ "capabilities": {
2448
+ "items": {
2449
+ "properties": {
2450
+ "capability": { "minLength": 1, "type": "string" },
2451
+ "required": { "type": "boolean" },
2452
+ },
2453
+ "required": ["capability", "required"],
2454
+ "type": "object",
2420
2455
  },
2421
- "required": ["kind", "contractId", "required"],
2422
- "type": "object",
2423
- }, {
2424
- "properties": {
2425
- "kind": { "const": "surface", "type": "string" },
2426
- "required": { "type": "boolean" },
2427
- "surface": {
2428
- "properties": {
2429
- "action": {
2430
- "anyOf": [
2431
- { "const": "call", "type": "string" },
2432
- { "const": "publish", "type": "string" },
2433
- { "const": "subscribe", "type": "string" },
2434
- { "const": "observe", "type": "string" },
2435
- { "const": "cancel", "type": "string" },
2436
- ],
2437
- },
2438
- "contractId": { "minLength": 1, "type": "string" },
2439
- "kind": {
2440
- "anyOf": [
2441
- { "const": "rpc", "type": "string" },
2442
- { "const": "operation", "type": "string" },
2443
- { "const": "event", "type": "string" },
2444
- { "const": "feed", "type": "string" },
2445
- ],
2446
- },
2447
- "name": { "minLength": 1, "type": "string" },
2448
- },
2449
- "required": ["contractId", "kind", "name"],
2450
- "type": "object",
2456
+ "type": "array",
2457
+ },
2458
+ "contracts": {
2459
+ "items": {
2460
+ "properties": {
2461
+ "contractId": { "minLength": 1, "type": "string" },
2462
+ "required": { "type": "boolean" },
2451
2463
  },
2464
+ "required": ["contractId", "required"],
2465
+ "type": "object",
2452
2466
  },
2453
- "required": ["kind", "surface", "required"],
2454
- "type": "object",
2455
- }, {
2456
- "properties": {
2457
- "capability": { "minLength": 1, "type": "string" },
2458
- "kind": { "const": "capability", "type": "string" },
2459
- "required": { "type": "boolean" },
2467
+ "type": "array",
2468
+ },
2469
+ "resources": {
2470
+ "items": {
2471
+ "properties": {
2472
+ "alias": { "minLength": 1, "type": "string" },
2473
+ "definition": { "type": "object" },
2474
+ "kind": {
2475
+ "anyOf": [
2476
+ { "const": "kv", "type": "string" },
2477
+ { "const": "store", "type": "string" },
2478
+ { "const": "jobs", "type": "string" },
2479
+ { "const": "event-consumer", "type": "string" },
2480
+ { "const": "transfer", "type": "string" },
2481
+ ],
2482
+ },
2483
+ "required": { "type": "boolean" },
2484
+ },
2485
+ "required": ["kind", "alias", "required"],
2486
+ "type": "object",
2460
2487
  },
2461
- "required": ["kind", "capability", "required"],
2462
- "type": "object",
2463
- }, {
2464
- "properties": {
2465
- "kind": { "const": "resource", "type": "string" },
2466
- "required": { "type": "boolean" },
2467
- "resource": {
2468
- "properties": {
2469
- "alias": { "minLength": 1, "type": "string" },
2470
- "definition": { "type": "object" },
2471
- "kind": {
2472
- "anyOf": [
2473
- { "const": "kv", "type": "string" },
2474
- { "const": "store", "type": "string" },
2475
- { "const": "jobs", "type": "string" },
2476
- { "const": "event-consumer", "type": "string" },
2477
- { "const": "transfer", "type": "string" },
2478
- ],
2479
- },
2480
- "required": { "type": "boolean" },
2488
+ "type": "array",
2489
+ },
2490
+ "surfaces": {
2491
+ "items": {
2492
+ "properties": {
2493
+ "action": {
2494
+ "anyOf": [
2495
+ { "const": "call", "type": "string" },
2496
+ { "const": "publish", "type": "string" },
2497
+ { "const": "subscribe", "type": "string" },
2498
+ { "const": "observe", "type": "string" },
2499
+ { "const": "cancel", "type": "string" },
2500
+ ],
2481
2501
  },
2482
- "required": ["kind", "alias", "required"],
2483
- "type": "object",
2502
+ "contractId": { "minLength": 1, "type": "string" },
2503
+ "kind": {
2504
+ "anyOf": [
2505
+ { "const": "rpc", "type": "string" },
2506
+ { "const": "operation", "type": "string" },
2507
+ { "const": "event", "type": "string" },
2508
+ { "const": "feed", "type": "string" },
2509
+ ],
2510
+ },
2511
+ "name": { "minLength": 1, "type": "string" },
2512
+ "required": { "type": "boolean" },
2484
2513
  },
2514
+ "required": ["contractId", "kind", "name", "required"],
2515
+ "type": "object",
2485
2516
  },
2486
- "required": ["kind", "resource", "required"],
2487
- "type": "object",
2488
- }],
2517
+ "type": "array",
2518
+ },
2489
2519
  },
2490
- "type": "array",
2520
+ "required": [
2521
+ "contracts",
2522
+ "surfaces",
2523
+ "capabilities",
2524
+ "resources",
2525
+ ],
2526
+ "type": "object",
2491
2527
  },
2492
2528
  "summary": { "type": "object" },
2493
2529
  },
@@ -2636,83 +2672,87 @@ export const AuthDeploymentAuthorityPlansListResponseSchema = {
2636
2672
  "type": "array",
2637
2673
  },
2638
2674
  "requestedNeeds": {
2639
- "items": {
2640
- "anyOf": [{
2641
- "properties": {
2642
- "contractId": { "minLength": 1, "type": "string" },
2643
- "kind": { "const": "contract", "type": "string" },
2644
- "required": { "type": "boolean" },
2675
+ "properties": {
2676
+ "capabilities": {
2677
+ "items": {
2678
+ "properties": {
2679
+ "capability": { "minLength": 1, "type": "string" },
2680
+ "required": { "type": "boolean" },
2681
+ },
2682
+ "required": ["capability", "required"],
2683
+ "type": "object",
2645
2684
  },
2646
- "required": ["kind", "contractId", "required"],
2647
- "type": "object",
2648
- }, {
2649
- "properties": {
2650
- "kind": { "const": "surface", "type": "string" },
2651
- "required": { "type": "boolean" },
2652
- "surface": {
2653
- "properties": {
2654
- "action": {
2655
- "anyOf": [
2656
- { "const": "call", "type": "string" },
2657
- { "const": "publish", "type": "string" },
2658
- { "const": "subscribe", "type": "string" },
2659
- { "const": "observe", "type": "string" },
2660
- { "const": "cancel", "type": "string" },
2661
- ],
2662
- },
2663
- "contractId": { "minLength": 1, "type": "string" },
2664
- "kind": {
2665
- "anyOf": [
2666
- { "const": "rpc", "type": "string" },
2667
- { "const": "operation", "type": "string" },
2668
- { "const": "event", "type": "string" },
2669
- { "const": "feed", "type": "string" },
2670
- ],
2671
- },
2672
- "name": { "minLength": 1, "type": "string" },
2673
- },
2674
- "required": ["contractId", "kind", "name"],
2675
- "type": "object",
2685
+ "type": "array",
2686
+ },
2687
+ "contracts": {
2688
+ "items": {
2689
+ "properties": {
2690
+ "contractId": { "minLength": 1, "type": "string" },
2691
+ "required": { "type": "boolean" },
2676
2692
  },
2693
+ "required": ["contractId", "required"],
2694
+ "type": "object",
2677
2695
  },
2678
- "required": ["kind", "surface", "required"],
2679
- "type": "object",
2680
- }, {
2681
- "properties": {
2682
- "capability": { "minLength": 1, "type": "string" },
2683
- "kind": { "const": "capability", "type": "string" },
2684
- "required": { "type": "boolean" },
2696
+ "type": "array",
2697
+ },
2698
+ "resources": {
2699
+ "items": {
2700
+ "properties": {
2701
+ "alias": { "minLength": 1, "type": "string" },
2702
+ "definition": { "type": "object" },
2703
+ "kind": {
2704
+ "anyOf": [
2705
+ { "const": "kv", "type": "string" },
2706
+ { "const": "store", "type": "string" },
2707
+ { "const": "jobs", "type": "string" },
2708
+ { "const": "event-consumer", "type": "string" },
2709
+ { "const": "transfer", "type": "string" },
2710
+ ],
2711
+ },
2712
+ "required": { "type": "boolean" },
2713
+ },
2714
+ "required": ["kind", "alias", "required"],
2715
+ "type": "object",
2685
2716
  },
2686
- "required": ["kind", "capability", "required"],
2687
- "type": "object",
2688
- }, {
2689
- "properties": {
2690
- "kind": { "const": "resource", "type": "string" },
2691
- "required": { "type": "boolean" },
2692
- "resource": {
2693
- "properties": {
2694
- "alias": { "minLength": 1, "type": "string" },
2695
- "definition": { "type": "object" },
2696
- "kind": {
2697
- "anyOf": [
2698
- { "const": "kv", "type": "string" },
2699
- { "const": "store", "type": "string" },
2700
- { "const": "jobs", "type": "string" },
2701
- { "const": "event-consumer", "type": "string" },
2702
- { "const": "transfer", "type": "string" },
2703
- ],
2704
- },
2705
- "required": { "type": "boolean" },
2717
+ "type": "array",
2718
+ },
2719
+ "surfaces": {
2720
+ "items": {
2721
+ "properties": {
2722
+ "action": {
2723
+ "anyOf": [
2724
+ { "const": "call", "type": "string" },
2725
+ { "const": "publish", "type": "string" },
2726
+ { "const": "subscribe", "type": "string" },
2727
+ { "const": "observe", "type": "string" },
2728
+ { "const": "cancel", "type": "string" },
2729
+ ],
2706
2730
  },
2707
- "required": ["kind", "alias", "required"],
2708
- "type": "object",
2731
+ "contractId": { "minLength": 1, "type": "string" },
2732
+ "kind": {
2733
+ "anyOf": [
2734
+ { "const": "rpc", "type": "string" },
2735
+ { "const": "operation", "type": "string" },
2736
+ { "const": "event", "type": "string" },
2737
+ { "const": "feed", "type": "string" },
2738
+ ],
2739
+ },
2740
+ "name": { "minLength": 1, "type": "string" },
2741
+ "required": { "type": "boolean" },
2709
2742
  },
2743
+ "required": ["contractId", "kind", "name", "required"],
2744
+ "type": "object",
2710
2745
  },
2711
- "required": ["kind", "resource", "required"],
2712
- "type": "object",
2713
- }],
2746
+ "type": "array",
2747
+ },
2714
2748
  },
2715
- "type": "array",
2749
+ "required": [
2750
+ "contracts",
2751
+ "surfaces",
2752
+ "capabilities",
2753
+ "resources",
2754
+ ],
2755
+ "type": "object",
2716
2756
  },
2717
2757
  "summary": { "type": "object" },
2718
2758
  },
@@ -2814,83 +2854,87 @@ export const AuthDeploymentAuthorityPlansListResponseSchema = {
2814
2854
  "type": "array",
2815
2855
  },
2816
2856
  "requestedNeeds": {
2817
- "items": {
2818
- "anyOf": [{
2819
- "properties": {
2820
- "contractId": { "minLength": 1, "type": "string" },
2821
- "kind": { "const": "contract", "type": "string" },
2822
- "required": { "type": "boolean" },
2857
+ "properties": {
2858
+ "capabilities": {
2859
+ "items": {
2860
+ "properties": {
2861
+ "capability": { "minLength": 1, "type": "string" },
2862
+ "required": { "type": "boolean" },
2863
+ },
2864
+ "required": ["capability", "required"],
2865
+ "type": "object",
2823
2866
  },
2824
- "required": ["kind", "contractId", "required"],
2825
- "type": "object",
2826
- }, {
2827
- "properties": {
2828
- "kind": { "const": "surface", "type": "string" },
2829
- "required": { "type": "boolean" },
2830
- "surface": {
2831
- "properties": {
2832
- "action": {
2833
- "anyOf": [
2834
- { "const": "call", "type": "string" },
2835
- { "const": "publish", "type": "string" },
2836
- { "const": "subscribe", "type": "string" },
2837
- { "const": "observe", "type": "string" },
2838
- { "const": "cancel", "type": "string" },
2839
- ],
2840
- },
2841
- "contractId": { "minLength": 1, "type": "string" },
2842
- "kind": {
2843
- "anyOf": [
2844
- { "const": "rpc", "type": "string" },
2845
- { "const": "operation", "type": "string" },
2846
- { "const": "event", "type": "string" },
2847
- { "const": "feed", "type": "string" },
2848
- ],
2849
- },
2850
- "name": { "minLength": 1, "type": "string" },
2851
- },
2852
- "required": ["contractId", "kind", "name"],
2853
- "type": "object",
2867
+ "type": "array",
2868
+ },
2869
+ "contracts": {
2870
+ "items": {
2871
+ "properties": {
2872
+ "contractId": { "minLength": 1, "type": "string" },
2873
+ "required": { "type": "boolean" },
2854
2874
  },
2875
+ "required": ["contractId", "required"],
2876
+ "type": "object",
2855
2877
  },
2856
- "required": ["kind", "surface", "required"],
2857
- "type": "object",
2858
- }, {
2859
- "properties": {
2860
- "capability": { "minLength": 1, "type": "string" },
2861
- "kind": { "const": "capability", "type": "string" },
2862
- "required": { "type": "boolean" },
2878
+ "type": "array",
2879
+ },
2880
+ "resources": {
2881
+ "items": {
2882
+ "properties": {
2883
+ "alias": { "minLength": 1, "type": "string" },
2884
+ "definition": { "type": "object" },
2885
+ "kind": {
2886
+ "anyOf": [
2887
+ { "const": "kv", "type": "string" },
2888
+ { "const": "store", "type": "string" },
2889
+ { "const": "jobs", "type": "string" },
2890
+ { "const": "event-consumer", "type": "string" },
2891
+ { "const": "transfer", "type": "string" },
2892
+ ],
2893
+ },
2894
+ "required": { "type": "boolean" },
2895
+ },
2896
+ "required": ["kind", "alias", "required"],
2897
+ "type": "object",
2863
2898
  },
2864
- "required": ["kind", "capability", "required"],
2865
- "type": "object",
2866
- }, {
2867
- "properties": {
2868
- "kind": { "const": "resource", "type": "string" },
2869
- "required": { "type": "boolean" },
2870
- "resource": {
2871
- "properties": {
2872
- "alias": { "minLength": 1, "type": "string" },
2873
- "definition": { "type": "object" },
2874
- "kind": {
2875
- "anyOf": [
2876
- { "const": "kv", "type": "string" },
2877
- { "const": "store", "type": "string" },
2878
- { "const": "jobs", "type": "string" },
2879
- { "const": "event-consumer", "type": "string" },
2880
- { "const": "transfer", "type": "string" },
2881
- ],
2882
- },
2883
- "required": { "type": "boolean" },
2899
+ "type": "array",
2900
+ },
2901
+ "surfaces": {
2902
+ "items": {
2903
+ "properties": {
2904
+ "action": {
2905
+ "anyOf": [
2906
+ { "const": "call", "type": "string" },
2907
+ { "const": "publish", "type": "string" },
2908
+ { "const": "subscribe", "type": "string" },
2909
+ { "const": "observe", "type": "string" },
2910
+ { "const": "cancel", "type": "string" },
2911
+ ],
2884
2912
  },
2885
- "required": ["kind", "alias", "required"],
2886
- "type": "object",
2913
+ "contractId": { "minLength": 1, "type": "string" },
2914
+ "kind": {
2915
+ "anyOf": [
2916
+ { "const": "rpc", "type": "string" },
2917
+ { "const": "operation", "type": "string" },
2918
+ { "const": "event", "type": "string" },
2919
+ { "const": "feed", "type": "string" },
2920
+ ],
2921
+ },
2922
+ "name": { "minLength": 1, "type": "string" },
2923
+ "required": { "type": "boolean" },
2887
2924
  },
2925
+ "required": ["contractId", "kind", "name", "required"],
2926
+ "type": "object",
2888
2927
  },
2889
- "required": ["kind", "resource", "required"],
2890
- "type": "object",
2891
- }],
2928
+ "type": "array",
2929
+ },
2892
2930
  },
2893
- "type": "array",
2931
+ "required": [
2932
+ "contracts",
2933
+ "surfaces",
2934
+ "capabilities",
2935
+ "resources",
2936
+ ],
2937
+ "type": "object",
2894
2938
  },
2895
2939
  "summary": { "type": "object" },
2896
2940
  },
@@ -2962,83 +3006,87 @@ export const AuthDeploymentAuthorityReconcileResponseSchema = {
2962
3006
  "type": "array",
2963
3007
  },
2964
3008
  "needs": {
2965
- "items": {
2966
- "anyOf": [{
2967
- "properties": {
2968
- "contractId": { "minLength": 1, "type": "string" },
2969
- "kind": { "const": "contract", "type": "string" },
2970
- "required": { "type": "boolean" },
3009
+ "properties": {
3010
+ "capabilities": {
3011
+ "items": {
3012
+ "properties": {
3013
+ "capability": { "minLength": 1, "type": "string" },
3014
+ "required": { "type": "boolean" },
3015
+ },
3016
+ "required": ["capability", "required"],
3017
+ "type": "object",
2971
3018
  },
2972
- "required": ["kind", "contractId", "required"],
2973
- "type": "object",
2974
- }, {
2975
- "properties": {
2976
- "kind": { "const": "surface", "type": "string" },
2977
- "required": { "type": "boolean" },
2978
- "surface": {
2979
- "properties": {
2980
- "action": {
2981
- "anyOf": [
2982
- { "const": "call", "type": "string" },
2983
- { "const": "publish", "type": "string" },
2984
- { "const": "subscribe", "type": "string" },
2985
- { "const": "observe", "type": "string" },
2986
- { "const": "cancel", "type": "string" },
2987
- ],
2988
- },
2989
- "contractId": { "minLength": 1, "type": "string" },
2990
- "kind": {
2991
- "anyOf": [
2992
- { "const": "rpc", "type": "string" },
2993
- { "const": "operation", "type": "string" },
2994
- { "const": "event", "type": "string" },
2995
- { "const": "feed", "type": "string" },
2996
- ],
2997
- },
2998
- "name": { "minLength": 1, "type": "string" },
2999
- },
3000
- "required": ["contractId", "kind", "name"],
3001
- "type": "object",
3019
+ "type": "array",
3020
+ },
3021
+ "contracts": {
3022
+ "items": {
3023
+ "properties": {
3024
+ "contractId": { "minLength": 1, "type": "string" },
3025
+ "required": { "type": "boolean" },
3002
3026
  },
3027
+ "required": ["contractId", "required"],
3028
+ "type": "object",
3003
3029
  },
3004
- "required": ["kind", "surface", "required"],
3005
- "type": "object",
3006
- }, {
3007
- "properties": {
3008
- "capability": { "minLength": 1, "type": "string" },
3009
- "kind": { "const": "capability", "type": "string" },
3010
- "required": { "type": "boolean" },
3030
+ "type": "array",
3031
+ },
3032
+ "resources": {
3033
+ "items": {
3034
+ "properties": {
3035
+ "alias": { "minLength": 1, "type": "string" },
3036
+ "definition": { "type": "object" },
3037
+ "kind": {
3038
+ "anyOf": [
3039
+ { "const": "kv", "type": "string" },
3040
+ { "const": "store", "type": "string" },
3041
+ { "const": "jobs", "type": "string" },
3042
+ { "const": "event-consumer", "type": "string" },
3043
+ { "const": "transfer", "type": "string" },
3044
+ ],
3045
+ },
3046
+ "required": { "type": "boolean" },
3047
+ },
3048
+ "required": ["kind", "alias", "required"],
3049
+ "type": "object",
3011
3050
  },
3012
- "required": ["kind", "capability", "required"],
3013
- "type": "object",
3014
- }, {
3015
- "properties": {
3016
- "kind": { "const": "resource", "type": "string" },
3017
- "required": { "type": "boolean" },
3018
- "resource": {
3019
- "properties": {
3020
- "alias": { "minLength": 1, "type": "string" },
3021
- "definition": { "type": "object" },
3022
- "kind": {
3023
- "anyOf": [
3024
- { "const": "kv", "type": "string" },
3025
- { "const": "store", "type": "string" },
3026
- { "const": "jobs", "type": "string" },
3027
- { "const": "event-consumer", "type": "string" },
3028
- { "const": "transfer", "type": "string" },
3029
- ],
3030
- },
3031
- "required": { "type": "boolean" },
3051
+ "type": "array",
3052
+ },
3053
+ "surfaces": {
3054
+ "items": {
3055
+ "properties": {
3056
+ "action": {
3057
+ "anyOf": [
3058
+ { "const": "call", "type": "string" },
3059
+ { "const": "publish", "type": "string" },
3060
+ { "const": "subscribe", "type": "string" },
3061
+ { "const": "observe", "type": "string" },
3062
+ { "const": "cancel", "type": "string" },
3063
+ ],
3032
3064
  },
3033
- "required": ["kind", "alias", "required"],
3034
- "type": "object",
3065
+ "contractId": { "minLength": 1, "type": "string" },
3066
+ "kind": {
3067
+ "anyOf": [
3068
+ { "const": "rpc", "type": "string" },
3069
+ { "const": "operation", "type": "string" },
3070
+ { "const": "event", "type": "string" },
3071
+ { "const": "feed", "type": "string" },
3072
+ ],
3073
+ },
3074
+ "name": { "minLength": 1, "type": "string" },
3075
+ "required": { "type": "boolean" },
3035
3076
  },
3077
+ "required": ["contractId", "kind", "name", "required"],
3078
+ "type": "object",
3036
3079
  },
3037
- "required": ["kind", "resource", "required"],
3038
- "type": "object",
3039
- }],
3080
+ "type": "array",
3081
+ },
3040
3082
  },
3041
- "type": "array",
3083
+ "required": [
3084
+ "contracts",
3085
+ "surfaces",
3086
+ "capabilities",
3087
+ "resources",
3088
+ ],
3089
+ "type": "object",
3042
3090
  },
3043
3091
  "resources": {
3044
3092
  "items": {
@@ -3124,99 +3172,107 @@ export const AuthDeploymentAuthorityReconcileResponseSchema = {
3124
3172
  "desiredVersion": { "minLength": 1, "type": "string" },
3125
3173
  "error": { "minLength": 1, "type": "string" },
3126
3174
  "grants": {
3127
- "items": {
3128
- "anyOf": [{
3129
- "properties": {
3130
- "capability": { "minLength": 1, "type": "string" },
3131
- "kind": { "const": "capability", "type": "string" },
3132
- },
3133
- "required": ["kind", "capability"],
3134
- "type": "object",
3135
- }, {
3136
- "properties": {
3137
- "action": {
3138
- "anyOf": [
3139
- { "const": "call", "type": "string" },
3140
- { "const": "publish", "type": "string" },
3141
- { "const": "subscribe", "type": "string" },
3142
- { "const": "observe", "type": "string" },
3143
- { "const": "cancel", "type": "string" },
3144
- ],
3145
- },
3146
- "contractId": { "minLength": 1, "type": "string" },
3147
- "kind": { "const": "surface", "type": "string" },
3148
- "name": { "minLength": 1, "type": "string" },
3149
- "surfaceKind": {
3150
- "anyOf": [
3151
- { "const": "rpc", "type": "string" },
3152
- { "const": "operation", "type": "string" },
3153
- { "const": "event", "type": "string" },
3154
- { "const": "feed", "type": "string" },
3155
- ],
3175
+ "properties": {
3176
+ "capabilities": {
3177
+ "items": {
3178
+ "properties": {
3179
+ "capability": { "minLength": 1, "type": "string" },
3156
3180
  },
3181
+ "required": ["capability"],
3182
+ "type": "object",
3157
3183
  },
3158
- "required": ["kind", "contractId", "surfaceKind", "name"],
3159
- "type": "object",
3160
- }, {
3161
- "properties": {
3162
- "direction": {
3163
- "anyOf": [{ "const": "publish", "type": "string" }, {
3164
- "const": "subscribe",
3165
- "type": "string",
3166
- }],
3167
- },
3168
- "grantSource": {
3169
- "anyOf": [
3170
- { "const": "owned-surface", "type": "string" },
3171
- { "const": "used-surface", "type": "string" },
3172
- { "const": "resource-binding", "type": "string" },
3173
- { "const": "platform-service", "type": "string" },
3174
- { "const": "transfer", "type": "string" },
3175
- ],
3176
- },
3177
- "kind": { "const": "nats", "type": "string" },
3178
- "requiredCapabilities": {
3179
- "items": { "minLength": 1, "type": "string" },
3180
- "type": "array",
3181
- },
3182
- "subject": { "minLength": 1, "type": "string" },
3183
- "surface": {
3184
- "properties": {
3185
- "action": {
3186
- "anyOf": [
3187
- { "const": "call", "type": "string" },
3188
- { "const": "publish", "type": "string" },
3189
- { "const": "subscribe", "type": "string" },
3190
- { "const": "observe", "type": "string" },
3191
- { "const": "cancel", "type": "string" },
3192
- ],
3193
- },
3194
- "contractId": { "minLength": 1, "type": "string" },
3195
- "kind": {
3196
- "anyOf": [
3197
- { "const": "rpc", "type": "string" },
3198
- { "const": "operation", "type": "string" },
3199
- { "const": "event", "type": "string" },
3200
- { "const": "feed", "type": "string" },
3201
- ],
3184
+ "type": "array",
3185
+ },
3186
+ "nats": {
3187
+ "items": {
3188
+ "properties": {
3189
+ "direction": {
3190
+ "anyOf": [{ "const": "publish", "type": "string" }, {
3191
+ "const": "subscribe",
3192
+ "type": "string",
3193
+ }],
3194
+ },
3195
+ "grantSource": {
3196
+ "anyOf": [
3197
+ { "const": "owned-surface", "type": "string" },
3198
+ { "const": "used-surface", "type": "string" },
3199
+ { "const": "resource-binding", "type": "string" },
3200
+ { "const": "platform-service", "type": "string" },
3201
+ { "const": "transfer", "type": "string" },
3202
+ ],
3203
+ },
3204
+ "requiredCapabilities": {
3205
+ "items": { "minLength": 1, "type": "string" },
3206
+ "type": "array",
3207
+ },
3208
+ "subject": { "minLength": 1, "type": "string" },
3209
+ "surface": {
3210
+ "properties": {
3211
+ "action": {
3212
+ "anyOf": [
3213
+ { "const": "call", "type": "string" },
3214
+ { "const": "publish", "type": "string" },
3215
+ { "const": "subscribe", "type": "string" },
3216
+ { "const": "observe", "type": "string" },
3217
+ { "const": "cancel", "type": "string" },
3218
+ ],
3219
+ },
3220
+ "contractId": { "minLength": 1, "type": "string" },
3221
+ "kind": {
3222
+ "anyOf": [
3223
+ { "const": "rpc", "type": "string" },
3224
+ { "const": "operation", "type": "string" },
3225
+ { "const": "event", "type": "string" },
3226
+ { "const": "feed", "type": "string" },
3227
+ ],
3228
+ },
3229
+ "name": { "minLength": 1, "type": "string" },
3202
3230
  },
3203
- "name": { "minLength": 1, "type": "string" },
3231
+ "required": ["contractId", "kind", "name"],
3232
+ "type": "object",
3233
+ },
3234
+ },
3235
+ "required": [
3236
+ "direction",
3237
+ "subject",
3238
+ "requiredCapabilities",
3239
+ "grantSource",
3240
+ ],
3241
+ "type": "object",
3242
+ },
3243
+ "type": "array",
3244
+ },
3245
+ "surfaces": {
3246
+ "items": {
3247
+ "properties": {
3248
+ "action": {
3249
+ "anyOf": [
3250
+ { "const": "call", "type": "string" },
3251
+ { "const": "publish", "type": "string" },
3252
+ { "const": "subscribe", "type": "string" },
3253
+ { "const": "observe", "type": "string" },
3254
+ { "const": "cancel", "type": "string" },
3255
+ ],
3256
+ },
3257
+ "contractId": { "minLength": 1, "type": "string" },
3258
+ "name": { "minLength": 1, "type": "string" },
3259
+ "surfaceKind": {
3260
+ "anyOf": [
3261
+ { "const": "rpc", "type": "string" },
3262
+ { "const": "operation", "type": "string" },
3263
+ { "const": "event", "type": "string" },
3264
+ { "const": "feed", "type": "string" },
3265
+ ],
3204
3266
  },
3205
- "required": ["contractId", "kind", "name"],
3206
- "type": "object",
3207
3267
  },
3268
+ "required": ["contractId", "surfaceKind", "name"],
3269
+ "type": "object",
3208
3270
  },
3209
- "required": [
3210
- "kind",
3211
- "direction",
3212
- "subject",
3213
- "requiredCapabilities",
3214
- "grantSource",
3215
- ],
3216
- "type": "object",
3217
- }],
3271
+ "type": "array",
3272
+ },
3218
3273
  },
3219
- "type": "array",
3274
+ "required": ["capabilities", "surfaces", "nats"],
3275
+ "type": "object",
3220
3276
  },
3221
3277
  "reconciledAt": {
3222
3278
  "anyOf": [{ "format": "date-time", "type": "string" }, {