@camstack/system 1.2.293 → 1.2.295

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.
Files changed (56) hide show
  1. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  2. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  3. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  4. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  5. package/dist/builtins/alerts/alerts.addon.js +1 -1
  6. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  7. package/dist/builtins/autotrack/index.js +1 -1
  8. package/dist/builtins/autotrack/index.mjs +1 -1
  9. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
  10. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
  11. package/dist/builtins/camera-grid/index.js +1 -1
  12. package/dist/builtins/camera-grid/index.mjs +1 -1
  13. package/dist/builtins/console-logging/index.js +1 -1
  14. package/dist/builtins/console-logging/index.mjs +1 -1
  15. package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
  16. package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
  17. package/dist/builtins/device-manager/device-aggregation.d.ts +0 -19
  18. package/dist/builtins/device-manager/device-manager.addon.js +10 -2
  19. package/dist/builtins/device-manager/device-manager.addon.mjs +10 -2
  20. package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
  21. package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
  22. package/dist/builtins/hub-forwarder/index.js +1 -1
  23. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  24. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  25. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  26. package/dist/builtins/local-auth/local-auth.addon.js +1 -1
  27. package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
  28. package/dist/builtins/local-network/local-network.addon.js +1 -1
  29. package/dist/builtins/local-network/local-network.addon.mjs +1 -1
  30. package/dist/builtins/loki-logging/index.js +1 -1
  31. package/dist/builtins/loki-logging/index.mjs +1 -1
  32. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  33. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  34. package/dist/builtins/platform-probe/index.js +1 -1
  35. package/dist/builtins/platform-probe/index.mjs +1 -1
  36. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  37. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  38. package/dist/builtins/snapshot/index.js +1 -1
  39. package/dist/builtins/snapshot/index.mjs +1 -1
  40. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  41. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  42. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
  43. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
  44. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  45. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  46. package/dist/builtins/system-config/system-config.addon.js +1 -1
  47. package/dist/builtins/system-config/system-config.addon.mjs +1 -1
  48. package/dist/builtins/winston-logging/index.js +1 -1
  49. package/dist/builtins/winston-logging/index.mjs +1 -1
  50. package/dist/{dist-CrL3PV53.js → dist-C-fXee7n.js} +173 -51
  51. package/dist/{dist-tccneRF3.mjs → dist-D1_rTUOS.mjs} +173 -51
  52. package/dist/index.js +1 -1
  53. package/dist/index.mjs +1 -1
  54. package/dist/{retired-settings-keys-BrOWH5-B.js → retired-settings-keys-BJbgHvQf.js} +1 -1
  55. package/dist/{retired-settings-keys-CcNuGSJ0.mjs → retired-settings-keys-jivjXc-s.mjs} +1 -1
  56. package/package.json +1 -1
@@ -691,7 +691,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
691
691
  return EventCategory;
692
692
  }({});
693
693
  //#endregion
694
- //#region ../types/dist/sleep-pM_J7YnY.mjs
694
+ //#region ../types/dist/sleep-D_4W7xuQ.mjs
695
695
  /**
696
696
  * The audio chunk plane's byte format, and the ONE expansion from a coded
697
697
  * window to float samples (D455).
@@ -3337,7 +3337,10 @@ var deviceOpsCapability = {
3337
3337
  setConfig: method(zod.z.object({
3338
3338
  deviceId: zod.z.number(),
3339
3339
  values: zod.z.record(zod.z.string(), zod.z.unknown())
3340
- }), zod.z.void(), { kind: "mutation" }),
3340
+ }), zod.z.void(), {
3341
+ kind: "mutation",
3342
+ auth: "admin"
3343
+ }),
3341
3344
  /**
3342
3345
  * Invoke a device custom action on a forked/remote device (the
3343
3346
  * cross-process transport for `IDevice.runDeviceAction`). Mirrors
@@ -3354,7 +3357,10 @@ var deviceOpsCapability = {
3354
3357
  * (close sockets, stop background tasks, …). The device-manager still
3355
3358
  * performs its own persistence cleanup before/after this call.
3356
3359
  */
