@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.
- package/esm/auth/browser/portal.d.ts.map +1 -1
- package/esm/auth/browser/portal.js +2 -0
- package/esm/auth/browser.d.ts +2 -0
- package/esm/auth/browser.d.ts.map +1 -1
- package/esm/auth/browser.js +1 -0
- package/esm/auth/browser_recovery.d.ts +22 -0
- package/esm/auth/browser_recovery.d.ts.map +1 -0
- package/esm/auth/browser_recovery.js +238 -0
- package/esm/auth/mod.d.ts +2 -2
- package/esm/auth/mod.d.ts.map +1 -1
- package/esm/auth/mod.js +2 -2
- package/esm/auth/protocol.d.ts +362 -398
- package/esm/auth/protocol.d.ts.map +1 -1
- package/esm/auth/protocol.js +36 -33
- package/esm/browser.d.ts +2 -2
- package/esm/browser.d.ts.map +1 -1
- package/esm/browser.js +1 -1
- package/esm/client_connect.js +1 -1
- package/esm/generated-sdk/auth/contract.d.ts +1 -1
- package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
- package/esm/generated-sdk/auth/contract.js +1236 -1079
- package/esm/generated-sdk/auth/schemas.d.ts +1428 -1578
- package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
- package/esm/generated-sdk/auth/schemas.js +725 -669
- package/esm/generated-sdk/auth/types.d.ts +239 -281
- package/esm/generated-sdk/auth/types.d.ts.map +1 -1
- package/esm/generated-sdk/auth/types.js +1 -1
- package/package.json +2 -2
- package/script/auth/browser/portal.d.ts.map +1 -1
- package/script/auth/browser/portal.js +2 -0
- package/script/auth/browser.d.ts +2 -0
- package/script/auth/browser.d.ts.map +1 -1
- package/script/auth/browser.js +4 -1
- package/script/auth/browser_recovery.d.ts +22 -0
- package/script/auth/browser_recovery.d.ts.map +1 -0
- package/script/auth/browser_recovery.js +242 -0
- package/script/auth/mod.d.ts +2 -2
- package/script/auth/mod.d.ts.map +1 -1
- package/script/auth/mod.js +17 -6
- package/script/auth/protocol.d.ts +362 -398
- package/script/auth/protocol.d.ts.map +1 -1
- package/script/auth/protocol.js +41 -37
- package/script/browser.d.ts +2 -2
- package/script/browser.d.ts.map +1 -1
- package/script/browser.js +4 -2
- package/script/client_connect.js +1 -1
- package/script/generated-sdk/auth/contract.d.ts +1 -1
- package/script/generated-sdk/auth/contract.d.ts.map +1 -1
- package/script/generated-sdk/auth/contract.js +1236 -1079
- package/script/generated-sdk/auth/schemas.d.ts +1428 -1578
- package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
- package/script/generated-sdk/auth/schemas.js +725 -669
- package/script/generated-sdk/auth/types.d.ts +239 -281
- package/script/generated-sdk/auth/types.d.ts.map +1 -1
- package/script/generated-sdk/auth/types.js +1 -1
- package/src/auth/browser/portal.ts +1 -0
- package/src/auth/browser.ts +8 -0
- package/src/auth/browser_recovery.ts +319 -0
- package/src/auth/mod.ts +25 -2
- package/src/auth/protocol.ts +73 -37
- package/src/browser.ts +4 -0
- package/src/client_connect.ts +1 -1
- package/src/sdk/_generated/auth/contract.ts +1477 -1320
- package/src/sdk/_generated/auth/schemas.ts +919 -863
- 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: "
|
|
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:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
-
|
|
206
|
-
|
|
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:
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
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
|
-
|
|
262
|
-
|
|
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:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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
|
-
|
|
317
|
-
|
|
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:
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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:
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
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
|
-
|
|
667
|
-
|
|
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:
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
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
|
-
|
|
747
|
-
|
|
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:
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
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
|
-
|
|
804
|
-
|
|
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:
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
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
|
-
|
|
866
|
-
|
|
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:
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
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
|
-
|
|
923
|
-
|
|
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:
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
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
|
-
|
|
991
|
-
|
|
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:
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
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
|
-
|
|
1048
|
-
|
|
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:
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
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
|
-
|
|
1094
|
-
|
|
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:
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
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;
|