@camstack/types 0.1.32 → 0.1.34
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/addons.cap.d.ts +155 -3
- package/dist/capabilities/addons.cap.d.ts.map +1 -1
- package/dist/capabilities/device-export.cap.d.ts +55 -1
- package/dist/capabilities/device-export.cap.d.ts.map +1 -1
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/mesh-network.cap.d.ts +58 -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 +36 -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/enums/event-category.d.ts +10 -0
- package/dist/enums/event-category.d.ts.map +1 -1
- package/dist/generated/addon-api.d.ts +386 -8
- package/dist/generated/addon-api.d.ts.map +1 -1
- package/dist/generated/capability-router-map.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 +4 -4
- package/dist/generated/system-proxy.d.ts.map +1 -1
- package/dist/{index-BBVUwOlZ.mjs → index-Ce7RZWP4.mjs} +491 -170
- package/dist/index-Ce7RZWP4.mjs.map +1 -0
- package/dist/{index-BUBhoPUu.js → index-DS7418lf.js} +331 -10
- package/dist/index-DS7418lf.js.map +1 -0
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +184 -163
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/addon.d.ts +21 -0
- package/dist/interfaces/addon.d.ts.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/event-bus.d.ts +21 -1
- package/dist/interfaces/event-bus.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 +6 -1
- package/dist/index-BBVUwOlZ.mjs.map +0 -1
- package/dist/index-BUBhoPUu.js.map +0 -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;
|
|
@@ -1295,8 +1350,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
1295
1350
|
}>;
|
|
1296
1351
|
listUpdates: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
1297
1352
|
input: {
|
|
1353
|
+
[x: string]: unknown;
|
|
1298
1354
|
nodeId?: string | undefined;
|
|
1299
|
-
}
|
|
1355
|
+
};
|
|
1300
1356
|
output: readonly {
|
|
1301
1357
|
name: string;
|
|
1302
1358
|
currentVersion: string;
|
|
@@ -1311,6 +1367,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
1311
1367
|
[x: string]: unknown;
|
|
1312
1368
|
name: string;
|
|
1313
1369
|
version?: string | undefined;
|
|
1370
|
+
nodeId?: string | undefined;
|
|
1314
1371
|
};
|
|
1315
1372
|
output: unknown;
|
|
1316
1373
|
meta: object;
|
|
@@ -1327,8 +1384,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
1327
1384
|
}>;
|
|
1328
1385
|
forceRefresh: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
1329
1386
|
input: {
|
|
1387
|
+
[x: string]: unknown;
|
|
1330
1388
|
nodeId?: string | undefined;
|
|
1331
|
-
}
|
|
1389
|
+
};
|
|
1332
1390
|
output: unknown;
|
|
1333
1391
|
meta: object;
|
|
1334
1392
|
}>;
|
|
@@ -1340,6 +1398,59 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
1340
1398
|
output: unknown;
|
|
1341
1399
|
meta: object;
|
|
1342
1400
|
}>;
|
|
1401
|
+
getLastRestart: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
1402
|
+
input: {
|
|
1403
|
+
nodeId?: string | undefined;
|
|
1404
|
+
} | undefined;
|
|
1405
|
+
output: {
|
|
1406
|
+
kind: "system" | "manual" | "framework-update";
|
|
1407
|
+
requestedAt: number;
|
|
1408
|
+
packageName?: string | undefined;
|
|
1409
|
+
fromVersion?: string | undefined;
|
|
1410
|
+
toVersion?: string | undefined;
|
|
1411
|
+
requestedBy?: string | undefined;
|
|
1412
|
+
} | null;
|
|
1413
|
+
meta: object;
|
|
1414
|
+
}>;
|
|
1415
|
+
listFrameworkPackages: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
1416
|
+
input: {
|
|
1417
|
+
nodeId?: string | undefined;
|
|
1418
|
+
} | undefined;
|
|
1419
|
+
output: readonly {
|
|
1420
|
+
packageName: string;
|
|
1421
|
+
currentVersion: string;
|
|
1422
|
+
latestVersion: string | null;
|
|
1423
|
+
hasUpdate: boolean;
|
|
1424
|
+
description?: string | undefined;
|
|
1425
|
+
}[];
|
|
1426
|
+
meta: object;
|
|
1427
|
+
}>;
|
|
1428
|
+
listCapabilityProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
1429
|
+
input: {
|
|
1430
|
+
[x: string]: unknown;
|
|
1431
|
+
capName: string;
|
|
1432
|
+
};
|
|
1433
|
+
output: readonly {
|
|
1434
|
+
addonId: string;
|
|
1435
|
+
mode: "singleton" | "collection";
|
|
1436
|
+
isActive: boolean;
|
|
1437
|
+
}[];
|
|
1438
|
+
meta: object;
|
|
1439
|
+
}>;
|
|
1440
|
+
updateFrameworkPackage: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
1441
|
+
input: {
|
|
1442
|
+
[x: string]: unknown;
|
|
1443
|
+
packageName: string;
|
|
1444
|
+
version?: string | undefined;
|
|
1445
|
+
};
|
|
1446
|
+
output: {
|
|
1447
|
+
packageName: string;
|
|
1448
|
+
fromVersion: string;
|
|
1449
|
+
toVersion: string;
|
|
1450
|
+
restartingAt: number;
|
|
1451
|
+
};
|
|
1452
|
+
meta: object;
|
|
1453
|
+
}>;
|
|
1343
1454
|
getVersions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
1344
1455
|
input: {
|
|
1345
1456
|
[x: string]: unknown;
|
|
@@ -2231,7 +2342,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
2231
2342
|
deviceId: number;
|
|
2232
2343
|
agentNodeId: string;
|
|
2233
2344
|
pinned: boolean;
|
|
2234
|
-
reason: "
|
|
2345
|
+
reason: "manual" | "rebalance" | "capacity" | "hardware-affinity" | "failover";
|
|
2235
2346
|
assignedAt: number;
|
|
2236
2347
|
}[];
|
|
2237
2348
|
meta: object;
|
|
@@ -2245,7 +2356,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
2245
2356
|
deviceId: number;
|
|
2246
2357
|
agentNodeId: string;
|
|
2247
2358
|
pinned: boolean;
|
|
2248
|
-
reason: "
|
|
2359
|
+
reason: "manual" | "rebalance" | "capacity" | "hardware-affinity" | "failover";
|
|
2249
2360
|
assignedAt: number;
|
|
2250
2361
|
} | null;
|
|
2251
2362
|
meta: object;
|
|
@@ -5769,6 +5880,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5769
5880
|
};
|
|
5770
5881
|
meta: object;
|
|
5771
5882
|
}>;
|
|
5883
|
+
logout: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
5884
|
+
input: {
|
|
5885
|
+
nodeId?: string | undefined;
|
|
5886
|
+
} | undefined;
|
|
5887
|
+
output: {
|
|
5888
|
+
loggedOut: true;
|
|
5889
|
+
};
|
|
5890
|
+
meta: object;
|
|
5891
|
+
}>;
|
|
5772
5892
|
listPeers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
5773
5893
|
input: {
|
|
5774
5894
|
nodeId?: string | undefined;
|
|
@@ -5777,10 +5897,21 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5777
5897
|
peers: readonly {
|
|
5778
5898
|
id: string;
|
|
5779
5899
|
hostname: string;
|
|
5900
|
+
magicDns: string;
|
|
5780
5901
|
addresses: readonly string[];
|
|
5781
5902
|
online: boolean;
|
|
5782
5903
|
lastSeenMs: number;
|
|
5783
5904
|
isSelf: boolean;
|
|
5905
|
+
connection: "idle" | "relay" | "direct";
|
|
5906
|
+
relay: string | null;
|
|
5907
|
+
lastHandshakeMs: number;
|
|
5908
|
+
rxBytes: number;
|
|
5909
|
+
txBytes: number;
|
|
5910
|
+
tags: readonly string[];
|
|
5911
|
+
exitNodeOption: boolean;
|
|
5912
|
+
advertisedRoutes: readonly string[];
|
|
5913
|
+
userLogin: string | null;
|
|
5914
|
+
keyExpiry: number | null;
|
|
5784
5915
|
os?: string | undefined;
|
|
5785
5916
|
}[];
|
|
5786
5917
|
};
|
|
@@ -5826,6 +5957,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5826
5957
|
port: number;
|
|
5827
5958
|
protocol: "https" | "http";
|
|
5828
5959
|
}[];
|
|
5960
|
+
tenantName: string;
|
|
5961
|
+
magicDnsSuffix: string;
|
|
5962
|
+
userLogin: string | null;
|
|
5963
|
+
controlPlaneUrl: string;
|
|
5964
|
+
keyExpiry: number | null;
|
|
5829
5965
|
error?: string | undefined;
|
|
5830
5966
|
}[];
|
|
5831
5967
|
meta: object;
|
|
@@ -5852,6 +5988,56 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5852
5988
|
};
|
|
5853
5989
|
meta: object;
|
|
5854
5990
|
}>;
|
|
5991
|
+
startLoginProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
5992
|
+
input: {
|
|
5993
|
+
[x: string]: unknown;
|
|
5994
|
+
addonId: string;
|
|
5995
|
+
hostname?: string | undefined;
|
|
5996
|
+
};
|
|
5997
|
+
output: {
|
|
5998
|
+
loginUrl: string;
|
|
5999
|
+
};
|
|
6000
|
+
meta: object;
|
|
6001
|
+
}>;
|
|
6002
|
+
logoutProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
6003
|
+
input: {
|
|
6004
|
+
[x: string]: unknown;
|
|
6005
|
+
addonId: string;
|
|
6006
|
+
};
|
|
6007
|
+
output: {
|
|
6008
|
+
loggedOut: true;
|
|
6009
|
+
};
|
|
6010
|
+
meta: object;
|
|
6011
|
+
}>;
|
|
6012
|
+
listProviderPeers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
6013
|
+
input: {
|
|
6014
|
+
[x: string]: unknown;
|
|
6015
|
+
addonId: string;
|
|
6016
|
+
};
|
|
6017
|
+
output: {
|
|
6018
|
+
peers: readonly {
|
|
6019
|
+
id: string;
|
|
6020
|
+
hostname: string;
|
|
6021
|
+
magicDns: string;
|
|
6022
|
+
addresses: readonly string[];
|
|
6023
|
+
online: boolean;
|
|
6024
|
+
lastSeenMs: number;
|
|
6025
|
+
isSelf: boolean;
|
|
6026
|
+
connection: "idle" | "relay" | "direct";
|
|
6027
|
+
relay: string | null;
|
|
6028
|
+
lastHandshakeMs: number;
|
|
6029
|
+
rxBytes: number;
|
|
6030
|
+
txBytes: number;
|
|
6031
|
+
tags: readonly string[];
|
|
6032
|
+
exitNodeOption: boolean;
|
|
6033
|
+
advertisedRoutes: readonly string[];
|
|
6034
|
+
userLogin: string | null;
|
|
6035
|
+
keyExpiry: number | null;
|
|
6036
|
+
os?: string | undefined;
|
|
6037
|
+
}[];
|
|
6038
|
+
};
|
|
6039
|
+
meta: object;
|
|
6040
|
+
}>;
|
|
5855
6041
|
}>>;
|
|
5856
6042
|
metricsProvider: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
5857
6043
|
ctx: import("@camstack/types").TrpcContext;
|
|
@@ -8745,6 +8931,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8745
8931
|
targets: string[];
|
|
8746
8932
|
access: ("delete" | "create" | "view")[];
|
|
8747
8933
|
})[];
|
|
8934
|
+
totpEnabled: boolean;
|
|
8748
8935
|
createdAt: number;
|
|
8749
8936
|
updatedAt: number;
|
|
8750
8937
|
}[];
|
|
@@ -8799,6 +8986,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8799
8986
|
targets: string[];
|
|
8800
8987
|
access: ("delete" | "create" | "view")[];
|
|
8801
8988
|
})[];
|
|
8989
|
+
totpEnabled: boolean;
|
|
8802
8990
|
createdAt: number;
|
|
8803
8991
|
updatedAt: number;
|
|
8804
8992
|
};
|
|
@@ -8911,6 +9099,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8911
9099
|
targets: string[];
|
|
8912
9100
|
access: ("delete" | "create" | "view")[];
|
|
8913
9101
|
})[];
|
|
9102
|
+
totpEnabled: boolean;
|
|
8914
9103
|
createdAt: number;
|
|
8915
9104
|
updatedAt: number;
|
|
8916
9105
|
passwordHash: string;
|
|
@@ -10202,6 +10391,48 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10202
10391
|
} | null;
|
|
10203
10392
|
meta: object;
|
|
10204
10393
|
}>;
|
|
10394
|
+
changeOwnPassword: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10395
|
+
input: {
|
|
10396
|
+
currentPassword: string;
|
|
10397
|
+
newPassword: string;
|
|
10398
|
+
};
|
|
10399
|
+
output: {
|
|
10400
|
+
success: true;
|
|
10401
|
+
};
|
|
10402
|
+
meta: object;
|
|
10403
|
+
}>;
|
|
10404
|
+
setupOwnTotp: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10405
|
+
input: void;
|
|
10406
|
+
output: {
|
|
10407
|
+
secret: string;
|
|
10408
|
+
otpauthUrl: string;
|
|
10409
|
+
};
|
|
10410
|
+
meta: object;
|
|
10411
|
+
}>;
|
|
10412
|
+
confirmOwnTotp: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10413
|
+
input: {
|
|
10414
|
+
code: string;
|
|
10415
|
+
};
|
|
10416
|
+
output: {
|
|
10417
|
+
success: true;
|
|
10418
|
+
};
|
|
10419
|
+
meta: object;
|
|
10420
|
+
}>;
|
|
10421
|
+
disableOwnTotp: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10422
|
+
input: void;
|
|
10423
|
+
output: {
|
|
10424
|
+
success: true;
|
|
10425
|
+
};
|
|
10426
|
+
meta: object;
|
|
10427
|
+
}>;
|
|
10428
|
+
getOwnTotpStatus: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
10429
|
+
input: void;
|
|
10430
|
+
output: {
|
|
10431
|
+
enabled: boolean;
|
|
10432
|
+
confirmedAt: number | null;
|
|
10433
|
+
};
|
|
10434
|
+
meta: object;
|
|
10435
|
+
}>;
|
|
10205
10436
|
logout: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10206
10437
|
input: void;
|
|
10207
10438
|
output: {
|
|
@@ -10678,6 +10909,19 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10678
10909
|
}>;
|
|
10679
10910
|
meta: object;
|
|
10680
10911
|
}>;
|
|
10912
|
+
getNodeAddons: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
10913
|
+
input: {
|
|
10914
|
+
[x: string]: unknown;
|
|
10915
|
+
nodeId: string;
|
|
10916
|
+
};
|
|
10917
|
+
output: readonly {
|
|
10918
|
+
id: string;
|
|
10919
|
+
status: string;
|
|
10920
|
+
version?: string | undefined;
|
|
10921
|
+
packageName?: string | undefined;
|
|
10922
|
+
}[];
|
|
10923
|
+
meta: object;
|
|
10924
|
+
}>;
|
|
10681
10925
|
setProcessLogLevel: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10682
10926
|
input: {
|
|
10683
10927
|
[x: string]: unknown;
|
|
@@ -10844,8 +11088,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10844
11088
|
}>;
|
|
10845
11089
|
listUpdates: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
10846
11090
|
input: {
|
|
11091
|
+
[x: string]: unknown;
|
|
10847
11092
|
nodeId?: string | undefined;
|
|
10848
|
-
}
|
|
11093
|
+
};
|
|
10849
11094
|
output: readonly {
|
|
10850
11095
|
name: string;
|
|
10851
11096
|
currentVersion: string;
|
|
@@ -10860,6 +11105,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10860
11105
|
[x: string]: unknown;
|
|
10861
11106
|
name: string;
|
|
10862
11107
|
version?: string | undefined;
|
|
11108
|
+
nodeId?: string | undefined;
|
|
10863
11109
|
};
|
|
10864
11110
|
output: unknown;
|
|
10865
11111
|
meta: object;
|
|
@@ -10876,8 +11122,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10876
11122
|
}>;
|
|
10877
11123
|
forceRefresh: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
10878
11124
|
input: {
|
|
11125
|
+
[x: string]: unknown;
|
|
10879
11126
|
nodeId?: string | undefined;
|
|
10880
|
-
}
|
|
11127
|
+
};
|
|
10881
11128
|
output: unknown;
|
|
10882
11129
|
meta: object;
|
|
10883
11130
|
}>;
|
|
@@ -10889,6 +11136,59 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10889
11136
|
output: unknown;
|
|
10890
11137
|
meta: object;
|
|
10891
11138
|
}>;
|
|
11139
|
+
getLastRestart: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
11140
|
+
input: {
|
|
11141
|
+
nodeId?: string | undefined;
|
|
11142
|
+
} | undefined;
|
|
11143
|
+
output: {
|
|
11144
|
+
kind: "system" | "manual" | "framework-update";
|
|
11145
|
+
requestedAt: number;
|
|
11146
|
+
packageName?: string | undefined;
|
|
11147
|
+
fromVersion?: string | undefined;
|
|
11148
|
+
toVersion?: string | undefined;
|
|
11149
|
+
requestedBy?: string | undefined;
|
|
11150
|
+
} | null;
|
|
11151
|
+
meta: object;
|
|
11152
|
+
}>;
|
|
11153
|
+
listFrameworkPackages: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
11154
|
+
input: {
|
|
11155
|
+
nodeId?: string | undefined;
|
|
11156
|
+
} | undefined;
|
|
11157
|
+
output: readonly {
|
|
11158
|
+
packageName: string;
|
|
11159
|
+
currentVersion: string;
|
|
11160
|
+
latestVersion: string | null;
|
|
11161
|
+
hasUpdate: boolean;
|
|
11162
|
+
description?: string | undefined;
|
|
11163
|
+
}[];
|
|
11164
|
+
meta: object;
|
|
11165
|
+
}>;
|
|
11166
|
+
listCapabilityProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
11167
|
+
input: {
|
|
11168
|
+
[x: string]: unknown;
|
|
11169
|
+
capName: string;
|
|
11170
|
+
};
|
|
11171
|
+
output: readonly {
|
|
11172
|
+
addonId: string;
|
|
11173
|
+
mode: "singleton" | "collection";
|
|
11174
|
+
isActive: boolean;
|
|
11175
|
+
}[];
|
|
11176
|
+
meta: object;
|
|
11177
|
+
}>;
|
|
11178
|
+
updateFrameworkPackage: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
11179
|
+
input: {
|
|
11180
|
+
[x: string]: unknown;
|
|
11181
|
+
packageName: string;
|
|
11182
|
+
version?: string | undefined;
|
|
11183
|
+
};
|
|
11184
|
+
output: {
|
|
11185
|
+
packageName: string;
|
|
11186
|
+
fromVersion: string;
|
|
11187
|
+
toVersion: string;
|
|
11188
|
+
restartingAt: number;
|
|
11189
|
+
};
|
|
11190
|
+
meta: object;
|
|
11191
|
+
}>;
|
|
10892
11192
|
getVersions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
10893
11193
|
input: {
|
|
10894
11194
|
[x: string]: unknown;
|
|
@@ -11780,7 +12080,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11780
12080
|
deviceId: number;
|
|
11781
12081
|
agentNodeId: string;
|
|
11782
12082
|
pinned: boolean;
|
|
11783
|
-
reason: "
|
|
12083
|
+
reason: "manual" | "rebalance" | "capacity" | "hardware-affinity" | "failover";
|
|
11784
12084
|
assignedAt: number;
|
|
11785
12085
|
}[];
|
|
11786
12086
|
meta: object;
|
|
@@ -11794,7 +12094,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11794
12094
|
deviceId: number;
|
|
11795
12095
|
agentNodeId: string;
|
|
11796
12096
|
pinned: boolean;
|
|
11797
|
-
reason: "
|
|
12097
|
+
reason: "manual" | "rebalance" | "capacity" | "hardware-affinity" | "failover";
|
|
11798
12098
|
assignedAt: number;
|
|
11799
12099
|
} | null;
|
|
11800
12100
|
meta: object;
|
|
@@ -15318,6 +15618,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15318
15618
|
};
|
|
15319
15619
|
meta: object;
|
|
15320
15620
|
}>;
|
|
15621
|
+
logout: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
15622
|
+
input: {
|
|
15623
|
+
nodeId?: string | undefined;
|
|
15624
|
+
} | undefined;
|
|
15625
|
+
output: {
|
|
15626
|
+
loggedOut: true;
|
|
15627
|
+
};
|
|
15628
|
+
meta: object;
|
|
15629
|
+
}>;
|
|
15321
15630
|
listPeers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
15322
15631
|
input: {
|
|
15323
15632
|
nodeId?: string | undefined;
|
|
@@ -15326,10 +15635,21 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15326
15635
|
peers: readonly {
|
|
15327
15636
|
id: string;
|
|
15328
15637
|
hostname: string;
|
|
15638
|
+
magicDns: string;
|
|
15329
15639
|
addresses: readonly string[];
|
|
15330
15640
|
online: boolean;
|
|
15331
15641
|
lastSeenMs: number;
|
|
15332
15642
|
isSelf: boolean;
|
|
15643
|
+
connection: "idle" | "relay" | "direct";
|
|
15644
|
+
relay: string | null;
|
|
15645
|
+
lastHandshakeMs: number;
|
|
15646
|
+
rxBytes: number;
|
|
15647
|
+
txBytes: number;
|
|
15648
|
+
tags: readonly string[];
|
|
15649
|
+
exitNodeOption: boolean;
|
|
15650
|
+
advertisedRoutes: readonly string[];
|
|
15651
|
+
userLogin: string | null;
|
|
15652
|
+
keyExpiry: number | null;
|
|
15333
15653
|
os?: string | undefined;
|
|
15334
15654
|
}[];
|
|
15335
15655
|
};
|
|
@@ -15375,6 +15695,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15375
15695
|
port: number;
|
|
15376
15696
|
protocol: "https" | "http";
|
|
15377
15697
|
}[];
|
|
15698
|
+
tenantName: string;
|
|
15699
|
+
magicDnsSuffix: string;
|
|
15700
|
+
userLogin: string | null;
|
|
15701
|
+
controlPlaneUrl: string;
|
|
15702
|
+
keyExpiry: number | null;
|
|
15378
15703
|
error?: string | undefined;
|
|
15379
15704
|
}[];
|
|
15380
15705
|
meta: object;
|
|
@@ -15401,6 +15726,56 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15401
15726
|
};
|
|
15402
15727
|
meta: object;
|
|
15403
15728
|
}>;
|
|
15729
|
+
startLoginProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
15730
|
+
input: {
|
|
15731
|
+
[x: string]: unknown;
|
|
15732
|
+
addonId: string;
|
|
15733
|
+
hostname?: string | undefined;
|
|
15734
|
+
};
|
|
15735
|
+
output: {
|
|
15736
|
+
loginUrl: string;
|
|
15737
|
+
};
|
|
15738
|
+
meta: object;
|
|
15739
|
+
}>;
|
|
15740
|
+
logoutProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
15741
|
+
input: {
|
|
15742
|
+
[x: string]: unknown;
|
|
15743
|
+
addonId: string;
|
|
15744
|
+
};
|
|
15745
|
+
output: {
|
|
15746
|
+
loggedOut: true;
|
|
15747
|
+
};
|
|
15748
|
+
meta: object;
|
|
15749
|
+
}>;
|
|
15750
|
+
listProviderPeers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
15751
|
+
input: {
|
|
15752
|
+
[x: string]: unknown;
|
|
15753
|
+
addonId: string;
|
|
15754
|
+
};
|
|
15755
|
+
output: {
|
|
15756
|
+
peers: readonly {
|
|
15757
|
+
id: string;
|
|
15758
|
+
hostname: string;
|
|
15759
|
+
magicDns: string;
|
|
15760
|
+
addresses: readonly string[];
|
|
15761
|
+
online: boolean;
|
|
15762
|
+
lastSeenMs: number;
|
|
15763
|
+
isSelf: boolean;
|
|
15764
|
+
connection: "idle" | "relay" | "direct";
|
|
15765
|
+
relay: string | null;
|
|
15766
|
+
lastHandshakeMs: number;
|
|
15767
|
+
rxBytes: number;
|
|
15768
|
+
txBytes: number;
|
|
15769
|
+
tags: readonly string[];
|
|
15770
|
+
exitNodeOption: boolean;
|
|
15771
|
+
advertisedRoutes: readonly string[];
|
|
15772
|
+
userLogin: string | null;
|
|
15773
|
+
keyExpiry: number | null;
|
|
15774
|
+
os?: string | undefined;
|
|
15775
|
+
}[];
|
|
15776
|
+
};
|
|
15777
|
+
meta: object;
|
|
15778
|
+
}>;
|
|
15404
15779
|
}>>;
|
|
15405
15780
|
metricsProvider: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
15406
15781
|
ctx: import("@camstack/types").TrpcContext;
|
|
@@ -18294,6 +18669,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18294
18669
|
targets: string[];
|
|
18295
18670
|
access: ("delete" | "create" | "view")[];
|
|
18296
18671
|
})[];
|
|
18672
|
+
totpEnabled: boolean;
|
|
18297
18673
|
createdAt: number;
|
|
18298
18674
|
updatedAt: number;
|
|
18299
18675
|
}[];
|
|
@@ -18348,6 +18724,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18348
18724
|
targets: string[];
|
|
18349
18725
|
access: ("delete" | "create" | "view")[];
|
|
18350
18726
|
})[];
|
|
18727
|
+
totpEnabled: boolean;
|
|
18351
18728
|
createdAt: number;
|
|
18352
18729
|
updatedAt: number;
|
|
18353
18730
|
};
|
|
@@ -18460,6 +18837,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18460
18837
|
targets: string[];
|
|
18461
18838
|
access: ("delete" | "create" | "view")[];
|
|
18462
18839
|
})[];
|
|
18840
|
+
totpEnabled: boolean;
|
|
18463
18841
|
createdAt: number;
|
|
18464
18842
|
updatedAt: number;
|
|
18465
18843
|
passwordHash: string;
|