@camstack/types 1.2.168 → 1.2.170
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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/pipeline-analytics.cap.d.ts +37 -0
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +193 -70
- package/dist/index.mjs +190 -71
- package/dist/interfaces/debug-note-archive.d.ts +72 -0
- package/dist/interfaces/event-bus.d.ts +17 -2
- package/dist/{sleep-BZtO-eFY.js → sleep-IjLtwkO5.js} +1 -0
- package/dist/{sleep-Bd-Y4RUt.mjs → sleep-uGNYCvYp.mjs} +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_event_category = require("./event-category-BVo6ta6_.js");
|
|
3
|
-
const require_sleep = require("./sleep-
|
|
3
|
+
const require_sleep = require("./sleep-IjLtwkO5.js");
|
|
4
4
|
const require_canonical_hash = require("./canonical-hash-DNV8S5ET.js");
|
|
5
5
|
const require_enums = require("./enums.js");
|
|
6
6
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
@@ -1257,6 +1257,89 @@ function walkField(field, out) {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
//#endregion
|
|
1260
|
+
//#region src/interfaces/debug-note-archive.ts
|
|
1261
|
+
/**
|
|
1262
|
+
* Debug-note archive — the durable corpus of what operators asked to be
|
|
1263
|
+
* checked, and the ONE thing about a debug note that outlives its track.
|
|
1264
|
+
*
|
|
1265
|
+
* D353 bound `debugNote` to the `debug` flag: turning the flag off clears the
|
|
1266
|
+
* note in the same statement, so a track can never present a question without
|
|
1267
|
+
* the flag that explains it. That invariant is right and stays. Its side
|
|
1268
|
+
* effect was not: the act of REVIEWING a debug set destroyed every note in it,
|
|
1269
|
+
* and the notes that survived a sweep aged out with their tracks anyway. On
|
|
1270
|
+
* 2026-09-08 the notes from one morning's review — 25 to 27 of them — were
|
|
1271
|
+
* already unreadable by the afternoon, leaving 11.
|
|
1272
|
+
*
|
|
1273
|
+
* So the clear now ARCHIVES first (D405). A row here is:
|
|
1274
|
+
*
|
|
1275
|
+
* - written ONLY by the hub, from `applyTrackFlags`, immediately before the
|
|
1276
|
+
* note is cleared off the track row;
|
|
1277
|
+
* - keyed by ITS OWN id, derived from `(sourceTrackId, note)` so reviewing
|
|
1278
|
+
* the same track twice cannot double the corpus;
|
|
1279
|
+
* - NOT a track row, NOT subject to track retention, and NOT a durability pin
|
|
1280
|
+
* on anything — the track it names is expected to be gone.
|
|
1281
|
+
*
|
|
1282
|
+
* `sourceTrackId` is deliberately not called `trackId`. The analytics
|
|
1283
|
+
* retention model derives track OWNERSHIP from a declared `trackId` column
|
|
1284
|
+
* (`collection-classification.ts`), and a row that the cascade would delete
|
|
1285
|
+
* with its track is exactly the row this table exists to keep. The name says
|
|
1286
|
+
* PROVENANCE — the same distinction the stationary registry draws for the same
|
|
1287
|
+
* reason.
|
|
1288
|
+
*/
|
|
1289
|
+
/**
|
|
1290
|
+
* How many archived notes the cluster keeps, across every camera.
|
|
1291
|
+
*
|
|
1292
|
+
* GLOBAL, not per-device, and a COUNT, not an age. Both halves are deliberate:
|
|
1293
|
+
*
|
|
1294
|
+
* - A per-device bound multiplies by the fleet — 30 cameras at 500 each is
|
|
1295
|
+
* 15 000 rows to protect a corpus that only ever gets read fleet-wide (the
|
|
1296
|
+
* thing being mined is "what keeps going wrong", not "what goes wrong on
|
|
1297
|
+
* 617"). One global ceiling is one number to reason about.
|
|
1298
|
+
* - An AGE bound would delete the corpus for being old, which is the failure
|
|
1299
|
+
* being fixed: a note from six months ago is the most valuable row in the
|
|
1300
|
+
* table precisely because the pattern it describes has had time to repeat.
|
|
1301
|
+
*
|
|
1302
|
+
* The number is sized off the measured rate. The 2026-09-08 sweep produced
|
|
1303
|
+
* 25–27 notes; call a heavy day 100. 5 000 rows is roughly fifty such days,
|
|
1304
|
+
* and at the observed rate (a few sweeps a week) several years. The cost is
|
|
1305
|
+
* bounded by construction: a note is capped at `MAX_TRACK_DEBUG_NOTE_LEN`
|
|
1306
|
+
* (500 chars) and the metadata beside it is under 100 bytes, so the ceiling is
|
|
1307
|
+
* ~3 MB of text and the realistic occupancy is well under 1 MB — against a
|
|
1308
|
+
* `tracks` table measured at 4.6 MB for a single 501-row page.
|
|
1309
|
+
*/
|
|
1310
|
+
var MAX_ARCHIVED_DEBUG_NOTES = 5e3;
|
|
1311
|
+
/** Default page size for `listArchivedDebugNotes` when the caller omits one. */
|
|
1312
|
+
var ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT = 200;
|
|
1313
|
+
/** One archived note — the operator's words plus enough context to find what
|
|
1314
|
+
* they were looking at, after the track itself is gone. */
|
|
1315
|
+
var ArchivedDebugNoteSchema = zod.z.object({
|
|
1316
|
+
/** Archive row id. Derived from `(sourceTrackId, note)`, so re-archiving the
|
|
1317
|
+
* same sentence about the same track lands on the row already there. */
|
|
1318
|
+
id: zod.z.string(),
|
|
1319
|
+
/** The operator's own words, verbatim. */
|
|
1320
|
+
note: zod.z.string(),
|
|
1321
|
+
/** The camera. Required — every question here is asked per-camera. */
|
|
1322
|
+
deviceId: zod.z.number().int(),
|
|
1323
|
+
/** The track the note was written on. PROVENANCE, not ownership: the track
|
|
1324
|
+
* is expected to be gone, and this row is not a reference to it. */
|
|
1325
|
+
sourceTrackId: zod.z.string(),
|
|
1326
|
+
/** Epoch ms the note was moved here, i.e. when the operator reviewed it. */
|
|
1327
|
+
archivedAt: zod.z.number().int(),
|
|
1328
|
+
/** The track's `firstSeen`, when the row still knew it; `null` otherwise. */
|
|
1329
|
+
trackStartedAt: zod.z.number().int().nullable(),
|
|
1330
|
+
/** The track's detector class (`person`, `car`, …); `null` when unknown. */
|
|
1331
|
+
trackClass: zod.z.string().nullable(),
|
|
1332
|
+
/** The track's display label at review time; `null` when it had none. */
|
|
1333
|
+
trackLabel: zod.z.string().nullable()
|
|
1334
|
+
});
|
|
1335
|
+
/** Query input for `listArchivedDebugNotes` — newest first, one camera or all. */
|
|
1336
|
+
var ArchivedDebugNoteQueryInputSchema = zod.z.object({
|
|
1337
|
+
/** Restrict to a single camera; omit for every row. */
|
|
1338
|
+
deviceId: zod.z.number().int().optional(),
|
|
1339
|
+
/** Max rows returned, newest-first. */
|
|
1340
|
+
limit: zod.z.number().int().min(1).max(1e3).optional()
|
|
1341
|
+
});
|
|
1342
|
+
//#endregion
|
|
1260
1343
|
//#region src/interfaces/device-capabilities/camera.ts
|
|
1261
1344
|
/** Friendly display labels for stream quality IDs. */
|
|
1262
1345
|
var STREAM_QUALITY_LABELS = {
|
|
@@ -15081,14 +15164,14 @@ var alarmPanelCapability = {
|
|
|
15081
15164
|
code: zod.z.string().min(1).optional()
|
|
15082
15165
|
}), zod.z.void(), {
|
|
15083
15166
|
kind: "mutation",
|
|
15084
|
-
auth: "
|
|
15167
|
+
auth: "protected"
|
|
15085
15168
|
}),
|
|
15086
15169
|
disarm: require_sleep.method(zod.z.object({
|
|
15087
15170
|
deviceId: zod.z.number().int().nonnegative(),
|
|
15088
15171
|
code: zod.z.string().min(1).optional()
|
|
15089
15172
|
}), zod.z.void(), {
|
|
15090
15173
|
kind: "mutation",
|
|
15091
|
-
auth: "
|
|
15174
|
+
auth: "protected"
|
|
15092
15175
|
}),
|
|
15093
15176
|
/**
|
|
15094
15177
|
* Force the panel into the `triggered` state — used by HA
|
|
@@ -15099,7 +15182,7 @@ var alarmPanelCapability = {
|
|
|
15099
15182
|
*/
|
|
15100
15183
|
trigger: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
15101
15184
|
kind: "mutation",
|
|
15102
|
-
auth: "
|
|
15185
|
+
auth: "protected"
|
|
15103
15186
|
})
|
|
15104
15187
|
},
|
|
15105
15188
|
status: {
|
|
@@ -20186,6 +20269,31 @@ var pipelineAnalyticsCapability = {
|
|
|
20186
20269
|
flags: TrackFlagsPatchSchema
|
|
20187
20270
|
}), TrackFlagsSchema, { kind: "mutation" }),
|
|
20188
20271
|
/**
|
|
20272
|
+
* The archived debug notes, newest first — the corpus of what operators
|
|
20273
|
+
* have asked to be checked, across tracks that no longer exist (D405).
|
|
20274
|
+
*
|
|
20275
|
+
* `setTrackFlags` writes it: a patch carrying `debug: false` still clears
|
|
20276
|
+
* the note off the track row in the same statement (D353's invariant is
|
|
20277
|
+
* untouched), but the note is APPENDED here first. That is the whole point
|
|
20278
|
+
* — before D405, finishing a review destroyed every note written during it,
|
|
20279
|
+
* and the ones that survived aged out with their tracks. This method is the
|
|
20280
|
+
* only way to read what was kept.
|
|
20281
|
+
*
|
|
20282
|
+
* `auth: 'protected'`, matching `setTrackFlags` next door and for the same
|
|
20283
|
+
* reason: the notes are written from the viewer, by an authenticated
|
|
20284
|
+
* non-admin session, and a corpus only an admin can read is a corpus the
|
|
20285
|
+
* person who wrote it cannot use. It carries operator prose about cameras
|
|
20286
|
+
* and nothing else — no media, no paths, no identities beyond a track's
|
|
20287
|
+
* own display label.
|
|
20288
|
+
*
|
|
20289
|
+
* Newest-first, capped by `limit` (default
|
|
20290
|
+
* {@link ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT}), optionally one camera. The
|
|
20291
|
+
* table itself is bounded by row count, not by age — see
|
|
20292
|
+
* {@link MAX_ARCHIVED_DEBUG_NOTES} for why an age clock would be the wrong
|
|
20293
|
+
* bound for exactly this data.
|
|
20294
|
+
*/
|
|
20295
|
+
listArchivedDebugNotes: require_sleep.method(ArchivedDebugNoteQueryInputSchema, zod.z.array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }),
|
|
20296
|
+
/**
|
|
20189
20297
|
* Durable event-store footprint for the management UI: event rows
|
|
20190
20298
|
* (motion + object + audio) counted per camera + total, plus the
|
|
20191
20299
|
* event-owned media bytes on disk per camera + total. Stat/count-based,
|
|
@@ -26192,7 +26300,7 @@ var brightnessCapability = {
|
|
|
26192
26300
|
percentage: zod.z.number().min(0).max(100)
|
|
26193
26301
|
}), zod.z.void(), {
|
|
26194
26302
|
kind: "mutation",
|
|
26195
|
-
auth: "
|
|
26303
|
+
auth: "protected"
|
|
26196
26304
|
}) },
|
|
26197
26305
|
events: {
|
|
26198
26306
|
/**
|
|
@@ -26243,7 +26351,7 @@ var buttonCapability = {
|
|
|
26243
26351
|
deviceTypes: [require_sleep.DeviceType.Button],
|
|
26244
26352
|
methods: { press: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
26245
26353
|
kind: "mutation",
|
|
26246
|
-
auth: "
|
|
26354
|
+
auth: "protected"
|
|
26247
26355
|
}) }
|
|
26248
26356
|
};
|
|
26249
26357
|
//#endregion
|
|
@@ -26466,28 +26574,28 @@ var climateControlCapability = {
|
|
|
26466
26574
|
mode: HvacModeSchema
|
|
26467
26575
|
}), zod.z.void(), {
|
|
26468
26576
|
kind: "mutation",
|
|
26469
|
-
auth: "
|
|
26577
|
+
auth: "protected"
|
|
26470
26578
|
}),
|
|
26471
26579
|
setFanMode: require_sleep.method(zod.z.object({
|
|
26472
26580
|
deviceId: zod.z.number().int().nonnegative(),
|
|
26473
26581
|
fanMode: zod.z.string().min(1)
|
|
26474
26582
|
}), zod.z.void(), {
|
|
26475
26583
|
kind: "mutation",
|
|
26476
|
-
auth: "
|
|
26584
|
+
auth: "protected"
|
|
26477
26585
|
}),
|
|
26478
26586
|
setPreset: require_sleep.method(zod.z.object({
|
|
26479
26587
|
deviceId: zod.z.number().int().nonnegative(),
|
|
26480
26588
|
preset: zod.z.string().min(1)
|
|
26481
26589
|
}), zod.z.void(), {
|
|
26482
26590
|
kind: "mutation",
|
|
26483
|
-
auth: "
|
|
26591
|
+
auth: "protected"
|
|
26484
26592
|
}),
|
|
26485
26593
|
setTarget: require_sleep.method(zod.z.object({
|
|
26486
26594
|
deviceId: zod.z.number().int().nonnegative(),
|
|
26487
26595
|
target: zod.z.number()
|
|
26488
26596
|
}), zod.z.void(), {
|
|
26489
26597
|
kind: "mutation",
|
|
26490
|
-
auth: "
|
|
26598
|
+
auth: "protected"
|
|
26491
26599
|
}),
|
|
26492
26600
|
setTargetRange: require_sleep.method(zod.z.object({
|
|
26493
26601
|
deviceId: zod.z.number().int().nonnegative(),
|
|
@@ -26495,28 +26603,28 @@ var climateControlCapability = {
|
|
|
26495
26603
|
targetHigh: zod.z.number()
|
|
26496
26604
|
}), zod.z.void(), {
|
|
26497
26605
|
kind: "mutation",
|
|
26498
|
-
auth: "
|
|
26606
|
+
auth: "protected"
|
|
26499
26607
|
}),
|
|
26500
26608
|
setTargetHumidity: require_sleep.method(zod.z.object({
|
|
26501
26609
|
deviceId: zod.z.number().int().nonnegative(),
|
|
26502
26610
|
targetHumidity: zod.z.number().min(0).max(100)
|
|
26503
26611
|
}), zod.z.void(), {
|
|
26504
26612
|
kind: "mutation",
|
|
26505
|
-
auth: "
|
|
26613
|
+
auth: "protected"
|
|
26506
26614
|
}),
|
|
26507
26615
|
setSwingVertical: require_sleep.method(zod.z.object({
|
|
26508
26616
|
deviceId: zod.z.number().int().nonnegative(),
|
|
26509
26617
|
on: zod.z.boolean()
|
|
26510
26618
|
}), zod.z.void(), {
|
|
26511
26619
|
kind: "mutation",
|
|
26512
|
-
auth: "
|
|
26620
|
+
auth: "protected"
|
|
26513
26621
|
}),
|
|
26514
26622
|
setSwingHorizontal: require_sleep.method(zod.z.object({
|
|
26515
26623
|
deviceId: zod.z.number().int().nonnegative(),
|
|
26516
26624
|
on: zod.z.boolean()
|
|
26517
26625
|
}), zod.z.void(), {
|
|
26518
26626
|
kind: "mutation",
|
|
26519
|
-
auth: "
|
|
26627
|
+
auth: "protected"
|
|
26520
26628
|
})
|
|
26521
26629
|
},
|
|
26522
26630
|
status: {
|
|
@@ -26618,7 +26726,7 @@ var colorCapability = {
|
|
|
26618
26726
|
color: ColorInputSchema
|
|
26619
26727
|
}), zod.z.void(), {
|
|
26620
26728
|
kind: "mutation",
|
|
26621
|
-
auth: "
|
|
26729
|
+
auth: "protected"
|
|
26622
26730
|
}) },
|
|
26623
26731
|
events: {
|
|
26624
26732
|
/**
|
|
@@ -27043,7 +27151,7 @@ var controlCapability = {
|
|
|
27043
27151
|
control: ControlSetValueInputSchema
|
|
27044
27152
|
}), zod.z.void(), {
|
|
27045
27153
|
kind: "mutation",
|
|
27046
|
-
auth: "
|
|
27154
|
+
auth: "protected"
|
|
27047
27155
|
}) },
|
|
27048
27156
|
status: {
|
|
27049
27157
|
schema: ControlStatusSchema,
|
|
@@ -27113,29 +27221,29 @@ var coverCapability = {
|
|
|
27113
27221
|
methods: {
|
|
27114
27222
|
open: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
27115
27223
|
kind: "mutation",
|
|
27116
|
-
auth: "
|
|
27224
|
+
auth: "protected"
|
|
27117
27225
|
}),
|
|
27118
27226
|
close: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
27119
27227
|
kind: "mutation",
|
|
27120
|
-
auth: "
|
|
27228
|
+
auth: "protected"
|
|
27121
27229
|
}),
|
|
27122
27230
|
stop: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
27123
27231
|
kind: "mutation",
|
|
27124
|
-
auth: "
|
|
27232
|
+
auth: "protected"
|
|
27125
27233
|
}),
|
|
27126
27234
|
setPosition: require_sleep.method(zod.z.object({
|
|
27127
27235
|
deviceId: zod.z.number().int().nonnegative(),
|
|
27128
27236
|
position: zod.z.number().min(0).max(100)
|
|
27129
27237
|
}), zod.z.void(), {
|
|
27130
27238
|
kind: "mutation",
|
|
27131
|
-
auth: "
|
|
27239
|
+
auth: "protected"
|
|
27132
27240
|
}),
|
|
27133
27241
|
setTiltPosition: require_sleep.method(zod.z.object({
|
|
27134
27242
|
deviceId: zod.z.number().int().nonnegative(),
|
|
27135
27243
|
tiltPosition: zod.z.number().min(0).max(100)
|
|
27136
27244
|
}), zod.z.void(), {
|
|
27137
27245
|
kind: "mutation",
|
|
27138
|
-
auth: "
|
|
27246
|
+
auth: "protected"
|
|
27139
27247
|
})
|
|
27140
27248
|
},
|
|
27141
27249
|
status: {
|
|
@@ -27983,28 +28091,28 @@ var fanControlCapability = {
|
|
|
27983
28091
|
percentage: zod.z.number().min(0).max(100)
|
|
27984
28092
|
}), zod.z.void(), {
|
|
27985
28093
|
kind: "mutation",
|
|
27986
|
-
auth: "
|
|
28094
|
+
auth: "protected"
|
|
27987
28095
|
}),
|
|
27988
28096
|
setPreset: require_sleep.method(zod.z.object({
|
|
27989
28097
|
deviceId: zod.z.number().int().nonnegative(),
|
|
27990
28098
|
preset: zod.z.string().min(1)
|
|
27991
28099
|
}), zod.z.void(), {
|
|
27992
28100
|
kind: "mutation",
|
|
27993
|
-
auth: "
|
|
28101
|
+
auth: "protected"
|
|
27994
28102
|
}),
|
|
27995
28103
|
setDirection: require_sleep.method(zod.z.object({
|
|
27996
28104
|
deviceId: zod.z.number().int().nonnegative(),
|
|
27997
28105
|
direction: FanDirectionSchema
|
|
27998
28106
|
}), zod.z.void(), {
|
|
27999
28107
|
kind: "mutation",
|
|
28000
|
-
auth: "
|
|
28108
|
+
auth: "protected"
|
|
28001
28109
|
}),
|
|
28002
28110
|
setOscillating: require_sleep.method(zod.z.object({
|
|
28003
28111
|
deviceId: zod.z.number().int().nonnegative(),
|
|
28004
28112
|
oscillating: zod.z.boolean()
|
|
28005
28113
|
}), zod.z.void(), {
|
|
28006
28114
|
kind: "mutation",
|
|
28007
|
-
auth: "
|
|
28115
|
+
auth: "protected"
|
|
28008
28116
|
})
|
|
28009
28117
|
},
|
|
28010
28118
|
status: {
|
|
@@ -28234,21 +28342,21 @@ var humidifierCapability = {
|
|
|
28234
28342
|
on: zod.z.boolean()
|
|
28235
28343
|
}), zod.z.void(), {
|
|
28236
28344
|
kind: "mutation",
|
|
28237
|
-
auth: "
|
|
28345
|
+
auth: "protected"
|
|
28238
28346
|
}),
|
|
28239
28347
|
setTargetHumidity: require_sleep.method(zod.z.object({
|
|
28240
28348
|
deviceId: zod.z.number().int().nonnegative(),
|
|
28241
28349
|
humidity: zod.z.number().min(0).max(100)
|
|
28242
28350
|
}), zod.z.void(), {
|
|
28243
28351
|
kind: "mutation",
|
|
28244
|
-
auth: "
|
|
28352
|
+
auth: "protected"
|
|
28245
28353
|
}),
|
|
28246
28354
|
setMode: require_sleep.method(zod.z.object({
|
|
28247
28355
|
deviceId: zod.z.number().int().nonnegative(),
|
|
28248
28356
|
mode: zod.z.string().min(1)
|
|
28249
28357
|
}), zod.z.void(), {
|
|
28250
28358
|
kind: "mutation",
|
|
28251
|
-
auth: "
|
|
28359
|
+
auth: "protected"
|
|
28252
28360
|
})
|
|
28253
28361
|
},
|
|
28254
28362
|
status: {
|
|
@@ -28979,15 +29087,15 @@ var lawnMowerControlCapability = {
|
|
|
28979
29087
|
methods: {
|
|
28980
29088
|
startMowing: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
28981
29089
|
kind: "mutation",
|
|
28982
|
-
auth: "
|
|
29090
|
+
auth: "protected"
|
|
28983
29091
|
}),
|
|
28984
29092
|
pause: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
28985
29093
|
kind: "mutation",
|
|
28986
|
-
auth: "
|
|
29094
|
+
auth: "protected"
|
|
28987
29095
|
}),
|
|
28988
29096
|
dock: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
28989
29097
|
kind: "mutation",
|
|
28990
|
-
auth: "
|
|
29098
|
+
auth: "protected"
|
|
28991
29099
|
})
|
|
28992
29100
|
},
|
|
28993
29101
|
status: {
|
|
@@ -29414,18 +29522,18 @@ var lockControlCapability = {
|
|
|
29414
29522
|
code: zod.z.string().min(1).optional()
|
|
29415
29523
|
}), zod.z.void(), {
|
|
29416
29524
|
kind: "mutation",
|
|
29417
|
-
auth: "
|
|
29525
|
+
auth: "protected"
|
|
29418
29526
|
}),
|
|
29419
29527
|
unlock: require_sleep.method(zod.z.object({
|
|
29420
29528
|
deviceId: zod.z.number().int().nonnegative(),
|
|
29421
29529
|
code: zod.z.string().min(1).optional()
|
|
29422
29530
|
}), zod.z.void(), {
|
|
29423
29531
|
kind: "mutation",
|
|
29424
|
-
auth: "
|
|
29532
|
+
auth: "protected"
|
|
29425
29533
|
}),
|
|
29426
29534
|
open: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
29427
29535
|
kind: "mutation",
|
|
29428
|
-
auth: "
|
|
29536
|
+
auth: "protected"
|
|
29429
29537
|
})
|
|
29430
29538
|
},
|
|
29431
29539
|
status: {
|
|
@@ -29530,65 +29638,65 @@ var mediaPlayerCapability = {
|
|
|
29530
29638
|
methods: {
|
|
29531
29639
|
play: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
29532
29640
|
kind: "mutation",
|
|
29533
|
-
auth: "
|
|
29641
|
+
auth: "protected"
|
|
29534
29642
|
}),
|
|
29535
29643
|
pause: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
29536
29644
|
kind: "mutation",
|
|
29537
|
-
auth: "
|
|
29645
|
+
auth: "protected"
|
|
29538
29646
|
}),
|
|
29539
29647
|
stop: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
29540
29648
|
kind: "mutation",
|
|
29541
|
-
auth: "
|
|
29649
|
+
auth: "protected"
|
|
29542
29650
|
}),
|
|
29543
29651
|
next: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
29544
29652
|
kind: "mutation",
|
|
29545
|
-
auth: "
|
|
29653
|
+
auth: "protected"
|
|
29546
29654
|
}),
|
|
29547
29655
|
previous: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
29548
29656
|
kind: "mutation",
|
|
29549
|
-
auth: "
|
|
29657
|
+
auth: "protected"
|
|
29550
29658
|
}),
|
|
29551
29659
|
seek: require_sleep.method(zod.z.object({
|
|
29552
29660
|
deviceId: zod.z.number().int().nonnegative(),
|
|
29553
29661
|
positionMs: zod.z.number().int().nonnegative()
|
|
29554
29662
|
}), zod.z.void(), {
|
|
29555
29663
|
kind: "mutation",
|
|
29556
|
-
auth: "
|
|
29664
|
+
auth: "protected"
|
|
29557
29665
|
}),
|
|
29558
29666
|
setVolume: require_sleep.method(zod.z.object({
|
|
29559
29667
|
deviceId: zod.z.number().int().nonnegative(),
|
|
29560
29668
|
volumeLevel: zod.z.number().min(0).max(100)
|
|
29561
29669
|
}), zod.z.void(), {
|
|
29562
29670
|
kind: "mutation",
|
|
29563
|
-
auth: "
|
|
29671
|
+
auth: "protected"
|
|
29564
29672
|
}),
|
|
29565
29673
|
setMute: require_sleep.method(zod.z.object({
|
|
29566
29674
|
deviceId: zod.z.number().int().nonnegative(),
|
|
29567
29675
|
muted: zod.z.boolean()
|
|
29568
29676
|
}), zod.z.void(), {
|
|
29569
29677
|
kind: "mutation",
|
|
29570
|
-
auth: "
|
|
29678
|
+
auth: "protected"
|
|
29571
29679
|
}),
|
|
29572
29680
|
setShuffle: require_sleep.method(zod.z.object({
|
|
29573
29681
|
deviceId: zod.z.number().int().nonnegative(),
|
|
29574
29682
|
shuffle: zod.z.boolean()
|
|
29575
29683
|
}), zod.z.void(), {
|
|
29576
29684
|
kind: "mutation",
|
|
29577
|
-
auth: "
|
|
29685
|
+
auth: "protected"
|
|
29578
29686
|
}),
|
|
29579
29687
|
setRepeat: require_sleep.method(zod.z.object({
|
|
29580
29688
|
deviceId: zod.z.number().int().nonnegative(),
|
|
29581
29689
|
repeat: MediaPlayerRepeatSchema
|
|
29582
29690
|
}), zod.z.void(), {
|
|
29583
29691
|
kind: "mutation",
|
|
29584
|
-
auth: "
|
|
29692
|
+
auth: "protected"
|
|
29585
29693
|
}),
|
|
29586
29694
|
selectSource: require_sleep.method(zod.z.object({
|
|
29587
29695
|
deviceId: zod.z.number().int().nonnegative(),
|
|
29588
29696
|
source: zod.z.string().min(1)
|
|
29589
29697
|
}), zod.z.void(), {
|
|
29590
29698
|
kind: "mutation",
|
|
29591
|
-
auth: "
|
|
29699
|
+
auth: "protected"
|
|
29592
29700
|
}),
|
|
29593
29701
|
playMedia: require_sleep.method(zod.z.object({
|
|
29594
29702
|
deviceId: zod.z.number().int().nonnegative(),
|
|
@@ -29599,7 +29707,7 @@ var mediaPlayerCapability = {
|
|
|
29599
29707
|
mediaType: zod.z.string().min(1)
|
|
29600
29708
|
}), zod.z.void(), {
|
|
29601
29709
|
kind: "mutation",
|
|
29602
|
-
auth: "
|
|
29710
|
+
auth: "protected"
|
|
29603
29711
|
})
|
|
29604
29712
|
},
|
|
29605
29713
|
status: {
|
|
@@ -31637,27 +31745,27 @@ var petFeederCapability = {
|
|
|
31637
31745
|
hopper2: gramsPortion.optional()
|
|
31638
31746
|
}), zod.z.void(), {
|
|
31639
31747
|
kind: "mutation",
|
|
31640
|
-
auth: "
|
|
31748
|
+
auth: "protected"
|
|
31641
31749
|
}),
|
|
31642
31750
|
/** Cancel an in-progress manual feed. */
|
|
31643
31751
|
cancelFeed: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
31644
31752
|
kind: "mutation",
|
|
31645
|
-
auth: "
|
|
31753
|
+
auth: "protected"
|
|
31646
31754
|
}),
|
|
31647
31755
|
/** Reset the desiccant "days remaining" counter after replacing it. */
|
|
31648
31756
|
resetDesiccant: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
31649
31757
|
kind: "mutation",
|
|
31650
|
-
auth: "
|
|
31758
|
+
auth: "protected"
|
|
31651
31759
|
}),
|
|
31652
31760
|
/** Mark a hopper as refilled (D4H/D4S/D4SH). */
|
|
31653
31761
|
markFoodReplenished: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
31654
31762
|
kind: "mutation",
|
|
31655
|
-
auth: "
|
|
31763
|
+
auth: "protected"
|
|
31656
31764
|
}),
|
|
31657
31765
|
/** Call the pet with the recorded prompt (D3). */
|
|
31658
31766
|
callPet: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
31659
31767
|
kind: "mutation",
|
|
31660
|
-
auth: "
|
|
31768
|
+
auth: "protected"
|
|
31661
31769
|
}),
|
|
31662
31770
|
/** Play a stored sound by id (D3 / D4H / D4SH). */
|
|
31663
31771
|
playSound: require_sleep.method(zod.z.object({
|
|
@@ -31665,7 +31773,7 @@ var petFeederCapability = {
|
|
|
31665
31773
|
soundId: zod.z.number().int().nonnegative()
|
|
31666
31774
|
}), zod.z.void(), {
|
|
31667
31775
|
kind: "mutation",
|
|
31668
|
-
auth: "
|
|
31776
|
+
auth: "protected"
|
|
31669
31777
|
}),
|
|
31670
31778
|
/** Toggle the child-lock (manual-lock) setting. */
|
|
31671
31779
|
setChildLock: require_sleep.method(zod.z.object({
|
|
@@ -31673,7 +31781,7 @@ var petFeederCapability = {
|
|
|
31673
31781
|
on: zod.z.boolean()
|
|
31674
31782
|
}), zod.z.void(), {
|
|
31675
31783
|
kind: "mutation",
|
|
31676
|
-
auth: "
|
|
31784
|
+
auth: "protected"
|
|
31677
31785
|
}),
|
|
31678
31786
|
/** Toggle the front indicator light. */
|
|
31679
31787
|
setIndicatorLight: require_sleep.method(zod.z.object({
|
|
@@ -31681,7 +31789,7 @@ var petFeederCapability = {
|
|
|
31681
31789
|
on: zod.z.boolean()
|
|
31682
31790
|
}), zod.z.void(), {
|
|
31683
31791
|
kind: "mutation",
|
|
31684
|
-
auth: "
|
|
31792
|
+
auth: "protected"
|
|
31685
31793
|
}),
|
|
31686
31794
|
/** Toggle the dispense chime. */
|
|
31687
31795
|
setFeedSound: require_sleep.method(zod.z.object({
|
|
@@ -31689,7 +31797,7 @@ var petFeederCapability = {
|
|
|
31689
31797
|
on: zod.z.boolean()
|
|
31690
31798
|
}), zod.z.void(), {
|
|
31691
31799
|
kind: "mutation",
|
|
31692
|
-
auth: "
|
|
31800
|
+
auth: "protected"
|
|
31693
31801
|
}),
|
|
31694
31802
|
/** Set the speaker / prompt volume level. */
|
|
31695
31803
|
setVolume: require_sleep.method(zod.z.object({
|
|
@@ -31697,7 +31805,7 @@ var petFeederCapability = {
|
|
|
31697
31805
|
level: zod.z.number().int().nonnegative()
|
|
31698
31806
|
}), zod.z.void(), {
|
|
31699
31807
|
kind: "mutation",
|
|
31700
|
-
auth: "
|
|
31808
|
+
auth: "protected"
|
|
31701
31809
|
})
|
|
31702
31810
|
},
|
|
31703
31811
|
status: {
|
|
@@ -34739,7 +34847,7 @@ var switchCapability = {
|
|
|
34739
34847
|
on: zod.z.boolean()
|
|
34740
34848
|
}), zod.z.void(), {
|
|
34741
34849
|
kind: "mutation",
|
|
34742
|
-
auth: "
|
|
34850
|
+
auth: "protected"
|
|
34743
34851
|
}) },
|
|
34744
34852
|
events: { onStateChanged: { data: zod.z.object({
|
|
34745
34853
|
deviceId: zod.z.number(),
|
|
@@ -35903,30 +36011,30 @@ var vacuumControlCapability = {
|
|
|
35903
36011
|
methods: {
|
|
35904
36012
|
start: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
35905
36013
|
kind: "mutation",
|
|
35906
|
-
auth: "
|
|
36014
|
+
auth: "protected"
|
|
35907
36015
|
}),
|
|
35908
36016
|
pause: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
35909
36017
|
kind: "mutation",
|
|
35910
|
-
auth: "
|
|
36018
|
+
auth: "protected"
|
|
35911
36019
|
}),
|
|
35912
36020
|
stop: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
35913
36021
|
kind: "mutation",
|
|
35914
|
-
auth: "
|
|
36022
|
+
auth: "protected"
|
|
35915
36023
|
}),
|
|
35916
36024
|
returnToBase: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
35917
36025
|
kind: "mutation",
|
|
35918
|
-
auth: "
|
|
36026
|
+
auth: "protected"
|
|
35919
36027
|
}),
|
|
35920
36028
|
locate: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
35921
36029
|
kind: "mutation",
|
|
35922
|
-
auth: "
|
|
36030
|
+
auth: "protected"
|
|
35923
36031
|
}),
|
|
35924
36032
|
setFanSpeed: require_sleep.method(zod.z.object({
|
|
35925
36033
|
deviceId: zod.z.number().int().nonnegative(),
|
|
35926
36034
|
speed: zod.z.string().min(1)
|
|
35927
36035
|
}), zod.z.void(), {
|
|
35928
36036
|
kind: "mutation",
|
|
35929
|
-
auth: "
|
|
36037
|
+
auth: "protected"
|
|
35930
36038
|
})
|
|
35931
36039
|
},
|
|
35932
36040
|
status: {
|
|
@@ -35990,22 +36098,22 @@ var valveCapability = {
|
|
|
35990
36098
|
methods: {
|
|
35991
36099
|
open: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
35992
36100
|
kind: "mutation",
|
|
35993
|
-
auth: "
|
|
36101
|
+
auth: "protected"
|
|
35994
36102
|
}),
|
|
35995
36103
|
close: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
35996
36104
|
kind: "mutation",
|
|
35997
|
-
auth: "
|
|
36105
|
+
auth: "protected"
|
|
35998
36106
|
}),
|
|
35999
36107
|
stop: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), zod.z.void(), {
|
|
36000
36108
|
kind: "mutation",
|
|
36001
|
-
auth: "
|
|
36109
|
+
auth: "protected"
|
|
36002
36110
|
}),
|
|
36003
36111
|
setPosition: require_sleep.method(zod.z.object({
|
|
36004
36112
|
deviceId: zod.z.number().int().nonnegative(),
|
|
36005
36113
|
position: zod.z.number().min(0).max(100)
|
|
36006
36114
|
}), zod.z.void(), {
|
|
36007
36115
|
kind: "mutation",
|
|
36008
|
-
auth: "
|
|
36116
|
+
auth: "protected"
|
|
36009
36117
|
})
|
|
36010
36118
|
},
|
|
36011
36119
|
status: {
|
|
@@ -36108,21 +36216,21 @@ var waterHeaterCapability = {
|
|
|
36108
36216
|
temp: zod.z.number().finite()
|
|
36109
36217
|
}), zod.z.void(), {
|
|
36110
36218
|
kind: "mutation",
|
|
36111
|
-
auth: "
|
|
36219
|
+
auth: "protected"
|
|
36112
36220
|
}),
|
|
36113
36221
|
setOperationMode: require_sleep.method(zod.z.object({
|
|
36114
36222
|
deviceId: zod.z.number().int().nonnegative(),
|
|
36115
36223
|
mode: zod.z.string().min(1)
|
|
36116
36224
|
}), zod.z.void(), {
|
|
36117
36225
|
kind: "mutation",
|
|
36118
|
-
auth: "
|
|
36226
|
+
auth: "protected"
|
|
36119
36227
|
}),
|
|
36120
36228
|
setAway: require_sleep.method(zod.z.object({
|
|
36121
36229
|
deviceId: zod.z.number().int().nonnegative(),
|
|
36122
36230
|
on: zod.z.boolean()
|
|
36123
36231
|
}), zod.z.void(), {
|
|
36124
36232
|
kind: "mutation",
|
|
36125
|
-
auth: "
|
|
36233
|
+
auth: "protected"
|
|
36126
36234
|
})
|
|
36127
36235
|
},
|
|
36128
36236
|
status: {
|
|
@@ -44572,6 +44680,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
44572
44680
|
addonId: null,
|
|
44573
44681
|
access: "view"
|
|
44574
44682
|
},
|
|
44683
|
+
"pipelineAnalytics.listArchivedDebugNotes": {
|
|
44684
|
+
capName: "pipeline-analytics",
|
|
44685
|
+
capScope: "device",
|
|
44686
|
+
addonId: null,
|
|
44687
|
+
access: "view"
|
|
44688
|
+
},
|
|
44575
44689
|
"pipelineAnalytics.listEventKinds": {
|
|
44576
44690
|
capName: "pipeline-analytics",
|
|
44577
44691
|
capScope: "device",
|
|
@@ -48628,6 +48742,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
48628
48742
|
form: "array",
|
|
48629
48743
|
optional: true
|
|
48630
48744
|
}],
|
|
48745
|
+
"pipelineAnalytics.listArchivedDebugNotes": [{
|
|
48746
|
+
name: "deviceId",
|
|
48747
|
+
form: "single",
|
|
48748
|
+
optional: true
|
|
48749
|
+
}],
|
|
48631
48750
|
"pipelineAnalytics.listEventKinds": [{
|
|
48632
48751
|
name: "deviceId",
|
|
48633
48752
|
form: "single",
|
|
@@ -54624,6 +54743,7 @@ exports.ACCESS_ROLES = ACCESS_ROLES;
|
|
|
54624
54743
|
exports.ALEXA_EGRESS_PROFILE = ALEXA_EGRESS_PROFILE;
|
|
54625
54744
|
exports.ALL_CAPABILITY_DEFINITIONS = ALL_CAPABILITY_DEFINITIONS;
|
|
54626
54745
|
exports.APPLE_SA_TO_MACRO = APPLE_SA_TO_MACRO;
|
|
54746
|
+
exports.ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT = ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT;
|
|
54627
54747
|
exports.AUDIO_ANALYSIS_CAP_NAME = AUDIO_ANALYSIS_CAP_NAME;
|
|
54628
54748
|
exports.AUDIO_BACKEND_CHOICES = AUDIO_BACKEND_CHOICES;
|
|
54629
54749
|
exports.AUDIO_MACRO_LABELS = AUDIO_MACRO_LABELS;
|
|
@@ -54661,6 +54781,8 @@ exports.ApiKeyRecordSchema = ApiKeyRecordSchema;
|
|
|
54661
54781
|
exports.ApiKeySummarySchema = ApiKeySummarySchema;
|
|
54662
54782
|
exports.ArchiveEntrySchema = ArchiveEntrySchema;
|
|
54663
54783
|
exports.ArchiveManifestSchema = ArchiveManifestSchema;
|
|
54784
|
+
exports.ArchivedDebugNoteQueryInputSchema = ArchivedDebugNoteQueryInputSchema;
|
|
54785
|
+
exports.ArchivedDebugNoteSchema = ArchivedDebugNoteSchema;
|
|
54664
54786
|
exports.AttachmentMediaTypeSchema = AttachmentMediaTypeSchema;
|
|
54665
54787
|
exports.AttachmentSchema = AttachmentSchema;
|
|
54666
54788
|
exports.AudioAnalysisResultSchema = AudioAnalysisResultSchema;
|
|
@@ -55081,6 +55203,7 @@ exports.LoggingSettingsStateSchema = LoggingSettingsStateSchema;
|
|
|
55081
55203
|
exports.LoginMethodContributionSchema = LoginMethodContributionSchema;
|
|
55082
55204
|
exports.LoginStageEnum = LoginStageEnum;
|
|
55083
55205
|
exports.MACRO_LABELS = MACRO_LABELS;
|
|
55206
|
+
exports.MAX_ARCHIVED_DEBUG_NOTES = MAX_ARCHIVED_DEBUG_NOTES;
|
|
55084
55207
|
exports.MAX_CLIP_EVENT_IDS = MAX_CLIP_EVENT_IDS;
|
|
55085
55208
|
exports.MAX_CLIP_LABELS = MAX_CLIP_LABELS;
|
|
55086
55209
|
exports.MAX_CONDITION_DEPTH = MAX_CONDITION_DEPTH;
|