@camstack/addon-provider-wyze 0.2.144 → 0.2.146
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 +37 -52
- package/dist/addon.mjs +37 -52
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5446,7 +5446,7 @@ var ZodIssueCode = {
|
|
|
5446
5446
|
var ZodFirstPartyTypeKind;
|
|
5447
5447
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5448
5448
|
//#endregion
|
|
5449
|
-
//#region ../types/dist/sleep-
|
|
5449
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5450
5450
|
/**
|
|
5451
5451
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5452
5452
|
* window to float samples (D455).
|
|
@@ -7994,7 +7994,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
7994
7994
|
secretPaths: array(string().min(1)).default([]),
|
|
7995
7995
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7996
7996
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7997
|
-
/**
|
|
7997
|
+
/**
|
|
7998
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7999
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
8000
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
8001
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
8002
|
+
* removal still sends it. Never set it.
|
|
8003
|
+
*/
|
|
7998
8004
|
adoptsFrom: string().min(1).optional(),
|
|
7999
8005
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
8000
8006
|
transactFamily: string().min(1).optional(),
|
|
@@ -16700,11 +16706,12 @@ var DeclareKindResultSchema = object({
|
|
|
16700
16706
|
kindId: number().int(),
|
|
16701
16707
|
state: RecordKindStateSchema,
|
|
16702
16708
|
createdIndexes: array(string()),
|
|
16703
|
-
/**
|
|
16704
|
-
|
|
16705
|
-
|
|
16706
|
-
|
|
16707
|
-
|
|
16709
|
+
/**
|
|
16710
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16711
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16712
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16713
|
+
*/
|
|
16714
|
+
adoptionPending: _null()
|
|
16708
16715
|
});
|
|
16709
16716
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16710
16717
|
var SecretRefsList = array(string());
|
|
@@ -16877,26 +16884,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16877
16884
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16878
16885
|
owner: string().min(1),
|
|
16879
16886
|
kind: RecordKindNameSchema
|
|
16880
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
16881
|
-
owner: string().min(1),
|
|
16882
|
-
kind: RecordKindNameSchema,
|
|
16883
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16884
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16885
|
-
complete: boolean().optional()
|
|
16886
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16887
|
-
kind: "mutation",
|
|
16888
|
-
auth: "admin"
|
|
16889
|
-
}), method(object({
|
|
16890
|
-
collection: string().min(1),
|
|
16891
|
-
cursor: string().optional(),
|
|
16892
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
16893
|
-
}), object({
|
|
16894
|
-
rows: array(object({
|
|
16895
|
-
id: string(),
|
|
16896
|
-
data: record(string(), unknown())
|
|
16897
|
-
})),
|
|
16898
|
-
nextCursor: string().nullable()
|
|
16899
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16887
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
16900
16888
|
/**
|
|
16901
16889
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16902
16890
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -60519,9 +60507,24 @@ var NpuInfoSchema = object({
|
|
|
60519
60507
|
name: string().optional(),
|
|
60520
60508
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
60521
60509
|
});
|
|
60510
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
60522
60511
|
var CoralInfoSchema = object({
|
|
60523
60512
|
type: literal("coral-edgetpu"),
|
|
60524
|
-
bus
|
|
60513
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
60514
|
+
bus: string().optional(),
|
|
60515
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
60516
|
+
count: number().int().nonnegative().optional(),
|
|
60517
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
60518
|
+
units: array(object({
|
|
60519
|
+
bus: CoralBusSchema,
|
|
60520
|
+
count: number().int().nonnegative()
|
|
60521
|
+
})).readonly().optional(),
|
|
60522
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
60523
|
+
unavailable: array(object({
|
|
60524
|
+
bus: CoralBusSchema,
|
|
60525
|
+
count: number().int().nonnegative(),
|
|
60526
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
60527
|
+
})).readonly().optional()
|
|
60525
60528
|
});
|
|
60526
60529
|
var HardwareInfoSchema = object({
|
|
60527
60530
|
platform: HardwarePlatformSchema,
|
|
@@ -69268,6 +69271,12 @@ Object.freeze({
|
|
|
69268
69271
|
addonId: null,
|
|
69269
69272
|
access: "view"
|
|
69270
69273
|
},
|
|
69274
|
+
"deviceHistory.queryMany": {
|
|
69275
|
+
capName: "device-history",
|
|
69276
|
+
capScope: "system",
|
|
69277
|
+
addonId: null,
|
|
69278
|
+
access: "view"
|
|
69279
|
+
},
|
|
69271
69280
|
"deviceHistory.queryNode": {
|
|
69272
69281
|
capName: "device-history",
|
|
69273
69282
|
capScope: "system",
|
|
@@ -74488,24 +74497,12 @@ Object.freeze({
|
|
|
74488
74497
|
addonId: null,
|
|
74489
74498
|
access: "create"
|
|
74490
74499
|
},
|
|
74491
|
-
"storageAdmin.adoptRecords": {
|
|
74492
|
-
capName: "storage-admin",
|
|
74493
|
-
capScope: "system",
|
|
74494
|
-
addonId: null,
|
|
74495
|
-
access: "create"
|
|
74496
|
-
},
|
|
74497
74500
|
"storageAdmin.dropCollection": {
|
|
74498
74501
|
capName: "storage-admin",
|
|
74499
74502
|
capScope: "system",
|
|
74500
74503
|
addonId: null,
|
|
74501
74504
|
access: "delete"
|
|
74502
74505
|
},
|
|
74503
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
74504
|
-
capName: "storage-admin",
|
|
74505
|
-
capScope: "system",
|
|
74506
|
-
addonId: null,
|
|
74507
|
-
access: "view"
|
|
74508
|
-
},
|
|
74509
74506
|
"storageAdmin.listKinds": {
|
|
74510
74507
|
capName: "storage-admin",
|
|
74511
74508
|
capScope: "system",
|
|
@@ -74518,12 +74515,6 @@ Object.freeze({
|
|
|
74518
74515
|
addonId: null,
|
|
74519
74516
|
access: "view"
|
|
74520
74517
|
},
|
|
74521
|
-
"storageAdmin.readLegacyCollection": {
|
|
74522
|
-
capName: "storage-admin",
|
|
74523
|
-
capScope: "system",
|
|
74524
|
-
addonId: null,
|
|
74525
|
-
access: "view"
|
|
74526
|
-
},
|
|
74527
74518
|
"storageAdmin.readRecords": {
|
|
74528
74519
|
capName: "storage-admin",
|
|
74529
74520
|
capScope: "system",
|
|
@@ -78338,12 +78329,6 @@ Object.freeze({
|
|
|
78338
78329
|
form: "single",
|
|
78339
78330
|
optional: false
|
|
78340
78331
|
}],
|
|
78341
|
-
"storageAdmin.adoptRecords": [{
|
|
78342
|
-
name: "records",
|
|
78343
|
-
form: "object-array",
|
|
78344
|
-
optional: false,
|
|
78345
|
-
itemField: "deviceId"
|
|
78346
|
-
}],
|
|
78347
78332
|
"storageAdmin.readRecords": [{
|
|
78348
78333
|
name: "deviceId",
|
|
78349
78334
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -5425,7 +5425,7 @@ var ZodIssueCode = {
|
|
|
5425
5425
|
var ZodFirstPartyTypeKind;
|
|
5426
5426
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5427
5427
|
//#endregion
|
|
5428
|
-
//#region ../types/dist/sleep-
|
|
5428
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5429
5429
|
/**
|
|
5430
5430
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5431
5431
|
* window to float samples (D455).
|
|
@@ -7973,7 +7973,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
7973
7973
|
secretPaths: array(string().min(1)).default([]),
|
|
7974
7974
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7975
7975
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7976
|
-
/**
|
|
7976
|
+
/**
|
|
7977
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7978
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7979
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7980
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7981
|
+
* removal still sends it. Never set it.
|
|
7982
|
+
*/
|
|
7977
7983
|
adoptsFrom: string().min(1).optional(),
|
|
7978
7984
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7979
7985
|
transactFamily: string().min(1).optional(),
|
|
@@ -16679,11 +16685,12 @@ var DeclareKindResultSchema = object({
|
|
|
16679
16685
|
kindId: number().int(),
|
|
16680
16686
|
state: RecordKindStateSchema,
|
|
16681
16687
|
createdIndexes: array(string()),
|
|
16682
|
-
/**
|
|
16683
|
-
|
|
16684
|
-
|
|
16685
|
-
|
|
16686
|
-
|
|
16688
|
+
/**
|
|
16689
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16690
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16691
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16692
|
+
*/
|
|
16693
|
+
adoptionPending: _null()
|
|
16687
16694
|
});
|
|
16688
16695
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16689
16696
|
var SecretRefsList = array(string());
|
|
@@ -16856,26 +16863,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16856
16863
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16857
16864
|
owner: string().min(1),
|
|
16858
16865
|
kind: RecordKindNameSchema
|
|
16859
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
16860
|
-
owner: string().min(1),
|
|
16861
|
-
kind: RecordKindNameSchema,
|
|
16862
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16863
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16864
|
-
complete: boolean().optional()
|
|
16865
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16866
|
-
kind: "mutation",
|
|
16867
|
-
auth: "admin"
|
|
16868
|
-
}), method(object({
|
|
16869
|
-
collection: string().min(1),
|
|
16870
|
-
cursor: string().optional(),
|
|
16871
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
16872
|
-
}), object({
|
|
16873
|
-
rows: array(object({
|
|
16874
|
-
id: string(),
|
|
16875
|
-
data: record(string(), unknown())
|
|
16876
|
-
})),
|
|
16877
|
-
nextCursor: string().nullable()
|
|
16878
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16866
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
16879
16867
|
/**
|
|
16880
16868
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16881
16869
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -60498,9 +60486,24 @@ var NpuInfoSchema = object({
|
|
|
60498
60486
|
name: string().optional(),
|
|
60499
60487
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
60500
60488
|
});
|
|
60489
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
60501
60490
|
var CoralInfoSchema = object({
|
|
60502
60491
|
type: literal("coral-edgetpu"),
|
|
60503
|
-
bus
|
|
60492
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
60493
|
+
bus: string().optional(),
|
|
60494
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
60495
|
+
count: number().int().nonnegative().optional(),
|
|
60496
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
60497
|
+
units: array(object({
|
|
60498
|
+
bus: CoralBusSchema,
|
|
60499
|
+
count: number().int().nonnegative()
|
|
60500
|
+
})).readonly().optional(),
|
|
60501
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
60502
|
+
unavailable: array(object({
|
|
60503
|
+
bus: CoralBusSchema,
|
|
60504
|
+
count: number().int().nonnegative(),
|
|
60505
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
60506
|
+
})).readonly().optional()
|
|
60504
60507
|
});
|
|
60505
60508
|
var HardwareInfoSchema = object({
|
|
60506
60509
|
platform: HardwarePlatformSchema,
|
|
@@ -69247,6 +69250,12 @@ Object.freeze({
|
|
|
69247
69250
|
addonId: null,
|
|
69248
69251
|
access: "view"
|
|
69249
69252
|
},
|
|
69253
|
+
"deviceHistory.queryMany": {
|
|
69254
|
+
capName: "device-history",
|
|
69255
|
+
capScope: "system",
|
|
69256
|
+
addonId: null,
|
|
69257
|
+
access: "view"
|
|
69258
|
+
},
|
|
69250
69259
|
"deviceHistory.queryNode": {
|
|
69251
69260
|
capName: "device-history",
|
|
69252
69261
|
capScope: "system",
|
|
@@ -74467,24 +74476,12 @@ Object.freeze({
|
|
|
74467
74476
|
addonId: null,
|
|
74468
74477
|
access: "create"
|
|
74469
74478
|
},
|
|
74470
|
-
"storageAdmin.adoptRecords": {
|
|
74471
|
-
capName: "storage-admin",
|
|
74472
|
-
capScope: "system",
|
|
74473
|
-
addonId: null,
|
|
74474
|
-
access: "create"
|
|
74475
|
-
},
|
|
74476
74479
|
"storageAdmin.dropCollection": {
|
|
74477
74480
|
capName: "storage-admin",
|
|
74478
74481
|
capScope: "system",
|
|
74479
74482
|
addonId: null,
|
|
74480
74483
|
access: "delete"
|
|
74481
74484
|
},
|
|
74482
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
74483
|
-
capName: "storage-admin",
|
|
74484
|
-
capScope: "system",
|
|
74485
|
-
addonId: null,
|
|
74486
|
-
access: "view"
|
|
74487
|
-
},
|
|
74488
74485
|
"storageAdmin.listKinds": {
|
|
74489
74486
|
capName: "storage-admin",
|
|
74490
74487
|
capScope: "system",
|
|
@@ -74497,12 +74494,6 @@ Object.freeze({
|
|
|
74497
74494
|
addonId: null,
|
|
74498
74495
|
access: "view"
|
|
74499
74496
|
},
|
|
74500
|
-
"storageAdmin.readLegacyCollection": {
|
|
74501
|
-
capName: "storage-admin",
|
|
74502
|
-
capScope: "system",
|
|
74503
|
-
addonId: null,
|
|
74504
|
-
access: "view"
|
|
74505
|
-
},
|
|
74506
74497
|
"storageAdmin.readRecords": {
|
|
74507
74498
|
capName: "storage-admin",
|
|
74508
74499
|
capScope: "system",
|
|
@@ -78317,12 +78308,6 @@ Object.freeze({
|
|
|
78317
78308
|
form: "single",
|
|
78318
78309
|
optional: false
|
|
78319
78310
|
}],
|
|
78320
|
-
"storageAdmin.adoptRecords": [{
|
|
78321
|
-
name: "records",
|
|
78322
|
-
form: "object-array",
|
|
78323
|
-
optional: false,
|
|
78324
|
-
itemField: "deviceId"
|
|
78325
|
-
}],
|
|
78326
78311
|
"storageAdmin.readRecords": [{
|
|
78327
78312
|
name: "deviceId",
|
|
78328
78313
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.146",
|
|
4
4
|
"description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|