3357
- removeDevice: method(zod.z.object({ deviceId: zod.z.number() }), zod.z.void(), { kind: "mutation" }),
3360
+ removeDevice: method(zod.z.object({ deviceId: zod.z.number() }), zod.z.void(), {
3361
+ kind: "mutation",
3362
+ auth: "admin"
3363
+ }),
3358
3364
  /**
3359
3365
  * Build the ConfigUISchema (FormBuilder input shape) from the device's
3360
3366
  * Zod config schema. Runs on the worker that owns the IDevice so the
@@ -8989,7 +8995,7 @@ var brokerCapability = {
8989
8995
  }),
8990
8996
  /** Read the broker's cached state for a key. Returns `null` when
8991
8997
  * unknown to the broker (never published / unknown entity). */
8992
- getState: method(GetStateInputSchema, zod.z.unknown().nullable()),
8998
+ getState: method(GetStateInputSchema, zod.z.unknown().nullable(), { auth: "admin" }),
8993
8999
  /** Status method — explicit registration with a `z.void()` input so
8994
9000
  * the codegen-generated tRPC router types its input as
8995
9001
  * `{addonId?: string, nodeId?: string}` (system-scoped collection
@@ -10800,6 +10806,16 @@ var CollectionIndexSchema = zod.z.object({
10800
10806
  * namespace, or none. Making the door enforce it is tracked separately —
10801
10807
  * it renames tables, so it needs a migration.
10802
10808
  *
10809
+ * **So every method is `auth: 'admin'` (D634).** Because nothing scopes a
10810
+ * call to its caller, a `protected` method here was a raw, unredacted read
10811
+ * (and write) of every addon's collections for any role holding
10812
+ * `category:system` — which is every role: a `viewer` could read every
10813
+ * notifier token in plaintext from `notifiers:notification-targets`. No
10814
+ * browser or app client calls this cap. Addons are not affected: an
10815
+ * addon's `ctx.api` cap call is resolved to the provider directly and never
10816
+ * enters the tRPC router (so the tier gates sessions and tokens, never
10817
+ * addons), and the hub itself calls it through the capability registry.
10818
+ *
10803
10819
  * - `{ collection: 'addon-settings' }` → table `addon-settings`
10804
10820
  * - `{ namespace: 'my-addon', collection: 'addon-settings' }` →
10805
10821
  * table `my-addon:addon-settings`
@@ -10821,14 +10837,17 @@ var settingsStoreCapability = {
10821
10837
  namespace: zod.z.string().optional(),
10822
10838
  collection: zod.z.string(),
10823
10839
  key: zod.z.string()
10824
- }), zod.z.unknown()),
10840
+ }), zod.z.unknown(), { auth: "admin" }),
10825
10841
  /** Set a value by key in a collection (upsert). */
10826
10842
  set: method(zod.z.object({
10827
10843
  namespace: zod.z.string().optional(),
10828
10844
  collection: zod.z.string(),
10829
10845
  key: zod.z.string(),
10830
10846
  value: zod.z.unknown()
10831
- }), zod.z.void(), { kind: "mutation" }),
10847
+ }), zod.z.void(), {
10848
+ kind: "mutation",
10849
+ auth: "admin"
10850
+ }),
10832
10851
  /**
10833
10852
  * Rows matching a filter.
10834
10853
  *
@@ -10849,7 +10868,7 @@ var settingsStoreCapability = {
10849
10868
  collection: zod.z.string(),
10850
10869
  filter: QueryFilterSchema.optional(),
10851
10870
  columns: zod.z.array(zod.z.string()).readonly().optional()
10852
- }), zod.z.array(SettingsRecordSchema).readonly()),
10871
+ }), zod.z.array(SettingsRecordSchema).readonly(), { auth: "admin" }),
10853
10872
  /**
10854
10873
  * Make a SLOT hold this row — insert it, or update whatever already
10855
10874
  * occupies the slot — and answer with the id the row HAS.
@@ -10902,7 +10921,10 @@ var settingsStoreCapability = {
10902
10921
  }), zod.z.object({
10903
10922
  /** The id the row HAS: assigned by SQLite on an insert, or the existing
10904
10923
  * row's own id on an update. */
10905
- id: zod.z.union([zod.z.string(), zod.z.number()]) }), { kind: "mutation" }),
10924
+ id: zod.z.union([zod.z.string(), zod.z.number()]) }), {
10925
+ kind: "mutation",
10926
+ auth: "admin"
10927
+ }),
10906
10928
  /** Insert a new record. */
