@camstack/addon-provider-hikvision 1.2.158 → 1.2.160

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 CHANGED
@@ -5449,7 +5449,7 @@ var ZodIssueCode = {
5449
5449
  var ZodFirstPartyTypeKind;
5450
5450
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5451
5451
  //#endregion
5452
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5452
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5453
5453
  /**
5454
5454
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5455
5455
  * window to float samples (D455).
@@ -7997,7 +7997,13 @@ var RecordKindDeclarationSchema = object({
7997
7997
  secretPaths: array(string().min(1)).default([]),
7998
7998
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7999
7999
  secretArrayKeys: record(string(), string()).default({}),
8000
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8000
+ /**
8001
+ * RETIRED (D900): the legacy table a kind adopted from during the records
8002
+ * migration. Nothing declares it any more and nothing reads it; the schema
8003
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
8004
+ * (an orphaned kind is never redeclared) and an addon built before the
8005
+ * removal still sends it. Never set it.
8006
+ */
8001
8007
  adoptsFrom: string().min(1).optional(),
8002
8008
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8003
8009
  transactFamily: string().min(1).optional(),
@@ -16986,11 +16992,12 @@ var DeclareKindResultSchema = object({
16986
16992
  kindId: number().int(),
16987
16993
  state: RecordKindStateSchema,
16988
16994
  createdIndexes: array(string()),
16989
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16990
- adoptionPending: object({
16991
- legacyTable: string(),
16992
- legacyRows: number().int()
16993
- }).nullable()
16995
+ /**
16996
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16997
+ * it stays on the wire, null, because an addon built before the removal reads
16998
+ * an ABSENT field as "adoption pending" and refuses to start.
16999
+ */
17000
+ adoptionPending: _null()
16994
17001
  });
16995
17002
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16996
17003
  var SecretRefsList = array(string());
@@ -17163,26 +17170,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17163
17170
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17164
17171
  owner: string().min(1),
17165
17172
  kind: RecordKindNameSchema
17166
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17167
- owner: string().min(1),
17168
- kind: RecordKindNameSchema,
17169
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17170
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17171
- complete: boolean().optional()
17172
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17173
- kind: "mutation",
17174
- auth: "admin"
17175
- }), method(object({
17176
- collection: string().min(1),
17177
- cursor: string().optional(),
17178
- limit: number().int().min(1).max(1e3).optional()
17179
- }), object({
17180
- rows: array(object({
17181
- id: string(),
17182
- data: record(string(), unknown())
17183
- })),
17184
- nextCursor: string().nullable()
17185
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17173
+ }), RecordQueryResultSchema, { auth: "admin" });
17186
17174
  /**
17187
17175
  * record-entries - the ONE admin surface for every list of user-created entries
17188
17176
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -61376,9 +61364,24 @@ var NpuInfoSchema = object({
61376
61364
  name: string().optional(),
61377
61365
  generation: _enum(["xdna1", "xdna2"]).optional()
61378
61366
  });
61367
+ var CoralBusSchema = _enum(["usb", "pci"]);
61379
61368
  var CoralInfoSchema = object({
61380
61369
  type: literal("coral-edgetpu"),
61381
- bus: string().optional()
61370
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
61371
+ bus: string().optional(),
61372
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
61373
+ count: number().int().nonnegative().optional(),
61374
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
61375
+ units: array(object({
61376
+ bus: CoralBusSchema,
61377
+ count: number().int().nonnegative()
61378
+ })).readonly().optional(),
61379
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
61380
+ unavailable: array(object({
61381
+ bus: CoralBusSchema,
61382
+ count: number().int().nonnegative(),
61383
+ reason: _enum(["driver-missing", "device-not-accessible"])
61384
+ })).readonly().optional()
61382
61385
  });
61383
61386
  var HardwareInfoSchema = object({
61384
61387
  platform: HardwarePlatformSchema,
@@ -70659,6 +70662,12 @@ Object.freeze({
70659
70662
  addonId: null,
70660
70663
  access: "view"
70661
70664
  },
70665
+ "deviceHistory.queryMany": {
70666
+ capName: "device-history",
70667
+ capScope: "system",
70668
+ addonId: null,
70669
+ access: "view"
70670
+ },
70662
70671
  "deviceHistory.queryNode": {
70663
70672
  capName: "device-history",
70664
70673
  capScope: "system",
@@ -75879,24 +75888,12 @@ Object.freeze({
75879
75888
  addonId: null,
75880
75889
  access: "create"
75881
75890
  },
75882
- "storageAdmin.adoptRecords": {
75883
- capName: "storage-admin",
75884
- capScope: "system",
75885
- addonId: null,
75886
- access: "create"
75887
- },
75888
75891
  "storageAdmin.dropCollection": {
75889
75892
  capName: "storage-admin",
75890
75893
  capScope: "system",
75891
75894
  addonId: null,
75892
75895
  access: "delete"
75893
75896
  },
75894
- "storageAdmin.isAdoptedLegacyTable": {
75895
- capName: "storage-admin",
75896
- capScope: "system",
75897
- addonId: null,
75898
- access: "view"
75899
- },
75900
75897
  "storageAdmin.listKinds": {
75901
75898
  capName: "storage-admin",
75902
75899
  capScope: "system",
@@ -75909,12 +75906,6 @@ Object.freeze({
75909
75906
  addonId: null,
75910
75907
  access: "view"
75911
75908
  },
75912
- "storageAdmin.readLegacyCollection": {
75913
- capName: "storage-admin",
75914
- capScope: "system",
75915
- addonId: null,
75916
- access: "view"
75917
- },
75918
75909
  "storageAdmin.readRecords": {
75919
75910
  capName: "storage-admin",
75920
75911
  capScope: "system",
@@ -79947,12 +79938,6 @@ Object.freeze({
79947
79938
  form: "single",
79948
79939
  optional: false
79949
79940
  }],
79950
- "storageAdmin.adoptRecords": [{
79951
- name: "records",
79952
- form: "object-array",
79953
- optional: false,
79954
- itemField: "deviceId"
79955
- }],
79956
79941
  "storageAdmin.readRecords": [{
79957
79942
  name: "deviceId",
79958
79943
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5428,7 +5428,7 @@ var ZodIssueCode = {
5428
5428
  var ZodFirstPartyTypeKind;
5429
5429
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5430
5430
  //#endregion
5431
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5431
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5432
5432
  /**
5433
5433
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5434
5434
  * window to float samples (D455).
@@ -7976,7 +7976,13 @@ var RecordKindDeclarationSchema = object({
7976
7976
  secretPaths: array(string().min(1)).default([]),
7977
7977
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7978
7978
  secretArrayKeys: record(string(), string()).default({}),
7979
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7979
+ /**
7980
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7981
+ * migration. Nothing declares it any more and nothing reads it; the schema
7982
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7983
+ * (an orphaned kind is never redeclared) and an addon built before the
7984
+ * removal still sends it. Never set it.
7985
+ */
7980
7986
  adoptsFrom: string().min(1).optional(),
