@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.
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-aggregation.d.ts +0 -19
- package/dist/builtins/device-manager/device-manager.addon.js +10 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +10 -2
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-CrL3PV53.js → dist-C-fXee7n.js} +173 -51
- package/dist/{dist-tccneRF3.mjs → dist-D1_rTUOS.mjs} +173 -51
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{retired-settings-keys-BrOWH5-B.js → retired-settings-keys-BJbgHvQf.js} +1 -1
- package/dist/{retired-settings-keys-CcNuGSJ0.mjs → retired-settings-keys-jivjXc-s.mjs} +1 -1
- 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-
|
|
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(z.object({
|
|
3338
3338
|
deviceId: z.number(),
|
|
3339
3339
|
values: z.record(z.string(), z.unknown())
|
|
3340
|
-
}), z.void(), {
|
|
3340
|
+
}), 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(z.object({ deviceId: z.number() }), z.void(), {
|
|
3360
|
+
removeDevice: method(z.object({ deviceId: z.number() }), 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, z.unknown().nullable()),
|
|
8998
|
+
getState: method(GetStateInputSchema, 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 = 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: z.string().optional(),
|
|
10822
10838
|
collection: z.string(),
|
|
10823
10839
|
key: z.string()
|
|
10824
|
-
}), z.unknown()),
|
|
10840
|
+
}), z.unknown(), { auth: "admin" }),
|
|
10825
10841
|
/** Set a value by key in a collection (upsert). */
|
|
10826
10842
|
set: method(z.object({
|
|
10827
10843
|
namespace: z.string().optional(),
|
|
10828
10844
|
collection: z.string(),
|
|
10829
10845
|
key: z.string(),
|
|
10830
10846
|
value: z.unknown()
|
|
10831
|
-
}), z.void(), {
|
|
10847
|
+
}), 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: z.string(),
|
|
10850
10869
|
filter: QueryFilterSchema.optional(),
|
|
10851
10870
|
columns: z.array(z.string()).readonly().optional()
|
|
10852
|
-
}), z.array(SettingsRecordSchema).readonly()),
|
|
10871
|
+
}), 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
|
}), 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: z.union([z.string(), z.number()]) }), {
|
|
10924
|
+
id: z.union([z.string(), z.number()]) }), {
|
|
10925
|
+
kind: "mutation",
|
|
10926
|
+
auth: "admin"
|
|
10927
|
+
}),
|
|
10906
10928
|
/** Insert a new record. */
|
|
10907
10929
|
insert: method(z.object({
|
|
10908
10930
|
namespace: z.string().optional(),
|
|
@@ -10917,7 +10939,10 @@ id: z.union([z.string(), 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: z.union([z.string(), z.number()]) }), {
|
|
10942
|
+
id: z.union([z.string(), 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: z.union([z.string(), z.number()]) }), { kind: "mutation" }),
|
|
|
10945
10970
|
namespace: z.string().optional(),
|
|
10946
10971
|
collection: z.string(),
|
|
10947
10972
|
records: z.array(BulkRecordSchema).readonly()
|
|
10948
|
-
}), z.object({ inserted: z.number().int() }), {
|
|
10973
|
+
}), z.object({ inserted: z.number().int() }), {
|
|
10974
|
+
kind: "mutation",
|
|
10975
|
+
auth: "admin"
|
|
10976
|
+
}),
|
|
10949
10977
|
/** Update an existing record by ID. */
|
|
10950
10978
|
update: method(z.object({
|
|
10951
10979
|
namespace: z.string().optional(),
|
|
10952
10980
|
collection: z.string(),
|
|
10953
10981
|
id: z.string(),
|
|
10954
10982
|
data: z.record(z.string(), z.unknown())
|
|
10955
|
-
}), z.void(), {
|
|
10983
|
+
}), z.void(), {
|
|
10984
|
+
kind: "mutation",
|
|
10985
|
+
auth: "admin"
|
|
10986
|
+
}),
|
|
10956
10987
|
/** Delete a record by key/ID. */
|
|
10957
10988
|
delete: method(z.object({
|
|
10958
10989
|
namespace: z.string().optional(),
|
|
10959
10990
|
collection: z.string(),
|
|
10960
10991
|
key: z.string()
|
|
10961
|
-
}), z.void(), {
|
|
10992
|
+
}), 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: z.union([z.string(), z.number()]) }), { kind: "mutation" }),
|
|
|
10977
11011
|
namespace: z.string().optional(),
|
|
10978
11012
|
collection: z.string(),
|
|
10979
11013
|
filter: MutationFilterSchema
|
|
10980
|
-
}), z.object({ deleted: z.number().int() }), {
|
|
11014
|
+
}), z.object({ deleted: 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: z.union([z.string(), z.number()]) }), { kind: "mutation" }),
|
|
|
10988
11025
|
collection: z.string(),
|
|
10989
11026
|
filter: MutationFilterSchema,
|
|
10990
11027
|
data: z.record(z.string(), z.unknown())
|
|
10991
|
-
}), z.object({ updated: z.number().int() }), {
|
|
11028
|
+
}), z.object({ updated: z.number().int() }), {
|
|
11029
|
+
kind: "mutation",
|
|
11030
|
+
auth: "admin"
|
|
11031
|
+
}),
|
|
10992
11032
|
/** Count entries in a collection, optionally filtered. */
|
|
10993
11033
|
count: method(z.object({
|
|
10994
11034
|
namespace: z.string().optional(),
|
|
10995
11035
|
collection: z.string(),
|
|
10996
11036
|
filter: QueryFilterSchema.optional()
|
|
10997
|
-
}), z.number()),
|
|
11037
|
+
}), 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: z.union([z.string(), z.number()]) }), { kind: "mutation" }),
|
|
|
11020
11060
|
collection: z.string(),
|
|
11021
11061
|
fields: 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(z.object({
|
|
11026
11066
|
namespace: z.string().optional(),
|
|
@@ -11032,12 +11072,12 @@ id: z.union([z.string(), z.number()]) }), { kind: "mutation" }),
|
|
|
11032
11072
|
}), z.array(z.object({
|
|
11033
11073
|
bucket: z.number().int(),
|
|
11034
11074
|
count: z.number().int()
|
|
11035
|
-
})).readonly()),
|
|
11075
|
+
})).readonly(), { auth: "admin" }),
|
|
11036
11076
|
/** Check if a collection is empty. */
|
|
11037
11077
|
isEmpty: method(z.object({
|
|
11038
11078
|
namespace: z.string().optional(),
|
|
11039
11079
|
collection: z.string()
|
|
11040
|
-
}), z.boolean()),
|
|
11080
|
+
}), 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: z.union([z.string(), z.number()]) }), { kind: "mutation" }),
|
|
|
11058
11098
|
collection: z.string(),
|
|
11059
11099
|
columns: z.array(CollectionColumnSchema).readonly(),
|
|
11060
11100
|
indexes: z.array(CollectionIndexSchema).readonly().optional()
|
|
11061
|
-
}), z.void(), {
|
|
11101
|
+
}), 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(z.void(), DeviceExportStatusSchema),
|
|
12109
12152
|
listSupportedDeviceKinds: method(z.void(), z.array(DeviceKindSchema)),
|
|
12110
12153
|
listExposedDevices: method(z.void(), z.array(ExposedDeviceSchema)),
|
|
12111
|
-
exposeDevice: method(ExposeInputSchema, z.void(), {
|
|
12112
|
-
|
|
12154
|
+
exposeDevice: method(ExposeInputSchema, z.void(), {
|
|
12155
|
+
kind: "mutation",
|
|
12156
|
+
auth: "admin"
|
|
12157
|
+
}),
|
|
12158
|
+
unexposeDevice: method(UnexposeInputSchema, 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, z.void(), { kind: "mutation" }),
|
|
12761
12810
|
/** Persist device config blob. Called by DeviceConfig.set/setAll(). */
|
|
12762
|
-
persistConfig: method(DevicePersistConfigPayloadSchema, z.void(), {
|
|
12811
|
+
persistConfig: method(DevicePersistConfigPayloadSchema, z.void(), {
|
|
12812
|
+
kind: "mutation",
|
|
12813
|
+
auth: "admin"
|
|
12814
|
+
}),
|
|
12763
12815
|
/** Load persisted config for a device. Called at restore time. */
|
|
12764
|
-
loadConfig: method(z.object({ deviceId: z.number() }), z.record(z.string(), z.unknown())),
|
|
12816
|
+
loadConfig: method(z.object({ deviceId: z.number() }), z.record(z.string(), z.unknown()), { auth: "admin" }),
|
|
12765
12817
|
/** Load persisted runtime state. Called at device adopt time. */
|
|
12766
|
-
loadRuntimeState: method(z.object({ deviceId: z.number() }), z.record(z.string(), z.unknown())),
|
|
12818
|
+
loadRuntimeState: method(z.object({ deviceId: z.number() }), z.record(z.string(), 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(z.void(), z.array(BrokerInfoSchema)),
|
|
15437
|
-
getBrokerConfig: method(IdInputSchema, BrokerConnectionDetailsSchema),
|
|
15438
|
-
addBroker: method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
15439
|
-
|
|
15440
|
-
|
|
15441
|
-
|
|
15442
|
-
|
|
15489
|
+
getBrokerConfig: method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }),
|
|
15490
|
+
addBroker: method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
15491
|
+
kind: "mutation",
|
|
15492
|
+
auth: "admin"
|
|
15493
|
+
}),
|
|
15494
|
+
removeBroker: method(IdInputSchema, 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, z.void(), {
|
|
15507
|
+
kind: "mutation",
|
|
15508
|
+
auth: "admin"
|
|
15509
|
+
}),
|
|
15443
15510
|
getStatus: method(z.void(), StatusSchema)
|
|
15444
15511
|
}
|
|
15445
15512
|
};
|
|
@@ -15756,6 +15823,18 @@ var TargetKindSchema = z.object({
|
|
|
15756
15823
|
*/
|
|
15757
15824
|
iconMediaType: 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: z.array(z.string()).optional(),
|
|
15759
15838
|
supportsDiscovery: 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(z.object({}), z.array(TargetKindSchema)),
|
|
15803
|
-
listTargets: method(z.object({}), z.array(TargetSchema)),
|
|
15882
|
+
listTargets: method(z.object({}), z.array(TargetSchema), { auth: "admin" }),
|
|
15804
15883
|
discoverTargets: method(z.object({
|
|
15805
15884
|
kind: z.string(),
|
|
15806
15885
|
config: z.record(z.string(), z.unknown()).optional()
|
|
15807
|
-
}), z.array(DiscoveredTargetSchema)),
|
|
15886
|
+
}), z.array(DiscoveredTargetSchema), { auth: "admin" }),
|
|
15808
15887
|
send: method(z.object({
|
|
15809
15888
|
targetId: z.string(),
|
|
15810
15889
|
notification: NotificationSchema
|
|
15811
|
-
}), SendResultSchema, {
|
|
15890
|
+
}), SendResultSchema, {
|
|
15891
|
+
kind: "mutation",
|
|
15892
|
+
auth: "admin"
|
|
15893
|
+
}),
|
|
15812
15894
|
testTarget: method(z.object({
|
|
15813
15895
|
targetId: z.string(),
|
|
15814
15896
|
sample: NotificationSchema.optional()
|
|
15815
|
-
}), TestResultSchema, {
|
|
15816
|
-
|
|
15817
|
-
|
|
15897
|
+
}), TestResultSchema, {
|
|
15898
|
+
kind: "mutation",
|
|
15899
|
+
auth: "admin"
|
|
15900
|
+
}),
|
|
15901
|
+
upsertTarget: method(z.object({ target: TargetSchema }), TargetSchema, {
|
|
15902
|
+
kind: "mutation",
|
|
15903
|
+
auth: "admin"
|
|
15904
|
+
}),
|
|
15905
|
+
deleteTarget: method(z.object({ targetId: z.string() }), z.void(), {
|
|
15906
|
+
kind: "mutation",
|
|
15907
|
+
auth: "admin"
|
|
15908
|
+
}),
|
|
15818
15909
|
setTargetEnabled: method(z.object({
|
|
15819
15910
|
targetId: z.string(),
|
|
15820
15911
|
enabled: z.boolean()
|
|
15821
|
-
}), z.void(), {
|
|
15912
|
+
}), 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(z.object({
|
|
25117
25211
|
location: StorageLocationRefSchema,
|
|
25118
25212
|
relativePath: z.string()
|
|
25119
|
-
}), z.string()),
|
|
25213
|
+
}), z.string(), { auth: "admin" }),
|
|
25120
25214
|
write: method(z.object({
|
|
25121
25215
|
location: StorageLocationRefSchema,
|
|
25122
25216
|
relativePath: z.string(),
|
|
25123
25217
|
data: z.instanceof(Uint8Array)
|
|
25124
|
-
}), z.void(), {
|
|
25218
|
+
}), z.void(), {
|
|
25219
|
+
kind: "mutation",
|
|
25220
|
+
auth: "admin"
|
|
25221
|
+
}),
|
|
25125
25222
|
read: method(z.object({
|
|
25126
25223
|
location: StorageLocationRefSchema,
|
|
25127
25224
|
relativePath: z.string()
|
|
25128
|
-
}), z.instanceof(Uint8Array)),
|
|
25225
|
+
}), z.instanceof(Uint8Array), { auth: "admin" }),
|
|
25129
25226
|
exists: method(z.object({
|
|
25130
25227
|
location: StorageLocationRefSchema,
|
|
25131
25228
|
relativePath: z.string()
|
|
25132
|
-
}), z.boolean()),
|
|
25229
|
+
}), z.boolean(), { auth: "admin" }),
|
|
25133
25230
|
list: method(z.object({
|
|
25134
25231
|
location: StorageLocationRefSchema,
|
|
25135
25232
|
prefix: z.string().optional()
|
|
25136
|
-
}), z.array(z.string()).readonly()),
|
|
25233
|
+
}), z.array(z.string()).readonly(), { auth: "admin" }),
|
|
25137
25234
|
delete: method(z.object({
|
|
25138
25235
|
location: StorageLocationRefSchema,
|
|
25139
25236
|
relativePath: z.string()
|
|
25140
|
-
}), z.void(), {
|
|
25237
|
+
}), z.void(), {
|
|
25238
|
+
kind: "mutation",
|
|
25239
|
+
auth: "admin"
|
|
25240
|
+
}),
|
|
25141
25241
|
getAvailableSpace: method(z.object({ location: StorageLocationRefSchema }), z.number().nullable()),
|
|
25142
25242
|
beginUpload: method(z.object({
|
|
25143
25243
|
location: StorageLocationRefSchema,
|
|
25144
25244
|
relativePath: z.string(),
|
|
25145
25245
|
sizeBytes: z.number().optional()
|
|
25146
|
-
}), z.object({ uploadId: z.string() }), {
|
|
25246
|
+
}), z.object({ uploadId: z.string() }), {
|
|
25247
|
+
kind: "mutation",
|
|
25248
|
+
auth: "admin"
|
|
25249
|
+
}),
|
|
25147
25250
|
writeChunk: method(z.object({
|
|
25148
25251
|
uploadId: z.string(),
|
|
25149
25252
|
offset: z.number(),
|
|
25150
25253
|
data: z.instanceof(Uint8Array)
|
|
25151
|
-
}), z.void(), {
|
|
25152
|
-
|
|
25153
|
-
|
|
25254
|
+
}), z.void(), {
|
|
25255
|
+
kind: "mutation",
|
|
25256
|
+
auth: "admin"
|
|
25257
|
+
}),
|
|
25258
|
+
finalizeUpload: method(z.object({ uploadId: z.string() }), z.void(), {
|
|
25259
|
+
kind: "mutation",
|
|
25260
|
+
auth: "admin"
|
|
25261
|
+
}),
|
|
25262
|
+
abortUpload: method(z.object({ uploadId: z.string() }), z.void(), {
|
|
25263
|
+
kind: "mutation",
|
|
25264
|
+
auth: "admin"
|
|
25265
|
+
}),
|
|
25154
25266
|
beginDownload: method(z.object({
|
|
25155
25267
|
location: StorageLocationRefSchema,
|
|
25156
25268
|
relativePath: z.string()
|
|
25157
25269
|
}), z.object({
|
|
25158
25270
|
downloadId: z.string(),
|
|
25159
25271
|
sizeBytes: z.number()
|
|
25160
|
-
}), {
|
|
25272
|
+
}), {
|
|
25273
|
+
kind: "mutation",
|
|
25274
|
+
auth: "admin"
|
|
25275
|
+
}),
|
|
25161
25276
|
readChunk: method(z.object({
|
|
25162
25277
|
downloadId: z.string(),
|
|
25163
25278
|
offset: z.number(),
|
|
25164
25279
|
length: z.number()
|
|
25165
|
-
}), z.instanceof(Uint8Array)),
|
|
25166
|
-
endDownload: method(z.object({ downloadId: z.string() }), z.void(), {
|
|
25280
|
+
}), z.instanceof(Uint8Array), { auth: "admin" }),
|
|
25281
|
+
endDownload: method(z.object({ downloadId: z.string() }), z.void(), {
|
|
25282
|
+
kind: "mutation",
|
|
25283
|
+
auth: "admin"
|
|
25284
|
+
}),
|
|
25167
25285
|
listLocations: method(z.object({ type: StorageLocationTypeSchema.optional() }), z.array(StorageLocationSchema).readonly()),
|
|
25168
25286
|
listLocationDeclarations: method(z.void(), 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 = [
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
3
|
+
const require_dist = require("./dist-C-fXee7n.js");
|
|
4
4
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
5
5
|
require("./builtins/alerts/index.js");
|
|
6
6
|
const require_formatter = require("./formatter-DqAKDlvN.js");
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM$1, r as __exportAll, t as __commonJSMin$1 } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { At as logLevelAtMost, Bn as EventCategory$1, Cn as asJsonObject$1, Ct as kebabToCamel, Dn as emitDownForOwnedCaps, En as createEvent, Et as lifecycleJobSchema, Fn as parseJsonUnknown, Ht as procedureAuthKey, In as readinessKey, Ln as resolveCapMount, Pn as parseJsonObject, R as addonSettingsCapability, Rn as scopeKey, Rt as objectInputDeclaresAddonId, St as isVoidInput, T as RUNTIME_DEFAULTS, Tn as asString$1, Xt as scopesAllowDeviceCap, Yt as scopesAllowAddon, _ as LOG_LEVEL_RANK, _t as isCollectionArrayMethod, b as METHOD_ACCESS_MAP, bn as ReadinessRegistry, dn as errMsg$1, dt as extractNestedAddonId, gn as DEVICE_STATUS_METHOD, gt as isArrayOutputSchema, hn as DEVICE_SETTINGS_CONTRIBUTION_METHODS, jt as looseSchema, kn as expandCapMethods, mn as DATAPLANE_SECRET_HEADER$1, qt as resolveMethodAuth, t as ALL_CAPABILITY_DEFINITIONS, wn as asNumber, xn as ReadinessTimeoutError, yt as isObjectInput, zt as objectInputDeclaresRequiredDeviceId } from "./dist-
|
|
2
|
+
import { At as logLevelAtMost, Bn as EventCategory$1, Cn as asJsonObject$1, Ct as kebabToCamel, Dn as emitDownForOwnedCaps, En as createEvent, Et as lifecycleJobSchema, Fn as parseJsonUnknown, Ht as procedureAuthKey, In as readinessKey, Ln as resolveCapMount, Pn as parseJsonObject, R as addonSettingsCapability, Rn as scopeKey, Rt as objectInputDeclaresAddonId, St as isVoidInput, T as RUNTIME_DEFAULTS, Tn as asString$1, Xt as scopesAllowDeviceCap, Yt as scopesAllowAddon, _ as LOG_LEVEL_RANK, _t as isCollectionArrayMethod, b as METHOD_ACCESS_MAP, bn as ReadinessRegistry, dn as errMsg$1, dt as extractNestedAddonId, gn as DEVICE_STATUS_METHOD, gt as isArrayOutputSchema, hn as DEVICE_SETTINGS_CONTRIBUTION_METHODS, jt as looseSchema, kn as expandCapMethods, mn as DATAPLANE_SECRET_HEADER$1, qt as resolveMethodAuth, t as ALL_CAPABILITY_DEFINITIONS, wn as asNumber, xn as ReadinessTimeoutError, yt as isObjectInput, zt as objectInputDeclaresRequiredDeviceId } from "./dist-D1_rTUOS.mjs";
|
|
3
3
|
import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
|
|
4
4
|
import "./builtins/alerts/index.mjs";
|
|
5
5
|
import { t as formatLogLine } from "./formatter-B7qW8bPJ.mjs";
|