@camstack/types 0.1.32 → 0.1.33
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/dist/capabilities/mesh-network.cap.d.ts +54 -2
- package/dist/capabilities/mesh-network.cap.d.ts.map +1 -1
- package/dist/capabilities/mesh-orchestrator.cap.d.ts +67 -0
- package/dist/capabilities/mesh-orchestrator.cap.d.ts.map +1 -1
- package/dist/capabilities/nodes.cap.d.ts +23 -1
- package/dist/capabilities/nodes.cap.d.ts.map +1 -1
- package/dist/capabilities/user-management.cap.d.ts +4 -0
- package/dist/capabilities/user-management.cap.d.ts.map +1 -1
- package/dist/generated/addon-api.d.ts +266 -0
- package/dist/generated/addon-api.d.ts.map +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts.map +1 -1
- package/dist/generated/system-proxy.d.ts +3 -3
- package/dist/generated/system-proxy.d.ts.map +1 -1
- package/dist/{index-BUBhoPUu.js → index-DRWlYskM.js} +161 -6
- package/dist/{index-BUBhoPUu.js.map → index-DRWlYskM.js.map} +1 -1
- package/dist/{index-BBVUwOlZ.mjs → index-YnRVILXN.mjs} +161 -6
- package/dist/{index-BBVUwOlZ.mjs.map → index-YnRVILXN.mjs.map} +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -3
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/api-responses.d.ts +6 -0
- package/dist/interfaces/api-responses.d.ts.map +1 -1
- package/dist/interfaces/storage.d.ts +1 -1
- package/dist/interfaces/storage.d.ts.map +1 -1
- package/dist/node.js +6 -6
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +6 -6
- package/dist/node.mjs.map +1 -1
- package/dist/storage/filesystem-storage-provider.d.ts +1 -1
- package/dist/storage/filesystem-storage-provider.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -653,6 +653,48 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
653
653
|
} | null;
|
|
654
654
|
meta: object;
|
|
655
655
|
}>;
|
|
656
|
+
changeOwnPassword: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
657
|
+
input: {
|
|
658
|
+
currentPassword: string;
|
|
659
|
+
newPassword: string;
|
|
660
|
+
};
|
|
661
|
+
output: {
|
|
662
|
+
success: true;
|
|
663
|
+
};
|
|
664
|
+
meta: object;
|
|
665
|
+
}>;
|
|
666
|
+
setupOwnTotp: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
667
|
+
input: void;
|
|
668
|
+
output: {
|
|
669
|
+
secret: string;
|
|
670
|
+
otpauthUrl: string;
|
|
671
|
+
};
|
|
672
|
+
meta: object;
|
|
673
|
+
}>;
|
|
674
|
+
confirmOwnTotp: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
675
|
+
input: {
|
|
676
|
+
code: string;
|
|
677
|
+
};
|
|
678
|
+
output: {
|
|
679
|
+
success: true;
|
|
680
|
+
};
|
|
681
|
+
meta: object;
|
|
682
|
+
}>;
|
|
683
|
+
disableOwnTotp: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
684
|
+
input: void;
|
|
685
|
+
output: {
|
|
686
|
+
success: true;
|
|
687
|
+
};
|
|
688
|
+
meta: object;
|
|
689
|
+
}>;
|
|
690
|
+
getOwnTotpStatus: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
691
|
+
input: void;
|
|
692
|
+
output: {
|
|
693
|
+
enabled: boolean;
|
|
694
|
+
confirmedAt: number | null;
|
|
695
|
+
};
|
|
696
|
+
meta: object;
|
|
697
|
+
}>;
|
|
656
698
|
logout: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
657
699
|
input: void;
|
|
658
700
|
output: {
|
|
@@ -1129,6 +1171,19 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
1129
1171
|
}>;
|
|
1130
1172
|
meta: object;
|
|
1131
1173
|
}>;
|
|
1174
|
+
getNodeAddons: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
1175
|
+
input: {
|
|
1176
|
+
[x: string]: unknown;
|
|
1177
|
+
nodeId: string;
|
|
1178
|
+
};
|
|
1179
|
+
output: readonly {
|
|
1180
|
+
id: string;
|
|
1181
|
+
status: string;
|
|
1182
|
+
version?: string | undefined;
|
|
1183
|
+
packageName?: string | undefined;
|
|
1184
|
+
}[];
|
|
1185
|
+
meta: object;
|
|
1186
|
+
}>;
|
|
1132
1187
|
setProcessLogLevel: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
1133
1188
|
input: {
|
|
1134
1189
|
[x: string]: unknown;
|
|
@@ -5769,6 +5824,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5769
5824
|
};
|
|
5770
5825
|
meta: object;
|
|
5771
5826
|
}>;
|
|
5827
|
+
logout: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
5828
|
+
input: {
|
|
5829
|
+
nodeId?: string | undefined;
|
|
5830
|
+
} | undefined;
|
|
5831
|
+
output: {
|
|
5832
|
+
loggedOut: true;
|
|
5833
|
+
};
|
|
5834
|
+
meta: object;
|
|
5835
|
+
}>;
|
|
5772
5836
|
listPeers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
5773
5837
|
input: {
|
|
5774
5838
|
nodeId?: string | undefined;
|
|
@@ -5777,10 +5841,21 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5777
5841
|
peers: readonly {
|
|
5778
5842
|
id: string;
|
|
5779
5843
|
hostname: string;
|
|
5844
|
+
magicDns: string;
|
|
5780
5845
|
addresses: readonly string[];
|
|
5781
5846
|
online: boolean;
|
|
5782
5847
|
lastSeenMs: number;
|
|
5783
5848
|
isSelf: boolean;
|
|
5849
|
+
connection: "idle" | "relay" | "direct";
|
|
5850
|
+
relay: string | null;
|
|
5851
|
+
lastHandshakeMs: number;
|
|
5852
|
+
rxBytes: number;
|
|
5853
|
+
txBytes: number;
|
|
5854
|
+
tags: readonly string[];
|
|
5855
|
+
exitNodeOption: boolean;
|
|
5856
|
+
advertisedRoutes: readonly string[];
|
|
5857
|
+
userLogin: string | null;
|
|
5858
|
+
keyExpiry: number | null;
|
|
5784
5859
|
os?: string | undefined;
|
|
5785
5860
|
}[];
|
|
5786
5861
|
};
|
|
@@ -5826,6 +5901,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5826
5901
|
port: number;
|
|
5827
5902
|
protocol: "https" | "http";
|
|
5828
5903
|
}[];
|
|
5904
|
+
tenantName: string;
|
|
5905
|
+
magicDnsSuffix: string;
|
|
5906
|
+
userLogin: string | null;
|
|
5907
|
+
controlPlaneUrl: string;
|
|
5908
|
+
keyExpiry: number | null;
|
|
5829
5909
|
error?: string | undefined;
|
|
5830
5910
|
}[];
|
|
5831
5911
|
meta: object;
|
|
@@ -5852,6 +5932,56 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5852
5932
|
};
|
|
5853
5933
|
meta: object;
|
|
5854
5934
|
}>;
|
|
5935
|
+
startLoginProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
5936
|
+
input: {
|
|
5937
|
+
[x: string]: unknown;
|
|
5938
|
+
addonId: string;
|
|
5939
|
+
hostname?: string | undefined;
|
|
5940
|
+
};
|
|
5941
|
+
output: {
|
|
5942
|
+
loginUrl: string;
|
|
5943
|
+
};
|
|
5944
|
+
meta: object;
|
|
5945
|
+
}>;
|
|
5946
|
+
logoutProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
5947
|
+
input: {
|
|
5948
|
+
[x: string]: unknown;
|
|
5949
|
+
addonId: string;
|
|
5950
|
+
};
|
|
5951
|
+
output: {
|
|
5952
|
+
loggedOut: true;
|
|
5953
|
+
};
|
|
5954
|
+
meta: object;
|
|
5955
|
+
}>;
|
|
5956
|
+
listProviderPeers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
5957
|
+
input: {
|
|
5958
|
+
[x: string]: unknown;
|
|
5959
|
+
addonId: string;
|
|
5960
|
+
};
|
|
5961
|
+
output: {
|
|
5962
|
+
peers: readonly {
|
|
5963
|
+
id: string;
|
|
5964
|
+
hostname: string;
|
|
5965
|
+
magicDns: string;
|
|
5966
|
+
addresses: readonly string[];
|
|
5967
|
+
online: boolean;
|
|
5968
|
+
lastSeenMs: number;
|
|
5969
|
+
isSelf: boolean;
|
|
5970
|
+
connection: "idle" | "relay" | "direct";
|
|
5971
|
+
relay: string | null;
|
|
5972
|
+
lastHandshakeMs: number;
|
|
5973
|
+
rxBytes: number;
|
|
5974
|
+
txBytes: number;
|
|
5975
|
+
tags: readonly string[];
|
|
5976
|
+
exitNodeOption: boolean;
|
|
5977
|
+
advertisedRoutes: readonly string[];
|
|
5978
|
+
userLogin: string | null;
|
|
5979
|
+
keyExpiry: number | null;
|
|
5980
|
+
os?: string | undefined;
|
|
5981
|
+
}[];
|
|
5982
|
+
};
|
|
5983
|
+
meta: object;
|
|
5984
|
+
}>;
|
|
5855
5985
|
}>>;
|
|
5856
5986
|
metricsProvider: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
5857
5987
|
ctx: import("@camstack/types").TrpcContext;
|
|
@@ -8745,6 +8875,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8745
8875
|
targets: string[];
|
|
8746
8876
|
access: ("delete" | "create" | "view")[];
|
|
8747
8877
|
})[];
|
|
8878
|
+
totpEnabled: boolean;
|
|
8748
8879
|
createdAt: number;
|
|
8749
8880
|
updatedAt: number;
|
|
8750
8881
|
}[];
|
|
@@ -8799,6 +8930,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8799
8930
|
targets: string[];
|
|
8800
8931
|
access: ("delete" | "create" | "view")[];
|
|
8801
8932
|
})[];
|
|
8933
|
+
totpEnabled: boolean;
|
|
8802
8934
|
createdAt: number;
|
|
8803
8935
|
updatedAt: number;
|
|
8804
8936
|
};
|
|
@@ -8911,6 +9043,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8911
9043
|
targets: string[];
|
|
8912
9044
|
access: ("delete" | "create" | "view")[];
|
|
8913
9045
|
})[];
|
|
9046
|
+
totpEnabled: boolean;
|
|
8914
9047
|
createdAt: number;
|
|
8915
9048
|
updatedAt: number;
|
|
8916
9049
|
passwordHash: string;
|
|
@@ -10202,6 +10335,48 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10202
10335
|
} | null;
|
|
10203
10336
|
meta: object;
|
|
10204
10337
|
}>;
|
|
10338
|
+
changeOwnPassword: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10339
|
+
input: {
|
|
10340
|
+
currentPassword: string;
|
|
10341
|
+
newPassword: string;
|
|
10342
|
+
};
|
|
10343
|
+
output: {
|
|
10344
|
+
success: true;
|
|
10345
|
+
};
|
|
10346
|
+
meta: object;
|
|
10347
|
+
}>;
|
|
10348
|
+
setupOwnTotp: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10349
|
+
input: void;
|
|
10350
|
+
output: {
|
|
10351
|
+
secret: string;
|
|
10352
|
+
otpauthUrl: string;
|
|
10353
|
+
};
|
|
10354
|
+
meta: object;
|
|
10355
|
+
}>;
|
|
10356
|
+
confirmOwnTotp: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10357
|
+
input: {
|
|
10358
|
+
code: string;
|
|
10359
|
+
};
|
|
10360
|
+
output: {
|
|
10361
|
+
success: true;
|
|
10362
|
+
};
|
|
10363
|
+
meta: object;
|
|
10364
|
+
}>;
|
|
10365
|
+
disableOwnTotp: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10366
|
+
input: void;
|
|
10367
|
+
output: {
|
|
10368
|
+
success: true;
|
|
10369
|
+
};
|
|
10370
|
+
meta: object;
|
|
10371
|
+
}>;
|
|
10372
|
+
getOwnTotpStatus: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
10373
|
+
input: void;
|
|
10374
|
+
output: {
|
|
10375
|
+
enabled: boolean;
|
|
10376
|
+
confirmedAt: number | null;
|
|
10377
|
+
};
|
|
10378
|
+
meta: object;
|
|
10379
|
+
}>;
|
|
10205
10380
|
logout: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10206
10381
|
input: void;
|
|
10207
10382
|
output: {
|
|
@@ -10678,6 +10853,19 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10678
10853
|
}>;
|
|
10679
10854
|
meta: object;
|
|
10680
10855
|
}>;
|
|
10856
|
+
getNodeAddons: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
10857
|
+
input: {
|
|
10858
|
+
[x: string]: unknown;
|
|
10859
|
+
nodeId: string;
|
|
10860
|
+
};
|
|
10861
|
+
output: readonly {
|
|
10862
|
+
id: string;
|
|
10863
|
+
status: string;
|
|
10864
|
+
version?: string | undefined;
|
|
10865
|
+
packageName?: string | undefined;
|
|
10866
|
+
}[];
|
|
10867
|
+
meta: object;
|
|
10868
|
+
}>;
|
|
10681
10869
|
setProcessLogLevel: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10682
10870
|
input: {
|
|
10683
10871
|
[x: string]: unknown;
|
|
@@ -15318,6 +15506,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15318
15506
|
};
|
|
15319
15507
|
meta: object;
|
|
15320
15508
|
}>;
|
|
15509
|
+
logout: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
15510
|
+
input: {
|
|
15511
|
+
nodeId?: string | undefined;
|
|
15512
|
+
} | undefined;
|
|
15513
|
+
output: {
|
|
15514
|
+
loggedOut: true;
|
|
15515
|
+
};
|
|
15516
|
+
meta: object;
|
|
15517
|
+
}>;
|
|
15321
15518
|
listPeers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
15322
15519
|
input: {
|
|
15323
15520
|
nodeId?: string | undefined;
|
|
@@ -15326,10 +15523,21 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15326
15523
|
peers: readonly {
|
|
15327
15524
|
id: string;
|
|
15328
15525
|
hostname: string;
|
|
15526
|
+
magicDns: string;
|
|
15329
15527
|
addresses: readonly string[];
|
|
15330
15528
|
online: boolean;
|
|
15331
15529
|
lastSeenMs: number;
|
|
15332
15530
|
isSelf: boolean;
|
|
15531
|
+
connection: "idle" | "relay" | "direct";
|
|
15532
|
+
relay: string | null;
|
|
15533
|
+
lastHandshakeMs: number;
|
|
15534
|
+
rxBytes: number;
|
|
15535
|
+
txBytes: number;
|
|
15536
|
+
tags: readonly string[];
|
|
15537
|
+
exitNodeOption: boolean;
|
|
15538
|
+
advertisedRoutes: readonly string[];
|
|
15539
|
+
userLogin: string | null;
|
|
15540
|
+
keyExpiry: number | null;
|
|
15333
15541
|
os?: string | undefined;
|
|
15334
15542
|
}[];
|
|
15335
15543
|
};
|
|
@@ -15375,6 +15583,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15375
15583
|
port: number;
|
|
15376
15584
|
protocol: "https" | "http";
|
|
15377
15585
|
}[];
|
|
15586
|
+
tenantName: string;
|
|
15587
|
+
magicDnsSuffix: string;
|
|
15588
|
+
userLogin: string | null;
|
|
15589
|
+
controlPlaneUrl: string;
|
|
15590
|
+
keyExpiry: number | null;
|
|
15378
15591
|
error?: string | undefined;
|
|
15379
15592
|
}[];
|
|
15380
15593
|
meta: object;
|
|
@@ -15401,6 +15614,56 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15401
15614
|
};
|
|
15402
15615
|
meta: object;
|
|
15403
15616
|
}>;
|
|
15617
|
+
startLoginProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
15618
|
+
input: {
|
|
15619
|
+
[x: string]: unknown;
|
|
15620
|
+
addonId: string;
|
|
15621
|
+
hostname?: string | undefined;
|
|
15622
|
+
};
|
|
15623
|
+
output: {
|
|
15624
|
+
loginUrl: string;
|
|
15625
|
+
};
|
|
15626
|
+
meta: object;
|
|
15627
|
+
}>;
|
|
15628
|
+
logoutProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
15629
|
+
input: {
|
|
15630
|
+
[x: string]: unknown;
|
|
15631
|
+
addonId: string;
|
|
15632
|
+
};
|
|
15633
|
+
output: {
|
|
15634
|
+
loggedOut: true;
|
|
15635
|
+
};
|
|
15636
|
+
meta: object;
|
|
15637
|
+
}>;
|
|
15638
|
+
listProviderPeers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
15639
|
+
input: {
|
|
15640
|
+
[x: string]: unknown;
|
|
15641
|
+
addonId: string;
|
|
15642
|
+
};
|
|
15643
|
+
output: {
|
|
15644
|
+
peers: readonly {
|
|
15645
|
+
id: string;
|
|
15646
|
+
hostname: string;
|
|
15647
|
+
magicDns: string;
|
|
15648
|
+
addresses: readonly string[];
|
|
15649
|
+
online: boolean;
|
|
15650
|
+
lastSeenMs: number;
|
|
15651
|
+
isSelf: boolean;
|
|
15652
|
+
connection: "idle" | "relay" | "direct";
|
|
15653
|
+
relay: string | null;
|
|
15654
|
+
lastHandshakeMs: number;
|
|
15655
|
+
rxBytes: number;
|
|
15656
|
+
txBytes: number;
|
|
15657
|
+
tags: readonly string[];
|
|
15658
|
+
exitNodeOption: boolean;
|
|
15659
|
+
advertisedRoutes: readonly string[];
|
|
15660
|
+
userLogin: string | null;
|
|
15661
|
+
keyExpiry: number | null;
|
|
15662
|
+
os?: string | undefined;
|
|
15663
|
+
}[];
|
|
15664
|
+
};
|
|
15665
|
+
meta: object;
|
|
15666
|
+
}>;
|
|
15404
15667
|
}>>;
|
|
15405
15668
|
metricsProvider: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
15406
15669
|
ctx: import("@camstack/types").TrpcContext;
|
|
@@ -18294,6 +18557,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18294
18557
|
targets: string[];
|
|
18295
18558
|
access: ("delete" | "create" | "view")[];
|
|
18296
18559
|
})[];
|
|
18560
|
+
totpEnabled: boolean;
|
|
18297
18561
|
createdAt: number;
|
|
18298
18562
|
updatedAt: number;
|
|
18299
18563
|
}[];
|
|
@@ -18348,6 +18612,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18348
18612
|
targets: string[];
|
|
18349
18613
|
access: ("delete" | "create" | "view")[];
|
|
18350
18614
|
})[];
|
|
18615
|
+
totpEnabled: boolean;
|
|
18351
18616
|
createdAt: number;
|
|
18352
18617
|
updatedAt: number;
|
|
18353
18618
|
};
|
|
@@ -18460,6 +18725,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18460
18725
|
targets: string[];
|
|
18461
18726
|
access: ("delete" | "create" | "view")[];
|
|
18462
18727
|
})[];
|
|
18728
|
+
totpEnabled: boolean;
|
|
18463
18729
|
createdAt: number;
|
|
18464
18730
|
updatedAt: number;
|
|
18465
18731
|
passwordHash: string;
|