@camstack/addon-auth 1.2.92 → 1.2.94

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.
@@ -7741,6 +7741,35 @@ var CameraSwitchGroupSchema = object({
7741
7741
  /** Unix ms when the group was composed server-side. */
7742
7742
  fetchedAt: number()
7743
7743
  });
7744
+ /** One archived note — the operator's words plus enough context to find what
7745
+ * they were looking at, after the track itself is gone. */
7746
+ var ArchivedDebugNoteSchema = object({
7747
+ /** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
7748
+ * same sentence about the same track lands on the row already there. */
7749
+ id: string(),
7750
+ /** The operator's own words, verbatim. */
7751
+ note: string(),
7752
+ /** The camera. Required — every question here is asked per-camera. */
7753
+ deviceId: number().int(),
7754
+ /** The track the note was written on. PROVENANCE, not ownership: the track
7755
+ * is expected to be gone, and this row is not a reference to it. */
7756
+ sourceTrackId: string(),
7757
+ /** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
7758
+ archivedAt: number().int(),
7759
+ /** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
7760
+ trackStartedAt: number().int().nullable(),
7761
+ /** The track's detector class (`person`, `car`, …); `null` when unknown. */
7762
+ trackClass: string().nullable(),
7763
+ /** The track's display label at review time; `null` when it had none. */
7764
+ trackLabel: string().nullable()
7765
+ });
7766
+ /** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
7767
+ var ArchivedDebugNoteQueryInputSchema = object({
7768
+ /** Restrict to a single camera; omit for every row. */
7769
+ deviceId: number().int().optional(),
7770
+ /** Max rows returned, newest-first. */
7771
+ limit: number().int().min(1).max(1e3).optional()
7772
+ });
7744
7773
  /**
7745
7774
  * Ops-log — the durable, append-only operations audit shared by the
7746
7775
  * recordings and events management surfaces.
@@ -15984,16 +16013,16 @@ DeviceType.AlarmPanel, method(object({
15984
16013
  code: string().min(1).optional()
15985
16014
  }), _void(), {
15986
16015
  kind: "mutation",
15987
- auth: "admin"
16016
+ auth: "protected"
15988
16017
  }), method(object({
15989
16018
  deviceId: number().int().nonnegative(),
15990
16019
  code: string().min(1).optional()
15991
16020
  }), _void(), {
15992
16021
  kind: "mutation",
15993
- auth: "admin"
16022
+ auth: "protected"
15994
16023
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
15995
16024
  kind: "mutation",
15996
- auth: "admin"
16025
+ auth: "protected"
15997
16026
  });
15998
16027
  /**
15999
16028
  * Shared geometry vocabulary for on-frame shape caps — privacy-mask,
@@ -19895,7 +19924,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19895
19924
  deviceId: number(),
19896
19925
  trackId: string(),
19897
19926
  flags: TrackFlagsPatchSchema
19898
- }), TrackFlagsSchema, { kind: "mutation" }), method(object({}), EventStoreFootprintSchema, {
19927
+ }), TrackFlagsSchema, { kind: "mutation" }), method(ArchivedDebugNoteQueryInputSchema, array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }), method(object({}), EventStoreFootprintSchema, {
19899
19928
  kind: "query",
19900
19929
  auth: "admin"
19901
19930
  }), method(object({ deviceId: number().int().optional() }), EventMediaKindBreakdownSchema, {
@@ -23683,7 +23712,7 @@ DeviceType.Light, method(object({
23683
23712
  percentage: number().min(0).max(100)
23684
23713
  }), _void(), {
23685
23714
  kind: "mutation",
23686
- auth: "admin"
23715
+ auth: "protected"
23687
23716
  }), object({
23688
23717
  deviceId: number(),
23689
23718
  percentage: number().min(0).max(100),
@@ -23691,7 +23720,7 @@ DeviceType.Light, method(object({
23691
23720
  });
23692
23721
  DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
23693
23722
  kind: "mutation",
23694
- auth: "admin"
23723
+ auth: "protected"
23695
23724
  });
23696
23725
  /**
23697
23726
  * camera-credentials — device-scoped cap exposing the camera's network
@@ -23850,50 +23879,50 @@ DeviceType.Thermostat, DeviceType.Climate, method(object({
23850
23879
  mode: HvacModeSchema
23851
23880
  }), _void(), {
23852
23881
  kind: "mutation",
23853
- auth: "admin"
23882
+ auth: "protected"
23854
23883
  }), method(object({
23855
23884
  deviceId: number().int().nonnegative(),
23856
23885
  fanMode: string().min(1)
23857
23886
  }), _void(), {
23858
23887
  kind: "mutation",
23859
- auth: "admin"
23888
+ auth: "protected"
23860
23889
  }), method(object({
23861
23890
  deviceId: number().int().nonnegative(),
23862
23891
  preset: string().min(1)
23863
23892
  }), _void(), {
23864
23893
  kind: "mutation",
23865
- auth: "admin"
23894
+ auth: "protected"
23866
23895
  }), method(object({
23867
23896
  deviceId: number().int().nonnegative(),
23868
23897
  target: number()
23869
23898
  }), _void(), {
23870
23899
  kind: "mutation",
23871
- auth: "admin"
23900
+ auth: "protected"
23872
23901
  }), method(object({
23873
23902
  deviceId: number().int().nonnegative(),
23874
23903
  targetLow: number(),
23875
23904
  targetHigh: number()
23876
23905
  }), _void(), {
23877
23906
  kind: "mutation",
23878
- auth: "admin"
23907
+ auth: "protected"
23879
23908
  }), method(object({
23880
23909
  deviceId: number().int().nonnegative(),
23881
23910
  targetHumidity: number().min(0).max(100)
23882
23911
  }), _void(), {
23883
23912
  kind: "mutation",
23884
- auth: "admin"
23913
+ auth: "protected"
23885
23914
  }), method(object({
23886
23915
  deviceId: number().int().nonnegative(),
23887
23916
  on: boolean()
23888
23917
  }), _void(), {
23889
23918
  kind: "mutation",
23890
- auth: "admin"
23919
+ auth: "protected"
23891
23920
  }), method(object({
23892
23921
  deviceId: number().int().nonnegative(),
23893
23922
  on: boolean()
23894
23923
  }), _void(), {
23895
23924
  kind: "mutation",
23896
- auth: "admin"
23925
+ auth: "protected"
23897
23926
  });
23898
23927
  /**
23899
23928
  * Color-light cap. Coexists with `switch` (on/off) and `brightness`
@@ -23968,7 +23997,7 @@ DeviceType.Light, method(object({
23968
23997
  color: ColorInputSchema
23969
23998
  }), _void(), {
23970
23999
  kind: "mutation",
23971
- auth: "admin"
24000
+ auth: "protected"
23972
24001
  }), object({
23973
24002
  deviceId: number(),
23974
24003
  mode: _enum([
@@ -24117,7 +24146,7 @@ DeviceType.Control, method(object({
24117
24146
  control: ControlSetValueInputSchema
24118
24147
  }), _void(), {
24119
24148
  kind: "mutation",
24120
- auth: "admin"
24149
+ auth: "protected"
24121
24150
  });
24122
24151
  object({
24123
24152
  /** Lifecycle state of the cover. */
