@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
@@ -514,83 +514,87 @@ export const AuthDeploymentAuthorityAcceptResponseSchema = {
514
514
  "type": "array",
515
515
  },
516
516
  "needs": {
517
- "items": {
518
- "anyOf": [{
517
+ "properties": {
518
+ "capabilities": {
519
+ "items": {
519
520
  "properties": {
520
- "contractId": { "minLength": 1, "type": "string" },
521
- "kind": { "const": "contract", "type": "string" },
521
+ "capability": { "minLength": 1, "type": "string" },
522
522
  "required": { "type": "boolean" },
523
523
  },
524
- "required": ["kind", "contractId", "required"],
524
+ "required": ["capability", "required"],
525
525
  "type": "object",
526
- }, {
526
+ },
527
+ "type": "array",
528
+ },
529
+ "contracts": {
530
+ "items": {
527
531
  "properties": {
528
- "kind": { "const": "surface", "type": "string" },
532
+ "contractId": { "minLength": 1, "type": "string" },
529
533
  "required": { "type": "boolean" },
530
- "surface": {
531
- "properties": {
532
- "action": {
533
- "anyOf": [
534
- { "const": "call", "type": "string" },
535
- { "const": "publish", "type": "string" },
536
- { "const": "subscribe", "type": "string" },
537
- { "const": "observe", "type": "string" },
538
- { "const": "cancel", "type": "string" },
539
- ],
540
- },
541
- "contractId": { "minLength": 1, "type": "string" },
542
- "kind": {
543
- "anyOf": [
544
- { "const": "rpc", "type": "string" },
545
- { "const": "operation", "type": "string" },
546
- { "const": "event", "type": "string" },
547
- { "const": "feed", "type": "string" },
548
- ],
549
- },
550
- "name": { "minLength": 1, "type": "string" },
551
- },
552
- "required": ["contractId", "kind", "name"],
553
- "type": "object",
554
- },
555
534
  },
556
- "required": ["kind", "surface", "required"],
535
+ "required": ["contractId", "required"],
557
536
  "type": "object",
558
- }, {
537
+ },
538
+ "type": "array",
539
+ },
540
+ "resources": {
541
+ "items": {
559
542
  "properties": {
560
- "capability": { "minLength": 1, "type": "string" },
561
- "kind": { "const": "capability", "type": "string" },
543
+ "alias": { "minLength": 1, "type": "string" },
544
+ "definition": { "type": "object" },
545
+ "kind": {
546
+ "anyOf": [
547
+ { "const": "kv", "type": "string" },
548
+ { "const": "store", "type": "string" },
549
+ { "const": "jobs", "type": "string" },
550
+ { "const": "event-consumer", "type": "string" },
551
+ { "const": "transfer", "type": "string" },
552
+ ],
553
+ },
562
554
  "required": { "type": "boolean" },
563
555
  },
564
- "required": ["kind", "capability", "required"],
556
+ "required": ["kind", "alias", "required"],
565
557
  "type": "object",
566
- }, {
558
+ },
559
+ "type": "array",
560
+ },
561
+ "surfaces": {
562
+ "items": {
567
563
  "properties": {
568
- "kind": { "const": "resource", "type": "string" },
569
- "required": { "type": "boolean" },
570
- "resource": {
571
- "properties": {
572
- "alias": { "minLength": 1, "type": "string" },
573
- "definition": { "type": "object" },
574
- "kind": {
575
- "anyOf": [
576
- { "const": "kv", "type": "string" },
577
- { "const": "store", "type": "string" },
578
- { "const": "jobs", "type": "string" },
579
- { "const": "event-consumer", "type": "string" },
580
- { "const": "transfer", "type": "string" },
581
- ],
582
- },
583
- "required": { "type": "boolean" },
584
- },
585
- "required": ["kind", "alias", "required"],
586
- "type": "object",
564
+ "action": {
565
+ "anyOf": [
566
+ { "const": "call", "type": "string" },
567
+ { "const": "publish", "type": "string" },
568
+ { "const": "subscribe", "type": "string" },
569
+ { "const": "observe", "type": "string" },
570
+ { "const": "cancel", "type": "string" },
571
+ ],
572
+ },
573
+ "contractId": { "minLength": 1, "type": "string" },
574
+ "kind": {
575
+ "anyOf": [
576
+ { "const": "rpc", "type": "string" },
577
+ { "const": "operation", "type": "string" },
578
+ { "const": "event", "type": "string" },
579
+ { "const": "feed", "type": "string" },
580
+ ],
587
581
  },
582
+ "name": { "minLength": 1, "type": "string" },
583
+ "required": { "type": "boolean" },
588
584
  },
589
- "required": ["kind", "resource", "required"],
585
+ "required": ["contractId", "kind", "name", "required"],
590
586
  "type": "object",
591
- }],
587
+ },
588
+ "type": "array",
589
+ },
592
590
  },
593
- "type": "array",
591
+ "required": [
592
+ "contracts",
593
+ "surfaces",
594
+ "capabilities",
595
+ "resources",
596
+ ],
597
+ "type": "object",
594
598
  },
595
599
  "resources": {
596
600
  "items": {
@@ -700,83 +704,87 @@ export const AuthDeploymentAuthorityGetResponseSchema = {
700
704
  "type": "array",
701
705
  },
702
706
  "needs": {
703
- "items": {
704
- "anyOf": [{
707
+ "properties": {
708
+ "capabilities": {
709
+ "items": {
705
710
  "properties": {
706
- "contractId": { "minLength": 1, "type": "string" },
707
- "kind": { "const": "contract", "type": "string" },
711
+ "capability": { "minLength": 1, "type": "string" },
708
712
  "required": { "type": "boolean" },
709
713
  },
710
- "required": ["kind", "contractId", "required"],
714
+ "required": ["capability", "required"],
711
715
  "type": "object",
712
- }, {
716
+ },
717
+ "type": "array",
718
+ },
719
+ "contracts": {
720
+ "items": {
713
721
  "properties": {
714
- "kind": { "const": "surface", "type": "string" },
722
+ "contractId": { "minLength": 1, "type": "string" },
715
723
  "required": { "type": "boolean" },
716
- "surface": {
717
- "properties": {
718
- "action": {
719
- "anyOf": [
720
- { "const": "call", "type": "string" },
721
- { "const": "publish", "type": "string" },
722
- { "const": "subscribe", "type": "string" },
723
- { "const": "observe", "type": "string" },
724
- { "const": "cancel", "type": "string" },
725
- ],
726
- },
727
- "contractId": { "minLength": 1, "type": "string" },
728
- "kind": {
729
- "anyOf": [
730
- { "const": "rpc", "type": "string" },
731
- { "const": "operation", "type": "string" },
732
- { "const": "event", "type": "string" },
733
- { "const": "feed", "type": "string" },
734
- ],
735
- },
736
- "name": { "minLength": 1, "type": "string" },
737
- },
738
- "required": ["contractId", "kind", "name"],
739
- "type": "object",
740
- },
741
724
  },
742
- "required": ["kind", "surface", "required"],
725
+ "required": ["contractId", "required"],
743
726
  "type": "object",
744
- }, {
727
+ },
728
+ "type": "array",
729
+ },
730
+ "resources": {
731
+ "items": {
745
732
  "properties": {
746
- "capability": { "minLength": 1, "type": "string" },
747
- "kind": { "const": "capability", "type": "string" },
733
+ "alias": { "minLength": 1, "type": "string" },
734
+ "definition": { "type": "object" },
735
+ "kind": {
736
+ "anyOf": [
737
+ { "const": "kv", "type": "string" },
738
+ { "const": "store", "type": "string" },
739
+ { "const": "jobs", "type": "string" },
740
+ { "const": "event-consumer", "type": "string" },
741
+ { "const": "transfer", "type": "string" },
742
+ ],
743
+ },
748
744
  "required": { "type": "boolean" },
749
745
  },
750
- "required": ["kind", "capability", "required"],
746
+ "required": ["kind", "alias", "required"],
751
747
  "type": "object",
752
- }, {
748
+ },
749
+ "type": "array",
750
+ },
751
+ "surfaces": {
752
+ "items": {
753
753
  "properties": {
754
- "kind": { "const": "resource", "type": "string" },
755
- "required": { "type": "boolean" },
756
- "resource": {
757
- "properties": {
758
- "alias": { "minLength": 1, "type": "string" },
759
- "definition": { "type": "object" },
760
- "kind": {
761
- "anyOf": [
762
- { "const": "kv", "type": "string" },
763
- { "const": "store", "type": "string" },
764
- { "const": "jobs", "type": "string" },
765
- { "const": "event-consumer", "type": "string" },
766
- { "const": "transfer", "type": "string" },
767
- ],
768
- },
769
- "required": { "type": "boolean" },
770
- },
771
- "required": ["kind", "alias", "required"],
772
- "type": "object",
754
+ "action": {
755
+ "anyOf": [
756
+ { "const": "call", "type": "string" },
757
+ { "const": "publish", "type": "string" },
758
+ { "const": "subscribe", "type": "string" },
759
+ { "const": "observe", "type": "string" },
760
+ { "const": "cancel", "type": "string" },
761
+ ],
762
+ },
763
+ "contractId": { "minLength": 1, "type": "string" },
764
+ "kind": {
765
+ "anyOf": [
766
+ { "const": "rpc", "type": "string" },
767
+ { "const": "operation", "type": "string" },
768
+ { "const": "event", "type": "string" },
769
+ { "const": "feed", "type": "string" },
770
+ ],
773
771
  },
772
+ "name": { "minLength": 1, "type": "string" },
773
+ "required": { "type": "boolean" },
774
774
  },
775
- "required": ["kind", "resource", "required"],
775
+ "required": ["contractId", "kind", "name", "required"],
776
776
  "type": "object",
777
- }],
777
+ },
778
+ "type": "array",
779
+ },
778
780
  },
779
- "type": "array",
781
+ "required": [
782
+ "contracts",
783
+ "surfaces",
784
+ "capabilities",
785
+ "resources",
786
+ ],
787
+ "type": "object",
780
788
  },
781
789
  "resources": {
782
790
  "items": {
@@ -957,40 +965,19 @@ export const AuthDeploymentAuthorityGetResponseSchema = {
957
965
  "desiredVersion": { "minLength": 1, "type": "string" },
958
966
  "error": { "minLength": 1, "type": "string" },
959
967
  "grants": {
960
- "items": {
961
- "anyOf": [{
968
+ "properties": {
969
+ "capabilities": {
970
+ "items": {
962
971
  "properties": {
963
972
  "capability": { "minLength": 1, "type": "string" },
964
- "kind": { "const": "capability", "type": "string" },
965
973
  },
966
- "required": ["kind", "capability"],
974
+ "required": ["capability"],
967
975
  "type": "object",
968
- }, {
969
- "properties": {
970
- "action": {
971
- "anyOf": [
972
- { "const": "call", "type": "string" },
973
- { "const": "publish", "type": "string" },
974
- { "const": "subscribe", "type": "string" },
975
- { "const": "observe", "type": "string" },
976
- { "const": "cancel", "type": "string" },
977
- ],
978
- },
979
- "contractId": { "minLength": 1, "type": "string" },
980
- "kind": { "const": "surface", "type": "string" },
981
- "name": { "minLength": 1, "type": "string" },
982
- "surfaceKind": {
983
- "anyOf": [
984
- { "const": "rpc", "type": "string" },
985
- { "const": "operation", "type": "string" },
986
- { "const": "event", "type": "string" },
987
- { "const": "feed", "type": "string" },
988
- ],
989
- },
990
- },
991
- "required": ["kind", "contractId", "surfaceKind", "name"],
992
- "type": "object",
993
- }, {
976
+ },
977
+ "type": "array",
978
+ },
979
+ "nats": {
980
+ "items": {
994
981
  "properties": {
995
982
  "direction": {
996
983
  "anyOf": [{ "const": "publish", "type": "string" }, {
@@ -1007,7 +994,6 @@ export const AuthDeploymentAuthorityGetResponseSchema = {
1007
994
  { "const": "transfer", "type": "string" },
1008
995
  ],
1009
996
  },
1010
- "kind": { "const": "nats", "type": "string" },
1011
997
  "requiredCapabilities": {
1012
998
  "items": { "minLength": 1, "type": "string" },
1013
999
  "type": "array",
@@ -1040,16 +1026,46 @@ export const AuthDeploymentAuthorityGetResponseSchema = {
1040
1026
  },
1041
1027
  },
1042
1028
  "required": [
1043
- "kind",
1044
1029
  "direction",
1045
1030
  "subject",
1046
1031
  "requiredCapabilities",
1047
1032
  "grantSource",
1048
1033
  ],
1049
1034
  "type": "object",
1050
- }],
1035
+ },
1036
+ "type": "array",
1037
+ },
1038
+ "surfaces": {
1039
+ "items": {
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
+ "name": { "minLength": 1, "type": "string" },
1052
+ "surfaceKind": {
1053
+ "anyOf": [
1054
+ { "const": "rpc", "type": "string" },
1055
+ { "const": "operation", "type": "string" },
1056
+ { "const": "event", "type": "string" },
1057
+ { "const": "feed", "type": "string" },
1058
+ ],
1059
+ },
1060
+ },
1061
+ "required": ["contractId", "surfaceKind", "name"],
1062
+ "type": "object",
1063
+ },
1064
+ "type": "array",
1065
+ },
1051
1066
  },
1052
- "type": "array",
1067
+ "required": ["capabilities", "surfaces", "nats"],
1068
+ "type": "object",
1053
1069
  },
1054
1070
  "reconciledAt": {
1055
1071
  "anyOf": [{ "format": "date-time", "type": "string" }, {
@@ -1596,83 +1612,87 @@ export const AuthDeploymentAuthorityListResponseSchema = {
1596
1612
  "type": "array",
1597
1613
  },
1598
1614
  "needs": {
1599
- "items": {
1600
- "anyOf": [{
1615
+ "properties": {
1616
+ "capabilities": {
1617
+ "items": {
1601
1618
  "properties": {
1602
- "contractId": { "minLength": 1, "type": "string" },
1603
- "kind": { "const": "contract", "type": "string" },
1619
+ "capability": { "minLength": 1, "type": "string" },
1604
1620
  "required": { "type": "boolean" },
1605
1621
  },
1606
- "required": ["kind", "contractId", "required"],
1622
+ "required": ["capability", "required"],
1607
1623
  "type": "object",
1608
- }, {
1609
- "properties": {
1610
- "kind": { "const": "surface", "type": "string" },
1624
+ },
1625
+ "type": "array",
1626
+ },
1627
+ "contracts": {
1628
+ "items": {
1629
+ "properties": {
1630
+ "contractId": { "minLength": 1, "type": "string" },
1611
1631
  "required": { "type": "boolean" },
1612
- "surface": {
1613
- "properties": {
1614
- "action": {
1615
- "anyOf": [
1616
- { "const": "call", "type": "string" },
1617
- { "const": "publish", "type": "string" },
1618
- { "const": "subscribe", "type": "string" },
1619
- { "const": "observe", "type": "string" },
1620
- { "const": "cancel", "type": "string" },
1621
- ],
1622
- },
1623
- "contractId": { "minLength": 1, "type": "string" },
1624
- "kind": {
1625
- "anyOf": [
1626
- { "const": "rpc", "type": "string" },
1627
- { "const": "operation", "type": "string" },
1628
- { "const": "event", "type": "string" },
1629
- { "const": "feed", "type": "string" },
1630
- ],
1631
- },
1632
- "name": { "minLength": 1, "type": "string" },
1633
- },
1634
- "required": ["contractId", "kind", "name"],
1635
- "type": "object",
1636
- },
1637
1632
  },
1638
- "required": ["kind", "surface", "required"],
1633
+ "required": ["contractId", "required"],
1639
1634
  "type": "object",
1640
- }, {
1635
+ },
1636
+ "type": "array",
1637
+ },
1638
+ "resources": {
1639
+ "items": {
1641
1640
  "properties": {
1642
- "capability": { "minLength": 1, "type": "string" },
1643
- "kind": { "const": "capability", "type": "string" },
1641
+ "alias": { "minLength": 1, "type": "string" },
1642
+ "definition": { "type": "object" },
1643
+ "kind": {
1644
+ "anyOf": [
1645
+ { "const": "kv", "type": "string" },
1646
+ { "const": "store", "type": "string" },
1647
+ { "const": "jobs", "type": "string" },
1648
+ { "const": "event-consumer", "type": "string" },
1649
+ { "const": "transfer", "type": "string" },
1650
+ ],
1651
+ },
1644
1652
  "required": { "type": "boolean" },
1645
1653
  },
1646
- "required": ["kind", "capability", "required"],
1654
+ "required": ["kind", "alias", "required"],
1647
1655
  "type": "object",
1648
- }, {
1656
+ },
1657
+ "type": "array",
1658
+ },
1659
+ "surfaces": {
1660
+ "items": {
1649
1661
  "properties": {
1650
- "kind": { "const": "resource", "type": "string" },
1651
- "required": { "type": "boolean" },
1652
- "resource": {
1653
- "properties": {
1654
- "alias": { "minLength": 1, "type": "string" },
1655
- "definition": { "type": "object" },
1656
- "kind": {
1657
- "anyOf": [
1658
- { "const": "kv", "type": "string" },
1659
- { "const": "store", "type": "string" },
1660
- { "const": "jobs", "type": "string" },
1661
- { "const": "event-consumer", "type": "string" },
1662
- { "const": "transfer", "type": "string" },
1663
- ],
1664
- },
1665
- "required": { "type": "boolean" },
1666
- },
1667
- "required": ["kind", "alias", "required"],
1668
- "type": "object",
1662
+ "action": {
1663
+ "anyOf": [
1664
+ { "const": "call", "type": "string" },
1665
+ { "const": "publish", "type": "string" },
1666
+ { "const": "subscribe", "type": "string" },
1667
+ { "const": "observe", "type": "string" },
1668
+ { "const": "cancel", "type": "string" },
1669
+ ],
1670
+ },
1671
+ "contractId": { "minLength": 1, "type": "string" },
1672
+ "kind": {
1673
+ "anyOf": [
1674
+ { "const": "rpc", "type": "string" },
1675
+ { "const": "operation", "type": "string" },
1676
+ { "const": "event", "type": "string" },
1677
+ { "const": "feed", "type": "string" },
1678
+ ],
1669
1679
  },
1680
+ "name": { "minLength": 1, "type": "string" },
1681
+ "required": { "type": "boolean" },
1670
1682
  },
1671
- "required": ["kind", "resource", "required"],
1683
+ "required": ["contractId", "kind", "name", "required"],
1672
1684
  "type": "object",
1673
- }],
1685
+ },
1686
+ "type": "array",
1687
+ },
1674
1688
  },
1675
- "type": "array",
1689
+ "required": [
1690
+ "contracts",
1691
+ "surfaces",
1692
+ "capabilities",
1693
+ "resources",
1694
+ ],
1695
+ "type": "object",
1676
1696
  },
1677
1697
  "resources": {
1678
1698
  "items": {
@@ -1835,83 +1855,87 @@ export const AuthDeploymentAuthorityPlanResponseSchema = {
1835
1855
  "type": "array",
1836
1856
  },
1837
1857
  "requestedNeeds": {
1838
- "items": {
1839
- "anyOf": [{
1858
+ "properties": {
1859
+ "capabilities": {
1860
+ "items": {
1840
1861
  "properties": {
1841
- "contractId": { "minLength": 1, "type": "string" },
1842
- "kind": { "const": "contract", "type": "string" },
1862
+ "capability": { "minLength": 1, "type": "string" },
1843
1863
  "required": { "type": "boolean" },
1844
1864
  },
1845
- "required": ["kind", "contractId", "required"],
1865
+ "required": ["capability", "required"],
1846
1866
  "type": "object",
1847
- }, {
1867
+ },
1868
+ "type": "array",
1869
+ },
1870
+ "contracts": {
1871
+ "items": {
1848
1872
  "properties": {
1849
- "kind": { "const": "surface", "type": "string" },
1873
+ "contractId": { "minLength": 1, "type": "string" },
1850
1874
  "required": { "type": "boolean" },
1851
- "surface": {
1852
- "properties": {
1853
- "action": {
1854
- "anyOf": [
1855
- { "const": "call", "type": "string" },
1856
- { "const": "publish", "type": "string" },
1857
- { "const": "subscribe", "type": "string" },
1858
- { "const": "observe", "type": "string" },
1859
- { "const": "cancel", "type": "string" },
1860
- ],
1861
- },
1862
- "contractId": { "minLength": 1, "type": "string" },
1863
- "kind": {
1864
- "anyOf": [
1865
- { "const": "rpc", "type": "string" },
1866
- { "const": "operation", "type": "string" },
1867
- { "const": "event", "type": "string" },
1868
- { "const": "feed", "type": "string" },
1869
- ],
1870
- },
1871
- "name": { "minLength": 1, "type": "string" },
1872
- },
1873
- "required": ["contractId", "kind", "name"],
1874
- "type": "object",
1875
- },
1876
1875
  },
1877
- "required": ["kind", "surface", "required"],
1876
+ "required": ["contractId", "required"],
1878
1877
  "type": "object",
1879
- }, {
1878
+ },
1879
+ "type": "array",
1880
+ },
1881
+ "resources": {
1882
+ "items": {
1880
1883
  "properties": {
1881
- "capability": { "minLength": 1, "type": "string" },
1882
- "kind": { "const": "capability", "type": "string" },
1884
+ "alias": { "minLength": 1, "type": "string" },
1885
+ "definition": { "type": "object" },
1886
+ "kind": {
1887
+ "anyOf": [
1888
+ { "const": "kv", "type": "string" },
1889
+ { "const": "store", "type": "string" },
1890
+ { "const": "jobs", "type": "string" },
1891
+ { "const": "event-consumer", "type": "string" },
1892
+ { "const": "transfer", "type": "string" },
1893
+ ],
1894
+ },
1883
1895
  "required": { "type": "boolean" },
1884
1896
  },
1885
- "required": ["kind", "capability", "required"],
1897
+ "required": ["kind", "alias", "required"],
1886
1898
  "type": "object",
1887
- }, {
1899
+ },
1900
+ "type": "array",
1901
+ },
1902
+ "surfaces": {
1903
+ "items": {
1888
1904
  "properties": {
1889
- "kind": { "const": "resource", "type": "string" },
1890
- "required": { "type": "boolean" },
1891
- "resource": {
1892
- "properties": {
1893
- "alias": { "minLength": 1, "type": "string" },
1894
- "definition": { "type": "object" },
1895
- "kind": {
1896
- "anyOf": [
1897
- { "const": "kv", "type": "string" },
1898
- { "const": "store", "type": "string" },
1899
- { "const": "jobs", "type": "string" },
1900
- { "const": "event-consumer", "type": "string" },
1901
- { "const": "transfer", "type": "string" },
1902
- ],
1903
- },
1904
- "required": { "type": "boolean" },
1905
- },
1906
- "required": ["kind", "alias", "required"],
1907
- "type": "object",
1905
+ "action": {
1906
+ "anyOf": [
1907
+ { "const": "call", "type": "string" },
1908
+ { "const": "publish", "type": "string" },
1909
+ { "const": "subscribe", "type": "string" },
1910
+ { "const": "observe", "type": "string" },
1911
+ { "const": "cancel", "type": "string" },
1912
+ ],
1913
+ },
1914
+ "contractId": { "minLength": 1, "type": "string" },
1915
+ "kind": {
1916
+ "anyOf": [
1917
+ { "const": "rpc", "type": "string" },
1918
+ { "const": "operation", "type": "string" },
1919
+ { "const": "event", "type": "string" },
1920
+ { "const": "feed", "type": "string" },
1921
+ ],
1908
1922
  },
1923
+ "name": { "minLength": 1, "type": "string" },
1924
+ "required": { "type": "boolean" },
1909
1925
  },
1910
- "required": ["kind", "resource", "required"],
1926
+ "required": ["contractId", "kind", "name", "required"],
1911
1927
  "type": "object",
1912
- }],
1928
+ },
1929
+ "type": "array",
1930
+ },
1913
1931
  },
1914
- "type": "array",
1932
+ "required": [
1933
+ "contracts",
1934
+ "surfaces",
1935
+ "capabilities",
1936
+ "resources",
1937
+ ],
1938
+ "type": "object",
1915
1939
  },
1916
1940
  "summary": { "type": "object" },
1917
1941
  },
@@ -2011,83 +2035,87 @@ export const AuthDeploymentAuthorityPlanResponseSchema = {
2011
2035
  "type": "array",
2012
2036
  },
2013
2037
  "requestedNeeds": {
2014
- "items": {
2015
- "anyOf": [{
2038
+ "properties": {
2039
+ "capabilities": {
2040
+ "items": {
2016
2041
  "properties": {
2017
- "contractId": { "minLength": 1, "type": "string" },
2018
- "kind": { "const": "contract", "type": "string" },
2042
+ "capability": { "minLength": 1, "type": "string" },
2019
2043
  "required": { "type": "boolean" },
2020
2044
  },
2021
- "required": ["kind", "contractId", "required"],
2045
+ "required": ["capability", "required"],
2022
2046
  "type": "object",
2023
- }, {
2047
+ },
2048
+ "type": "array",
2049
+ },
2050
+ "contracts": {
2051
+ "items": {
2024
2052
  "properties": {
2025
- "kind": { "const": "surface", "type": "string" },
2053
+ "contractId": { "minLength": 1, "type": "string" },
2026
2054
  "required": { "type": "boolean" },
2027
- "surface": {
2028
- "properties": {
2029
- "action": {
2030
- "anyOf": [
2031
- { "const": "call", "type": "string" },
2032
- { "const": "publish", "type": "string" },
2033
- { "const": "subscribe", "type": "string" },
2034
- { "const": "observe", "type": "string" },
2035
- { "const": "cancel", "type": "string" },
2036
- ],
2037
- },
2038
- "contractId": { "minLength": 1, "type": "string" },
2039
- "kind": {
2040
- "anyOf": [
2041
- { "const": "rpc", "type": "string" },
2042
- { "const": "operation", "type": "string" },
2043
- { "const": "event", "type": "string" },
2044
- { "const": "feed", "type": "string" },
2045
- ],
2046
- },
2047
- "name": { "minLength": 1, "type": "string" },
2048
- },
2049
- "required": ["contractId", "kind", "name"],
2050
- "type": "object",
2051
- },
2052
2055
  },
2053
- "required": ["kind", "surface", "required"],
2056
+ "required": ["contractId", "required"],
2054
2057
  "type": "object",
2055
- }, {
2058
+ },
2059
+ "type": "array",
2060
+ },
2061
+ "resources": {
2062
+ "items": {
2056
2063
  "properties": {
2057
- "capability": { "minLength": 1, "type": "string" },
2058
- "kind": { "const": "capability", "type": "string" },
2064
+ "alias": { "minLength": 1, "type": "string" },
2065
+ "definition": { "type": "object" },
2066
+ "kind": {
2067
+ "anyOf": [
2068
+ { "const": "kv", "type": "string" },
2069
+ { "const": "store", "type": "string" },
2070
+ { "const": "jobs", "type": "string" },
2071
+ { "const": "event-consumer", "type": "string" },
2072
+ { "const": "transfer", "type": "string" },
2073
+ ],
2074
+ },
2059
2075
  "required": { "type": "boolean" },
2060
2076
  },
2061
- "required": ["kind", "capability", "required"],
2077
+ "required": ["kind", "alias", "required"],
2062
2078
  "type": "object",
2063
- }, {
2079
+ },
2080
+ "type": "array",
2081
+ },
2082
+ "surfaces": {
2083
+ "items": {
2064
2084
  "properties": {
2065
- "kind": { "const": "resource", "type": "string" },
2066
- "required": { "type": "boolean" },
2067
- "resource": {
2068
- "properties": {
2069
- "alias": { "minLength": 1, "type": "string" },
2070
- "definition": { "type": "object" },
2071
- "kind": {
2072
- "anyOf": [
2073
- { "const": "kv", "type": "string" },
2074
- { "const": "store", "type": "string" },
2075
- { "const": "jobs", "type": "string" },
2076
- { "const": "event-consumer", "type": "string" },
2077
- { "const": "transfer", "type": "string" },
2078
- ],
2079
- },
2080
- "required": { "type": "boolean" },
2081
- },
2082
- "required": ["kind", "alias", "required"],
2083
- "type": "object",
2085
+ "action": {
2086
+ "anyOf": [
2087
+ { "const": "call", "type": "string" },
2088
+ { "const": "publish", "type": "string" },
2089
+ { "const": "subscribe", "type": "string" },
2090
+ { "const": "observe", "type": "string" },
2091
+ { "const": "cancel", "type": "string" },
2092
+ ],
2093
+ },
2094
+ "contractId": { "minLength": 1, "type": "string" },
2095
+ "kind": {
2096
+ "anyOf": [
2097
+ { "const": "rpc", "type": "string" },
2098
+ { "const": "operation", "type": "string" },
2099
+ { "const": "event", "type": "string" },
2100
+ { "const": "feed", "type": "string" },
2101
+ ],
2084
2102
  },
2103
+ "name": { "minLength": 1, "type": "string" },
2104
+ "required": { "type": "boolean" },
2085
2105
  },
2086
- "required": ["kind", "resource", "required"],
2106
+ "required": ["contractId", "kind", "name", "required"],
2087
2107
  "type": "object",
2088
- }],
2108
+ },
2109
+ "type": "array",
2110
+ },
2089
2111
  },
2090
- "type": "array",
2112
+ "required": [
2113
+ "contracts",
2114
+ "surfaces",
2115
+ "capabilities",
2116
+ "resources",
2117
+ ],
2118
+ "type": "object",
2091
2119
  },
2092
2120
  "summary": { "type": "object" },
2093
2121
  },
@@ -2201,83 +2229,87 @@ export const AuthDeploymentAuthorityPlansGetResponseSchema = {
2201
2229
  "type": "array",
2202
2230
  },
2203
2231
  "requestedNeeds": {
2204
- "items": {
2205
- "anyOf": [{
2232
+ "properties": {
2233
+ "capabilities": {
2234
+ "items": {
2206
2235
  "properties": {
2207
- "contractId": { "minLength": 1, "type": "string" },
2208
- "kind": { "const": "contract", "type": "string" },
2236
+ "capability": { "minLength": 1, "type": "string" },
2209
2237
  "required": { "type": "boolean" },
2210
2238
  },
2211
- "required": ["kind", "contractId", "required"],
2239
+ "required": ["capability", "required"],
2212
2240
  "type": "object",
2213
- }, {
2241
+ },
2242
+ "type": "array",
2243
+ },
2244
+ "contracts": {
2245
+ "items": {
2214
2246
  "properties": {
2215
- "kind": { "const": "surface", "type": "string" },
2247
+ "contractId": { "minLength": 1, "type": "string" },
2216
2248
  "required": { "type": "boolean" },
2217
- "surface": {
2218
- "properties": {
2219
- "action": {
2220
- "anyOf": [
2221
- { "const": "call", "type": "string" },
2222
- { "const": "publish", "type": "string" },
2223
- { "const": "subscribe", "type": "string" },
2224
- { "const": "observe", "type": "string" },
2225
- { "const": "cancel", "type": "string" },
2226
- ],
2227
- },
2228
- "contractId": { "minLength": 1, "type": "string" },
2229
- "kind": {
2230
- "anyOf": [
2231
- { "const": "rpc", "type": "string" },
2232
- { "const": "operation", "type": "string" },
2233
- { "const": "event", "type": "string" },
2234
- { "const": "feed", "type": "string" },
2235
- ],
2236
- },
2237
- "name": { "minLength": 1, "type": "string" },
2238
- },
2239
- "required": ["contractId", "kind", "name"],
2240
- "type": "object",
2241
- },
2242
2249
  },
2243
- "required": ["kind", "surface", "required"],
2250
+ "required": ["contractId", "required"],
2244
2251
  "type": "object",
2245
- }, {
2252
+ },
2253
+ "type": "array",
2254
+ },
2255
+ "resources": {
2256
+ "items": {
2246
2257
  "properties": {
2247
- "capability": { "minLength": 1, "type": "string" },
2248
- "kind": { "const": "capability", "type": "string" },
2258
+ "alias": { "minLength": 1, "type": "string" },
2259
+ "definition": { "type": "object" },
2260
+ "kind": {
2261
+ "anyOf": [
2262
+ { "const": "kv", "type": "string" },
2263
+ { "const": "store", "type": "string" },
2264
+ { "const": "jobs", "type": "string" },
2265
+ { "const": "event-consumer", "type": "string" },
2266
+ { "const": "transfer", "type": "string" },
2267
+ ],
2268
+ },
2249
2269
  "required": { "type": "boolean" },
2250
2270
  },
2251
- "required": ["kind", "capability", "required"],
2271
+ "required": ["kind", "alias", "required"],
2252
2272
  "type": "object",
2253
- }, {
2273
+ },
2274
+ "type": "array",
2275
+ },
2276
+ "surfaces": {
2277
+ "items": {
2254
2278
  "properties": {
2255
- "kind": { "const": "resource", "type": "string" },
2256
- "required": { "type": "boolean" },
2257
- "resource": {
2258
- "properties": {
2259
- "alias": { "minLength": 1, "type": "string" },
2260
- "definition": { "type": "object" },
2261
- "kind": {
2262
- "anyOf": [
2263
- { "const": "kv", "type": "string" },
2264
- { "const": "store", "type": "string" },
2265
- { "const": "jobs", "type": "string" },
2266
- { "const": "event-consumer", "type": "string" },
2267
- { "const": "transfer", "type": "string" },
2268
- ],
2269
- },
2270
- "required": { "type": "boolean" },
2271
- },
2272
- "required": ["kind", "alias", "required"],
2273
- "type": "object",
2279
+ "action": {
2280
+ "anyOf": [
2281
+ { "const": "call", "type": "string" },
2282
+ { "const": "publish", "type": "string" },
2283
+ { "const": "subscribe", "type": "string" },
2284
+ { "const": "observe", "type": "string" },
2285
+ { "const": "cancel", "type": "string" },
2286
+ ],
2274
2287
  },
2288
+ "contractId": { "minLength": 1, "type": "string" },
2289
+ "kind": {
2290
+ "anyOf": [
2291
+ { "const": "rpc", "type": "string" },
2292
+ { "const": "operation", "type": "string" },
2293
+ { "const": "event", "type": "string" },
2294
+ { "const": "feed", "type": "string" },
2295
+ ],
2296
+ },
2297
+ "name": { "minLength": 1, "type": "string" },
2298
+ "required": { "type": "boolean" },
2275
2299
  },
2276
- "required": ["kind", "resource", "required"],
2300
+ "required": ["contractId", "kind", "name", "required"],
2277
2301
  "type": "object",
2278
- }],
2302
+ },
2303
+ "type": "array",
2304
+ },
2279
2305
  },
2280
- "type": "array",
2306
+ "required": [
2307
+ "contracts",
2308
+ "surfaces",
2309
+ "capabilities",
2310
+ "resources",
2311
+ ],
2312
+ "type": "object",
2281
2313
  },
2282
2314
  "summary": { "type": "object" },
2283
2315
  },
@@ -2377,83 +2409,87 @@ export const AuthDeploymentAuthorityPlansGetResponseSchema = {
2377
2409
  "type": "array",
2378
2410
  },
2379
2411
  "requestedNeeds": {
2380
- "items": {
2381
- "anyOf": [{
2412
+ "properties": {
2413
+ "capabilities": {
2414
+ "items": {
2382
2415
  "properties": {
2383
- "contractId": { "minLength": 1, "type": "string" },
2384
- "kind": { "const": "contract", "type": "string" },
2416
+ "capability": { "minLength": 1, "type": "string" },
2385
2417
  "required": { "type": "boolean" },
2386
2418
  },
2387
- "required": ["kind", "contractId", "required"],
2419
+ "required": ["capability", "required"],
2388
2420
  "type": "object",
2389
- }, {
2421
+ },
2422
+ "type": "array",
2423
+ },
2424
+ "contracts": {
2425
+ "items": {
2390
2426
  "properties": {
2391
- "kind": { "const": "surface", "type": "string" },
2427
+ "contractId": { "minLength": 1, "type": "string" },
2392
2428
  "required": { "type": "boolean" },
2393
- "surface": {
2394
- "properties": {
2395
- "action": {
2396
- "anyOf": [
2397
- { "const": "call", "type": "string" },
2398
- { "const": "publish", "type": "string" },
2399
- { "const": "subscribe", "type": "string" },
2400
- { "const": "observe", "type": "string" },
2401
- { "const": "cancel", "type": "string" },
2402
- ],
2403
- },
2404
- "contractId": { "minLength": 1, "type": "string" },
2405
- "kind": {
2406
- "anyOf": [
2407
- { "const": "rpc", "type": "string" },
2408
- { "const": "operation", "type": "string" },
2409
- { "const": "event", "type": "string" },
2410
- { "const": "feed", "type": "string" },
2411
- ],
2412
- },
2413
- "name": { "minLength": 1, "type": "string" },
2414
- },
2415
- "required": ["contractId", "kind", "name"],
2416
- "type": "object",
2417
- },
2418
2429
  },
2419
- "required": ["kind", "surface", "required"],
2430
+ "required": ["contractId", "required"],
2420
2431
  "type": "object",
2421
- }, {
2432
+ },
2433
+ "type": "array",
2434
+ },
2435
+ "resources": {
2436
+ "items": {
2422
2437
  "properties": {
2423
- "capability": { "minLength": 1, "type": "string" },
2424
- "kind": { "const": "capability", "type": "string" },
2438
+ "alias": { "minLength": 1, "type": "string" },
2439
+ "definition": { "type": "object" },
2440
+ "kind": {
2441
+ "anyOf": [
2442
+ { "const": "kv", "type": "string" },
2443
+ { "const": "store", "type": "string" },
2444
+ { "const": "jobs", "type": "string" },
2445
+ { "const": "event-consumer", "type": "string" },
2446
+ { "const": "transfer", "type": "string" },
2447
+ ],
2448
+ },
2425
2449
  "required": { "type": "boolean" },
2426
2450
  },
2427
- "required": ["kind", "capability", "required"],
2451
+ "required": ["kind", "alias", "required"],
2428
2452
  "type": "object",
2429
- }, {
2453
+ },
2454
+ "type": "array",
2455
+ },
2456
+ "surfaces": {
2457
+ "items": {
2430
2458
  "properties": {
2431
- "kind": { "const": "resource", "type": "string" },
2432
- "required": { "type": "boolean" },
2433
- "resource": {
2434
- "properties": {
2435
- "alias": { "minLength": 1, "type": "string" },
2436
- "definition": { "type": "object" },
2437
- "kind": {
2438
- "anyOf": [
2439
- { "const": "kv", "type": "string" },
2440
- { "const": "store", "type": "string" },
2441
- { "const": "jobs", "type": "string" },
2442
- { "const": "event-consumer", "type": "string" },
2443
- { "const": "transfer", "type": "string" },
2444
- ],
2445
- },
2446
- "required": { "type": "boolean" },
2447
- },
2448
- "required": ["kind", "alias", "required"],
2449
- "type": "object",
2459
+ "action": {
2460
+ "anyOf": [
2461
+ { "const": "call", "type": "string" },
2462
+ { "const": "publish", "type": "string" },
2463
+ { "const": "subscribe", "type": "string" },
2464
+ { "const": "observe", "type": "string" },
2465
+ { "const": "cancel", "type": "string" },
2466
+ ],
2467
+ },
2468
+ "contractId": { "minLength": 1, "type": "string" },
2469
+ "kind": {
2470
+ "anyOf": [
2471
+ { "const": "rpc", "type": "string" },
2472
+ { "const": "operation", "type": "string" },
2473
+ { "const": "event", "type": "string" },
2474
+ { "const": "feed", "type": "string" },
2475
+ ],
2450
2476
  },
2477
+ "name": { "minLength": 1, "type": "string" },
2478
+ "required": { "type": "boolean" },
2451
2479
  },
2452
- "required": ["kind", "resource", "required"],
2480
+ "required": ["contractId", "kind", "name", "required"],
2453
2481
  "type": "object",
2454
- }],
2482
+ },
2483
+ "type": "array",
2484
+ },
2455
2485
  },
2456
- "type": "array",
2486
+ "required": [
2487
+ "contracts",
2488
+ "surfaces",
2489
+ "capabilities",
2490
+ "resources",
2491
+ ],
2492
+ "type": "object",
2457
2493
  },
2458
2494
  "summary": { "type": "object" },
2459
2495
  },
@@ -2600,83 +2636,87 @@ export const AuthDeploymentAuthorityPlansListResponseSchema = {
2600
2636
  "type": "array",
2601
2637
  },
2602
2638
  "requestedNeeds": {
2603
- "items": {
2604
- "anyOf": [{
2639
+ "properties": {
2640
+ "capabilities": {
2641
+ "items": {
2605
2642
  "properties": {
2606
- "contractId": { "minLength": 1, "type": "string" },
2607
- "kind": { "const": "contract", "type": "string" },
2643
+ "capability": { "minLength": 1, "type": "string" },
2608
2644
  "required": { "type": "boolean" },
2609
2645
  },
2610
- "required": ["kind", "contractId", "required"],
2646
+ "required": ["capability", "required"],
2611
2647
  "type": "object",
2612
- }, {
2648
+ },
2649
+ "type": "array",
2650
+ },
2651
+ "contracts": {
2652
+ "items": {
2613
2653
  "properties": {
2614
- "kind": { "const": "surface", "type": "string" },
2654
+ "contractId": { "minLength": 1, "type": "string" },
2615
2655
  "required": { "type": "boolean" },
2616
- "surface": {
2617
- "properties": {
2618
- "action": {
2619
- "anyOf": [
2620
- { "const": "call", "type": "string" },
2621
- { "const": "publish", "type": "string" },
2622
- { "const": "subscribe", "type": "string" },
2623
- { "const": "observe", "type": "string" },
2624
- { "const": "cancel", "type": "string" },
2625
- ],
2626
- },
2627
- "contractId": { "minLength": 1, "type": "string" },
2628
- "kind": {
2629
- "anyOf": [
2630
- { "const": "rpc", "type": "string" },
2631
- { "const": "operation", "type": "string" },
2632
- { "const": "event", "type": "string" },
2633
- { "const": "feed", "type": "string" },
2634
- ],
2635
- },
2636
- "name": { "minLength": 1, "type": "string" },
2637
- },
2638
- "required": ["contractId", "kind", "name"],
2639
- "type": "object",
2640
- },
2641
2656
  },
2642
- "required": ["kind", "surface", "required"],
2657
+ "required": ["contractId", "required"],
2643
2658
  "type": "object",
2644
- }, {
2659
+ },
2660
+ "type": "array",
2661
+ },
2662
+ "resources": {
2663
+ "items": {
2645
2664
  "properties": {
2646
- "capability": { "minLength": 1, "type": "string" },
2647
- "kind": { "const": "capability", "type": "string" },
2665
+ "alias": { "minLength": 1, "type": "string" },
2666
+ "definition": { "type": "object" },
2667
+ "kind": {
2668
+ "anyOf": [
2669
+ { "const": "kv", "type": "string" },
2670
+ { "const": "store", "type": "string" },
2671
+ { "const": "jobs", "type": "string" },
2672
+ { "const": "event-consumer", "type": "string" },
2673
+ { "const": "transfer", "type": "string" },
2674
+ ],
2675
+ },
2648
2676
  "required": { "type": "boolean" },
2649
2677
  },
2650
- "required": ["kind", "capability", "required"],
2678
+ "required": ["kind", "alias", "required"],
2651
2679
  "type": "object",
2652
- }, {
2680
+ },
2681
+ "type": "array",
2682
+ },
2683
+ "surfaces": {
2684
+ "items": {
2653
2685
  "properties": {
2654
- "kind": { "const": "resource", "type": "string" },
2655
- "required": { "type": "boolean" },
2656
- "resource": {
2657
- "properties": {
2658
- "alias": { "minLength": 1, "type": "string" },
2659
- "definition": { "type": "object" },
2660
- "kind": {
2661
- "anyOf": [
2662
- { "const": "kv", "type": "string" },
2663
- { "const": "store", "type": "string" },
2664
- { "const": "jobs", "type": "string" },
2665
- { "const": "event-consumer", "type": "string" },
2666
- { "const": "transfer", "type": "string" },
2667
- ],
2668
- },
2669
- "required": { "type": "boolean" },
2670
- },
2671
- "required": ["kind", "alias", "required"],
2672
- "type": "object",
2686
+ "action": {
2687
+ "anyOf": [
2688
+ { "const": "call", "type": "string" },
2689
+ { "const": "publish", "type": "string" },
2690
+ { "const": "subscribe", "type": "string" },
2691
+ { "const": "observe", "type": "string" },
2692
+ { "const": "cancel", "type": "string" },
2693
+ ],
2694
+ },
2695
+ "contractId": { "minLength": 1, "type": "string" },
2696
+ "kind": {
2697
+ "anyOf": [
2698
+ { "const": "rpc", "type": "string" },
2699
+ { "const": "operation", "type": "string" },
2700
+ { "const": "event", "type": "string" },
2701
+ { "const": "feed", "type": "string" },
2702
+ ],
2673
2703
  },
2704
+ "name": { "minLength": 1, "type": "string" },
2705
+ "required": { "type": "boolean" },
2674
2706
  },
2675
- "required": ["kind", "resource", "required"],
2707
+ "required": ["contractId", "kind", "name", "required"],
2676
2708
  "type": "object",
2677
- }],
2709
+ },
2710
+ "type": "array",
2711
+ },
2678
2712
  },
2679
- "type": "array",
2713
+ "required": [
2714
+ "contracts",
2715
+ "surfaces",
2716
+ "capabilities",
2717
+ "resources",
2718
+ ],
2719
+ "type": "object",
2680
2720
  },
2681
2721
  "summary": { "type": "object" },
2682
2722
  },
@@ -2778,83 +2818,87 @@ export const AuthDeploymentAuthorityPlansListResponseSchema = {
2778
2818
  "type": "array",
2779
2819
  },
2780
2820
  "requestedNeeds": {
2781
- "items": {
2782
- "anyOf": [{
2821
+ "properties": {
2822
+ "capabilities": {
2823
+ "items": {
2783
2824
  "properties": {
2784
- "contractId": { "minLength": 1, "type": "string" },
2785
- "kind": { "const": "contract", "type": "string" },
2825
+ "capability": { "minLength": 1, "type": "string" },
2786
2826
  "required": { "type": "boolean" },
2787
2827
  },
2788
- "required": ["kind", "contractId", "required"],
2828
+ "required": ["capability", "required"],
2789
2829
  "type": "object",
2790
- }, {
2830
+ },
2831
+ "type": "array",
2832
+ },
2833
+ "contracts": {
2834
+ "items": {
2791
2835
  "properties": {
2792
- "kind": { "const": "surface", "type": "string" },
2836
+ "contractId": { "minLength": 1, "type": "string" },
2793
2837
  "required": { "type": "boolean" },
2794
- "surface": {
2795
- "properties": {
2796
- "action": {
2797
- "anyOf": [
2798
- { "const": "call", "type": "string" },
2799
- { "const": "publish", "type": "string" },
2800
- { "const": "subscribe", "type": "string" },
2801
- { "const": "observe", "type": "string" },
2802
- { "const": "cancel", "type": "string" },
2803
- ],
2804
- },
2805
- "contractId": { "minLength": 1, "type": "string" },
2806
- "kind": {
2807
- "anyOf": [
2808
- { "const": "rpc", "type": "string" },
2809
- { "const": "operation", "type": "string" },
2810
- { "const": "event", "type": "string" },
2811
- { "const": "feed", "type": "string" },
2812
- ],
2813
- },
2814
- "name": { "minLength": 1, "type": "string" },
2815
- },
2816
- "required": ["contractId", "kind", "name"],
2817
- "type": "object",
2818
- },
2819
2838
  },
2820
- "required": ["kind", "surface", "required"],
2839
+ "required": ["contractId", "required"],
2821
2840
  "type": "object",
2822
- }, {
2841
+ },
2842
+ "type": "array",
2843
+ },
2844
+ "resources": {
2845
+ "items": {
2823
2846
  "properties": {
2824
- "capability": { "minLength": 1, "type": "string" },
2825
- "kind": { "const": "capability", "type": "string" },
2847
+ "alias": { "minLength": 1, "type": "string" },
2848
+ "definition": { "type": "object" },
2849
+ "kind": {
2850
+ "anyOf": [
2851
+ { "const": "kv", "type": "string" },
2852
+ { "const": "store", "type": "string" },
2853
+ { "const": "jobs", "type": "string" },
2854
+ { "const": "event-consumer", "type": "string" },
2855
+ { "const": "transfer", "type": "string" },
2856
+ ],
2857
+ },
2826
2858
  "required": { "type": "boolean" },
2827
2859
  },
2828
- "required": ["kind", "capability", "required"],
2860
+ "required": ["kind", "alias", "required"],
2829
2861
  "type": "object",
2830
- }, {
2862
+ },
2863
+ "type": "array",
2864
+ },
2865
+ "surfaces": {
2866
+ "items": {
2831
2867
  "properties": {
2832
- "kind": { "const": "resource", "type": "string" },
2833
- "required": { "type": "boolean" },
2834
- "resource": {
2835
- "properties": {
2836
- "alias": { "minLength": 1, "type": "string" },
2837
- "definition": { "type": "object" },
2838
- "kind": {
2839
- "anyOf": [
2840
- { "const": "kv", "type": "string" },
2841
- { "const": "store", "type": "string" },
2842
- { "const": "jobs", "type": "string" },
2843
- { "const": "event-consumer", "type": "string" },
2844
- { "const": "transfer", "type": "string" },
2845
- ],
2846
- },
2847
- "required": { "type": "boolean" },
2848
- },
2849
- "required": ["kind", "alias", "required"],
2850
- "type": "object",
2868
+ "action": {
2869
+ "anyOf": [
2870
+ { "const": "call", "type": "string" },
2871
+ { "const": "publish", "type": "string" },
2872
+ { "const": "subscribe", "type": "string" },
2873
+ { "const": "observe", "type": "string" },
2874
+ { "const": "cancel", "type": "string" },
2875
+ ],
2851
2876
  },
2877
+ "contractId": { "minLength": 1, "type": "string" },
2878
+ "kind": {
2879
+ "anyOf": [
2880
+ { "const": "rpc", "type": "string" },
2881
+ { "const": "operation", "type": "string" },
2882
+ { "const": "event", "type": "string" },
2883
+ { "const": "feed", "type": "string" },
2884
+ ],
2885
+ },
2886
+ "name": { "minLength": 1, "type": "string" },
2887
+ "required": { "type": "boolean" },
2852
2888
  },
2853
- "required": ["kind", "resource", "required"],
2889
+ "required": ["contractId", "kind", "name", "required"],
2854
2890
  "type": "object",
2855
- }],
2891
+ },
2892
+ "type": "array",
2893
+ },
2856
2894
  },
2857
- "type": "array",
2895
+ "required": [
2896
+ "contracts",
2897
+ "surfaces",
2898
+ "capabilities",
2899
+ "resources",
2900
+ ],
2901
+ "type": "object",
2858
2902
  },
2859
2903
  "summary": { "type": "object" },
2860
2904
  },
@@ -2924,83 +2968,87 @@ export const AuthDeploymentAuthorityReconcileResponseSchema = {
2924
2968
  "type": "array",
2925
2969
  },
2926
2970
  "needs": {
2927
- "items": {
2928
- "anyOf": [{
2971
+ "properties": {
2972
+ "capabilities": {
2973
+ "items": {
2929
2974
  "properties": {
2930
- "contractId": { "minLength": 1, "type": "string" },
2931
- "kind": { "const": "contract", "type": "string" },
2975
+ "capability": { "minLength": 1, "type": "string" },
2932
2976
  "required": { "type": "boolean" },
2933
2977
  },
2934
- "required": ["kind", "contractId", "required"],
2978
+ "required": ["capability", "required"],
2935
2979
  "type": "object",
2936
- }, {
2980
+ },
2981
+ "type": "array",
2982
+ },
2983
+ "contracts": {
2984
+ "items": {
2937
2985
  "properties": {
2938
- "kind": { "const": "surface", "type": "string" },
2986
+ "contractId": { "minLength": 1, "type": "string" },
2939
2987
  "required": { "type": "boolean" },
2940
- "surface": {
2941
- "properties": {
2942
- "action": {
2943
- "anyOf": [
2944
- { "const": "call", "type": "string" },
2945
- { "const": "publish", "type": "string" },
2946
- { "const": "subscribe", "type": "string" },
2947
- { "const": "observe", "type": "string" },
2948
- { "const": "cancel", "type": "string" },
2949
- ],
2950
- },
2951
- "contractId": { "minLength": 1, "type": "string" },
2952
- "kind": {
2953
- "anyOf": [
2954
- { "const": "rpc", "type": "string" },
2955
- { "const": "operation", "type": "string" },
2956
- { "const": "event", "type": "string" },
2957
- { "const": "feed", "type": "string" },
2958
- ],
2959
- },
2960
- "name": { "minLength": 1, "type": "string" },
2961
- },
2962
- "required": ["contractId", "kind", "name"],
2963
- "type": "object",
2964
- },
2965
2988
  },
2966
- "required": ["kind", "surface", "required"],
2989
+ "required": ["contractId", "required"],
2967
2990
  "type": "object",
2968
- }, {
2991
+ },
2992
+ "type": "array",
2993
+ },
2994
+ "resources": {
2995
+ "items": {
2969
2996
  "properties": {
2970
- "capability": { "minLength": 1, "type": "string" },
2971
- "kind": { "const": "capability", "type": "string" },
2997
+ "alias": { "minLength": 1, "type": "string" },
2998
+ "definition": { "type": "object" },
2999
+ "kind": {
3000
+ "anyOf": [
3001
+ { "const": "kv", "type": "string" },
3002
+ { "const": "store", "type": "string" },
3003
+ { "const": "jobs", "type": "string" },
3004
+ { "const": "event-consumer", "type": "string" },
3005
+ { "const": "transfer", "type": "string" },
3006
+ ],
3007
+ },
2972
3008
  "required": { "type": "boolean" },
2973
3009
  },
2974
- "required": ["kind", "capability", "required"],
3010
+ "required": ["kind", "alias", "required"],
2975
3011
  "type": "object",
2976
- }, {
3012
+ },
3013
+ "type": "array",
3014
+ },
3015
+ "surfaces": {
3016
+ "items": {
2977
3017
  "properties": {
2978
- "kind": { "const": "resource", "type": "string" },
2979
- "required": { "type": "boolean" },
2980
- "resource": {
2981
- "properties": {
2982
- "alias": { "minLength": 1, "type": "string" },
2983
- "definition": { "type": "object" },
2984
- "kind": {
2985
- "anyOf": [
2986
- { "const": "kv", "type": "string" },
2987
- { "const": "store", "type": "string" },
2988
- { "const": "jobs", "type": "string" },
2989
- { "const": "event-consumer", "type": "string" },
2990
- { "const": "transfer", "type": "string" },
2991
- ],
2992
- },
2993
- "required": { "type": "boolean" },
2994
- },
2995
- "required": ["kind", "alias", "required"],
2996
- "type": "object",
3018
+ "action": {
3019
+ "anyOf": [
3020
+ { "const": "call", "type": "string" },
3021
+ { "const": "publish", "type": "string" },
3022
+ { "const": "subscribe", "type": "string" },
3023
+ { "const": "observe", "type": "string" },
3024
+ { "const": "cancel", "type": "string" },
3025
+ ],
3026
+ },
3027
+ "contractId": { "minLength": 1, "type": "string" },
3028
+ "kind": {
3029
+ "anyOf": [
3030
+ { "const": "rpc", "type": "string" },
3031
+ { "const": "operation", "type": "string" },
3032
+ { "const": "event", "type": "string" },
3033
+ { "const": "feed", "type": "string" },
3034
+ ],
2997
3035
  },
3036
+ "name": { "minLength": 1, "type": "string" },
3037
+ "required": { "type": "boolean" },
2998
3038
  },
2999
- "required": ["kind", "resource", "required"],
3039
+ "required": ["contractId", "kind", "name", "required"],
3000
3040
  "type": "object",
3001
- }],
3041
+ },
3042
+ "type": "array",
3043
+ },
3002
3044
  },
3003
- "type": "array",
3045
+ "required": [
3046
+ "contracts",
3047
+ "surfaces",
3048
+ "capabilities",
3049
+ "resources",
3050
+ ],
3051
+ "type": "object",
3004
3052
  },
3005
3053
  "resources": {
3006
3054
  "items": {
@@ -3086,40 +3134,19 @@ export const AuthDeploymentAuthorityReconcileResponseSchema = {
3086
3134
  "desiredVersion": { "minLength": 1, "type": "string" },
3087
3135
  "error": { "minLength": 1, "type": "string" },
3088
3136
  "grants": {
3089
- "items": {
3090
- "anyOf": [{
3137
+ "properties": {
3138
+ "capabilities": {
3139
+ "items": {
3091
3140
  "properties": {
3092
3141
  "capability": { "minLength": 1, "type": "string" },
3093
- "kind": { "const": "capability", "type": "string" },
3094
- },
3095
- "required": ["kind", "capability"],
3096
- "type": "object",
3097
- }, {
3098
- "properties": {
3099
- "action": {
3100
- "anyOf": [
3101
- { "const": "call", "type": "string" },
3102
- { "const": "publish", "type": "string" },
3103
- { "const": "subscribe", "type": "string" },
3104
- { "const": "observe", "type": "string" },
3105
- { "const": "cancel", "type": "string" },
3106
- ],
3107
- },
3108
- "contractId": { "minLength": 1, "type": "string" },
3109
- "kind": { "const": "surface", "type": "string" },
3110
- "name": { "minLength": 1, "type": "string" },
3111
- "surfaceKind": {
3112
- "anyOf": [
3113
- { "const": "rpc", "type": "string" },
3114
- { "const": "operation", "type": "string" },
3115
- { "const": "event", "type": "string" },
3116
- { "const": "feed", "type": "string" },
3117
- ],
3118
- },
3119
3142
  },
3120
- "required": ["kind", "contractId", "surfaceKind", "name"],
3143
+ "required": ["capability"],
3121
3144
  "type": "object",
3122
- }, {
3145
+ },
3146
+ "type": "array",
3147
+ },
3148
+ "nats": {
3149
+ "items": {
3123
3150
  "properties": {
3124
3151
  "direction": {
3125
3152
  "anyOf": [{ "const": "publish", "type": "string" }, {
@@ -3136,7 +3163,6 @@ export const AuthDeploymentAuthorityReconcileResponseSchema = {
3136
3163
  { "const": "transfer", "type": "string" },
3137
3164
  ],
3138
3165
  },
3139
- "kind": { "const": "nats", "type": "string" },
3140
3166
  "requiredCapabilities": {
3141
3167
  "items": { "minLength": 1, "type": "string" },
3142
3168
  "type": "array",
@@ -3169,16 +3195,46 @@ export const AuthDeploymentAuthorityReconcileResponseSchema = {
3169
3195
  },
3170
3196
  },
3171
3197
  "required": [
3172
- "kind",
3173
3198
  "direction",
3174
3199
  "subject",
3175
3200
  "requiredCapabilities",
3176
3201
  "grantSource",
3177
3202
  ],
3178
3203
  "type": "object",
3179
- }],
3204
+ },
3205
+ "type": "array",
3206
+ },
3207
+ "surfaces": {
3208
+ "items": {
3209
+ "properties": {
3210
+ "action": {
3211
+ "anyOf": [
3212
+ { "const": "call", "type": "string" },
3213
+ { "const": "publish", "type": "string" },
3214
+ { "const": "subscribe", "type": "string" },
3215
+ { "const": "observe", "type": "string" },
3216
+ { "const": "cancel", "type": "string" },
3217
+ ],
3218
+ },
3219
+ "contractId": { "minLength": 1, "type": "string" },
3220
+ "name": { "minLength": 1, "type": "string" },
3221
+ "surfaceKind": {
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
+ },
3230
+ "required": ["contractId", "surfaceKind", "name"],
3231
+ "type": "object",
3232
+ },
3233
+ "type": "array",
3234
+ },
3180
3235
  },
3181
- "type": "array",
3236
+ "required": ["capabilities", "surfaces", "nats"],
3237
+ "type": "object",
3182
3238
  },
3183
3239
  "reconciledAt": {
3184
3240
  "anyOf": [{ "format": "date-time", "type": "string" }, {