@camstack/addon-decoder-nodeav 1.2.128 → 1.2.130
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/index.js +37 -52
- package/dist/index.mjs +37 -52
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5418,7 +5418,7 @@ var ZodIssueCode = {
|
|
|
5418
5418
|
var ZodFirstPartyTypeKind;
|
|
5419
5419
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5420
5420
|
//#endregion
|
|
5421
|
-
//#region ../types/dist/sleep-
|
|
5421
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5422
5422
|
/**
|
|
5423
5423
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5424
5424
|
* window to float samples (D455).
|
|
@@ -7899,7 +7899,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
7899
7899
|
secretPaths: array(string().min(1)).default([]),
|
|
7900
7900
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7901
7901
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7902
|
-
/**
|
|
7902
|
+
/**
|
|
7903
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7904
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7905
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7906
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7907
|
+
* removal still sends it. Never set it.
|
|
7908
|
+
*/
|
|
7903
7909
|
adoptsFrom: string().min(1).optional(),
|
|
7904
7910
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7905
7911
|
transactFamily: string().min(1).optional(),
|
|
@@ -16498,11 +16504,12 @@ var DeclareKindResultSchema = object({
|
|
|
16498
16504
|
kindId: number().int(),
|
|
16499
16505
|
state: RecordKindStateSchema,
|
|
16500
16506
|
createdIndexes: array(string()),
|
|
16501
|
-
/**
|
|
16502
|
-
|
|
16503
|
-
|
|
16504
|
-
|
|
16505
|
-
|
|
16507
|
+
/**
|
|
16508
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16509
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16510
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16511
|
+
*/
|
|
16512
|
+
adoptionPending: _null()
|
|
16506
16513
|
});
|
|
16507
16514
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16508
16515
|
var SecretRefsList = array(string());
|
|
@@ -16675,26 +16682,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16675
16682
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16676
16683
|
owner: string().min(1),
|
|
16677
16684
|
kind: RecordKindNameSchema
|
|
16678
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
16679
|
-
owner: string().min(1),
|
|
16680
|
-
kind: RecordKindNameSchema,
|
|
16681
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16682
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16683
|
-
complete: boolean().optional()
|
|
16684
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16685
|
-
kind: "mutation",
|
|
16686
|
-
auth: "admin"
|
|
16687
|
-
}), method(object({
|
|
16688
|
-
collection: string().min(1),
|
|
16689
|
-
cursor: string().optional(),
|
|
16690
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
16691
|
-
}), object({
|
|
16692
|
-
rows: array(object({
|
|
16693
|
-
id: string(),
|
|
16694
|
-
data: record(string(), unknown())
|
|
16695
|
-
})),
|
|
16696
|
-
nextCursor: string().nullable()
|
|
16697
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16685
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
16698
16686
|
/**
|
|
16699
16687
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16700
16688
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -57937,9 +57925,24 @@ var NpuInfoSchema = object({
|
|
|
57937
57925
|
name: string().optional(),
|
|
57938
57926
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
57939
57927
|
});
|
|
57928
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
57940
57929
|
var CoralInfoSchema = object({
|
|
57941
57930
|
type: literal("coral-edgetpu"),
|
|
57942
|
-
bus
|
|
57931
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
57932
|
+
bus: string().optional(),
|
|
57933
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
57934
|
+
count: number().int().nonnegative().optional(),
|
|
57935
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
57936
|
+
units: array(object({
|
|
57937
|
+
bus: CoralBusSchema,
|
|
57938
|
+
count: number().int().nonnegative()
|
|
57939
|
+
})).readonly().optional(),
|
|
57940
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
57941
|
+
unavailable: array(object({
|
|
57942
|
+
bus: CoralBusSchema,
|
|
57943
|
+
count: number().int().nonnegative(),
|
|
57944
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
57945
|
+
})).readonly().optional()
|
|
57943
57946
|
});
|
|
57944
57947
|
var HardwareInfoSchema = object({
|
|
57945
57948
|
platform: HardwarePlatformSchema,
|
|
@@ -63939,6 +63942,12 @@ Object.freeze({
|
|
|
63939
63942
|
addonId: null,
|
|
63940
63943
|
access: "view"
|
|
63941
63944
|
},
|
|
63945
|
+
"deviceHistory.queryMany": {
|
|
63946
|
+
capName: "device-history",
|
|
63947
|
+
capScope: "system",
|
|
63948
|
+
addonId: null,
|
|
63949
|
+
access: "view"
|
|
63950
|
+
},
|
|
63942
63951
|
"deviceHistory.queryNode": {
|
|
63943
63952
|
capName: "device-history",
|
|
63944
63953
|
capScope: "system",
|
|
@@ -69159,24 +69168,12 @@ Object.freeze({
|
|
|
69159
69168
|
addonId: null,
|
|
69160
69169
|
access: "create"
|
|
69161
69170
|
},
|
|
69162
|
-
"storageAdmin.adoptRecords": {
|
|
69163
|
-
capName: "storage-admin",
|
|
69164
|
-
capScope: "system",
|
|
69165
|
-
addonId: null,
|
|
69166
|
-
access: "create"
|
|
69167
|
-
},
|
|
69168
69171
|
"storageAdmin.dropCollection": {
|
|
69169
69172
|
capName: "storage-admin",
|
|
69170
69173
|
capScope: "system",
|
|
69171
69174
|
addonId: null,
|
|
69172
69175
|
access: "delete"
|
|
69173
69176
|
},
|
|
69174
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
69175
|
-
capName: "storage-admin",
|
|
69176
|
-
capScope: "system",
|
|
69177
|
-
addonId: null,
|
|
69178
|
-
access: "view"
|
|
69179
|
-
},
|
|
69180
69177
|
"storageAdmin.listKinds": {
|
|
69181
69178
|
capName: "storage-admin",
|
|
69182
69179
|
capScope: "system",
|
|
@@ -69189,12 +69186,6 @@ Object.freeze({
|
|
|
69189
69186
|
addonId: null,
|
|
69190
69187
|
access: "view"
|
|
69191
69188
|
},
|
|
69192
|
-
"storageAdmin.readLegacyCollection": {
|
|
69193
|
-
capName: "storage-admin",
|
|
69194
|
-
capScope: "system",
|
|
69195
|
-
addonId: null,
|
|
69196
|
-
access: "view"
|
|
69197
|
-
},
|
|
69198
69189
|
"storageAdmin.readRecords": {
|
|
69199
69190
|
capName: "storage-admin",
|
|
69200
69191
|
capScope: "system",
|
|
@@ -73009,12 +73000,6 @@ Object.freeze({
|
|
|
73009
73000
|
form: "single",
|
|
73010
73001
|
optional: false
|
|
73011
73002
|
}],
|
|
73012
|
-
"storageAdmin.adoptRecords": [{
|
|
73013
|
-
name: "records",
|
|
73014
|
-
form: "object-array",
|
|
73015
|
-
optional: false,
|
|
73016
|
-
itemField: "deviceId"
|
|
73017
|
-
}],
|
|
73018
73003
|
"storageAdmin.readRecords": [{
|
|
73019
73004
|
name: "deviceId",
|
|
73020
73005
|
form: "single",
|
package/dist/index.mjs
CHANGED
|
@@ -5414,7 +5414,7 @@ var ZodIssueCode = {
|
|
|
5414
5414
|
var ZodFirstPartyTypeKind;
|
|
5415
5415
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5416
5416
|
//#endregion
|
|
5417
|
-
//#region ../types/dist/sleep-
|
|
5417
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5418
5418
|
/**
|
|
5419
5419
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5420
5420
|
* window to float samples (D455).
|
|
@@ -7895,7 +7895,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
7895
7895
|
secretPaths: array(string().min(1)).default([]),
|
|
7896
7896
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7897
7897
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7898
|
-
/**
|
|
7898
|
+
/**
|
|
7899
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7900
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7901
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7902
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7903
|
+
* removal still sends it. Never set it.
|
|
7904
|
+
*/
|
|
7899
7905
|
adoptsFrom: string().min(1).optional(),
|
|
7900
7906
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7901
7907
|
transactFamily: string().min(1).optional(),
|
|
@@ -16494,11 +16500,12 @@ var DeclareKindResultSchema = object({
|
|
|
16494
16500
|
kindId: number().int(),
|
|
16495
16501
|
state: RecordKindStateSchema,
|
|
16496
16502
|
createdIndexes: array(string()),
|
|
16497
|
-
/**
|
|
16498
|
-
|
|
16499
|
-
|
|
16500
|
-
|
|
16501
|
-
|
|
16503
|
+
/**
|
|
16504
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16505
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
16506
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16507
|
+
*/
|
|
16508
|
+
adoptionPending: _null()
|
|
16502
16509
|
});
|
|
16503
16510
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16504
16511
|
var SecretRefsList = array(string());
|
|
@@ -16671,26 +16678,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16671
16678
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16672
16679
|
owner: string().min(1),
|
|
16673
16680
|
kind: RecordKindNameSchema
|
|
16674
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
16675
|
-
owner: string().min(1),
|
|
16676
|
-
kind: RecordKindNameSchema,
|
|
16677
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16678
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16679
|
-
complete: boolean().optional()
|
|
16680
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16681
|
-
kind: "mutation",
|
|
16682
|
-
auth: "admin"
|
|
16683
|
-
}), method(object({
|
|
16684
|
-
collection: string().min(1),
|
|
16685
|
-
cursor: string().optional(),
|
|
16686
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
16687
|
-
}), object({
|
|
16688
|
-
rows: array(object({
|
|
16689
|
-
id: string(),
|
|
16690
|
-
data: record(string(), unknown())
|
|
16691
|
-
})),
|
|
16692
|
-
nextCursor: string().nullable()
|
|
16693
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16681
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
16694
16682
|
/**
|
|
16695
16683
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16696
16684
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -57933,9 +57921,24 @@ var NpuInfoSchema = object({
|
|
|
57933
57921
|
name: string().optional(),
|
|
57934
57922
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
57935
57923
|
});
|
|
57924
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
57936
57925
|
var CoralInfoSchema = object({
|
|
57937
57926
|
type: literal("coral-edgetpu"),
|
|
57938
|
-
bus
|
|
57927
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
57928
|
+
bus: string().optional(),
|
|
57929
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
57930
|
+
count: number().int().nonnegative().optional(),
|
|
57931
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
57932
|
+
units: array(object({
|
|
57933
|
+
bus: CoralBusSchema,
|
|
57934
|
+
count: number().int().nonnegative()
|
|
57935
|
+
})).readonly().optional(),
|
|
57936
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
57937
|
+
unavailable: array(object({
|
|
57938
|
+
bus: CoralBusSchema,
|
|
57939
|
+
count: number().int().nonnegative(),
|
|
57940
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
57941
|
+
})).readonly().optional()
|
|
57939
57942
|
});
|
|
57940
57943
|
var HardwareInfoSchema = object({
|
|
57941
57944
|
platform: HardwarePlatformSchema,
|
|
@@ -63935,6 +63938,12 @@ Object.freeze({
|
|
|
63935
63938
|
addonId: null,
|
|
63936
63939
|
access: "view"
|
|
63937
63940
|
},
|
|
63941
|
+
"deviceHistory.queryMany": {
|
|
63942
|
+
capName: "device-history",
|
|
63943
|
+
capScope: "system",
|
|
63944
|
+
addonId: null,
|
|
63945
|
+
access: "view"
|
|
63946
|
+
},
|
|
63938
63947
|
"deviceHistory.queryNode": {
|
|
63939
63948
|
capName: "device-history",
|
|
63940
63949
|
capScope: "system",
|
|
@@ -69155,24 +69164,12 @@ Object.freeze({
|
|
|
69155
69164
|
addonId: null,
|
|
69156
69165
|
access: "create"
|
|
69157
69166
|
},
|
|
69158
|
-
"storageAdmin.adoptRecords": {
|
|
69159
|
-
capName: "storage-admin",
|
|
69160
|
-
capScope: "system",
|
|
69161
|
-
addonId: null,
|
|
69162
|
-
access: "create"
|
|
69163
|
-
},
|
|
69164
69167
|
"storageAdmin.dropCollection": {
|
|
69165
69168
|
capName: "storage-admin",
|
|
69166
69169
|
capScope: "system",
|
|
69167
69170
|
addonId: null,
|
|
69168
69171
|
access: "delete"
|
|
69169
69172
|
},
|
|
69170
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
69171
|
-
capName: "storage-admin",
|
|
69172
|
-
capScope: "system",
|
|
69173
|
-
addonId: null,
|
|
69174
|
-
access: "view"
|
|
69175
|
-
},
|
|
69176
69173
|
"storageAdmin.listKinds": {
|
|
69177
69174
|
capName: "storage-admin",
|
|
69178
69175
|
capScope: "system",
|
|
@@ -69185,12 +69182,6 @@ Object.freeze({
|
|
|
69185
69182
|
addonId: null,
|
|
69186
69183
|
access: "view"
|
|
69187
69184
|
},
|
|
69188
|
-
"storageAdmin.readLegacyCollection": {
|
|
69189
|
-
capName: "storage-admin",
|
|
69190
|
-
capScope: "system",
|
|
69191
|
-
addonId: null,
|
|
69192
|
-
access: "view"
|
|
69193
|
-
},
|
|
69194
69185
|
"storageAdmin.readRecords": {
|
|
69195
69186
|
capName: "storage-admin",
|
|
69196
69187
|
capScope: "system",
|
|
@@ -73005,12 +72996,6 @@ Object.freeze({
|
|
|
73005
72996
|
form: "single",
|
|
73006
72997
|
optional: false
|
|
73007
72998
|
}],
|
|
73008
|
-
"storageAdmin.adoptRecords": [{
|
|
73009
|
-
name: "records",
|
|
73010
|
-
form: "object-array",
|
|
73011
|
-
optional: false,
|
|
73012
|
-
itemField: "deviceId"
|
|
73013
|
-
}],
|
|
73014
72999
|
"storageAdmin.readRecords": [{
|
|
73015
73000
|
name: "deviceId",
|
|
73016
73001
|
form: "single",
|