@@ -24138,25 +24167,25 @@ object({
24138
24167
  });
24139
24168
  DeviceType.Cover, method(object({ deviceId: number().int().nonnegative() }), _void(), {
24140
24169
  kind: "mutation",
24141
- auth: "admin"
24170
+ auth: "protected"
24142
24171
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
24143
24172
  kind: "mutation",
24144
- auth: "admin"
24173
+ auth: "protected"
24145
24174
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
24146
24175
  kind: "mutation",
24147
- auth: "admin"
24176
+ auth: "protected"
24148
24177
  }), method(object({
24149
24178
  deviceId: number().int().nonnegative(),
24150
24179
  position: number().min(0).max(100)
24151
24180
  }), _void(), {
24152
24181
  kind: "mutation",
24153
- auth: "admin"
24182
+ auth: "protected"
24154
24183
  }), method(object({
24155
24184
  deviceId: number().int().nonnegative(),
24156
24185
  tiltPosition: number().min(0).max(100)
24157
24186
  }), _void(), {
24158
24187
  kind: "mutation",
24159
- auth: "admin"
24188
+ auth: "protected"
24160
24189
  });
24161
24190
  /**
24162
24191
  * Vendor-neutral day/night (IR-cut) control — the per-camera config cap
@@ -24751,25 +24780,25 @@ DeviceType.Fan, method(object({
24751
24780
  percentage: number().min(0).max(100)
24752
24781
  }), _void(), {
24753
24782
  kind: "mutation",
24754
- auth: "admin"
24783
+ auth: "protected"
24755
24784
  }), method(object({
24756
24785
  deviceId: number().int().nonnegative(),
24757
24786
  preset: string().min(1)
24758
24787
  }), _void(), {
24759
24788
  kind: "mutation",
24760
- auth: "admin"
24789
+ auth: "protected"
24761
24790
  }), method(object({
24762
24791
  deviceId: number().int().nonnegative(),
24763
24792
  direction: FanDirectionSchema
24764
24793
  }), _void(), {
24765
24794
  kind: "mutation",
24766
- auth: "admin"
24795
+ auth: "protected"
24767
24796
  }), method(object({
24768
24797
  deviceId: number().int().nonnegative(),
24769
24798
  oscillating: boolean()
24770
24799
  }), _void(), {
24771
24800
  kind: "mutation",
24772
- auth: "admin"
24801
+ auth: "protected"
24773
24802
  });
24774
24803
  /**
24775
24804
  * Per-device feature/identity probe slice. Holds the runtime-resolved
@@ -24872,19 +24901,19 @@ DeviceType.Humidifier, method(object({
24872
24901
  on: boolean()
24873
24902
  }), _void(), {
24874
24903
  kind: "mutation",
24875
- auth: "admin"
24904
+ auth: "protected"
24876
24905
  }), method(object({
24877
24906
  deviceId: number().int().nonnegative(),
24878
24907
  humidity: number().min(0).max(100)
24879
24908
  }), _void(), {
24880
24909
  kind: "mutation",
24881
- auth: "admin"
24910
+ auth: "protected"
24882
24911
  }), method(object({
24883
24912
  deviceId: number().int().nonnegative(),
24884
24913
  mode: string().min(1)
24885
24914
  }), _void(), {
24886
24915
  kind: "mutation",
24887
- auth: "admin"
24916
+ auth: "protected"
24888
24917
  });
24889
24918
  object({
24890
24919
  /** Current relative humidity, 0..100. */