7981
7987
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7982
7988
  transactFamily: string().min(1).optional(),
@@ -16965,11 +16971,12 @@ var DeclareKindResultSchema = object({
16965
16971
  kindId: number().int(),
16966
16972
  state: RecordKindStateSchema,
16967
16973
  createdIndexes: array(string()),
16968
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16969
- adoptionPending: object({
16970
- legacyTable: string(),
16971
- legacyRows: number().int()
16972
- }).nullable()
16974
+ /**
16975
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16976
+ * it stays on the wire, null, because an addon built before the removal reads
16977
+ * an ABSENT field as "adoption pending" and refuses to start.
16978
+ */
16979
+ adoptionPending: _null()
16973
16980
  });
16974
16981
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16975
16982
  var SecretRefsList = array(string());
@@ -17142,26 +17149,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17142
17149
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17143
17150
  owner: string().min(1),
17144
17151
  kind: RecordKindNameSchema
17145
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17146
- owner: string().min(1),
17147
- kind: RecordKindNameSchema,
17148
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17149
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17150
- complete: boolean().optional()
17151
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17152
- kind: "mutation",
17153
- auth: "admin"
17154
- }), method(object({
17155
- collection: string().min(1),
17156
- cursor: string().optional(),
17157
- limit: number().int().min(1).max(1e3).optional()
17158
- }), object({
17159
- rows: array(object({
17160
- id: string(),
17161
- data: record(string(), unknown())
17162
- })),
17163
- nextCursor: string().nullable()
17164
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17152
+ }), RecordQueryResultSchema, { auth: "admin" });
17165
17153
  /**
17166
17154
  * record-entries - the ONE admin surface for every list of user-created entries
17167
17155
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -61355,9 +61343,24 @@ var NpuInfoSchema = object({
61355
61343
  name: string().optional(),
61356
61344
  generation: _enum(["xdna1", "xdna2"]).optional()
61357
61345
  });
61346
+ var CoralBusSchema = _enum(["usb", "pci"]);
61358
61347
  var CoralInfoSchema = object({
61359
61348
  type: literal("coral-edgetpu"),
61360
- bus: string().optional()
61349
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
61350
+ bus: string().optional(),
61351
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
61352
+ count: number().int().nonnegative().optional(),
61353
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
61354
+ units: array(object({
61355
+ bus: CoralBusSchema,
61356
+ count: number().int().nonnegative()
61357
+ })).readonly().optional(),
61358
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
61359
+ unavailable: array(object({
61360
+ bus: CoralBusSchema,
61361
+ count: number().int().nonnegative(),
61362
+ reason: _enum(["driver-missing", "device-not-accessible"])
61363
+ })).readonly().optional()
61361
61364
  });
61362
61365
  var HardwareInfoSchema = object({
61363
61366
  platform: HardwarePlatformSchema,
@@ -70638,6 +70641,12 @@ Object.freeze({
70638
70641
  addonId: null,
70639
70642
  access: "view"
70640
70643
  },
70644
+ "deviceHistory.queryMany": {
70645
+ capName: "device-history",
70646
+ capScope: "system",
70647
+ addonId: null,
70648
+ access: "view"
70649
+ },
70641
70650
  "deviceHistory.queryNode": {
70642
70651
  capName: "device-history",
70643
70652
  capScope: "system",
@@ -75858,24 +75867,12 @@ Object.freeze({
75858
75867
  addonId: null,
75859
75868
  access: "create"
75860
75869
  },
75861
- "storageAdmin.adoptRecords": {
75862
- capName: "storage-admin",
75863
- capScope: "system",
75864
- addonId: null,
75865
- access: "create"
75866
- },
75867
75870
  "storageAdmin.dropCollection": {
75868
75871
  capName: "storage-admin",
75869
75872
  capScope: "system",
75870
75873
  addonId: null,
75871
75874
  access: "delete"
75872
75875
  },
75873
- "storageAdmin.isAdoptedLegacyTable": {
75874
- capName: "storage-admin",
75875
- capScope: "system",
75876
- addonId: null,
75877
- access: "view"
75878
- },
75879
75876
  "storageAdmin.listKinds": {
75880
75877
  capName: "storage-admin",
75881
75878
  capScope: "system",
@@ -75888,12 +75885,6 @@ Object.freeze({
75888
75885
  addonId: null,
75889
75886
  access: "view"
75890
75887
  },
75891
- "storageAdmin.readLegacyCollection": {
75892
- capName: "storage-admin",
75893
- capScope: "system",
75894
- addonId: null,
75895
- access: "view"
75896
- },
75897
75888
  "storageAdmin.readRecords": {
75898
75889
  capName: "storage-admin",
75899
75890
  capScope: "system",
@@ -79926,12 +79917,6 @@ Object.freeze({
79926
79917
  form: "single",
79927
79918
  optional: false
79928
79919
  }],
79929
- "storageAdmin.adoptRecords": [{
79930
- name: "records",
79931
- form: "object-array",
79932
- optional: false,
79933
- itemField: "deviceId"
79934
- }],
79935
79920
  "storageAdmin.readRecords": [{
79936
79921
  name: "deviceId",
79937
79922
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-hikvision",
3
- "version": "1.2.158",
3
+ "version": "1.2.160",
4
4
  "description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
5
5
  "keywords": [
6
6
  "camstack",