@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
@@ -1,7 +1,7 @@
1
1
  import type { RpcHandlerFn } from "@qlever-llc/trellis";
2
2
  import type { API } from "./api.js";
3
3
  export declare const CONTRACT_ID: "trellis.auth@v1";
4
- export declare const CONTRACT_DIGEST: "XdqgSxkrIhWOu1ODbOk6-QHLTlI52ZP-6qhYJpIdCMc";
4
+ export declare const CONTRACT_DIGEST: "U-Y6P1smzJB4MeG6NdhDuZ0CTT2BWOud9iL1zIQktMM";
5
5
  export type AuthCapabilitiesListInput = {
6
6
  limit: number;
7
7
  offset?: number;
@@ -192,33 +192,29 @@ export type AuthDeploymentAuthorityAcceptMigrationOutput = {
192
192
  deploymentId: string;
193
193
  desiredState: {
194
194
  capabilities: Array<string>;
195
- needs: Array<({
196
- contractId: string;
197
- kind: "contract";
198
- required: boolean;
199
- } | {
200
- kind: "surface";
201
- required: boolean;
202
- surface: {
203
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
195
+ needs: {
196
+ capabilities: Array<{
197
+ capability: string;
198
+ required: boolean;
199
+ }>;
200
+ contracts: Array<{
204
201
  contractId: string;
205
- kind: "rpc" | "operation" | "event" | "feed";
206
- name: string;
207
- };
208
- } | {
209
- capability: string;
210
- kind: "capability";
211
- required: boolean;
212
- } | {
213
- kind: "resource";
214
- required: boolean;
215
- resource: {
202
+ required: boolean;
203
+ }>;
204
+ resources: Array<{
216
205
  alias: string;
217
206
  definition?: {};
218
207
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
219
208
  required: boolean;
220
- };
221
- })>;
209
+ }>;
210
+ surfaces: Array<{
211
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
212
+ contractId: string;
213
+ kind: "rpc" | "operation" | "event" | "feed";
214
+ name: string;
215
+ required: boolean;
216
+ }>;
217
+ };
222
218
  resources: Array<{
223
219
  alias: string;
224
220
  definition?: {};
@@ -248,33 +244,29 @@ export type AuthDeploymentAuthorityAcceptUpdateOutput = {
248
244
  deploymentId: string;
249
245
  desiredState: {
250
246
  capabilities: Array<string>;
251
- needs: Array<({
252
- contractId: string;
253
- kind: "contract";
254
- required: boolean;
255
- } | {
256
- kind: "surface";
257
- required: boolean;
258
- surface: {
259
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
247
+ needs: {
248
+ capabilities: Array<{
249
+ capability: string;
250
+ required: boolean;
251
+ }>;
252
+ contracts: Array<{
260
253
  contractId: string;
261
- kind: "rpc" | "operation" | "event" | "feed";
262
- name: string;
263
- };
264
- } | {
265
- capability: string;
266
- kind: "capability";
267
- required: boolean;
268
- } | {
269
- kind: "resource";
270
- required: boolean;
271
- resource: {
254
+ required: boolean;
255
+ }>;
256
+ resources: Array<{
272
257
  alias: string;
273
258
  definition?: {};
274
259
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
275
260
  required: boolean;
276
- };
277
- })>;
261
+ }>;
262
+ surfaces: Array<{
263
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
264
+ contractId: string;
265
+ kind: "rpc" | "operation" | "event" | "feed";
266
+ name: string;
267
+ required: boolean;
268
+ }>;
269
+ };
278
270
  resources: Array<{
279
271
  alias: string;
280
272
  definition?: {};
@@ -303,33 +295,29 @@ export type AuthDeploymentAuthorityGetOutput = {
303
295
  deploymentId: string;
304
296
  desiredState: {
305
297
  capabilities: Array<string>;
306
- needs: Array<({
307
- contractId: string;
308
- kind: "contract";
309
- required: boolean;
310
- } | {
311
- kind: "surface";
312
- required: boolean;
313
- surface: {
314
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
298
+ needs: {
299
+ capabilities: Array<{
300
+ capability: string;
301
+ required: boolean;
302
+ }>;
303
+ contracts: Array<{
315
304
  contractId: string;
316
- kind: "rpc" | "operation" | "event" | "feed";
317
- name: string;
318
- };
319
- } | {
320
- capability: string;
321
- kind: "capability";
322
- required: boolean;
323
- } | {
324
- kind: "resource";
325
- required: boolean;
326
- resource: {
305
+ required: boolean;
306
+ }>;
307
+ resources: Array<{
327
308
  alias: string;
328
309
  definition?: {};
329
310
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
330
311
  required: boolean;
331
- };
332
- })>;
312
+ }>;
313
+ surfaces: Array<{
314
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
315
+ contractId: string;
316
+ kind: "rpc" | "operation" | "event" | "feed";
317
+ name: string;
318
+ required: boolean;
319
+ }>;
320
+ };
333
321
  resources: Array<{
334
322
  alias: string;
335
323
  definition?: {};
@@ -389,28 +377,29 @@ export type AuthDeploymentAuthorityGetOutput = {
389
377
  deploymentId: string;
390
378
  desiredVersion: string;
391
379
  error?: string;
392
- grants: Array<({
393
- capability: string;
394
- kind: "capability";
395
- } | {
396
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
397
- contractId: string;
398
- kind: "surface";
399
- name: string;
400
- surfaceKind: "rpc" | "operation" | "event" | "feed";
401
- } | {
402
- direction: "publish" | "subscribe";
403
- grantSource: "owned-surface" | "used-surface" | "resource-binding" | "platform-service" | "transfer";
404
- kind: "nats";
405
- requiredCapabilities: Array<string>;
406
- subject: string;
407
- surface?: {
380
+ grants: {
381
+ capabilities: Array<{
382
+ capability: string;
383
+ }>;
384
+ nats: Array<{
385
+ direction: "publish" | "subscribe";
386
+ grantSource: "owned-surface" | "used-surface" | "resource-binding" | "platform-service" | "transfer";
387
+ requiredCapabilities: Array<string>;
388
+ subject: string;
389
+ surface?: {
390
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
391
+ contractId: string;
392
+ kind: "rpc" | "operation" | "event" | "feed";
393
+ name: string;
394
+ };
395
+ }>;
396
+ surfaces: Array<{
408
397
  action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
409
398
  contractId: string;
410
- kind: "rpc" | "operation" | "event" | "feed";
411
399
  name: string;
412
- };
413
- })>;
400
+ surfaceKind: "rpc" | "operation" | "event" | "feed";
401
+ }>;
402
+ };
414
403
  reconciledAt: string | null;
415
404
  resourceBindings: Array<{
416
405
  alias: string;
@@ -653,33 +642,29 @@ export type AuthDeploymentAuthorityListOutput = {
653
642
  deploymentId: string;
654
643
  desiredState: {
655
644
  capabilities: Array<string>;
656
- needs: Array<({
657
- contractId: string;
658
- kind: "contract";
659
- required: boolean;
660
- } | {
661
- kind: "surface";
662
- required: boolean;
663
- surface: {
664
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
645
+ needs: {
646
+ capabilities: Array<{
647
+ capability: string;
648
+ required: boolean;
649
+ }>;
650
+ contracts: Array<{
665
651
  contractId: string;
666
- kind: "rpc" | "operation" | "event" | "feed";
667
- name: string;
668
- };
669
- } | {
670
- capability: string;
671
- kind: "capability";
672
- required: boolean;
673
- } | {
674
- kind: "resource";
675
- required: boolean;
676
- resource: {
652
+ required: boolean;
653
+ }>;
654
+ resources: Array<{
677
655
  alias: string;
678
656
  definition?: {};
679
657
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
680
658
  required: boolean;
681
- };
682
- })>;
659
+ }>;
660
+ surfaces: Array<{
661
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
662
+ contractId: string;
663
+ kind: "rpc" | "operation" | "event" | "feed";
664
+ name: string;
665
+ required: boolean;
666
+ }>;
667
+ };
683
668
  resources: Array<{
684
669
  alias: string;
685
670
  definition?: {};
@@ -733,33 +718,29 @@ export type AuthDeploymentAuthorityPlanOutput = {
733
718
  kind: "rpc" | "operation" | "event" | "feed";
734
719
  name: string;
735
720
  }>;
736
- requestedNeeds: Array<({
737
- contractId: string;
738
- kind: "contract";
739
- required: boolean;
740
- } | {
741
- kind: "surface";
742
- required: boolean;
743
- surface: {
744
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
721
+ requestedNeeds: {
722
+ capabilities: Array<{
723
+ capability: string;
724
+ required: boolean;
725
+ }>;
726
+ contracts: Array<{
745
727
  contractId: string;
746
- kind: "rpc" | "operation" | "event" | "feed";
747
- name: string;
748
- };
749
- } | {
750
- capability: string;
751
- kind: "capability";
752
- required: boolean;
753
- } | {
754
- kind: "resource";
755
- required: boolean;
756
- resource: {
728
+ required: boolean;
729
+ }>;
730
+ resources: Array<{
757
731
  alias: string;
758
732
  definition?: {};
759
733
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
760
734
  required: boolean;
761
- };
762
- })>;
735
+ }>;
736
+ surfaces: Array<{
737
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
738
+ contractId: string;
739
+ kind: "rpc" | "operation" | "event" | "feed";
740
+ name: string;
741
+ required: boolean;
742
+ }>;
743
+ };
763
744
  summary?: {};
764
745
  };
765
746
  state?: "pending" | "accepted" | "rejected" | "expired";
@@ -790,33 +771,29 @@ export type AuthDeploymentAuthorityPlanOutput = {
790
771
  kind: "rpc" | "operation" | "event" | "feed";
791
772
  name: string;
792
773
  }>;
793
- requestedNeeds: Array<({
794
- contractId: string;
795
- kind: "contract";
796
- required: boolean;
797
- } | {
798
- kind: "surface";
799
- required: boolean;
800
- surface: {
801
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
774
+ requestedNeeds: {
775
+ capabilities: Array<{
776
+ capability: string;
777
+ required: boolean;
778
+ }>;
779
+ contracts: Array<{
802
780
  contractId: string;
803
- kind: "rpc" | "operation" | "event" | "feed";
804
- name: string;
805
- };
806
- } | {
807
- capability: string;
808
- kind: "capability";
809
- required: boolean;
810
- } | {
811
- kind: "resource";
812
- required: boolean;
813
- resource: {
781
+ required: boolean;
782
+ }>;
783
+ resources: Array<{
814
784
  alias: string;
815
785
  definition?: {};
816
786
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
817
787
  required: boolean;
818
- };
819
- })>;
788
+ }>;
789
+ surfaces: Array<{
790
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
791
+ contractId: string;
792
+ kind: "rpc" | "operation" | "event" | "feed";
793
+ name: string;
794
+ required: boolean;
795
+ }>;
796
+ };
820
797
  summary?: {};
821
798
  };
822
799
  state?: "pending" | "accepted" | "rejected" | "expired";
@@ -852,33 +829,29 @@ export type AuthDeploymentAuthorityPlansGetOutput = {
852
829
  kind: "rpc" | "operation" | "event" | "feed";
853
830
  name: string;
854
831
  }>;
855
- requestedNeeds: Array<({
856
- contractId: string;
857
- kind: "contract";
858
- required: boolean;
859
- } | {
860
- kind: "surface";
861
- required: boolean;
862
- surface: {
863
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
832
+ requestedNeeds: {
833
+ capabilities: Array<{
834
+ capability: string;
835
+ required: boolean;
836
+ }>;
837
+ contracts: Array<{
864
838
  contractId: string;
865
- kind: "rpc" | "operation" | "event" | "feed";
866
- name: string;
867
- };
868
- } | {
869
- capability: string;
870
- kind: "capability";
871
- required: boolean;
872
- } | {
873
- kind: "resource";
874
- required: boolean;
875
- resource: {
839
+ required: boolean;
840
+ }>;
841
+ resources: Array<{
876
842
  alias: string;
877
843
  definition?: {};
878
844
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
879
845
  required: boolean;
880
- };
881
- })>;
846
+ }>;
847
+ surfaces: Array<{
848
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
849
+ contractId: string;
850
+ kind: "rpc" | "operation" | "event" | "feed";
851
+ name: string;
852
+ required: boolean;
853
+ }>;
854
+ };
882
855
  summary?: {};
883
856
  };
884
857
  state?: "pending" | "accepted" | "rejected" | "expired";
@@ -909,33 +882,29 @@ export type AuthDeploymentAuthorityPlansGetOutput = {
909
882
  kind: "rpc" | "operation" | "event" | "feed";
910
883
  name: string;
911
884
  }>;
912
- requestedNeeds: Array<({
913
- contractId: string;
914
- kind: "contract";
915
- required: boolean;
916
- } | {
917
- kind: "surface";
918
- required: boolean;
919
- surface: {
920
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
885
+ requestedNeeds: {
886
+ capabilities: Array<{
887
+ capability: string;
888
+ required: boolean;
889
+ }>;
890
+ contracts: Array<{
921
891
  contractId: string;
922
- kind: "rpc" | "operation" | "event" | "feed";
923
- name: string;
924
- };
925
- } | {
926
- capability: string;
927
- kind: "capability";
928
- required: boolean;
929
- } | {
930
- kind: "resource";
931
- required: boolean;
932
- resource: {
892
+ required: boolean;
893
+ }>;
894
+ resources: Array<{
933
895
  alias: string;
934
896
  definition?: {};
935
897
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
936
898
  required: boolean;
937
- };
938
- })>;
899
+ }>;
900
+ surfaces: Array<{
901
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
902
+ contractId: string;
903
+ kind: "rpc" | "operation" | "event" | "feed";
904
+ name: string;
905
+ required: boolean;
906
+ }>;
907
+ };
939
908
  summary?: {};
940
909
  };
941
910
  state?: "pending" | "accepted" | "rejected" | "expired";
@@ -977,33 +946,29 @@ export type AuthDeploymentAuthorityPlansListOutput = {
977
946
  kind: "rpc" | "operation" | "event" | "feed";
978
947
  name: string;
979
948
  }>;
980
- requestedNeeds: Array<({
981
- contractId: string;
982
- kind: "contract";
983
- required: boolean;
984
- } | {
985
- kind: "surface";
986
- required: boolean;
987
- surface: {
988
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
949
+ requestedNeeds: {
950
+ capabilities: Array<{
951
+ capability: string;
952
+ required: boolean;
953
+ }>;
954
+ contracts: Array<{
989
955
  contractId: string;
990
- kind: "rpc" | "operation" | "event" | "feed";
991
- name: string;
992
- };
993
- } | {
994
- capability: string;
995
- kind: "capability";
996
- required: boolean;
997
- } | {
998
- kind: "resource";
999
- required: boolean;
1000
- resource: {
956
+ required: boolean;
957
+ }>;
958
+ resources: Array<{
1001
959
  alias: string;
1002
960
  definition?: {};
1003
961
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
1004
962
  required: boolean;
1005
- };
1006
- })>;
963
+ }>;
964
+ surfaces: Array<{
965
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
966
+ contractId: string;
967
+ kind: "rpc" | "operation" | "event" | "feed";
968
+ name: string;
969
+ required: boolean;
970
+ }>;
971
+ };
1007
972
  summary?: {};
1008
973
  };
1009
974
  state?: "pending" | "accepted" | "rejected" | "expired";
@@ -1034,33 +999,29 @@ export type AuthDeploymentAuthorityPlansListOutput = {
1034
999
  kind: "rpc" | "operation" | "event" | "feed";
1035
1000
  name: string;
1036
1001
  }>;
1037
- requestedNeeds: Array<({
1038
- contractId: string;
1039
- kind: "contract";
1040
- required: boolean;
1041
- } | {
1042
- kind: "surface";
1043
- required: boolean;
1044
- surface: {
1045
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
1002
+ requestedNeeds: {
1003
+ capabilities: Array<{
1004
+ capability: string;
1005
+ required: boolean;
1006
+ }>;
1007
+ contracts: Array<{
1046
1008
  contractId: string;
1047
- kind: "rpc" | "operation" | "event" | "feed";
1048
- name: string;
1049
- };
1050
- } | {
1051
- capability: string;
1052
- kind: "capability";
1053
- required: boolean;
1054
- } | {
1055
- kind: "resource";
1056
- required: boolean;
1057
- resource: {
1009
+ required: boolean;
1010
+ }>;
1011
+ resources: Array<{
1058
1012
  alias: string;
1059
1013
  definition?: {};
1060
1014
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
1061
1015
  required: boolean;
1062
- };
1063
- })>;
1016
+ }>;
1017
+ surfaces: Array<{
1018
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
1019
+ contractId: string;
1020
+ kind: "rpc" | "operation" | "event" | "feed";
1021
+ name: string;
1022
+ required: boolean;
1023
+ }>;
1024
+ };
1064
1025
  summary?: {};
1065
1026
  };
1066
1027
  state?: "pending" | "accepted" | "rejected" | "expired";
@@ -1080,33 +1041,29 @@ export type AuthDeploymentAuthorityReconcileOutput = {
1080
1041
  deploymentId: string;
1081
1042
  desiredState: {
1082
1043
  capabilities: Array<string>;
1083
- needs: Array<({
1084
- contractId: string;
1085
- kind: "contract";
1086
- required: boolean;
1087
- } | {
1088
- kind: "surface";
1089
- required: boolean;
1090
- surface: {
1091
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
1044
+ needs: {
1045
+ capabilities: Array<{
1046
+ capability: string;
1047
+ required: boolean;
1048
+ }>;
1049
+ contracts: Array<{
1092
1050
  contractId: string;
1093
- kind: "rpc" | "operation" | "event" | "feed";
1094
- name: string;
1095
- };
1096
- } | {
1097
- capability: string;
1098
- kind: "capability";
1099
- required: boolean;
1100
- } | {
1101
- kind: "resource";
1102
- required: boolean;
1103
- resource: {
1051
+ required: boolean;
1052
+ }>;
1053
+ resources: Array<{
1104
1054
  alias: string;
1105
1055
  definition?: {};
1106
1056
  kind: "kv" | "store" | "jobs" | "event-consumer" | "transfer";
1107
1057
  required: boolean;
1108
- };
1109
- })>;
1058
+ }>;
1059
+ surfaces: Array<{
1060
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
1061
+ contractId: string;
1062
+ kind: "rpc" | "operation" | "event" | "feed";
1063
+ name: string;
1064
+ required: boolean;
1065
+ }>;
1066
+ };
1110
1067
  resources: Array<{
1111
1068
  alias: string;
1112
1069
  definition?: {};
@@ -1129,28 +1086,29 @@ export type AuthDeploymentAuthorityReconcileOutput = {
1129
1086
  deploymentId: string;
1130
1087
  desiredVersion: string;
1131
1088
  error?: string;
1132
- grants: Array<({
1133
- capability: string;
1134
- kind: "capability";
1135
- } | {
1136
- action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
1137
- contractId: string;
1138
- kind: "surface";
1139
- name: string;
1140
- surfaceKind: "rpc" | "operation" | "event" | "feed";
1141
- } | {
1142
- direction: "publish" | "subscribe";
1143
- grantSource: "owned-surface" | "used-surface" | "resource-binding" | "platform-service" | "transfer";
1144
- kind: "nats";
1145
- requiredCapabilities: Array<string>;
1146
- subject: string;
1147
- surface?: {
1089
+ grants: {
1090
+ capabilities: Array<{
1091
+ capability: string;
1092
+ }>;
1093
+ nats: Array<{
1094
+ direction: "publish" | "subscribe";
1095
+ grantSource: "owned-surface" | "used-surface" | "resource-binding" | "platform-service" | "transfer";
1096
+ requiredCapabilities: Array<string>;
1097
+ subject: string;
1098
+ surface?: {
1099
+ action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
1100
+ contractId: string;
1101
+ kind: "rpc" | "operation" | "event" | "feed";
1102
+ name: string;
1103
+ };
1104
+ }>;
1105
+ surfaces: Array<{
1148
1106
  action?: "call" | "publish" | "subscribe" | "observe" | "cancel";
1149
1107
  contractId: string;
1150
- kind: "rpc" | "operation" | "event" | "feed";
1151
1108
  name: string;
1152
- };
1153
- })>;
1109
+ surfaceKind: "rpc" | "operation" | "event" | "feed";
1110
+ }>;
1111
+ };
1154
1112
  reconciledAt: string | null;
1155
1113
  resourceBindings: Array<{
1156
1114
  alias: string;