@@ -25346,13 +25375,13 @@ object({
25346
25375
  });
25347
25376
  DeviceType.LawnMower, method(object({ deviceId: number().int().nonnegative() }), _void(), {
25348
25377
  kind: "mutation",
25349
- auth: "admin"
25378
+ auth: "protected"
25350
25379
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
25351
25380
  kind: "mutation",
25352
- auth: "admin"
25381
+ auth: "protected"
25353
25382
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
25354
25383
  kind: "mutation",
25355
- auth: "admin"
25384
+ auth: "protected"
25356
25385
  });
25357
25386
  /**
25358
25387
  * local-network — hub-only singleton.
@@ -25612,16 +25641,16 @@ DeviceType.Lock, method(object({
25612
25641
  code: string().min(1).optional()
25613
25642
  }), _void(), {
25614
25643
  kind: "mutation",
25615
- auth: "admin"
25644
+ auth: "protected"
25616
25645
  }), method(object({
25617
25646
  deviceId: number().int().nonnegative(),
25618
25647
  code: string().min(1).optional()
25619
25648
  }), _void(), {
25620
25649
  kind: "mutation",
25621
- auth: "admin"
25650
+ auth: "protected"
25622
25651
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
25623
25652
  kind: "mutation",
25624
- auth: "admin"
25653
+ auth: "protected"
25625
25654
  });
25626
25655
  /**
25627
25656
  * Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
@@ -25695,55 +25724,55 @@ object({
25695
25724
  });
25696
25725
  DeviceType.MediaPlayer, method(object({ deviceId: number().int().nonnegative() }), _void(), {
25697
25726
  kind: "mutation",
25698
- auth: "admin"
25727
+ auth: "protected"
25699
25728
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
25700
25729
  kind: "mutation",
25701
- auth: "admin"
25730
+ auth: "protected"
25702
25731
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
25703
25732
  kind: "mutation",
25704
- auth: "admin"
25733
+ auth: "protected"
25705
25734
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
25706
25735
  kind: "mutation",
25707
- auth: "admin"
25736
+ auth: "protected"
25708
25737
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
25709
25738
  kind: "mutation",
25710
- auth: "admin"
25739
+ auth: "protected"
25711
25740
  }), method(object({
25712
25741
  deviceId: number().int().nonnegative(),
25713
25742
  positionMs: number().int().nonnegative()
25714
25743
  }), _void(), {
25715
25744
  kind: "mutation",
25716
- auth: "admin"
25745
+ auth: "protected"
25717
25746
  }), method(object({
25718
25747
  deviceId: number().int().nonnegative(),
25719
25748
  volumeLevel: number().min(0).max(100)
25720
25749
  }), _void(), {
25721
25750
  kind: "mutation",
25722
- auth: "admin"
25751
+ auth: "protected"
25723
25752
  }), method(object({
25724
25753
  deviceId: number().int().nonnegative(),
25725
25754
  muted: boolean()
25726
25755
  }), _void(), {
25727
25756
  kind: "mutation",
25728
- auth: "admin"
25757
+ auth: "protected"
25729
25758
  }), method(object({
25730
25759
  deviceId: number().int().nonnegative(),
25731
25760
  shuffle: boolean()
25732
25761
  }), _void(), {
25733
25762
  kind: "mutation",
25734
- auth: "admin"
25763
+ auth: "protected"
25735
25764
  }), method(object({
25736
25765
  deviceId: number().int().nonnegative(),
25737
25766
  repeat: MediaPlayerRepeatSchema
25738
25767
  }), _void(), {
25739
25768
  kind: "mutation",
25740
- auth: "admin"
25769
+ auth: "protected"
25741
25770
  }), method(object({
25742
25771
  deviceId: number().int().nonnegative(),
25743
25772
  source: string().min(1)
25744
25773
  }), _void(), {
25745
25774
  kind: "mutation",
25746
- auth: "admin"
25775
+ auth: "protected"
25747
25776
  }), method(object({
25748
25777
  deviceId: number().int().nonnegative(),
25749
25778
  /** Media identifier / URL. */
