@camstack/addon-provider-ecowitt 0.2.133 → 0.2.135

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
@@ -5417,7 +5417,7 @@ var ZodIssueCode$1 = {
5417
5417
  var ZodFirstPartyTypeKind$1;
5418
5418
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5419
5419
  //#endregion
5420
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5420
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5421
5421
  /**
5422
5422
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5423
5423
  * window to float samples (D455).
@@ -7965,7 +7965,13 @@ var RecordKindDeclarationSchema = object({
7965
7965
  secretPaths: array(string().min(1)).default([]),
7966
7966
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7967
7967
  secretArrayKeys: record(string(), string()).default({}),
7968
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7968
+ /**
7969
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7970
+ * migration. Nothing declares it any more and nothing reads it; the schema
7971
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7972
+ * (an orphaned kind is never redeclared) and an addon built before the
7973
+ * removal still sends it. Never set it.
7974
+ */
7969
7975
  adoptsFrom: string().min(1).optional(),
7970
7976
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7971
7977
  transactFamily: string().min(1).optional(),
@@ -16651,11 +16657,12 @@ var DeclareKindResultSchema = object({
16651
16657
  kindId: number().int(),
16652
16658
  state: RecordKindStateSchema,
16653
16659
  createdIndexes: array(string()),
16654
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16655
- adoptionPending: object({
16656
- legacyTable: string(),
16657
- legacyRows: number().int()
16658
- }).nullable()
16660
+ /**
16661
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16662
+ * it stays on the wire, null, because an addon built before the removal reads
16663
+ * an ABSENT field as "adoption pending" and refuses to start.
16664
+ */
16665
+ adoptionPending: _null()
16659
16666
  });
16660
16667
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16661
16668
  var SecretRefsList = array(string());
@@ -16828,26 +16835,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16828
16835
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16829
16836
  owner: string().min(1),
16830
16837
  kind: RecordKindNameSchema
16831
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16832
- owner: string().min(1),
16833
- kind: RecordKindNameSchema,
16834
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16835
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16836
- complete: boolean().optional()
16837
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16838
- kind: "mutation",
16839
- auth: "admin"
16840
- }), method(object({
16841
- collection: string().min(1),
16842
- cursor: string().optional(),
16843
- limit: number().int().min(1).max(1e3).optional()
16844
- }), object({
16845
- rows: array(object({
16846
- id: string(),
16847
- data: record(string(), unknown())
16848
- })),
16849
- nextCursor: string().nullable()
16850
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16838
+ }), RecordQueryResultSchema, { auth: "admin" });
16851
16839
  /**
16852
16840
  * record-entries - the ONE admin surface for every list of user-created entries
16853
16841
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -69218,6 +69206,12 @@ Object.freeze({
69218
69206
  addonId: null,
69219
69207
  access: "view"
69220
69208
  },
69209
+ "deviceHistory.queryMany": {
69210
+ capName: "device-history",
69211
+ capScope: "system",
69212
+ addonId: null,
69213
+ access: "view"
69214
+ },
69221
69215
  "deviceHistory.queryNode": {
69222
69216
  capName: "device-history",
69223
69217
  capScope: "system",
@@ -74438,24 +74432,12 @@ Object.freeze({
74438
74432
  addonId: null,
74439
74433
  access: "create"
74440
74434
  },
74441
- "storageAdmin.adoptRecords": {
74442
- capName: "storage-admin",
74443
- capScope: "system",
74444
- addonId: null,
74445
- access: "create"
74446
- },
74447
74435
  "storageAdmin.dropCollection": {
74448
74436
  capName: "storage-admin",
74449
74437
  capScope: "system",
74450
74438
  addonId: null,
74451
74439
  access: "delete"
74452
74440
  },
74453
- "storageAdmin.isAdoptedLegacyTable": {
74454
- capName: "storage-admin",
74455
- capScope: "system",
74456
- addonId: null,
74457
- access: "view"
74458
- },
74459
74441
  "storageAdmin.listKinds": {
74460
74442
  capName: "storage-admin",
74461
74443
  capScope: "system",
@@ -74468,12 +74450,6 @@ Object.freeze({
74468
74450
  addonId: null,
74469
74451
  access: "view"
74470
74452
  },
74471
- "storageAdmin.readLegacyCollection": {
74472
- capName: "storage-admin",
74473
- capScope: "system",
74474
- addonId: null,
74475
- access: "view"
74476
- },
74477
74453
  "storageAdmin.readRecords": {
74478
74454
  capName: "storage-admin",
74479
74455
  capScope: "system",
@@ -78288,12 +78264,6 @@ Object.freeze({
78288
78264
  form: "single",
78289
78265
  optional: false
78290
78266
  }],
78291
- "storageAdmin.adoptRecords": [{
78292
- name: "records",
78293
- form: "object-array",
78294
- optional: false,
78295
- itemField: "deviceId"
78296
- }],
78297
78267
  "storageAdmin.readRecords": [{
78298
78268
  name: "deviceId",
78299
78269
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5416,7 +5416,7 @@ var ZodIssueCode$1 = {
5416
5416
  var ZodFirstPartyTypeKind$1;
5417
5417
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5418
5418
  //#endregion
5419
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5419
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5420
5420
  /**
5421
5421
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5422
5422
  * window to float samples (D455).
@@ -7964,7 +7964,13 @@ var RecordKindDeclarationSchema = object({
7964
7964
  secretPaths: array(string().min(1)).default([]),
7965
7965
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7966
7966
  secretArrayKeys: record(string(), string()).default({}),
7967
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7967
+ /**
7968
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7969
+ * migration. Nothing declares it any more and nothing reads it; the schema
7970
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7971
+ * (an orphaned kind is never redeclared) and an addon built before the
7972
+ * removal still sends it. Never set it.
7973
+ */
7968
7974
  adoptsFrom: string().min(1).optional(),