10907
10929
  insert: method(zod.z.object({
10908
10930
  namespace: zod.z.string().optional(),
@@ -10917,7 +10939,10 @@ id: zod.z.union([zod.z.string(), zod.z.number()]) }), { kind: "mutation" }),
10917
10939
  * for an absent one, or the ROWID SQLite assigned on an `INTEGER`
10918
10940
  * primary key — which is the only place an auto key is knowable.
10919
10941
  */
10920
- id: zod.z.union([zod.z.string(), zod.z.number()]) }), { kind: "mutation" }),
10942
+ id: zod.z.union([zod.z.string(), zod.z.number()]) }), {
10943
+ kind: "mutation",
10944
+ auth: "admin"
10945
+ }),
10921
10946
  /**
10922
10947
  * Insert MANY records in ONE transaction, returning how many landed.
10923
10948
  *
@@ -10945,20 +10970,29 @@ id: zod.z.union([zod.z.string(), zod.z.number()]) }), { kind: "mutation" }),
10945
10970
  namespace: zod.z.string().optional(),
10946
10971
  collection: zod.z.string(),
10947
10972
  records: zod.z.array(BulkRecordSchema).readonly()
10948
- }), zod.z.object({ inserted: zod.z.number().int() }), { kind: "mutation" }),
10973
+ }), zod.z.object({ inserted: zod.z.number().int() }), {
10974
+ kind: "mutation",
10975
+ auth: "admin"
10976
+ }),
10949
10977
  /** Update an existing record by ID. */
10950
10978
  update: method(zod.z.object({
10951
10979
  namespace: zod.z.string().optional(),
10952
10980
  collection: zod.z.string(),
10953
10981
  id: zod.z.string(),
10954
10982
  data: zod.z.record(zod.z.string(), zod.z.unknown())
10955
- }), zod.z.void(), { kind: "mutation" }),
10983
+ }), zod.z.void(), {
10984
+ kind: "mutation",
10985
+ auth: "admin"
10986
+ }),
10956
10987
  /** Delete a record by key/ID. */
10957
10988
  delete: method(zod.z.object({
10958
10989
  namespace: zod.z.string().optional(),
10959
10990
  collection: zod.z.string(),
10960
10991
  key: zod.z.string()
10961
- }), zod.z.void(), { kind: "mutation" }),
10992
+ }), zod.z.void(), {
10993
+ kind: "mutation",
10994
+ auth: "admin"
10995
+ }),
10962
10996
  /**
10963
10997
  * Delete every record matching `filter`, in ONE statement, returning how
10964
10998
  * many rows went. This exists because its absence made every retention
@@ -10977,7 +11011,10 @@ id: zod.z.union([zod.z.string(), zod.z.number()]) }), { kind: "mutation" }),
10977
11011
  namespace: zod.z.string().optional(),
10978
11012
  collection: zod.z.string(),
10979
11013
  filter: MutationFilterSchema
10980
- }), zod.z.object({ deleted: zod.z.number().int() }), { kind: "mutation" }),
11014
+ }), zod.z.object({ deleted: zod.z.number().int() }), {
11015
+ kind: "mutation",
11016
+ auth: "admin"
11017
+ }),
10981
11018
  /**
10982
11019
  * Apply `data` to every record matching `filter`, in one statement,
10983
11020
  * returning how many rows changed. Same filter contract as
@@ -10988,13 +11025,16 @@ id: zod.z.union([zod.z.string(), zod.z.number()]) }), { kind: "mutation" }),
10988
11025
  collection: zod.z.string(),
10989
11026
  filter: MutationFilterSchema,
10990
11027
  data: zod.z.record(zod.z.string(), zod.z.unknown())
10991
- }), zod.z.object({ updated: zod.z.number().int() }), { kind: "mutation" }),
11028
+ }), zod.z.object({ updated: zod.z.number().int() }), {
11029
+ kind: "mutation",
11030
+ auth: "admin"
11031
+ }),
10992
11032
  /** Count entries in a collection, optionally filtered. */