@@ -25753,7 +25782,7 @@ DeviceType.MediaPlayer, method(object({ deviceId: number().int().nonnegative() }
25753
25782
  mediaType: string().min(1)
25754
25783
  }), _void(), {
25755
25784
  kind: "mutation",
25756
- auth: "admin"
25785
+ auth: "protected"
25757
25786
  });
25758
25787
  /**
25759
25788
  * mesh-network — collection cap for mesh-VPN providers.
@@ -26919,49 +26948,49 @@ DeviceType.PetFeeder, method(object({
26919
26948
  hopper2: gramsPortion.optional()
26920
26949
  }), _void(), {
26921
26950
  kind: "mutation",
26922
- auth: "admin"
26951
+ auth: "protected"
26923
26952
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
26924
26953
  kind: "mutation",
26925
- auth: "admin"
26954
+ auth: "protected"
26926
26955
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
26927
26956
  kind: "mutation",
26928
- auth: "admin"
26957
+ auth: "protected"
26929
26958
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
26930
26959
  kind: "mutation",
26931
- auth: "admin"
26960
+ auth: "protected"
26932
26961
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
26933
26962
  kind: "mutation",
26934
- auth: "admin"
26963
+ auth: "protected"
26935
26964
  }), method(object({
26936
26965
  deviceId: number().int().nonnegative(),
26937
26966
  soundId: number().int().nonnegative()
26938
26967
  }), _void(), {
26939
26968
  kind: "mutation",
26940
- auth: "admin"
26969
+ auth: "protected"
26941
26970
  }), method(object({
26942
26971
  deviceId: number().int().nonnegative(),
26943
26972
  on: boolean()
26944
26973
  }), _void(), {
26945
26974
  kind: "mutation",
26946
- auth: "admin"
26975
+ auth: "protected"
26947
26976
  }), method(object({
26948
26977
  deviceId: number().int().nonnegative(),
26949
26978
  on: boolean()
26950
26979
  }), _void(), {
26951
26980
  kind: "mutation",
26952
- auth: "admin"
26981
+ auth: "protected"
26953
26982
  }), method(object({
26954
26983
  deviceId: number().int().nonnegative(),
26955
26984
  on: boolean()
26956
26985
  }), _void(), {
26957
26986
  kind: "mutation",
26958
- auth: "admin"
26987
+ auth: "protected"
26959
26988
  }), method(object({
26960
26989
  deviceId: number().int().nonnegative(),
26961
26990
  level: number().int().nonnegative()
26962
26991
  }), _void(), {
26963
26992
  kind: "mutation",
26964
- auth: "admin"
26993
+ auth: "protected"
26965
26994
  });
26966
26995
  var VehicleSchema = object({
26967
26996
  id: string(),
@@ -28748,7 +28777,7 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, method(object({
28748
28777
  on: boolean()
28749
28778
  }), _void(), {
28750
28779
  kind: "mutation",
28751
- auth: "admin"
28780
+ auth: "protected"
28752
28781
  }), object({
28753
28782
  deviceId: number(),
28754
28783
  on: boolean(),
@@ -29605,25 +29634,25 @@ object({
29605
29634
  });
29606
29635
  DeviceType.Vacuum, method(object({ deviceId: number().int().nonnegative() }), _void(), {
29607
29636
  kind: "mutation",
29608
- auth: "admin"
29637
+ auth: "protected"
29609
29638
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
29610
29639
  kind: "mutation",
29611
- auth: "admin"
29640
+ auth: "protected"
29612
29641
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
29613
29642
  kind: "mutation",
29614
- auth: "admin"
29643
+ auth: "protected"
29615
29644
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
29616
29645
  kind: "mutation",
29617
- auth: "admin"
29646
+ auth: "protected"
29618
29647
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
29619
29648
  kind: "mutation",
29620
- auth: "admin"
29649
+ auth: "protected"
29621
29650
  }), method(object({
29622
29651
  deviceId: number().int().nonnegative(),
29623
29652
  speed: string().min(1)
29624
29653
  }), _void(), {
29625
29654
  kind: "mutation",
29626
- auth: "admin"
29655
+ auth: "protected"
29627
29656
  });
29628
29657
  object({
29629
29658
  /** Lifecycle state of the valve. */