7969
7975
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7970
7976
  transactFamily: string().min(1).optional(),
@@ -16650,11 +16656,12 @@ var DeclareKindResultSchema = object({
16650
16656
  kindId: number().int(),
16651
16657
  state: RecordKindStateSchema,
16652
16658
  createdIndexes: array(string()),
16653
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16654
- adoptionPending: object({
16655
- legacyTable: string(),
16656
- legacyRows: number().int()
16657
- }).nullable()
16659
+ /**
16660
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16661
+ * it stays on the wire, null, because an addon built before the removal reads
16662
+ * an ABSENT field as "adoption pending" and refuses to start.
16663
+ */
16664
+ adoptionPending: _null()
16658
16665
  });
16659
16666
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16660
16667
  var SecretRefsList = array(string());
@@ -16827,26 +16834,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16827
16834
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16828
16835
  owner: string().min(1),
16829
16836
  kind: RecordKindNameSchema
16830
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16831
- owner: string().min(1),
16832
- kind: RecordKindNameSchema,
16833
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16834
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16835
- complete: boolean().optional()
16836
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16837
- kind: "mutation",
16838
- auth: "admin"
16839
- }), method(object({
16840
- collection: string().min(1),
16841
- cursor: string().optional(),
16842
- limit: number().int().min(1).max(1e3).optional()
16843
- }), object({
16844
- rows: array(object({
16845
- id: string(),
16846
- data: record(string(), unknown())
16847
- })),
16848
- nextCursor: string().nullable()
16849
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16837
+ }), RecordQueryResultSchema, { auth: "admin" });
16850
16838
  /**
16851
16839
  * record-entries - the ONE admin surface for every list of user-created entries
16852
16840
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -69217,6 +69205,12 @@ Object.freeze({
69217
69205
  addonId: null,
69218
69206
  access: "view"
69219
69207
  },
69208
+ "deviceHistory.queryMany": {
69209
+ capName: "device-history",
69210
+ capScope: "system",
69211
+ addonId: null,
69212
+ access: "view"
69213
+ },
69220
69214
  "deviceHistory.queryNode": {
69221
69215
  capName: "device-history",
69222
69216
  capScope: "system",
@@ -74437,24 +74431,12 @@ Object.freeze({
74437
74431
  addonId: null,
74438
74432
  access: "create"
74439
74433
  },
74440
- "storageAdmin.adoptRecords": {
74441
- capName: "storage-admin",
74442
- capScope: "system",
74443
- addonId: null,
74444
- access: "create"
74445
- },
74446
74434
  "storageAdmin.dropCollection": {
74447
74435
  capName: "storage-admin",
74448
74436
  capScope: "system",
74449
74437
  addonId: null,
74450
74438
  access: "delete"
74451
74439
  },
74452
- "storageAdmin.isAdoptedLegacyTable": {
74453
- capName: "storage-admin",
74454
- capScope: "system",
74455
- addonId: null,
74456
- access: "view"
74457
- },
74458
74440
  "storageAdmin.listKinds": {
74459
74441
  capName: "storage-admin",
74460
74442
  capScope: "system",
@@ -74467,12 +74449,6 @@ Object.freeze({
74467
74449
  addonId: null,
74468
74450
  access: "view"
74469
74451
  },
74470
- "storageAdmin.readLegacyCollection": {
74471
- capName: "storage-admin",
74472
- capScope: "system",
74473
- addonId: null,
74474
- access: "view"
74475
- },
74476
74452
  "storageAdmin.readRecords": {
74477
74453
  capName: "storage-admin",
74478
74454
  capScope: "system",
@@ -78287,12 +78263,6 @@ Object.freeze({
78287
78263
  form: "single",
78288
78264
  optional: false
78289
78265
  }],
78290
- "storageAdmin.adoptRecords": [{
78291
- name: "records",
78292
- form: "object-array",
78293
- optional: false,
78294
- itemField: "deviceId"
78295
- }],
78296
78266
  "storageAdmin.readRecords": [{
78297
78267
  name: "deviceId",
78298
78268
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-ecowitt",
3
- "version": "0.2.133",
3
+ "version": "0.2.135",
4
4
  "description": "Ecowitt weather-station device-provider addon for CamStack — wraps the @apocaliss92/nodewitt local-poll / push client",
5
5
  "keywords": [
6
6
  "camstack",