10993
11033
  count: method(zod.z.object({
10994
11034
  namespace: zod.z.string().optional(),
10995
11035
  collection: zod.z.string(),
10996
11036
  filter: QueryFilterSchema.optional()
10997
- }), zod.z.number()),
11037
+ }), zod.z.number(), { auth: "admin" }),
10998
11038
  /**
10999
11039
  * `COUNT(*)` and one `SUM` / `MIN` / `MAX` per requested field, in ONE
11000
11040
  * statement, over the rows `filter` selects.
@@ -11020,7 +11060,7 @@ id: zod.z.union([zod.z.string(), zod.z.number()]) }), { kind: "mutation" }),
11020
11060
  collection: zod.z.string(),
11021
11061
  fields: zod.z.array(AggregateFieldSchema).readonly(),
11022
11062
  filter: QueryFilterSchema.optional()
11023
- }), AggregateResultSchema),
11063
+ }), AggregateResultSchema, { auth: "admin" }),
11024
11064
  /** Grouped counts per ((field-origin)/bucketSize) bucket, filtered. */
11025
11065
  histogram: method(zod.z.object({
11026
11066
  namespace: zod.z.string().optional(),
@@ -11032,12 +11072,12 @@ id: zod.z.union([zod.z.string(), zod.z.number()]) }), { kind: "mutation" }),
11032
11072
  }), zod.z.array(zod.z.object({
11033
11073
  bucket: zod.z.number().int(),
11034
11074
  count: zod.z.number().int()
11035
- })).readonly()),
11075
+ })).readonly(), { auth: "admin" }),
11036
11076
  /** Check if a collection is empty. */
11037
11077
  isEmpty: method(zod.z.object({
11038
11078
  namespace: zod.z.string().optional(),
11039
11079
  collection: zod.z.string()
11040
- }), zod.z.boolean()),
11080
+ }), zod.z.boolean(), { auth: "admin" }),
11041
11081
  /**
11042
11082
  * Declare a typed (SQL-backed) collection with explicit columns +
11043
11083
  * indexes. Idempotent: re-declaring an existing collection with the
@@ -11058,7 +11098,10 @@ id: zod.z.union([zod.z.string(), zod.z.number()]) }), { kind: "mutation" }),
11058
11098
  collection: zod.z.string(),
11059
11099
  columns: zod.z.array(CollectionColumnSchema).readonly(),
11060
11100
  indexes: zod.z.array(CollectionIndexSchema).readonly().optional()
11061
- }), zod.z.void(), { kind: "mutation" })
11101
+ }), zod.z.void(), {
11102
+ kind: "mutation",
11103
+ auth: "admin"
11104
+ })
11062
11105
  }
11063
11106
  };
11064
11107
  /**
@@ -12108,8 +12151,14 @@ var deviceExportCapability = {
12108
12151
  getStatus: method(zod.z.void(), DeviceExportStatusSchema),
12109
12152
  listSupportedDeviceKinds: method(zod.z.void(), zod.z.array(DeviceKindSchema)),
12110
12153
  listExposedDevices: method(zod.z.void(), zod.z.array(ExposedDeviceSchema)),
12111
- exposeDevice: method(ExposeInputSchema, zod.z.void(), { kind: "mutation" }),
12112
- unexposeDevice: method(UnexposeInputSchema, zod.z.void(), { kind: "mutation" })
12154
+ exposeDevice: method(ExposeInputSchema, zod.z.void(), {
12155
+ kind: "mutation",
12156
+ auth: "admin"
12157
+ }),
12158
+ unexposeDevice: method(UnexposeInputSchema, zod.z.void(), {
12159
+ kind: "mutation",
12160
+ auth: "admin"
12161
+ })
12113
12162
  }
12114
12163
  };
12115
12164
  /** Wire/storage schema for one icon id. */