@@ -29642,19 +29671,19 @@ object({
29642
29671
  });
29643
29672
  DeviceType.Valve, method(object({ deviceId: number().int().nonnegative() }), _void(), {
29644
29673
  kind: "mutation",
29645
- auth: "admin"
29674
+ auth: "protected"
29646
29675
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
29647
29676
  kind: "mutation",
29648
- auth: "admin"
29677
+ auth: "protected"
29649
29678
  }), method(object({ deviceId: number().int().nonnegative() }), _void(), {
29650
29679
  kind: "mutation",
29651
- auth: "admin"
29680
+ auth: "protected"
29652
29681
  }), method(object({
29653
29682
  deviceId: number().int().nonnegative(),
29654
29683
  position: number().min(0).max(100)
29655
29684
  }), _void(), {
29656
29685
  kind: "mutation",
29657
- auth: "admin"
29686
+ auth: "protected"
29658
29687
  });
29659
29688
  object({
29660
29689
  detected: boolean(),
@@ -29688,19 +29717,19 @@ DeviceType.WaterHeater, method(object({
29688
29717
  temp: number().finite()
29689
29718
  }), _void(), {
29690
29719
  kind: "mutation",
29691
- auth: "admin"
29720
+ auth: "protected"
29692
29721
  }), method(object({
29693
29722
  deviceId: number().int().nonnegative(),
29694
29723
  mode: string().min(1)
29695
29724
  }), _void(), {
29696
29725
  kind: "mutation",
29697
- auth: "admin"
29726
+ auth: "protected"
29698
29727
  }), method(object({
29699
29728
  deviceId: number().int().nonnegative(),
29700
29729
  on: boolean()
29701
29730
  }), _void(), {
29702
29731
  kind: "mutation",
29703
- auth: "admin"
29732
+ auth: "protected"
29704
29733
  });
29705
29734
  object({
29706
29735
  /** Verbatim HA condition state (`sunny`, `cloudy`, `rainy`, …). Null
@@ -33328,6 +33357,12 @@ Object.freeze({
33328
33357
  addonId: null,
33329
33358
  access: "view"
33330
33359
  },
33360
+ "pipelineAnalytics.listArchivedDebugNotes": {
33361
+ capName: "pipeline-analytics",
33362
+ capScope: "device",
33363
+ addonId: null,
33364
+ access: "view"
33365
+ },
33331
33366
  "pipelineAnalytics.listEventKinds": {
33332
33367
  capName: "pipeline-analytics",
33333
33368
  capScope: "device",
@@ -37115,6 +37150,11 @@ Object.freeze({
37115
37150
  form: "array",
37116
37151
  optional: true
37117
37152
  }],
37153
+ "pipelineAnalytics.listArchivedDebugNotes": [{
37154
+ name: "deviceId",
37155
+ form: "single",
37156
+ optional: true
37157
+ }],
37118
37158
  "pipelineAnalytics.listEventKinds": [{
37119
37159
  name: "deviceId",
37120
37160
  form: "single",