@camstack/types 1.2.367 → 1.2.369
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/addon.js +12 -2
- package/dist/addon.mjs +12 -2
- package/dist/capabilities/device-history.cap.d.ts +444 -0
- package/dist/capabilities/hub-address.d.ts +17 -0
- package/dist/capabilities/index.d.ts +4 -2
- package/dist/capabilities/node-certificates.cap.d.ts +9 -0
- package/dist/client.js +15 -0
- package/dist/client.mjs +15 -0
- package/dist/generated/addon-api.d.ts +457 -10
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/device-proxy.d.ts +2 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +2 -0
- package/dist/history/bucket-accumulator.d.ts +53 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +485 -1
- package/dist/index.mjs +473 -2
- package/dist/{sleep-DxJdzHni.mjs → sleep--g-h2_c_.mjs} +7 -0
- package/dist/{sleep-NZlEFYGX.js → sleep-CXlc9YJ5.js} +7 -0
- package/package.json +1 -1
package/dist/client.mjs
CHANGED
|
@@ -26469,6 +26469,12 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
26469
26469
|
getDeviceLiveContribution: (input) => dispatchSystem("deviceExport", "getDeviceLiveContribution", "query", input),
|
|
26470
26470
|
applyDeviceSettingsPatch: (input) => dispatchSystem("deviceExport", "applyDeviceSettingsPatch", "mutation", input)
|
|
26471
26471
|
};
|
|
26472
|
+
const deviceHistoryInterface = {
|
|
26473
|
+
listSeries: (input) => dispatchSystem("deviceHistory", "listSeries", "query", input),
|
|
26474
|
+
query: (input) => dispatchSystem("deviceHistory", "query", "query", input),
|
|
26475
|
+
getDeviceEnabled: (input) => dispatchSystem("deviceHistory", "getDeviceEnabled", "query", input),
|
|
26476
|
+
setDeviceEnabled: (input) => dispatchSystem("deviceHistory", "setDeviceEnabled", "mutation", input)
|
|
26477
|
+
};
|
|
26472
26478
|
const deviceManagerInterface = {
|
|
26473
26479
|
loadConfig: (input) => dispatchSystem("deviceManager", "loadConfig", "query", input),
|
|
26474
26480
|
loadRuntimeState: (input) => dispatchSystem("deviceManager", "loadRuntimeState", "query", input),
|
|
@@ -26780,6 +26786,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
26780
26786
|
audioAnalyzer: audioAnalyzerInterface,
|
|
26781
26787
|
deviceAdoption: deviceAdoptionInterface,
|
|
26782
26788
|
deviceExport: deviceExportInterface,
|
|
26789
|
+
deviceHistory: deviceHistoryInterface,
|
|
26783
26790
|
deviceManager: deviceManagerInterface,
|
|
26784
26791
|
deviceState: deviceStateInterface,
|
|
26785
26792
|
faceGallery: faceGalleryInterface,
|
|
@@ -27662,6 +27669,14 @@ function createSystemProxy(api) {
|
|
|
27662
27669
|
exposeDevice: (input) => dispatch("deviceExport", "exposeDevice", "mutation", input),
|
|
27663
27670
|
unexposeDevice: (input) => dispatch("deviceExport", "unexposeDevice", "mutation", input)
|
|
27664
27671
|
},
|
|
27672
|
+
deviceHistory: {
|
|
27673
|
+
listNodeSeries: (input) => dispatch("deviceHistory", "listNodeSeries", "query", input),
|
|
27674
|
+
queryNode: (input) => dispatch("deviceHistory", "queryNode", "query", input),
|
|
27675
|
+
declareSeries: (input) => dispatch("deviceHistory", "declareSeries", "mutation", input),
|
|
27676
|
+
record: (input) => dispatch("deviceHistory", "record", "mutation", input),
|
|
27677
|
+
recordBuckets: (input) => dispatch("deviceHistory", "recordBuckets", "mutation", input),
|
|
27678
|
+
getStatus: (input) => dispatch("deviceHistory", "getStatus", "query", input)
|
|
27679
|
+
},
|
|
27665
27680
|
deviceManager: {
|
|
27666
27681
|
allocateDeviceId: (input) => dispatch("deviceManager", "allocateDeviceId", "mutation", input),
|
|
27667
27682
|
migrateDevice: (input) => dispatch("deviceManager", "migrateDevice", "mutation", input),
|
|
@@ -46,6 +46,7 @@ import type { deviceCredentialsCapability } from '../capabilities/device-credent
|
|
|
46
46
|
import type { deviceDiscoveryCapability } from '../capabilities/device-discovery.cap.js';
|
|
47
47
|
import type { deviceExportCapability } from '../capabilities/device-export.cap.js';
|
|
48
48
|
import type { deviceExtensionCapability } from '../capabilities/device-extension.cap.js';
|
|
49
|
+
import type { deviceHistoryCapability } from '../capabilities/device-history.cap.js';
|
|
49
50
|
import type { deviceManagerCapability } from '../capabilities/device-manager.cap.js';
|
|
50
51
|
import type { deviceOpsCapability } from '../capabilities/device-ops.cap.js';
|
|
51
52
|
import type { deviceProviderCapability } from '../capabilities/device-provider.cap.js';
|
|
@@ -2353,6 +2354,83 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
2353
2354
|
meta: object;
|
|
2354
2355
|
}>;
|
|
2355
2356
|
}>>;
|
|
2357
|
+
deviceHistory: TRPCBuiltRouter<{
|
|
2358
|
+
ctx: TrpcContext;
|
|
2359
|
+
meta: object;
|
|
2360
|
+
errorShape: AugmentedErrorShape;
|
|
2361
|
+
transformer: true;
|
|
2362
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
2363
|
+
listSeries: TRPCQueryProcedure<{
|
|
2364
|
+
input: {
|
|
2365
|
+
[x: string]: unknown;
|
|
2366
|
+
} & z.input<typeof deviceHistoryCapability.methods.listSeries.input>;
|
|
2367
|
+
output: z.infer<typeof deviceHistoryCapability.methods.listSeries.output>;
|
|
2368
|
+
meta: object;
|
|
2369
|
+
}>;
|
|
2370
|
+
listNodeSeries: TRPCQueryProcedure<{
|
|
2371
|
+
input: {
|
|
2372
|
+
[x: string]: unknown;
|
|
2373
|
+
} & z.input<typeof deviceHistoryCapability.methods.listNodeSeries.input>;
|
|
2374
|
+
output: z.infer<typeof deviceHistoryCapability.methods.listNodeSeries.output>;
|
|
2375
|
+
meta: object;
|
|
2376
|
+
}>;
|
|
2377
|
+
query: TRPCQueryProcedure<{
|
|
2378
|
+
input: {
|
|
2379
|
+
[x: string]: unknown;
|
|
2380
|
+
} & z.input<typeof deviceHistoryCapability.methods.query.input>;
|
|
2381
|
+
output: z.infer<typeof deviceHistoryCapability.methods.query.output>;
|
|
2382
|
+
meta: object;
|
|
2383
|
+
}>;
|
|
2384
|
+
queryNode: TRPCQueryProcedure<{
|
|
2385
|
+
input: {
|
|
2386
|
+
[x: string]: unknown;
|
|
2387
|
+
} & z.input<typeof deviceHistoryCapability.methods.queryNode.input>;
|
|
2388
|
+
output: z.infer<typeof deviceHistoryCapability.methods.queryNode.output>;
|
|
2389
|
+
meta: object;
|
|
2390
|
+
}>;
|
|
2391
|
+
declareSeries: TRPCMutationProcedure<{
|
|
2392
|
+
input: {
|
|
2393
|
+
[x: string]: unknown;
|
|
2394
|
+
} & z.input<typeof deviceHistoryCapability.methods.declareSeries.input>;
|
|
2395
|
+
output: z.infer<typeof deviceHistoryCapability.methods.declareSeries.output>;
|
|
2396
|
+
meta: object;
|
|
2397
|
+
}>;
|
|
2398
|
+
record: TRPCMutationProcedure<{
|
|
2399
|
+
input: {
|
|
2400
|
+
[x: string]: unknown;
|
|
2401
|
+
} & z.input<typeof deviceHistoryCapability.methods.record.input>;
|
|
2402
|
+
output: z.infer<typeof deviceHistoryCapability.methods.record.output>;
|
|
2403
|
+
meta: object;
|
|
2404
|
+
}>;
|
|
2405
|
+
recordBuckets: TRPCMutationProcedure<{
|
|
2406
|
+
input: {
|
|
2407
|
+
[x: string]: unknown;
|
|
2408
|
+
} & z.input<typeof deviceHistoryCapability.methods.recordBuckets.input>;
|
|
2409
|
+
output: z.infer<typeof deviceHistoryCapability.methods.recordBuckets.output>;
|
|
2410
|
+
meta: object;
|
|
2411
|
+
}>;
|
|
2412
|
+
getDeviceEnabled: TRPCQueryProcedure<{
|
|
2413
|
+
input: {
|
|
2414
|
+
[x: string]: unknown;
|
|
2415
|
+
} & z.input<typeof deviceHistoryCapability.methods.getDeviceEnabled.input>;
|
|
2416
|
+
output: z.infer<typeof deviceHistoryCapability.methods.getDeviceEnabled.output>;
|
|
2417
|
+
meta: object;
|
|
2418
|
+
}>;
|
|
2419
|
+
setDeviceEnabled: TRPCMutationProcedure<{
|
|
2420
|
+
input: {
|
|
2421
|
+
[x: string]: unknown;
|
|
2422
|
+
} & z.input<typeof deviceHistoryCapability.methods.setDeviceEnabled.input>;
|
|
2423
|
+
output: z.infer<typeof deviceHistoryCapability.methods.setDeviceEnabled.output>;
|
|
2424
|
+
meta: object;
|
|
2425
|
+
}>;
|
|
2426
|
+
getStatus: TRPCQueryProcedure<{
|
|
2427
|
+
input: {
|
|
2428
|
+
[x: string]: unknown;
|
|
2429
|
+
} & z.input<typeof deviceHistoryCapability.methods.getStatus.input>;
|
|
2430
|
+
output: z.infer<typeof deviceHistoryCapability.methods.getStatus.output>;
|
|
2431
|
+
meta: object;
|
|
2432
|
+
}>;
|
|
2433
|
+
}>>;
|
|
2356
2434
|
deviceManager: TRPCBuiltRouter<{
|
|
2357
2435
|
ctx: TrpcContext;
|
|
2358
2436
|
meta: object;
|
|
@@ -5129,6 +5207,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
5129
5207
|
output: z.infer<typeof nodeCertificatesCapability.methods.prepareHttpsCertificate.output>;
|
|
5130
5208
|
meta: object;
|
|
5131
5209
|
}>;
|
|
5210
|
+
forgetHub: TRPCMutationProcedure<{
|
|
5211
|
+
input: {
|
|
5212
|
+
[x: string]: unknown;
|
|
5213
|
+
} & z.input<typeof nodeCertificatesCapability.methods.forgetHub.input>;
|
|
5214
|
+
output: z.infer<typeof nodeCertificatesCapability.methods.forgetHub.output>;
|
|
5215
|
+
meta: object;
|
|
5216
|
+
}>;
|
|
5132
5217
|
installHttpsCertificate: TRPCMutationProcedure<{
|
|
5133
5218
|
input: {
|
|
5134
5219
|
[x: string]: unknown;
|
|
@@ -11492,7 +11577,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11492
11577
|
notBefore: number;
|
|
11493
11578
|
notAfter: number;
|
|
11494
11579
|
issuedAt: number;
|
|
11495
|
-
issuedVia: "enroll" | "renewal" | "boot" | "observed";
|
|
11580
|
+
issuedVia: "enroll" | "pairing" | "renewal" | "boot" | "observed";
|
|
11496
11581
|
status: "valid" | "expiring" | "expired" | "revoked";
|
|
11497
11582
|
revokedAt: number | null;
|
|
11498
11583
|
revokedReason: string | null;
|
|
@@ -11504,7 +11589,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11504
11589
|
notBefore: number;
|
|
11505
11590
|
notAfter: number;
|
|
11506
11591
|
issuedAt: number;
|
|
11507
|
-
issuedVia: "enroll" | "renewal" | "boot" | "observed";
|
|
11592
|
+
issuedVia: "enroll" | "pairing" | "renewal" | "boot" | "observed";
|
|
11508
11593
|
status: "valid" | "expiring" | "expired" | "revoked";
|
|
11509
11594
|
revokedAt: number | null;
|
|
11510
11595
|
revokedReason: string | null;
|
|
@@ -11620,7 +11705,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11620
11705
|
notBefore: number;
|
|
11621
11706
|
notAfter: number;
|
|
11622
11707
|
issuedAt: number;
|
|
11623
|
-
issuedVia: "enroll" | "renewal" | "boot" | "observed";
|
|
11708
|
+
issuedVia: "enroll" | "pairing" | "renewal" | "boot" | "observed";
|
|
11624
11709
|
status: "valid" | "expiring" | "expired" | "revoked";
|
|
11625
11710
|
revokedAt: number | null;
|
|
11626
11711
|
revokedReason: string | null;
|
|
@@ -11632,7 +11717,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11632
11717
|
notBefore: number;
|
|
11633
11718
|
notAfter: number;
|
|
11634
11719
|
issuedAt: number;
|
|
11635
|
-
issuedVia: "enroll" | "renewal" | "boot" | "observed";
|
|
11720
|
+
issuedVia: "enroll" | "pairing" | "renewal" | "boot" | "observed";
|
|
11636
11721
|
status: "valid" | "expiring" | "expired" | "revoked";
|
|
11637
11722
|
revokedAt: number | null;
|
|
11638
11723
|
revokedReason: string | null;
|
|
@@ -11673,6 +11758,368 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11673
11758
|
meta: object;
|
|
11674
11759
|
}>;
|
|
11675
11760
|
}>;
|
|
11761
|
+
agentPairing: import("@trpc/server/unstable-core-do-not-import").Router<{
|
|
11762
|
+
ctx: any;
|
|
11763
|
+
meta: object;
|
|
11764
|
+
errorShape: AugmentedErrorShape;
|
|
11765
|
+
transformer: true;
|
|
11766
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
11767
|
+
listDiscoveredAgents: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
11768
|
+
input: {
|
|
11769
|
+
refresh?: boolean | undefined;
|
|
11770
|
+
} | undefined;
|
|
11771
|
+
output: {
|
|
11772
|
+
agents: {
|
|
11773
|
+
nodeId: string;
|
|
11774
|
+
host: string;
|
|
11775
|
+
port: number;
|
|
11776
|
+
version: string | null;
|
|
11777
|
+
state: "unpaired" | "pending" | "paired";
|
|
11778
|
+
fingerprint: string | null;
|
|
11779
|
+
source: "mdns" | "address";
|
|
11780
|
+
connected: boolean;
|
|
11781
|
+
pairing: {
|
|
11782
|
+
pairingId: string;
|
|
11783
|
+
nodeId: string;
|
|
11784
|
+
endpoint: {
|
|
11785
|
+
host: string;
|
|
11786
|
+
port: number;
|
|
11787
|
+
};
|
|
11788
|
+
code: string;
|
|
11789
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
11790
|
+
hubConfirmed: boolean;
|
|
11791
|
+
agentConfirmed: boolean;
|
|
11792
|
+
expiresAt: number;
|
|
11793
|
+
failure: string | null;
|
|
11794
|
+
} | null;
|
|
11795
|
+
}[];
|
|
11796
|
+
scannedAt: number | null;
|
|
11797
|
+
};
|
|
11798
|
+
meta: object;
|
|
11799
|
+
}>;
|
|
11800
|
+
addAgentByAddress: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
11801
|
+
input: {
|
|
11802
|
+
host: string;
|
|
11803
|
+
port?: number | undefined;
|
|
11804
|
+
};
|
|
11805
|
+
output: {
|
|
11806
|
+
nodeId: string;
|
|
11807
|
+
host: string;
|
|
11808
|
+
port: number;
|
|
11809
|
+
version: string | null;
|
|
11810
|
+
state: "unpaired" | "pending" | "paired";
|
|
11811
|
+
fingerprint: string | null;
|
|
11812
|
+
source: "mdns" | "address";
|
|
11813
|
+
connected: boolean;
|
|
11814
|
+
pairing: {
|
|
11815
|
+
pairingId: string;
|
|
11816
|
+
nodeId: string;
|
|
11817
|
+
endpoint: {
|
|
11818
|
+
host: string;
|
|
11819
|
+
port: number;
|
|
11820
|
+
};
|
|
11821
|
+
code: string;
|
|
11822
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
11823
|
+
hubConfirmed: boolean;
|
|
11824
|
+
agentConfirmed: boolean;
|
|
11825
|
+
expiresAt: number;
|
|
11826
|
+
failure: string | null;
|
|
11827
|
+
} | null;
|
|
11828
|
+
};
|
|
11829
|
+
meta: object;
|
|
11830
|
+
}>;
|
|
11831
|
+
beginPairing: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
11832
|
+
input: {
|
|
11833
|
+
host: string;
|
|
11834
|
+
port?: number | undefined;
|
|
11835
|
+
};
|
|
11836
|
+
output: {
|
|
11837
|
+
pairingId: string;
|
|
11838
|
+
nodeId: string;
|
|
11839
|
+
endpoint: {
|
|
11840
|
+
host: string;
|
|
11841
|
+
port: number;
|
|
11842
|
+
};
|
|
11843
|
+
code: string;
|
|
11844
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
11845
|
+
hubConfirmed: boolean;
|
|
11846
|
+
agentConfirmed: boolean;
|
|
11847
|
+
expiresAt: number;
|
|
11848
|
+
failure: string | null;
|
|
11849
|
+
};
|
|
11850
|
+
meta: object;
|
|
11851
|
+
}>;
|
|
11852
|
+
getPairing: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
11853
|
+
input: {
|
|
11854
|
+
pairingId: string;
|
|
11855
|
+
};
|
|
11856
|
+
output: {
|
|
11857
|
+
pairingId: string;
|
|
11858
|
+
nodeId: string;
|
|
11859
|
+
endpoint: {
|
|
11860
|
+
host: string;
|
|
11861
|
+
port: number;
|
|
11862
|
+
};
|
|
11863
|
+
code: string;
|
|
11864
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
11865
|
+
hubConfirmed: boolean;
|
|
11866
|
+
agentConfirmed: boolean;
|
|
11867
|
+
expiresAt: number;
|
|
11868
|
+
failure: string | null;
|
|
11869
|
+
};
|
|
11870
|
+
meta: object;
|
|
11871
|
+
}>;
|
|
11872
|
+
listPairings: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
11873
|
+
input: void;
|
|
11874
|
+
output: {
|
|
11875
|
+
pairingId: string;
|
|
11876
|
+
nodeId: string;
|
|
11877
|
+
endpoint: {
|
|
11878
|
+
host: string;
|
|
11879
|
+
port: number;
|
|
11880
|
+
};
|
|
11881
|
+
code: string;
|
|
11882
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
11883
|
+
hubConfirmed: boolean;
|
|
11884
|
+
agentConfirmed: boolean;
|
|
11885
|
+
expiresAt: number;
|
|
11886
|
+
failure: string | null;
|
|
11887
|
+
}[];
|
|
11888
|
+
meta: object;
|
|
11889
|
+
}>;
|
|
11890
|
+
confirmPairing: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
11891
|
+
input: {
|
|
11892
|
+
pairingId: string;
|
|
11893
|
+
code: string;
|
|
11894
|
+
};
|
|
11895
|
+
output: {
|
|
11896
|
+
pairingId: string;
|
|
11897
|
+
nodeId: string;
|
|
11898
|
+
endpoint: {
|
|
11899
|
+
host: string;
|
|
11900
|
+
port: number;
|
|
11901
|
+
};
|
|
11902
|
+
code: string;
|
|
11903
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
11904
|
+
hubConfirmed: boolean;
|
|
11905
|
+
agentConfirmed: boolean;
|
|
11906
|
+
expiresAt: number;
|
|
11907
|
+
failure: string | null;
|
|
11908
|
+
};
|
|
11909
|
+
meta: object;
|
|
11910
|
+
}>;
|
|
11911
|
+
rejectPairing: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
11912
|
+
input: {
|
|
11913
|
+
pairingId: string;
|
|
11914
|
+
};
|
|
11915
|
+
output: {
|
|
11916
|
+
pairingId: string;
|
|
11917
|
+
nodeId: string;
|
|
11918
|
+
endpoint: {
|
|
11919
|
+
host: string;
|
|
11920
|
+
port: number;
|
|
11921
|
+
};
|
|
11922
|
+
code: string;
|
|
11923
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
11924
|
+
hubConfirmed: boolean;
|
|
11925
|
+
agentConfirmed: boolean;
|
|
11926
|
+
expiresAt: number;
|
|
11927
|
+
failure: string | null;
|
|
11928
|
+
};
|
|
11929
|
+
meta: object;
|
|
11930
|
+
}>;
|
|
11931
|
+
unpairAgent: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
11932
|
+
input: {
|
|
11933
|
+
nodeId: string;
|
|
11934
|
+
};
|
|
11935
|
+
output: {
|
|
11936
|
+
nodeId: string;
|
|
11937
|
+
agentNotified: boolean;
|
|
11938
|
+
revokedSerials: string[];
|
|
11939
|
+
disconnected: number;
|
|
11940
|
+
next: string;
|
|
11941
|
+
};
|
|
11942
|
+
meta: object;
|
|
11943
|
+
}>;
|
|
11944
|
+
}>> & import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
11945
|
+
listDiscoveredAgents: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
11946
|
+
input: {
|
|
11947
|
+
refresh?: boolean | undefined;
|
|
11948
|
+
} | undefined;
|
|
11949
|
+
output: {
|
|
11950
|
+
agents: {
|
|
11951
|
+
nodeId: string;
|
|
11952
|
+
host: string;
|
|
11953
|
+
port: number;
|
|
11954
|
+
version: string | null;
|
|
11955
|
+
state: "unpaired" | "pending" | "paired";
|
|
11956
|
+
fingerprint: string | null;
|
|
11957
|
+
source: "mdns" | "address";
|
|
11958
|
+
connected: boolean;
|
|
11959
|
+
pairing: {
|
|
11960
|
+
pairingId: string;
|
|
11961
|
+
nodeId: string;
|
|
11962
|
+
endpoint: {
|
|
11963
|
+
host: string;
|
|
11964
|
+
port: number;
|
|
11965
|
+
};
|
|
11966
|
+
code: string;
|
|
11967
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
11968
|
+
hubConfirmed: boolean;
|
|
11969
|
+
agentConfirmed: boolean;
|
|
11970
|
+
expiresAt: number;
|
|
11971
|
+
failure: string | null;
|
|
11972
|
+
} | null;
|
|
11973
|
+
}[];
|
|
11974
|
+
scannedAt: number | null;
|
|
11975
|
+
};
|
|
11976
|
+
meta: object;
|
|
11977
|
+
}>;
|
|
11978
|
+
addAgentByAddress: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
11979
|
+
input: {
|
|
11980
|
+
host: string;
|
|
11981
|
+
port?: number | undefined;
|
|
11982
|
+
};
|
|
11983
|
+
output: {
|
|
11984
|
+
nodeId: string;
|
|
11985
|
+
host: string;
|
|
11986
|
+
port: number;
|
|
11987
|
+
version: string | null;
|
|
11988
|
+
state: "unpaired" | "pending" | "paired";
|
|
11989
|
+
fingerprint: string | null;
|
|
11990
|
+
source: "mdns" | "address";
|
|
11991
|
+
connected: boolean;
|
|
11992
|
+
pairing: {
|
|
11993
|
+
pairingId: string;
|
|
11994
|
+
nodeId: string;
|
|
11995
|
+
endpoint: {
|
|
11996
|
+
host: string;
|
|
11997
|
+
port: number;
|
|
11998
|
+
};
|
|
11999
|
+
code: string;
|
|
12000
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
12001
|
+
hubConfirmed: boolean;
|
|
12002
|
+
agentConfirmed: boolean;
|
|
12003
|
+
expiresAt: number;
|
|
12004
|
+
failure: string | null;
|
|
12005
|
+
} | null;
|
|
12006
|
+
};
|
|
12007
|
+
meta: object;
|
|
12008
|
+
}>;
|
|
12009
|
+
beginPairing: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
12010
|
+
input: {
|
|
12011
|
+
host: string;
|
|
12012
|
+
port?: number | undefined;
|
|
12013
|
+
};
|
|
12014
|
+
output: {
|
|
12015
|
+
pairingId: string;
|
|
12016
|
+
nodeId: string;
|
|
12017
|
+
endpoint: {
|
|
12018
|
+
host: string;
|
|
12019
|
+
port: number;
|
|
12020
|
+
};
|
|
12021
|
+
code: string;
|
|
12022
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
12023
|
+
hubConfirmed: boolean;
|
|
12024
|
+
agentConfirmed: boolean;
|
|
12025
|
+
expiresAt: number;
|
|
12026
|
+
failure: string | null;
|
|
12027
|
+
};
|
|
12028
|
+
meta: object;
|
|
12029
|
+
}>;
|
|
12030
|
+
getPairing: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
12031
|
+
input: {
|
|
12032
|
+
pairingId: string;
|
|
12033
|
+
};
|
|
12034
|
+
output: {
|
|
12035
|
+
pairingId: string;
|
|
12036
|
+
nodeId: string;
|
|
12037
|
+
endpoint: {
|
|
12038
|
+
host: string;
|
|
12039
|
+
port: number;
|
|
12040
|
+
};
|
|
12041
|
+
code: string;
|
|
12042
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
12043
|
+
hubConfirmed: boolean;
|
|
12044
|
+
agentConfirmed: boolean;
|
|
12045
|
+
expiresAt: number;
|
|
12046
|
+
failure: string | null;
|
|
12047
|
+
};
|
|
12048
|
+
meta: object;
|
|
12049
|
+
}>;
|
|
12050
|
+
listPairings: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
12051
|
+
input: void;
|
|
12052
|
+
output: {
|
|
12053
|
+
pairingId: string;
|
|
12054
|
+
nodeId: string;
|
|
12055
|
+
endpoint: {
|
|
12056
|
+
host: string;
|
|
12057
|
+
port: number;
|
|
12058
|
+
};
|
|
12059
|
+
code: string;
|
|
12060
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
12061
|
+
hubConfirmed: boolean;
|
|
12062
|
+
agentConfirmed: boolean;
|
|
12063
|
+
expiresAt: number;
|
|
12064
|
+
failure: string | null;
|
|
12065
|
+
}[];
|
|
12066
|
+
meta: object;
|
|
12067
|
+
}>;
|
|
12068
|
+
confirmPairing: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
12069
|
+
input: {
|
|
12070
|
+
pairingId: string;
|
|
12071
|
+
code: string;
|
|
12072
|
+
};
|
|
12073
|
+
output: {
|
|
12074
|
+
pairingId: string;
|
|
12075
|
+
nodeId: string;
|
|
12076
|
+
endpoint: {
|
|
12077
|
+
host: string;
|
|
12078
|
+
port: number;
|
|
12079
|
+
};
|
|
12080
|
+
code: string;
|
|
12081
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
12082
|
+
hubConfirmed: boolean;
|
|
12083
|
+
agentConfirmed: boolean;
|
|
12084
|
+
expiresAt: number;
|
|
12085
|
+
failure: string | null;
|
|
12086
|
+
};
|
|
12087
|
+
meta: object;
|
|
12088
|
+
}>;
|
|
12089
|
+
rejectPairing: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
12090
|
+
input: {
|
|
12091
|
+
pairingId: string;
|
|
12092
|
+
};
|
|
12093
|
+
output: {
|
|
12094
|
+
pairingId: string;
|
|
12095
|
+
nodeId: string;
|
|
12096
|
+
endpoint: {
|
|
12097
|
+
host: string;
|
|
12098
|
+
port: number;
|
|
12099
|
+
};
|
|
12100
|
+
code: string;
|
|
12101
|
+
state: "expired" | "paired" | "awaiting-confirmation" | "completing" | "rejected" | "failed";
|
|
12102
|
+
hubConfirmed: boolean;
|
|
12103
|
+
agentConfirmed: boolean;
|
|
12104
|
+
expiresAt: number;
|
|
12105
|
+
failure: string | null;
|
|
12106
|
+
};
|
|
12107
|
+
meta: object;
|
|
12108
|
+
}>;
|
|
12109
|
+
unpairAgent: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
12110
|
+
input: {
|
|
12111
|
+
nodeId: string;
|
|
12112
|
+
};
|
|
12113
|
+
output: {
|
|
12114
|
+
nodeId: string;
|
|
12115
|
+
agentNotified: boolean;
|
|
12116
|
+
revokedSerials: string[];
|
|
12117
|
+
disconnected: number;
|
|
12118
|
+
next: string;
|
|
12119
|
+
};
|
|
12120
|
+
meta: object;
|
|
12121
|
+
}>;
|
|
12122
|
+
}>;
|
|
11676
12123
|
auth: import("@trpc/server/unstable-core-do-not-import").Router<{
|
|
11677
12124
|
ctx: any;
|
|
11678
12125
|
meta: object;
|
|
@@ -11881,7 +12328,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11881
12328
|
input: {
|
|
11882
12329
|
code: string;
|
|
11883
12330
|
publicKeySpki: string;
|
|
11884
|
-
platform: "
|
|
12331
|
+
platform: "other" | "android" | "ios" | "web";
|
|
11885
12332
|
deviceName?: string | undefined;
|
|
11886
12333
|
};
|
|
11887
12334
|
output: {
|
|
@@ -11994,7 +12441,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11994
12441
|
userId: string;
|
|
11995
12442
|
username: string | null;
|
|
11996
12443
|
deviceName: string;
|
|
11997
|
-
platform: "
|
|
12444
|
+
platform: "other" | "android" | "ios" | "web";
|
|
11998
12445
|
enrolledVia: "self" | "qr";
|
|
11999
12446
|
fingerprint: string;
|
|
12000
12447
|
issuedAt: number;
|
|
@@ -12044,7 +12491,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12044
12491
|
proof: string;
|
|
12045
12492
|
publicKeySpki: string;
|
|
12046
12493
|
deviceName: string;
|
|
12047
|
-
platform: "
|
|
12494
|
+
platform: "other" | "android" | "ios" | "web";
|
|
12048
12495
|
};
|
|
12049
12496
|
output: {
|
|
12050
12497
|
credentialId: string;
|
|
@@ -12741,7 +13188,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12741
13188
|
input: {
|
|
12742
13189
|
code: string;
|
|
12743
13190
|
publicKeySpki: string;
|
|
12744
|
-
platform: "
|
|
13191
|
+
platform: "other" | "android" | "ios" | "web";
|
|
12745
13192
|
deviceName?: string | undefined;
|
|
12746
13193
|
};
|
|
12747
13194
|
output: {
|
|
@@ -12854,7 +13301,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12854
13301
|
userId: string;
|
|
12855
13302
|
username: string | null;
|
|
12856
13303
|
deviceName: string;
|
|
12857
|
-
platform: "
|
|
13304
|
+
platform: "other" | "android" | "ios" | "web";
|
|
12858
13305
|
enrolledVia: "self" | "qr";
|
|
12859
13306
|
fingerprint: string;
|
|
12860
13307
|
issuedAt: number;
|
|
@@ -12904,7 +13351,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12904
13351
|
proof: string;
|
|
12905
13352
|
publicKeySpki: string;
|
|
12906
13353
|
deviceName: string;
|
|
12907
|
-
platform: "
|
|
13354
|
+
platform: "other" | "android" | "ios" | "web";
|
|
12908
13355
|
};
|
|
12909
13356
|
output: {
|
|
12910
13357
|
credentialId: string;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Plain data, zero Zod: a forked runner must not import the schema barrel
|
|
12
12
|
* (~144MB RSS per runner — D28).
|
|
13
13
|
*
|
|
14
|
-
* Coverage:
|
|
14
|
+
* Coverage: 27 caps, 69 methods with defaults.
|
|
15
15
|
*/
|
|
16
16
|
export declare const CAP_INPUT_DEFAULTS: Readonly<Record<string, Readonly<Record<string, Readonly<Record<string, unknown>>>>>>;
|
|
17
17
|
/**
|
|
@@ -52,6 +52,7 @@ export { deviceCredentialsCapability } from '../capabilities/device-credentials.
|
|
|
52
52
|
export { deviceDiscoveryCapability } from '../capabilities/device-discovery.cap.js';
|
|
53
53
|
export { deviceExportCapability } from '../capabilities/device-export.cap.js';
|
|
54
54
|
export { deviceExtensionCapability } from '../capabilities/device-extension.cap.js';
|
|
55
|
+
export { deviceHistoryCapability } from '../capabilities/device-history.cap.js';
|
|
55
56
|
export { deviceManagerCapability } from '../capabilities/device-manager.cap.js';
|
|
56
57
|
export { deviceOpsCapability } from '../capabilities/device-ops.cap.js';
|
|
57
58
|
export { deviceProviderCapability } from '../capabilities/device-provider.cap.js';
|
|
@@ -225,6 +226,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
225
226
|
readonly deviceDiscovery: 'device-discovery';
|
|
226
227
|
readonly deviceExport: 'device-export';
|
|
227
228
|
readonly deviceExtension: 'device-extension';
|
|
229
|
+
readonly deviceHistory: 'device-history';
|
|
228
230
|
readonly deviceManager: 'device-manager';
|
|
229
231
|
readonly deviceOps: 'device-ops';
|
|
230
232
|
readonly deviceProvider: 'device-provider';
|
|
@@ -411,6 +413,7 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
411
413
|
readonly deviceDiscovery: TRouter;
|
|
412
414
|
readonly deviceExport: TRouter;
|
|
413
415
|
readonly deviceExtension: TRouter;
|
|
416
|
+
readonly deviceHistory: TRouter;
|
|
414
417
|
readonly deviceManager: TRouter;
|
|
415
418
|
readonly deviceOps: TRouter;
|
|
416
419
|
readonly deviceProvider: TRouter;
|
|
@@ -530,8 +533,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
530
533
|
readonly zoneRules: TRouter;
|
|
531
534
|
readonly zones: TRouter;
|
|
532
535
|
}
|
|
533
|
-
/** Capability names whose mode is `singleton` (
|
|
534
|
-
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'addon-pages', 'addon-settings', 'addon-widgets', 'addons', 'admin-ui', 'air-quality-sensor', 'alarm-panel', 'alerts', 'ambient-light-sensor', 'audio-analysis', 'audio-analyzer', 'audio-codec', 'audio-metrics', 'automation-control', 'backup', 'battery', 'binary', 'brightness', 'button', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-adoption', 'device-credentials', 'device-discovery', 'device-manager', 'device-ops', 'device-state', 'device-status', 'doorbell', 'enum-sensor', 'event-emitter', 'face-gallery', 'fan-control', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'metrics-provider', 'model-convert', 'model-distributor', 'motion', 'motion-detection', 'motion-trigger', 'motion-zones', 'native-object-detection', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'oidc-connections', 'osd', 'osd-manager', 'pet-feeder', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'reboot', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'scene-monitor', 'script-runner', 'server-management', 'settings-store', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tamper', 'temperature-sensor', 'terminal-session', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
536
|
+
/** Capability names whose mode is `singleton` (140 caps). */
|
|
537
|
+
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'addon-pages', 'addon-settings', 'addon-widgets', 'addons', 'admin-ui', 'air-quality-sensor', 'alarm-panel', 'alerts', 'ambient-light-sensor', 'audio-analysis', 'audio-analyzer', 'audio-codec', 'audio-metrics', 'automation-control', 'backup', 'battery', 'binary', 'brightness', 'button', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-adoption', 'device-credentials', 'device-discovery', 'device-history', 'device-manager', 'device-ops', 'device-state', 'device-status', 'doorbell', 'enum-sensor', 'event-emitter', 'face-gallery', 'fan-control', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'metrics-provider', 'model-convert', 'model-distributor', 'motion', 'motion-detection', 'motion-trigger', 'motion-zones', 'native-object-detection', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'oidc-connections', 'osd', 'osd-manager', 'pet-feeder', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'reboot', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'scene-monitor', 'script-runner', 'server-management', 'settings-store', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tamper', 'temperature-sensor', 'terminal-session', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'webrtc-session', 'zone-analytics', 'zone-rules', 'zones'];
|
|
535
538
|
/** Union of singleton capability names (literal string union). */
|
|
536
539
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
537
540
|
/** Capability names whose mode is `collection` (33 caps). */
|