@@ -12759,11 +12808,14 @@ var deviceManagerCapability = {
12759
12808
  /** Remove a device from the DB + in-memory registry. Called by DeviceManagerApi.remove(). */
12760
12809
  removeDevice: method(DeviceRemovePayloadSchema, zod.z.void(), { kind: "mutation" }),
12761
12810
  /** Persist device config blob. Called by DeviceConfig.set/setAll(). */
12762
- persistConfig: method(DevicePersistConfigPayloadSchema, zod.z.void(), { kind: "mutation" }),
12811
+ persistConfig: method(DevicePersistConfigPayloadSchema, zod.z.void(), {
12812
+ kind: "mutation",
12813
+ auth: "admin"
12814
+ }),
12763
12815
  /** Load persisted config for a device. Called at restore time. */
12764
- loadConfig: method(zod.z.object({ deviceId: zod.z.number() }), zod.z.record(zod.z.string(), zod.z.unknown())),
12816
+ loadConfig: method(zod.z.object({ deviceId: zod.z.number() }), zod.z.record(zod.z.string(), zod.z.unknown()), { auth: "admin" }),
12765
12817
  /** Load persisted runtime state. Called at device adopt time. */
12766
- loadRuntimeState: method(zod.z.object({ deviceId: zod.z.number() }), zod.z.record(zod.z.string(), zod.z.unknown())),
12818
+ loadRuntimeState: method(zod.z.object({ deviceId: zod.z.number() }), zod.z.record(zod.z.string(), zod.z.unknown()), { auth: "admin" }),
12767
12819
  /** Load operator-organisational meta surface for a device. Called by
12768
12820
  * the kernel proxy to populate `DeviceContext.deviceMeta` before
12769
12821
  * the device class constructor runs. Returns `null` when the id
@@ -15434,12 +15486,27 @@ var mqttBrokerCapability = {
15434
15486
  },
15435
15487
  methods: {
15436
15488
  listBrokers: method(zod.z.void(), zod.z.array(BrokerInfoSchema)),
15437
- getBrokerConfig: method(IdInputSchema, BrokerConnectionDetailsSchema),
15438
- addBroker: method(AddBrokerInputSchema, AddBrokerResultSchema, { kind: "mutation" }),
15439
- removeBroker: method(IdInputSchema, zod.z.void(), { kind: "mutation" }),
15440
- testConnection: method(IdInputSchema, TestResultSchema$1, { kind: "mutation" }),
15441
- startEmbeddedBroker: method(StartEmbeddedInputSchema, StartEmbeddedResultSchema, { kind: "mutation" }),
15442
- stopEmbeddedBroker: method(IdInputSchema, zod.z.void(), { kind: "mutation" }),
15489
+ getBrokerConfig: method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }),
15490
+ addBroker: method(AddBrokerInputSchema, AddBrokerResultSchema, {
15491
+ kind: "mutation",
15492
+ auth: "admin"
15493
+ }),
15494
+ removeBroker: method(IdInputSchema, zod.z.void(), {
15495
+ kind: "mutation",
15496
+ auth: "admin"
15497
+ }),
15498
+ testConnection: method(IdInputSchema, TestResultSchema$1, {
15499
+ kind: "mutation",
15500
+ auth: "admin"
15501
+ }),
15502
+ startEmbeddedBroker: method(StartEmbeddedInputSchema, StartEmbeddedResultSchema, {
15503
+ kind: "mutation",
15504
+ auth: "admin"
15505
+ }),
15506
+ stopEmbeddedBroker: method(IdInputSchema, zod.z.void(), {
15507
+ kind: "mutation",
15508
+ auth: "admin"
15509
+ }),
15443
15510
  getStatus: method(zod.z.void(), StatusSchema)
15444
15511
  }
15445
15512
  };
@@ -15756,6 +15823,18 @@ var TargetKindSchema = zod.z.object({
15756
15823
  */
15757
15824
  iconMediaType: zod.z.string().optional(),
15758
15825
  configSchema: ConfigSchemaPassthrough,
15826
+ /**
15827
+ * The config keys that decide WHERE this kind's secrets are sent (server,
15828
+ * base URL, instance, chat, recipient). A save that changes any of them
15829
+ * while leaving a secret redacted is refused by the provider (D634), so an
15830
+ * editor uses this to ask for the secret on exactly those edits instead of
15831
+ * on every edit.
15832
+ *
15833
+ * Optional: absent from a provider that holds no secret (the Home Assistant
15834
+ * kinds) and from a provider older than this field — an editor that finds
15835
+ * it absent must assume ANY edit may need the secret.
15836
+ */
15837
+ destinationKeys: zod.z.array(zod.z.string()).optional(),
15759
15838
  supportsDiscovery: zod.z.boolean(),
15760
15839
  caps: TargetKindCapsSchema
15761
15840
  });
