@camstack/types 1.2.114 → 1.2.115
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 +2 -1
- package/dist/addon.mjs +2 -1
- package/dist/capabilities/data-store-provider.cap.d.ts +34 -0
- package/dist/capabilities/device-manager.cap.d.ts +99 -0
- package/dist/capabilities/index.d.ts +6 -3
- package/dist/capabilities/log-channels.cap.d.ts +93 -0
- package/dist/capabilities/settings-store.cap.d.ts +81 -1
- package/dist/capabilities/system.cap.d.ts +109 -5
- package/dist/generated/addon-api.d.ts +44 -0
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/collection-array-methods.d.ts +1 -1
- 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 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +717 -6
- package/dist/index.mjs +703 -7
- package/dist/interfaces/logging.d.ts +15 -0
- package/dist/interfaces/storage.d.ts +26 -0
- package/dist/logging/log-channel-provider.d.ts +62 -0
- package/dist/logging/log-channel.d.ts +194 -0
- package/dist/logging/log-channel.singleton.d.ts +33 -0
- package/package.json +1 -1
|
@@ -311,10 +311,11 @@ declare const DiagnosticIdSchema: z.ZodEnum<{
|
|
|
311
311
|
* The layers of the level hierarchy, general → specific. The most specific
|
|
312
312
|
* layer that carries an explicit value wins.
|
|
313
313
|
*
|
|
314
|
-
* `component`
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
314
|
+
* `component` became RESOLVABLE on 2026-08-27: a component is a declared log
|
|
315
|
+
* CHANNEL (`stream-broker.webrtc`, `provider-reolink.baichuan`), named by
|
|
316
|
+
* `scopeComponent`. It was declared-but-dark in the first slice precisely so
|
|
317
|
+
* that turning it on would not force every consumer of this document to widen
|
|
318
|
+
* a `levelSource` enum — which is what has now not happened.
|
|
318
319
|
*/
|
|
319
320
|
declare const LoggingScopeKindSchema: z.ZodEnum<{
|
|
320
321
|
node: "node";
|
|
@@ -344,6 +345,7 @@ declare const LoggingLevelLayerSchema: z.ZodObject<{
|
|
|
344
345
|
component: "component";
|
|
345
346
|
}>;
|
|
346
347
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
348
|
+
component: z.ZodNullable<z.ZodString>;
|
|
347
349
|
level: z.ZodNullable<z.ZodEnum<{
|
|
348
350
|
error: "error";
|
|
349
351
|
debug: "debug";
|
|
@@ -375,6 +377,7 @@ declare const LoggingExplicitSchema: z.ZodObject<{
|
|
|
375
377
|
component: "component";
|
|
376
378
|
}>;
|
|
377
379
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
380
|
+
component: z.ZodNullable<z.ZodString>;
|
|
378
381
|
level: z.ZodNullable<z.ZodEnum<{
|
|
379
382
|
error: "error";
|
|
380
383
|
debug: "debug";
|
|
@@ -412,6 +415,29 @@ declare const DiagnosticWindowPatchSchema: z.ZodObject<{
|
|
|
412
415
|
armMs: z.ZodNumber;
|
|
413
416
|
reportEveryMs: z.ZodOptional<z.ZodNumber>;
|
|
414
417
|
}, z.core.$strip>;
|
|
418
|
+
/**
|
|
419
|
+
* A channel ARMED, as the document reports it.
|
|
420
|
+
*
|
|
421
|
+
* `armMs` is not echoed back: what an operator needs to see is the deadline
|
|
422
|
+
* and the time left, because a diagnostic left running is itself an incident
|
|
423
|
+
* and "armed for 10 minutes" said an hour ago is not an answer.
|
|
424
|
+
*/
|
|
425
|
+
declare const LogChannelWindowStateSchema: z.ZodObject<{
|
|
426
|
+
channel: z.ZodString;
|
|
427
|
+
armed: z.ZodBoolean;
|
|
428
|
+
armedUntilMs: z.ZodNumber;
|
|
429
|
+
remainingMs: z.ZodNumber;
|
|
430
|
+
deviceIds: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
|
|
431
|
+
}, z.core.$strip>;
|
|
432
|
+
/**
|
|
433
|
+
* `armMs: 0` DISARMS. Same grammar as {@link DiagnosticWindowPatchSchema}, and
|
|
434
|
+
* for the same reason: a channel is a window with a deadline, never a switch.
|
|
435
|
+
*/
|
|
436
|
+
declare const LogChannelWindowPatchSchema: z.ZodObject<{
|
|
437
|
+
channel: z.ZodString;
|
|
438
|
+
armMs: z.ZodNumber;
|
|
439
|
+
deviceIds: z.ZodOptional<z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
440
|
+
}, z.core.$strip>;
|
|
415
441
|
/**
|
|
416
442
|
* A PATCH, and patches MERGE.
|
|
417
443
|
*
|
|
@@ -435,6 +461,11 @@ declare const LoggingSettingsPatchSchema: z.ZodObject<{
|
|
|
435
461
|
armMs: z.ZodNumber;
|
|
436
462
|
reportEveryMs: z.ZodOptional<z.ZodNumber>;
|
|
437
463
|
}, z.core.$strip>>>>;
|
|
464
|
+
channels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
465
|
+
channel: z.ZodString;
|
|
466
|
+
armMs: z.ZodNumber;
|
|
467
|
+
deviceIds: z.ZodOptional<z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
468
|
+
}, z.core.$strip>>>>;
|
|
438
469
|
}, z.core.$strip>;
|
|
439
470
|
/**
|
|
440
471
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -449,9 +480,11 @@ declare const LoggingSettingsPatchSchema: z.ZodObject<{
|
|
|
449
480
|
*/
|
|
450
481
|
declare const GetLoggingSettingsInputSchema: z.ZodObject<{
|
|
451
482
|
scopeNodeId: z.ZodOptional<z.ZodString>;
|
|
483
|
+
scopeComponent: z.ZodOptional<z.ZodString>;
|
|
452
484
|
}, z.core.$strip>;
|
|
453
485
|
declare const SetLoggingSettingsInputSchema: z.ZodObject<{
|
|
454
486
|
scopeNodeId: z.ZodOptional<z.ZodString>;
|
|
487
|
+
scopeComponent: z.ZodOptional<z.ZodString>;
|
|
455
488
|
patch: z.ZodObject<{
|
|
456
489
|
level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
457
490
|
error: "error";
|
|
@@ -466,6 +499,11 @@ declare const SetLoggingSettingsInputSchema: z.ZodObject<{
|
|
|
466
499
|
armMs: z.ZodNumber;
|
|
467
500
|
reportEveryMs: z.ZodOptional<z.ZodNumber>;
|
|
468
501
|
}, z.core.$strip>>>>;
|
|
502
|
+
channels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
503
|
+
channel: z.ZodString;
|
|
504
|
+
armMs: z.ZodNumber;
|
|
505
|
+
deviceIds: z.ZodOptional<z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
506
|
+
}, z.core.$strip>>>>;
|
|
469
507
|
}, z.core.$strip>;
|
|
470
508
|
}, z.core.$strip>;
|
|
471
509
|
/**
|
|
@@ -479,6 +517,7 @@ declare const SetLoggingSettingsInputSchema: z.ZodObject<{
|
|
|
479
517
|
*/
|
|
480
518
|
declare const LoggingSettingsStateSchema: z.ZodObject<{
|
|
481
519
|
scopeNodeId: z.ZodNullable<z.ZodString>;
|
|
520
|
+
scopeComponent: z.ZodNullable<z.ZodString>;
|
|
482
521
|
effective: z.ZodObject<{
|
|
483
522
|
level: z.ZodEnum<{
|
|
484
523
|
error: "error";
|
|
@@ -501,6 +540,7 @@ declare const LoggingSettingsStateSchema: z.ZodObject<{
|
|
|
501
540
|
component: "component";
|
|
502
541
|
}>;
|
|
503
542
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
543
|
+
component: z.ZodNullable<z.ZodString>;
|
|
504
544
|
level: z.ZodNullable<z.ZodEnum<{
|
|
505
545
|
error: "error";
|
|
506
546
|
debug: "debug";
|
|
@@ -518,6 +558,23 @@ declare const LoggingSettingsStateSchema: z.ZodObject<{
|
|
|
518
558
|
remainingMs: z.ZodNumber;
|
|
519
559
|
persisted: z.ZodBoolean;
|
|
520
560
|
}, z.core.$strip>>>;
|
|
561
|
+
channels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
562
|
+
name: z.ZodString;
|
|
563
|
+
description: z.ZodString;
|
|
564
|
+
defaultLevel: z.ZodEnum<{
|
|
565
|
+
error: "error";
|
|
566
|
+
info: "info";
|
|
567
|
+
warn: "warn";
|
|
568
|
+
}>;
|
|
569
|
+
perDevice: z.ZodBoolean;
|
|
570
|
+
}, z.core.$strip>>>;
|
|
571
|
+
activeChannels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
572
|
+
channel: z.ZodString;
|
|
573
|
+
armed: z.ZodBoolean;
|
|
574
|
+
armedUntilMs: z.ZodNumber;
|
|
575
|
+
remainingMs: z.ZodNumber;
|
|
576
|
+
deviceIds: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
|
|
577
|
+
}, z.core.$strip>>>;
|
|
521
578
|
persisted: z.ZodBoolean;
|
|
522
579
|
}, z.core.$strip>;
|
|
523
580
|
export declare const systemCapability: {
|
|
@@ -691,8 +748,10 @@ export declare const systemCapability: {
|
|
|
691
748
|
*/
|
|
692
749
|
readonly getLoggingSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
693
750
|
scopeNodeId: z.ZodOptional<z.ZodString>;
|
|
751
|
+
scopeComponent: z.ZodOptional<z.ZodString>;
|
|
694
752
|
}, z.core.$strip>, z.ZodObject<{
|
|
695
753
|
scopeNodeId: z.ZodNullable<z.ZodString>;
|
|
754
|
+
scopeComponent: z.ZodNullable<z.ZodString>;
|
|
696
755
|
effective: z.ZodObject<{
|
|
697
756
|
level: z.ZodEnum<{
|
|
698
757
|
error: "error";
|
|
@@ -715,6 +774,7 @@ export declare const systemCapability: {
|
|
|
715
774
|
component: "component";
|
|
716
775
|
}>;
|
|
717
776
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
777
|
+
component: z.ZodNullable<z.ZodString>;
|
|
718
778
|
level: z.ZodNullable<z.ZodEnum<{
|
|
719
779
|
error: "error";
|
|
720
780
|
debug: "debug";
|
|
@@ -732,6 +792,23 @@ export declare const systemCapability: {
|
|
|
732
792
|
remainingMs: z.ZodNumber;
|
|
733
793
|
persisted: z.ZodBoolean;
|
|
734
794
|
}, z.core.$strip>>>;
|
|
795
|
+
channels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
796
|
+
name: z.ZodString;
|
|
797
|
+
description: z.ZodString;
|
|
798
|
+
defaultLevel: z.ZodEnum<{
|
|
799
|
+
error: "error";
|
|
800
|
+
info: "info";
|
|
801
|
+
warn: "warn";
|
|
802
|
+
}>;
|
|
803
|
+
perDevice: z.ZodBoolean;
|
|
804
|
+
}, z.core.$strip>>>;
|
|
805
|
+
activeChannels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
806
|
+
channel: z.ZodString;
|
|
807
|
+
armed: z.ZodBoolean;
|
|
808
|
+
armedUntilMs: z.ZodNumber;
|
|
809
|
+
remainingMs: z.ZodNumber;
|
|
810
|
+
deviceIds: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
|
|
811
|
+
}, z.core.$strip>>>;
|
|
735
812
|
persisted: z.ZodBoolean;
|
|
736
813
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
737
814
|
/**
|
|
@@ -745,6 +822,7 @@ export declare const systemCapability: {
|
|
|
745
822
|
*/
|
|
746
823
|
readonly setLoggingSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
747
824
|
scopeNodeId: z.ZodOptional<z.ZodString>;
|
|
825
|
+
scopeComponent: z.ZodOptional<z.ZodString>;
|
|
748
826
|
patch: z.ZodObject<{
|
|
749
827
|
level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
750
828
|
error: "error";
|
|
@@ -759,9 +837,15 @@ export declare const systemCapability: {
|
|
|
759
837
|
armMs: z.ZodNumber;
|
|
760
838
|
reportEveryMs: z.ZodOptional<z.ZodNumber>;
|
|
761
839
|
}, z.core.$strip>>>>;
|
|
840
|
+
channels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
841
|
+
channel: z.ZodString;
|
|
842
|
+
armMs: z.ZodNumber;
|
|
843
|
+
deviceIds: z.ZodOptional<z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
844
|
+
}, z.core.$strip>>>>;
|
|
762
845
|
}, z.core.$strip>;
|
|
763
846
|
}, z.core.$strip>, z.ZodObject<{
|
|
764
847
|
scopeNodeId: z.ZodNullable<z.ZodString>;
|
|
848
|
+
scopeComponent: z.ZodNullable<z.ZodString>;
|
|
765
849
|
effective: z.ZodObject<{
|
|
766
850
|
level: z.ZodEnum<{
|
|
767
851
|
error: "error";
|
|
@@ -784,6 +868,7 @@ export declare const systemCapability: {
|
|
|
784
868
|
component: "component";
|
|
785
869
|
}>;
|
|
786
870
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
871
|
+
component: z.ZodNullable<z.ZodString>;
|
|
787
872
|
level: z.ZodNullable<z.ZodEnum<{
|
|
788
873
|
error: "error";
|
|
789
874
|
debug: "debug";
|
|
@@ -801,6 +886,23 @@ export declare const systemCapability: {
|
|
|
801
886
|
remainingMs: z.ZodNumber;
|
|
802
887
|
persisted: z.ZodBoolean;
|
|
803
888
|
}, z.core.$strip>>>;
|
|
889
|
+
channels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
890
|
+
name: z.ZodString;
|
|
891
|
+
description: z.ZodString;
|
|
892
|
+
defaultLevel: z.ZodEnum<{
|
|
893
|
+
error: "error";
|
|
894
|
+
info: "info";
|
|
895
|
+
warn: "warn";
|
|
896
|
+
}>;
|
|
897
|
+
perDevice: z.ZodBoolean;
|
|
898
|
+
}, z.core.$strip>>>;
|
|
899
|
+
activeChannels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
900
|
+
channel: z.ZodString;
|
|
901
|
+
armed: z.ZodBoolean;
|
|
902
|
+
armedUntilMs: z.ZodNumber;
|
|
903
|
+
remainingMs: z.ZodNumber;
|
|
904
|
+
deviceIds: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
|
|
905
|
+
}, z.core.$strip>>>;
|
|
804
906
|
persisted: z.ZodBoolean;
|
|
805
907
|
}, z.core.$strip>, "mutation">;
|
|
806
908
|
};
|
|
@@ -825,6 +927,8 @@ export type LoggingExplicit = z.infer<typeof LoggingExplicitSchema>;
|
|
|
825
927
|
export type LoggingLevelLayer = z.infer<typeof LoggingLevelLayerSchema>;
|
|
826
928
|
export type LoggingLevelSource = z.infer<typeof LoggingLevelSourceSchema>;
|
|
827
929
|
export type LoggingScopeKind = z.infer<typeof LoggingScopeKindSchema>;
|
|
930
|
+
export type LogChannelWindowPatch = z.infer<typeof LogChannelWindowPatchSchema>;
|
|
931
|
+
export type LogChannelWindowState = z.infer<typeof LogChannelWindowStateSchema>;
|
|
828
932
|
export type LoggingSettingsPatch = z.infer<typeof LoggingSettingsPatchSchema>;
|
|
829
933
|
export type LoggingSettingsState = z.infer<typeof LoggingSettingsStateSchema>;
|
|
830
934
|
export type SetLoggingSettingsInput = z.infer<typeof SetLoggingSettingsInputSchema>;
|
|
@@ -832,4 +936,4 @@ export type SiteLocation = z.infer<typeof SiteLocationSchema>;
|
|
|
832
936
|
export type SiteLocationSource = z.infer<typeof SiteLocationSourceSchema>;
|
|
833
937
|
export type SiteLocationStatus = z.infer<typeof SiteLocationStatusSchema>;
|
|
834
938
|
export type SetSiteLocationInput = z.infer<typeof SetSiteLocationInputSchema>;
|
|
835
|
-
export { DiagnosticIdSchema, DiagnosticWindowPatchSchema, DiagnosticWindowSchema, FeatureManifestSchema, GetLoggingSettingsInputSchema, HealthStatusSchema, LoggingEffectiveSchema, LoggingExplicitSchema, LoggingLevelLayerSchema, LoggingLevelSourceSchema, LoggingScopeKindSchema, LoggingSettingsPatchSchema, LoggingSettingsStateSchema, LogLevelSchema, NetworkAddressSchema, RequestCensusGroupSchema, RequestCensusProcedureSchema, RequestCensusSnapshotSchema, RequestCensusStatusSchema, SetLoggingSettingsInputSchema, SetSiteLocationInputSchema, SiteLocationSchema, SiteLocationSourceSchema, SiteLocationStatusSchema, TransportPlaneCountsSchema, TransportPlaneSchema, };
|
|
939
|
+
export { DiagnosticIdSchema, DiagnosticWindowPatchSchema, DiagnosticWindowSchema, FeatureManifestSchema, GetLoggingSettingsInputSchema, HealthStatusSchema, LoggingEffectiveSchema, LoggingExplicitSchema, LoggingLevelLayerSchema, LoggingLevelSourceSchema, LoggingScopeKindSchema, LoggingSettingsPatchSchema, LoggingSettingsStateSchema, LogChannelWindowPatchSchema, LogChannelWindowStateSchema, LogLevelSchema, NetworkAddressSchema, RequestCensusGroupSchema, RequestCensusProcedureSchema, RequestCensusSnapshotSchema, RequestCensusStatusSchema, SetLoggingSettingsInputSchema, SetSiteLocationInputSchema, SiteLocationSchema, SiteLocationSourceSchema, SiteLocationStatusSchema, TransportPlaneCountsSchema, TransportPlaneSchema, };
|
|
@@ -56,6 +56,7 @@ import type { llmRuntimeCapability } from '../capabilities/llm-runtime.cap.js';
|
|
|
56
56
|
import type { llmCapability } from '../capabilities/llm.cap.js';
|
|
57
57
|
import type { localNetworkCapability } from '../capabilities/local-network.cap.js';
|
|
58
58
|
import type { lockControlCapability } from '../capabilities/lock-control.cap.js';
|
|
59
|
+
import type { logChannelsCapability } from '../capabilities/log-channels.cap.js';
|
|
59
60
|
import type { loginMethodCapability } from '../capabilities/login-method.cap.js';
|
|
60
61
|
import type { mediaPlayerCapability } from '../capabilities/media-player.cap.js';
|
|
61
62
|
import type { meshNetworkCapability } from '../capabilities/mesh-network.cap.js';
|
|
@@ -1628,6 +1629,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
1628
1629
|
output: z.infer<typeof dataStoreProviderCapability.methods.count.output>;
|
|
1629
1630
|
meta: object;
|
|
1630
1631
|
}>;
|
|
1632
|
+
aggregate: TRPCQueryProcedure<{
|
|
1633
|
+
input: {
|
|
1634
|
+
[x: string]: unknown;
|
|
1635
|
+
} & z.input<typeof dataStoreProviderCapability.methods.aggregate.input>;
|
|
1636
|
+
output: z.infer<typeof dataStoreProviderCapability.methods.aggregate.output>;
|
|
1637
|
+
meta: object;
|
|
1638
|
+
}>;
|
|
1631
1639
|
histogram: TRPCQueryProcedure<{
|
|
1632
1640
|
input: {
|
|
1633
1641
|
[x: string]: unknown;
|
|
@@ -2212,6 +2220,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
2212
2220
|
output: z.infer<typeof deviceManagerCapability.methods.getChildren.output>;
|
|
2213
2221
|
meta: object;
|
|
2214
2222
|
}>;
|
|
2223
|
+
getChildrenBatch: TRPCQueryProcedure<{
|
|
2224
|
+
input: {
|
|
2225
|
+
[x: string]: unknown;
|
|
2226
|
+
} & z.input<typeof deviceManagerCapability.methods.getChildrenBatch.input>;
|
|
2227
|
+
output: z.infer<typeof deviceManagerCapability.methods.getChildrenBatch.output>;
|
|
2228
|
+
meta: object;
|
|
2229
|
+
}>;
|
|
2215
2230
|
getLinkedDevices: TRPCQueryProcedure<{
|
|
2216
2231
|
input: {
|
|
2217
2232
|
[x: string]: unknown;
|
|
@@ -3710,6 +3725,28 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
3710
3725
|
meta: object;
|
|
3711
3726
|
}>;
|
|
3712
3727
|
}>>;
|
|
3728
|
+
logChannels: TRPCBuiltRouter<{
|
|
3729
|
+
ctx: TrpcContext;
|
|
3730
|
+
meta: object;
|
|
3731
|
+
errorShape: AugmentedErrorShape;
|
|
3732
|
+
transformer: true;
|
|
3733
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
3734
|
+
list: TRPCQueryProcedure<{
|
|
3735
|
+
input: {
|
|
3736
|
+
nodeId?: string | undefined;
|
|
3737
|
+
addonId?: string | undefined;
|
|
3738
|
+
} | undefined;
|
|
3739
|
+
output: z.infer<typeof logChannelsCapability.methods.list.output>;
|
|
3740
|
+
meta: object;
|
|
3741
|
+
}>;
|
|
3742
|
+
apply: TRPCMutationProcedure<{
|
|
3743
|
+
input: {
|
|
3744
|
+
[x: string]: unknown;
|
|
3745
|
+
} & z.input<typeof logChannelsCapability.methods.apply.input>;
|
|
3746
|
+
output: z.infer<typeof logChannelsCapability.methods.apply.output>;
|
|
3747
|
+
meta: object;
|
|
3748
|
+
}>;
|
|
3749
|
+
}>>;
|
|
3713
3750
|
loginMethod: TRPCBuiltRouter<{
|
|
3714
3751
|
ctx: TrpcContext;
|
|
3715
3752
|
meta: object;
|
|
@@ -6775,6 +6812,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6775
6812
|
output: z.infer<typeof settingsStoreCapability.methods.count.output>;
|
|
6776
6813
|
meta: object;
|
|
6777
6814
|
}>;
|
|
6815
|
+
aggregate: TRPCQueryProcedure<{
|
|
6816
|
+
input: {
|
|
6817
|
+
[x: string]: unknown;
|
|
6818
|
+
} & z.input<typeof settingsStoreCapability.methods.aggregate.input>;
|
|
6819
|
+
output: z.infer<typeof settingsStoreCapability.methods.aggregate.output>;
|
|
6820
|
+
meta: object;
|
|
6821
|
+
}>;
|
|
6778
6822
|
histogram: TRPCQueryProcedure<{
|
|
6779
6823
|
input: {
|
|
6780
6824
|
[x: string]: unknown;
|
|
@@ -71,6 +71,7 @@ export { llmCapability } from '../capabilities/llm.cap.js';
|
|
|
71
71
|
export { llmRuntimeCapability } from '../capabilities/llm-runtime.cap.js';
|
|
72
72
|
export { localNetworkCapability } from '../capabilities/local-network.cap.js';
|
|
73
73
|
export { lockControlCapability } from '../capabilities/lock-control.cap.js';
|
|
74
|
+
export { logChannelsCapability } from '../capabilities/log-channels.cap.js';
|
|
74
75
|
export { logDestinationCapability } from '../capabilities/log-destination.cap.js';
|
|
75
76
|
export { loginMethodCapability } from '../capabilities/login-method.cap.js';
|
|
76
77
|
export { mediaPlayerCapability } from '../capabilities/media-player.cap.js';
|
|
@@ -221,6 +222,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
221
222
|
readonly llmRuntime: "llm-runtime";
|
|
222
223
|
readonly localNetwork: "local-network";
|
|
223
224
|
readonly lockControl: "lock-control";
|
|
225
|
+
readonly logChannels: "log-channels";
|
|
224
226
|
readonly logDestination: "log-destination";
|
|
225
227
|
readonly loginMethod: "login-method";
|
|
226
228
|
readonly mediaPlayer: "media-player";
|
|
@@ -384,6 +386,7 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
384
386
|
readonly llmRuntime: TRouter;
|
|
385
387
|
readonly localNetwork: TRouter;
|
|
386
388
|
readonly lockControl: TRouter;
|
|
389
|
+
readonly logChannels: TRouter;
|
|
387
390
|
readonly logDestination: TRouter;
|
|
388
391
|
readonly loginMethod: TRouter;
|
|
389
392
|
readonly mediaPlayer: TRouter;
|
|
@@ -465,8 +468,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
465
468
|
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", "camera-credentials", "camera-pipeline-config", "camera-streams", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "core-blocks", "cover", "day-night", "decoder", "detection-pipeline", "device-adoption", "device-discovery", "device-manager", "device-ops", "device-state", "device-status", "doorbell", "enum-sensor", "event-emitter", "events", "face-gallery", "fan-control", "feature-probe", "filesystem-browse", "flood", "gas", "humidifier", "humidity-sensor", "image", "image-settings", "integrations", "intercom", "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", "network-quality", "nodes", "notification-rules", "notifier", "numeric-sensor", "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", "recording-export", "scene-monitor", "script-runner", "server-management", "settings-store", "smoke", "snapshot", "sso-bridge", "storage", "storage-migration", "stream-broker", "stream-catalog", "stream-params", "switch", "system", "tamper", "temperature-sensor", "terminal-session", "toast", "update", "user-management", "vacuum-control", "valve", "vector-store", "vibration", "videoclips", "viewer-ui", "water-heater", "weather", "webrtc-session", "zone-analytics", "zone-rules", "zones"];
|
|
466
469
|
/** Union of singleton capability names (literal string union). */
|
|
467
470
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
468
|
-
/** Capability names whose mode is `collection` (
|
|
469
|
-
export declare const COLLECTION_CAPABILITY_NAMES: readonly ["addon-pages-source", "addon-routes", "addon-widgets-source", "auth-provider", "broker", "connection-test", "custom-model-registry", "data-store-provider", "device-export", "device-provider", "embedding-encoder", "llm", "log-destination", "login-method", "mesh-network", "mqtt-broker", "network-access", "notification-output", "oauth-integration", "smtp-provider", "storage-evictable", "storage-provider", "turn-provider", "user-passkeys"];
|
|
471
|
+
/** Capability names whose mode is `collection` (25 caps). */
|
|
472
|
+
export declare const COLLECTION_CAPABILITY_NAMES: readonly ["addon-pages-source", "addon-routes", "addon-widgets-source", "auth-provider", "broker", "connection-test", "custom-model-registry", "data-store-provider", "device-export", "device-provider", "embedding-encoder", "llm", "log-channels", "log-destination", "login-method", "mesh-network", "mqtt-broker", "network-access", "notification-output", "oauth-integration", "smtp-provider", "storage-evictable", "storage-provider", "turn-provider", "user-passkeys"];
|
|
470
473
|
/** Union of collection capability names (literal string union). */
|
|
471
474
|
export type CollectionCapabilityName = typeof COLLECTION_CAPABILITY_NAMES[number];
|
|
472
475
|
/** Capability mode lookup at runtime — mirrors the `.cap.ts` definitions. */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* barrel (`ALL_CAPABILITY_DEFINITIONS`), which would cost ~144MB RSS per
|
|
9
9
|
* forked runner. See docs/decisions/adr-0028.md.
|
|
10
10
|
*
|
|
11
|
-
* Coverage:
|
|
11
|
+
* Coverage: 18 collection caps, 31 array methods.
|
|
12
12
|
*/
|
|
13
13
|
export declare const COLLECTION_ARRAY_METHODS: Readonly<Record<string, readonly string[]>>;
|
|
14
14
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 971 method paths across 124 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
10
|
-
*
|
|
9
|
+
* Coverage: 345 methods carry a device reference, of which
|
|
10
|
+
* 129 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
13
13
|
* a numeric device field (targets[].deviceId) are all mapped; the matcher
|
|
@@ -68,7 +68,7 @@ export interface SystemProxy {
|
|
|
68
68
|
readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'supportsCodec' | 'getInfo' | 'createSession' | 'destroySession' | 'pushPacket' | 'openStream' | 'pullFrames' | 'pullHandles' | 'getFrame' | 'getShmStats' | 'updateConfig' | 'getStats' | 'listActiveSessions' | 'reprobeHwaccel'>;
|
|
69
69
|
readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
|
|
70
70
|
readonly deviceExport: Pick<InferProvider<typeof deviceExportCapability>, 'getStatus' | 'listSupportedDeviceKinds' | 'listExposedDevices' | 'exposeDevice' | 'unexposeDevice'>;
|
|
71
|
-
readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'getRoleDisplayDefaults' | 'setRoleDisplayDefaults' | 'listLocations' | 'addLocation' | 'removeLocation' | 'listPersistedByAddon' | 'listAll' | 'getChildren' | 'getLinkedDevicesBatch' | 'removeByIntegration' | 'getBindingsBatch' | 'getAllBindings' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidateFilters' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionStartJob' | 'adoptionListJobs' | 'adoptionCancelJob' | 'adoptionResync' | 'discoveryProviders' | 'discoverAllProviders' | 'discoverProvider' | 'providerCreationType' | 'providerDiscoveryParamsSchema' | 'getDeviceStatusAggregateBatch'>;
|
|
71
|
+
readonly deviceManager: Pick<InferProvider<typeof deviceManagerCapability>, 'allocateDeviceId' | 'registerDevice' | 'removeDevice' | 'persistConfig' | 'getRoleDisplayDefaults' | 'setRoleDisplayDefaults' | 'listLocations' | 'addLocation' | 'removeLocation' | 'listPersistedByAddon' | 'listAll' | 'getChildren' | 'getChildrenBatch' | 'getLinkedDevicesBatch' | 'removeByIntegration' | 'getBindingsBatch' | 'getAllBindings' | 'listWrappersForCap' | 'listBindableCapsForDeviceType' | 'discoverDevices' | 'adoptDevice' | 'getCreationSchema' | 'createDevice' | 'testCreationField' | 'adoptionListCandidateFilters' | 'adoptionListCandidates' | 'adoptionRefresh' | 'adoptionAdopt' | 'adoptionRelease' | 'adoptionStartJob' | 'adoptionListJobs' | 'adoptionCancelJob' | 'adoptionResync' | 'discoveryProviders' | 'discoverAllProviders' | 'discoverProvider' | 'providerCreationType' | 'providerDiscoveryParamsSchema' | 'getDeviceStatusAggregateBatch'>;
|
|
72
72
|
readonly deviceProvider: Pick<InferProvider<typeof deviceProviderCapability>, 'start' | 'stop' | 'getStatus' | 'getDevices' | 'supportsDiscovery' | 'discoverDevices' | 'getDiscoveryParamsSchema' | 'getManualCreationType' | 'adoptDiscoveredDevice' | 'supportsManualCreation' | 'getChildCreationSchema' | 'createDevice' | 'testCreationField'>;
|
|
73
73
|
readonly deviceState: Pick<InferProvider<typeof deviceStateCapability>, 'getAllSnapshots'>;
|
|
74
74
|
readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'removeSample' | 'getFaceMedia' | 'assignFace' | 'unassignFace' | 'deleteFace' | 'assignFaces' | 'unassignFaces' | 'suggestFaceClusters'>;
|
|
@@ -90,7 +90,7 @@ export interface SystemProxy {
|
|
|
90
90
|
readonly recording: Pick<InferProvider<typeof recordingCapability>, 'getStorageUsage' | 'listOpsLog' | 'pauseForStorageMigration' | 'resumeForStorageMigration' | 'refreshStorageLocationsForMigration' | 'startStorageMigrationMove' | 'getStorageMigrationMoveStatus' | 'cancelStorageMigrationMove' | 'relocateFootage' | 'listRelocateJobs' | 'cancelRelocateJob' | 'planStorageRebalance' | 'startStorageRebalance'>;
|
|
91
91
|
readonly recordingExport: Pick<InferProvider<typeof recordingExportCapability>, 'createExport' | 'getExport' | 'cancelExport' | 'deleteExport' | 'getDownloadUrl' | 'readExportBytes'>;
|
|
92
92
|
readonly serverManagement: Pick<InferProvider<typeof serverManagementCapability>, 'getServerPackageStatus' | 'checkServerUpdate' | 'applyServerUpdate' | 'rollbackServerUpdate' | 'restartServer'>;
|
|
93
|
-
readonly settingsStore: Pick<InferProvider<typeof settingsStoreCapability>, 'get' | 'set' | 'query' | 'insert' | 'update' | 'delete' | 'deleteWhere' | 'updateWhere' | 'count' | 'histogram' | 'isEmpty' | 'declareCollection'>;
|
|
93
|
+
readonly settingsStore: Pick<InferProvider<typeof settingsStoreCapability>, 'get' | 'set' | 'query' | 'insert' | 'update' | 'delete' | 'deleteWhere' | 'updateWhere' | 'count' | 'aggregate' | 'histogram' | 'isEmpty' | 'declareCollection'>;
|
|
94
94
|
readonly storage: Pick<InferProvider<typeof storageCapability>, 'resolve' | 'write' | 'read' | 'exists' | 'list' | 'delete' | 'getAvailableSpace' | 'beginUpload' | 'writeChunk' | 'finalizeUpload' | 'abortUpload' | 'beginDownload' | 'readChunk' | 'endDownload' | 'listLocations' | 'getDefaultLocation' | 'listLocationDeclarations' | 'upsertLocation' | 'deleteLocation' | 'testLocation' | 'listProviders' | 'testConfig'>;
|
|
95
95
|
readonly storageMigration: Pick<InferProvider<typeof storageMigrationCapability>, 'plan' | 'start' | 'status' | 'cancel'>;
|
|
96
96
|
readonly streamBroker: Pick<InferProvider<typeof streamBrokerCapability>, 'fetchEventMedia' | 'listAllCameraStreams' | 'listAllProfileSlots' | 'getBrokerStats' | 'probeStream' | 'listClients' | 'killClient' | 'getStreamUrl' | 'getStreamWithCodec' | 'releaseStreamWithCodec' | 'acquireEgressTranscode' | 'releaseEgressTranscode' | 'subscribeAudioChunks' | 'pullAudioChunks' | 'unsubscribeAudioChunks' | 'subscribeFrames' | 'pullFrameHandles' | 'unsubscribeFrames' | 'setPreBufferDuration' | 'getPreBufferInfo' | 'getRtspPort' | 'getAllRtspEntries' | 'getRtspEntry' | 'regenerateRtspToken' | 'setRtspEnabled' | 'isRtspEnabled'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,11 @@ export type * from './interfaces/kernel-abstractions.js';
|
|
|
59
59
|
export type * from './interfaces/lifecycle.js';
|
|
60
60
|
export type * from './interfaces/logging.js';
|
|
61
61
|
export { LOG_LEVEL_RANK, logLevelAtMost } from './interfaces/logging.js';
|
|
62
|
+
export type { LogChannelDescriptor, LogChannelWindow, } from './logging/log-channel.js';
|
|
63
|
+
export { LogChannelDescriptorSchema, LogChannelGate, LogChannelLevelSchema, LogChannelRegistry, LogChannelWindowSchema, } from './logging/log-channel.js';
|
|
64
|
+
export type { LogChannelApplyInput, LogChannelApplyOut, LogChannelsProviderHandle, LogChannelsProviderOptions, } from './logging/log-channel-provider.js';
|
|
65
|
+
export { createLogChannelsProvider, LOG_CHANNEL_TICK_MS } from './logging/log-channel-provider.js';
|
|
66
|
+
export { __resetLogChannelRegistryForTests, declareLogChannel, getLogChannelRegistry, } from './logging/log-channel.singleton.js';
|
|
62
67
|
export type * from './interfaces/metrics-provider.js';
|
|
63
68
|
export type * from './interfaces/network.js';
|
|
64
69
|
export type * from './interfaces/network-quality.js';
|