@camstack/addon-provider-amcrest 0.2.144 → 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 CHANGED
@@ -5450,7 +5450,7 @@ var ZodIssueCode = {
5450
5450
  var ZodFirstPartyTypeKind;
5451
5451
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5452
5452
  //#endregion
5453
- //#region ../types/dist/sleep-BSuCCFjf.mjs
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
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
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
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16698
- adoptionPending: object({
16699
- legacyTable: string(),
16700
- legacyRows: number().int()
16701
- }).nullable()
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" }), method(object({
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
@@ -70240,6 +70228,12 @@ Object.freeze({
70240
70228
  addonId: null,
70241
70229
  access: "view"
70242
70230
  },
70231
+ "deviceHistory.queryMany": {
70232
+ capName: "device-history",
70233
+ capScope: "system",
70234
+ addonId: null,
70235
+ access: "view"
70236
+ },
70243
70237
  "deviceHistory.queryNode": {
70244
70238
  capName: "device-history",
70245
70239
  capScope: "system",
@@ -75460,24 +75454,12 @@ Object.freeze({
75460
75454
  addonId: null,
75461
75455
  access: "create"
75462
75456
  },
75463
- "storageAdmin.adoptRecords": {
75464
- capName: "storage-admin",
75465
- capScope: "system",
75466
- addonId: null,
75467
- access: "create"
75468
- },
75469
75457
  "storageAdmin.dropCollection": {
75470
75458
  capName: "storage-admin",
75471
75459
  capScope: "system",
75472
75460
  addonId: null,
75473
75461
  access: "delete"
75474
75462
  },
75475
- "storageAdmin.isAdoptedLegacyTable": {
75476
- capName: "storage-admin",
75477
- capScope: "system",
75478
- addonId: null,
75479
- access: "view"
75480
- },
75481
75463
  "storageAdmin.listKinds": {
75482
75464
  capName: "storage-admin",
75483
75465
  capScope: "system",
@@ -75490,12 +75472,6 @@ Object.freeze({
75490
75472
  addonId: null,
75491
75473
  access: "view"
75492
75474
  },
75493
- "storageAdmin.readLegacyCollection": {
75494
- capName: "storage-admin",
75495
- capScope: "system",
75496
- addonId: null,
75497
- access: "view"
75498
- },
75499
75475
  "storageAdmin.readRecords": {
75500
75476
  capName: "storage-admin",
75501
75477
  capScope: "system",
@@ -79516,12 +79492,6 @@ Object.freeze({
79516
79492
  form: "single",
79517
79493
  optional: false
79518
79494
  }],
79519
- "storageAdmin.adoptRecords": [{
79520
- name: "records",
79521
- form: "object-array",
79522
- optional: false,
79523
- itemField: "deviceId"
79524
- }],
79525
79495
  "storageAdmin.readRecords": [{
79526
79496
  name: "deviceId",
79527
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-BSuCCFjf.mjs
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
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
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
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16677
- adoptionPending: object({
16678
- legacyTable: string(),
16679
- legacyRows: number().int()
16680
- }).nullable()
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" }), method(object({
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
@@ -70219,6 +70207,12 @@ Object.freeze({
70219
70207
  addonId: null,
70220
70208
  access: "view"
70221
70209
  },
70210
+ "deviceHistory.queryMany": {
70211
+ capName: "device-history",
70212
+ capScope: "system",
70213
+ addonId: null,
70214
+ access: "view"
70215
+ },
70222
70216
  "deviceHistory.queryNode": {
70223
70217
  capName: "device-history",
70224
70218
  capScope: "system",
@@ -75439,24 +75433,12 @@ Object.freeze({
75439
75433
  addonId: null,
75440
75434
  access: "create"
75441
75435
  },
75442
- "storageAdmin.adoptRecords": {
75443
- capName: "storage-admin",
75444
- capScope: "system",
75445
- addonId: null,
75446
- access: "create"
75447
- },
75448
75436
  "storageAdmin.dropCollection": {
75449
75437
  capName: "storage-admin",
75450
75438
  capScope: "system",
75451
75439
  addonId: null,
75452
75440
  access: "delete"
75453
75441
  },
75454
- "storageAdmin.isAdoptedLegacyTable": {
75455
- capName: "storage-admin",
75456
- capScope: "system",
75457
- addonId: null,
75458
- access: "view"
75459
- },
75460
75442
  "storageAdmin.listKinds": {
75461
75443
  capName: "storage-admin",
75462
75444
  capScope: "system",
@@ -75469,12 +75451,6 @@ Object.freeze({
75469
75451
  addonId: null,
75470
75452
  access: "view"
75471
75453
  },
75472
- "storageAdmin.readLegacyCollection": {
75473
- capName: "storage-admin",
75474
- capScope: "system",
75475
- addonId: null,
75476
- access: "view"
75477
- },
75478
75454
  "storageAdmin.readRecords": {
75479
75455
  capName: "storage-admin",
75480
75456
  capScope: "system",
@@ -79495,12 +79471,6 @@ Object.freeze({
79495
79471
  form: "single",
79496
79472
  optional: false
79497
79473
  }],
79498
- "storageAdmin.adoptRecords": [{
79499
- name: "records",
79500
- form: "object-array",
79501
- optional: false,
79502
- itemField: "deviceId"
79503
- }],
79504
79474
  "storageAdmin.readRecords": [{
79505
79475
  name: "deviceId",
79506
79476
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.144",
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",