@@ -15800,25 +15879,40 @@ var notificationOutputCapability = {
15800
15879
  mode: "collection",
15801
15880
  methods: {
15802
15881
  listTargetKinds: method(zod.z.object({}), zod.z.array(TargetKindSchema)),
15803
- listTargets: method(zod.z.object({}), zod.z.array(TargetSchema)),
15882
+ listTargets: method(zod.z.object({}), zod.z.array(TargetSchema), { auth: "admin" }),
15804
15883
  discoverTargets: method(zod.z.object({
15805
15884
  kind: zod.z.string(),
15806
15885
  config: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
15807
- }), zod.z.array(DiscoveredTargetSchema)),
15886
+ }), zod.z.array(DiscoveredTargetSchema), { auth: "admin" }),
15808
15887
  send: method(zod.z.object({
15809
15888
  targetId: zod.z.string(),
15810
15889
  notification: NotificationSchema
15811
- }), SendResultSchema, { kind: "mutation" }),
15890
+ }), SendResultSchema, {
15891
+ kind: "mutation",
15892
+ auth: "admin"
15893
+ }),
15812
15894
  testTarget: method(zod.z.object({
15813
15895
  targetId: zod.z.string(),
15814
15896
  sample: NotificationSchema.optional()
15815
- }), TestResultSchema, { kind: "mutation" }),
15816
- upsertTarget: method(zod.z.object({ target: TargetSchema }), TargetSchema, { kind: "mutation" }),
15817
- deleteTarget: method(zod.z.object({ targetId: zod.z.string() }), zod.z.void(), { kind: "mutation" }),
15897
+ }), TestResultSchema, {
15898
+ kind: "mutation",
15899
+ auth: "admin"
15900
+ }),
15901
+ upsertTarget: method(zod.z.object({ target: TargetSchema }), TargetSchema, {
15902
+ kind: "mutation",
15903
+ auth: "admin"
15904
+ }),
15905
+ deleteTarget: method(zod.z.object({ targetId: zod.z.string() }), zod.z.void(), {
15906
+ kind: "mutation",
15907
+ auth: "admin"
15908
+ }),
15818
15909
  setTargetEnabled: method(zod.z.object({
15819
15910
  targetId: zod.z.string(),
15820
15911
  enabled: zod.z.boolean()
15821
- }), zod.z.void(), { kind: "mutation" })
15912
+ }), zod.z.void(), {
15913
+ kind: "mutation",
15914
+ auth: "admin"
15915
+ })
15822
15916
  }
15823
15917
  };
15824
15918
  new Set([
@@ -25116,54 +25210,78 @@ var storageCapability = {
25116
25210
  resolve: method(zod.z.object({
25117
25211
  location: StorageLocationRefSchema,
25118
25212
  relativePath: zod.z.string()
25119
- }), zod.z.string()),
25213
+ }), zod.z.string(), { auth: "admin" }),
25120
25214
  write: method(zod.z.object({
25121
25215
  location: StorageLocationRefSchema,
25122
25216
  relativePath: zod.z.string(),
25123
25217
  data: zod.z.instanceof(Uint8Array)
25124
- }), zod.z.void(), { kind: "mutation" }),
25218
+ }), zod.z.void(), {
25219
+ kind: "mutation",
25220
+ auth: "admin"
25221
+ }),
25125
25222
  read: method(zod.z.object({
25126
25223
  location: StorageLocationRefSchema,
25127
25224
  relativePath: zod.z.string()
25128
- }), zod.z.instanceof(Uint8Array)),
25225
+ }), zod.z.instanceof(Uint8Array), { auth: "admin" }),
25129
25226
  exists: method(zod.z.object({
25130
25227
  location: StorageLocationRefSchema,
25131
25228
  relativePath: zod.z.string()
25132
- }), zod.z.boolean()),
25229
+ }), zod.z.boolean(), { auth: "admin" }),
25133
25230
  list: method(zod.z.object({
25134
25231
  location: StorageLocationRefSchema,
25135
25232
  prefix: zod.z.string().optional()
25136
- }), zod.z.array(zod.z.string()).readonly()),
25233
+ }), zod.z.array(zod.z.string()).readonly(), { auth: "admin" }),
25137
25234
  delete: method(zod.z.object({
25138
25235
  location: StorageLocationRefSchema,
25139
25236
  relativePath: zod.z.string()
25140
- }), zod.z.void(), { kind: "mutation" }),
25237
+ }), zod.z.void(), {
25238
+ kind: "mutation",
25239
+ auth: "admin"
25240
+ }),
25141
25241
  getAvailableSpace: method(zod.z.object({ location: StorageLocationRefSchema }), zod.z.number().nullable()),
