@camstack/addon-provider-amcrest 0.2.143 → 0.2.145
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
|
@@ -5450,7 +5450,7 @@ var ZodIssueCode = {
|
|
|
5450
5450
|
var ZodFirstPartyTypeKind;
|
|
5451
5451
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5452
5452
|
//#endregion
|
|
5453
|
-
//#region ../types/dist/sleep-
|
|
5453
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5454
5454
|
/**
|
|
5455
5455
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5456
5456
|
* window to float samples (D455).
|
|
@@ -7998,7 +7998,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
7998
7998
|
secretPaths: array(string().min(1)).default([]),
|
|
7999
7999
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
8000
8000
|
secretArrayKeys: record(string(), string()).default({}),
|
|
8001
|
-
/**
|
|
8001
|
+
/**
|
|
8002
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
8003
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
8004
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
8005
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
8006
|
+
* removal still sends it. Never set it.
|
|
8007
|
+
*/
|
|
8002
8008
|
adoptsFrom: string().min(1).optional(),
|
|
8003
8009
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
8004
8010
|
transactFamily: string().min(1).optional(),
|
|
@@ -16694,11 +16700,12 @@ var DeclareKindResultSchema = object({
|
|
|
16694
16700
|
kindId: number().int(),
|
|
16695
16701
|
state: RecordKindStateSchema,
|
|
16696
16702
|
createdIndexes: array(string()),
|
|
16697
|
-
/**
|
|
16698
|
-
|
|
16699
|
-
|
|
16700
|
-
|
|
16701
|
-
|
|
16703
|
+
/**
|
|
16704
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16705
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16706
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16707
|
+
*/
|
|
16708
|
+
adoptionPending: _null()
|
|
16702
16709
|
});
|
|
16703
16710
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16704
16711
|
var SecretRefsList = array(string());
|
|
@@ -16871,26 +16878,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16871
16878
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16872
16879
|
owner: string().min(1),
|
|
16873
16880
|
kind: RecordKindNameSchema
|
|
16874
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
16875
|
-
owner: string().min(1),
|
|
16876
|
-
kind: RecordKindNameSchema,
|
|
16877
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16878
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16879
|
-
complete: boolean().optional()
|
|
16880
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16881
|
-
kind: "mutation",
|
|
16882
|
-
auth: "admin"
|
|
16883
|
-
}), method(object({
|
|
16884
|
-
collection: string().min(1),
|
|
16885
|
-
cursor: string().optional(),
|
|
16886
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
16887
|
-
}), object({
|
|
16888
|
-
rows: array(object({
|
|
16889
|
-
id: string(),
|
|
16890
|
-
data: record(string(), unknown())
|
|
16891
|
-
})),
|
|
16892
|
-
nextCursor: string().nullable()
|
|
16893
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16881
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
16894
16882
|
/**
|
|
16895
16883
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16896
16884
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -61056,9 +61044,24 @@ var NpuInfoSchema = object({
|
|
|
61056
61044
|
name: string().optional(),
|
|
61057
61045
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
61058
61046
|
});
|
|
61047
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
61059
61048
|
var CoralInfoSchema = object({
|
|
61060
61049
|
type: literal("coral-edgetpu"),
|
|
61061
|
-
bus
|
|
61050
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
61051
|
+
bus: string().optional(),
|
|
61052
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
61053
|
+
count: number().int().nonnegative().optional(),
|
|
61054
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
61055
|
+
units: array(object({
|
|
61056
|
+
bus: CoralBusSchema,
|
|
61057
|
+
count: number().int().nonnegative()
|
|
61058
|
+
})).readonly().optional(),
|
|
61059
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
61060
|
+
unavailable: array(object({
|
|
61061
|
+
bus: CoralBusSchema,
|
|
61062
|
+
count: number().int().nonnegative(),
|
|
61063
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
61064
|
+
})).readonly().optional()
|
|
61062
61065
|
});
|
|
61063
61066
|
var HardwareInfoSchema = object({
|
|
61064
61067
|
platform: HardwarePlatformSchema,
|
|
@@ -70225,6 +70228,12 @@ Object.freeze({
|
|
|
70225
70228
|
addonId: null,
|
|
70226
70229
|
access: "view"
|
|
70227
70230
|
},
|
|
70231
|
+
"deviceHistory.queryMany": {
|
|
70232
|
+
capName: "device-history",
|
|
70233
|
+
capScope: "system",
|
|
70234
|
+
addonId: null,
|
|
70235
|
+
access: "view"
|
|
70236
|
+
},
|
|
70228
70237
|
"deviceHistory.queryNode": {
|
|
70229
70238
|
capName: "device-history",
|
|
70230
70239
|
capScope: "system",
|
|
@@ -75445,24 +75454,12 @@ Object.freeze({
|
|
|
75445
75454
|
addonId: null,
|
|
75446
75455
|
access: "create"
|
|
75447
75456
|
},
|
|
75448
|
-
"storageAdmin.adoptRecords": {
|
|
75449
|
-
capName: "storage-admin",
|
|
75450
|
-
capScope: "system",
|
|
75451
|
-
addonId: null,
|
|
75452
|
-
access: "create"
|
|
75453
|
-
},
|
|
75454
75457
|
"storageAdmin.dropCollection": {
|
|
75455
75458
|
capName: "storage-admin",
|
|
75456
75459
|
capScope: "system",
|
|
75457
75460
|
addonId: null,
|
|
75458
75461
|
access: "delete"
|
|
75459
75462
|
},
|
|
75460
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
75461
|
-
capName: "storage-admin",
|
|
75462
|
-
capScope: "system",
|
|
75463
|
-
addonId: null,
|
|
75464
|
-
access: "view"
|
|
75465
|
-
},
|
|
75466
75463
|
"storageAdmin.listKinds": {
|
|
75467
75464
|
capName: "storage-admin",
|
|
75468
75465
|
capScope: "system",
|
|
@@ -75475,12 +75472,6 @@ Object.freeze({
|
|
|
75475
75472
|
addonId: null,
|
|
75476
75473
|
access: "view"
|
|
75477
75474
|
},
|
|
75478
|
-
"storageAdmin.readLegacyCollection": {
|
|
75479
|
-
capName: "storage-admin",
|
|
75480
|
-
capScope: "system",
|
|
75481
|
-
addonId: null,
|
|
75482
|
-
access: "view"
|
|
75483
|
-
},
|
|
75484
75475
|
"storageAdmin.readRecords": {
|
|
75485
75476
|
capName: "storage-admin",
|
|
75486
75477
|
capScope: "system",
|
|
@@ -79501,12 +79492,6 @@ Object.freeze({
|
|
|
79501
79492
|
form: "single",
|
|
79502
79493
|
optional: false
|
|
79503
79494
|
}],
|
|
79504
|
-
"storageAdmin.adoptRecords": [{
|
|
79505
|
-
name: "records",
|
|
79506
|
-
form: "object-array",
|
|
79507
|
-
optional: false,
|
|
79508
|
-
itemField: "deviceId"
|
|
79509
|
-
}],
|
|
79510
79495
|
"storageAdmin.readRecords": [{
|
|
79511
79496
|
name: "deviceId",
|
|
79512
79497
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -5429,7 +5429,7 @@ var ZodIssueCode = {
|
|
|
5429
5429
|
var ZodFirstPartyTypeKind;
|
|
5430
5430
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5431
5431
|
//#endregion
|
|
5432
|
-
//#region ../types/dist/sleep-
|
|
5432
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5433
5433
|
/**
|
|
5434
5434
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5435
5435
|
* window to float samples (D455).
|
|
@@ -7977,7 +7977,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
7977
7977
|
secretPaths: array(string().min(1)).default([]),
|
|
7978
7978
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7979
7979
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7980
|
-
/**
|
|
7980
|
+
/**
|
|
7981
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7982
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7983
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7984
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7985
|
+
* removal still sends it. Never set it.
|
|
7986
|
+
*/
|
|
7981
7987
|
adoptsFrom: string().min(1).optional(),
|
|
7982
7988
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7983
7989
|
transactFamily: string().min(1).optional(),
|
|
@@ -16673,11 +16679,12 @@ var DeclareKindResultSchema = object({
|
|
|
16673
16679
|
kindId: number().int(),
|
|
16674
16680
|
state: RecordKindStateSchema,
|
|
16675
16681
|
createdIndexes: array(string()),
|
|
16676
|
-
/**
|
|
16677
|
-
|
|
16678
|
-
|
|
16679
|
-
|
|
16680
|
-
|
|
16682
|
+
/**
|
|
16683
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16684
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16685
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16686
|
+
*/
|
|
16687
|
+
adoptionPending: _null()
|
|
16681
16688
|
});
|
|
16682
16689
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16683
16690
|
var SecretRefsList = array(string());
|
|
@@ -16850,26 +16857,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16850
16857
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16851
16858
|
owner: string().min(1),
|
|
16852
16859
|
kind: RecordKindNameSchema
|
|
16853
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
16854
|
-
owner: string().min(1),
|
|
16855
|
-
kind: RecordKindNameSchema,
|
|
16856
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16857
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16858
|
-
complete: boolean().optional()
|
|
16859
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16860
|
-
kind: "mutation",
|
|
16861
|
-
auth: "admin"
|
|
16862
|
-
}), method(object({
|
|
16863
|
-
collection: string().min(1),
|
|
16864
|
-
cursor: string().optional(),
|
|
16865
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
16866
|
-
}), object({
|
|
16867
|
-
rows: array(object({
|
|
16868
|
-
id: string(),
|
|
16869
|
-
data: record(string(), unknown())
|
|
16870
|
-
})),
|
|
16871
|
-
nextCursor: string().nullable()
|
|
16872
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16860
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
16873
16861
|
/**
|
|
16874
16862
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16875
16863
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -61035,9 +61023,24 @@ var NpuInfoSchema = object({
|
|
|
61035
61023
|
name: string().optional(),
|
|
61036
61024
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
61037
61025
|
});
|
|
61026
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
61038
61027
|
var CoralInfoSchema = object({
|
|
61039
61028
|
type: literal("coral-edgetpu"),
|
|
61040
|
-
bus
|
|
61029
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
61030
|
+
bus: string().optional(),
|
|
61031
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
61032
|
+
count: number().int().nonnegative().optional(),
|
|
61033
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
61034
|
+
units: array(object({
|
|
61035
|
+
bus: CoralBusSchema,
|
|
61036
|
+
count: number().int().nonnegative()
|
|
61037
|
+
})).readonly().optional(),
|
|
61038
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
61039
|
+
unavailable: array(object({
|
|
61040
|
+
bus: CoralBusSchema,
|
|
61041
|
+
count: number().int().nonnegative(),
|
|
61042
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
61043
|
+
})).readonly().optional()
|
|
61041
61044
|
});
|
|
61042
61045
|
var HardwareInfoSchema = object({
|
|
61043
61046
|
platform: HardwarePlatformSchema,
|
|
@@ -70204,6 +70207,12 @@ Object.freeze({
|
|
|
70204
70207
|
addonId: null,
|
|
70205
70208
|
access: "view"
|
|
70206
70209
|
},
|
|
70210
|
+
"deviceHistory.queryMany": {
|
|
70211
|
+
capName: "device-history",
|
|
70212
|
+
capScope: "system",
|
|
70213
|
+
addonId: null,
|
|
70214
|
+
access: "view"
|
|
70215
|
+
},
|
|
70207
70216
|
"deviceHistory.queryNode": {
|
|
70208
70217
|
capName: "device-history",
|
|
70209
70218
|
capScope: "system",
|
|
@@ -75424,24 +75433,12 @@ Object.freeze({
|
|
|
75424
75433
|
addonId: null,
|
|
75425
75434
|
access: "create"
|
|
75426
75435
|
},
|
|
75427
|
-
"storageAdmin.adoptRecords": {
|
|
75428
|
-
capName: "storage-admin",
|
|
75429
|
-
capScope: "system",
|
|
75430
|
-
addonId: null,
|
|
75431
|
-
access: "create"
|
|
75432
|
-
},
|
|
75433
75436
|
"storageAdmin.dropCollection": {
|
|
75434
75437
|
capName: "storage-admin",
|
|
75435
75438
|
capScope: "system",
|
|
75436
75439
|
addonId: null,
|
|
75437
75440
|
access: "delete"
|
|
75438
75441
|
},
|
|
75439
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
75440
|
-
capName: "storage-admin",
|
|
75441
|
-
capScope: "system",
|
|
75442
|
-
addonId: null,
|
|
75443
|
-
access: "view"
|
|
75444
|
-
},
|
|
75445
75442
|
"storageAdmin.listKinds": {
|
|
75446
75443
|
capName: "storage-admin",
|
|
75447
75444
|
capScope: "system",
|
|
@@ -75454,12 +75451,6 @@ Object.freeze({
|
|
|
75454
75451
|
addonId: null,
|
|
75455
75452
|
access: "view"
|
|
75456
75453
|
},
|
|
75457
|
-
"storageAdmin.readLegacyCollection": {
|
|
75458
|
-
capName: "storage-admin",
|
|
75459
|
-
capScope: "system",
|
|
75460
|
-
addonId: null,
|
|
75461
|
-
access: "view"
|
|
75462
|
-
},
|
|
75463
75454
|
"storageAdmin.readRecords": {
|
|
75464
75455
|
capName: "storage-admin",
|
|
75465
75456
|
capScope: "system",
|
|
@@ -79480,12 +79471,6 @@ Object.freeze({
|
|
|
79480
79471
|
form: "single",
|
|
79481
79472
|
optional: false
|
|
79482
79473
|
}],
|
|
79483
|
-
"storageAdmin.adoptRecords": [{
|
|
79484
|
-
name: "records",
|
|
79485
|
-
form: "object-array",
|
|
79486
|
-
optional: false,
|
|
79487
|
-
itemField: "deviceId"
|
|
79488
|
-
}],
|
|
79489
79474
|
"storageAdmin.readRecords": [{
|
|
79490
79475
|
name: "deviceId",
|
|
79491
79476
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-amcrest",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.145",
|
|
4
4
|
"description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|