25142
25242
  beginUpload: method(zod.z.object({
25143
25243
  location: StorageLocationRefSchema,
25144
25244
  relativePath: zod.z.string(),
25145
25245
  sizeBytes: zod.z.number().optional()
25146
- }), zod.z.object({ uploadId: zod.z.string() }), { kind: "mutation" }),
25246
+ }), zod.z.object({ uploadId: zod.z.string() }), {
25247
+ kind: "mutation",
25248
+ auth: "admin"
25249
+ }),
25147
25250
  writeChunk: method(zod.z.object({
25148
25251
  uploadId: zod.z.string(),
25149
25252
  offset: zod.z.number(),
25150
25253
  data: zod.z.instanceof(Uint8Array)
25151
- }), zod.z.void(), { kind: "mutation" }),
25152
- finalizeUpload: method(zod.z.object({ uploadId: zod.z.string() }), zod.z.void(), { kind: "mutation" }),
25153
- abortUpload: method(zod.z.object({ uploadId: zod.z.string() }), zod.z.void(), { kind: "mutation" }),
25254
+ }), zod.z.void(), {
25255
+ kind: "mutation",
25256
+ auth: "admin"
25257
+ }),
25258
+ finalizeUpload: method(zod.z.object({ uploadId: zod.z.string() }), zod.z.void(), {
25259
+ kind: "mutation",
25260
+ auth: "admin"
25261
+ }),
25262
+ abortUpload: method(zod.z.object({ uploadId: zod.z.string() }), zod.z.void(), {
25263
+ kind: "mutation",
25264
+ auth: "admin"
25265
+ }),
25154
25266
  beginDownload: method(zod.z.object({
25155
25267
  location: StorageLocationRefSchema,
25156
25268
  relativePath: zod.z.string()
25157
25269
  }), zod.z.object({
25158
25270
  downloadId: zod.z.string(),
25159
25271
  sizeBytes: zod.z.number()
25160
- }), { kind: "mutation" }),
25272
+ }), {
25273
+ kind: "mutation",
25274
+ auth: "admin"
25275
+ }),
25161
25276
  readChunk: method(zod.z.object({
25162
25277
  downloadId: zod.z.string(),
25163
25278
  offset: zod.z.number(),
25164
25279
  length: zod.z.number()
25165
- }), zod.z.instanceof(Uint8Array)),
25166
- endDownload: method(zod.z.object({ downloadId: zod.z.string() }), zod.z.void(), { kind: "mutation" }),
25280
+ }), zod.z.instanceof(Uint8Array), { auth: "admin" }),
25281
+ endDownload: method(zod.z.object({ downloadId: zod.z.string() }), zod.z.void(), {
25282
+ kind: "mutation",
25283
+ auth: "admin"
25284
+ }),
25167
25285
  listLocations: method(zod.z.object({ type: StorageLocationTypeSchema.optional() }), zod.z.array(StorageLocationSchema).readonly()),
25168
25286
  listLocationDeclarations: method(zod.z.void(), zod.z.array(StorageLocationDeclarationSchema).readonly()),
25169
25287
  upsertLocation: method(StorageLocationSchema.omit({
@@ -52663,7 +52781,11 @@ var ALARM = [
52663
52781
  "alarm-armed",
52664
52782
  "alarm-disarmed",
52665
52783
  "alarm-arming",
52666
- "alarm-arm-refused"
52784
+ "alarm-arm-refused",
52785
+ "alarm-pending",
52786
+ "alarm-rearmed",
52787
+ "alarm-sensor-bypass",
52788
+ "alarm-check-failed"
52667
52789
  ];
52668
52790
  var COMBINED_ALARM = ["alarm-triggered"];
52669
52791
  var DEVICE_EVENTS = [