@camstack/addon-provider-petkit 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
@@ -6516,7 +6516,7 @@ var ZodIssueCode = {
6516
6516
  var ZodFirstPartyTypeKind;
6517
6517
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6518
6518
  //#endregion
6519
- //#region ../types/dist/sleep-BSuCCFjf.mjs
6519
+ //#region ../types/dist/sleep-CSuN0thG.mjs
6520
6520
  /**
6521
6521
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6522
6522
  * window to float samples (D455).
@@ -9064,7 +9064,13 @@ var RecordKindDeclarationSchema = object({
9064
9064
  secretPaths: array(string().min(1)).default([]),
9065
9065
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
9066
9066
  secretArrayKeys: record(string(), string()).default({}),
9067
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
9067
+ /**
9068
+ * RETIRED (D900): the legacy table a kind adopted from during the records
9069
+ * migration. Nothing declares it any more and nothing reads it; the schema
9070
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
9071
+ * (an orphaned kind is never redeclared) and an addon built before the
9072
+ * removal still sends it. Never set it.
9073
+ */
9068
9074
  adoptsFrom: string().min(1).optional(),
9069
9075
  /** Kinds that must agree through `transact` sit in one file under one family name. */
9070
9076
  transactFamily: string().min(1).optional(),
@@ -17736,11 +17742,12 @@ var DeclareKindResultSchema = object({
17736
17742
  kindId: number().int(),
17737
17743
  state: RecordKindStateSchema,
17738
17744
  createdIndexes: array(string()),
17739
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
17740
- adoptionPending: object({
17741
- legacyTable: string(),
17742
- legacyRows: number().int()
17743
- }).nullable()
17745
+ /**
17746
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17747
+ * it stays on the wire, null, because an addon built before the removal reads
17748
+ * an ABSENT field as "adoption pending" and refuses to start.
17749
+ */
17750
+ adoptionPending: _null()
17744
17751
  });
17745
17752
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17746
17753
  var SecretRefsList = array(string());
@@ -17913,26 +17920,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17913
17920
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17914
17921
  owner: string().min(1),
17915
17922
  kind: RecordKindNameSchema
17916
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17917
- owner: string().min(1),
17918
- kind: RecordKindNameSchema,
17919
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17920
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17921
- complete: boolean().optional()
17922
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17923
- kind: "mutation",
17924
- auth: "admin"
17925
- }), method(object({
17926
- collection: string().min(1),
17927
- cursor: string().optional(),
17928
- limit: number().int().min(1).max(1e3).optional()
17929
- }), object({
17930
- rows: array(object({
17931
- id: string(),
17932
- data: record(string(), unknown())
17933
- })),
17934
- nextCursor: string().nullable()
17935
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17923
+ }), RecordQueryResultSchema, { auth: "admin" });
17936
17924
  /**
17937
17925
  * record-entries - the ONE admin surface for every list of user-created entries
17938
17926
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -70215,6 +70203,12 @@ Object.freeze({
70215
70203
  addonId: null,
70216
70204
  access: "view"
70217
70205
  },
70206
+ "deviceHistory.queryMany": {
70207
+ capName: "device-history",
70208
+ capScope: "system",
70209
+ addonId: null,
70210
+ access: "view"
70211
+ },
70218
70212
  "deviceHistory.queryNode": {
70219
70213
  capName: "device-history",
70220
70214
  capScope: "system",
@@ -75435,24 +75429,12 @@ Object.freeze({
75435
75429
  addonId: null,
75436
75430
  access: "create"
75437
75431
  },
75438
- "storageAdmin.adoptRecords": {
75439
- capName: "storage-admin",
75440
- capScope: "system",
75441
- addonId: null,
75442
- access: "create"
75443
- },
75444
75432
  "storageAdmin.dropCollection": {
75445
75433
  capName: "storage-admin",
75446
75434
  capScope: "system",
75447
75435
  addonId: null,
75448
75436
  access: "delete"
75449
75437
  },
75450
- "storageAdmin.isAdoptedLegacyTable": {
75451
- capName: "storage-admin",
75452
- capScope: "system",
75453
- addonId: null,
75454
- access: "view"
75455
- },
75456
75438
  "storageAdmin.listKinds": {
75457
75439
  capName: "storage-admin",
75458
75440
  capScope: "system",
@@ -75465,12 +75447,6 @@ Object.freeze({
75465
75447
  addonId: null,
75466
75448
  access: "view"
75467
75449
  },
75468
- "storageAdmin.readLegacyCollection": {
75469
- capName: "storage-admin",
75470
- capScope: "system",
75471
- addonId: null,
75472
- access: "view"
75473
- },
75474
75450
  "storageAdmin.readRecords": {
75475
75451
  capName: "storage-admin",
75476
75452
  capScope: "system",
@@ -79285,12 +79261,6 @@ Object.freeze({
79285
79261
  form: "single",
79286
79262
  optional: false
79287
79263
  }],
79288
- "storageAdmin.adoptRecords": [{
79289
- name: "records",
79290
- form: "object-array",
79291
- optional: false,
79292
- itemField: "deviceId"
79293
- }],
79294
79264
  "storageAdmin.readRecords": [{
79295
79265
  name: "deviceId",
79296
79266
  form: "single",
package/dist/addon.mjs CHANGED
@@ -6515,7 +6515,7 @@ var ZodIssueCode = {
6515
6515
  var ZodFirstPartyTypeKind;
6516
6516
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6517
6517
  //#endregion
6518
- //#region ../types/dist/sleep-BSuCCFjf.mjs
6518
+ //#region ../types/dist/sleep-CSuN0thG.mjs
6519
6519
  /**
6520
6520
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6521
6521
  * window to float samples (D455).
@@ -9063,7 +9063,13 @@ var RecordKindDeclarationSchema = object({
9063
9063
  secretPaths: array(string().min(1)).default([]),
9064
9064
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
9065
9065
  secretArrayKeys: record(string(), string()).default({}),
9066
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
9066
+ /**
9067
+ * RETIRED (D900): the legacy table a kind adopted from during the records
9068
+ * migration. Nothing declares it any more and nothing reads it; the schema
9069
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
9070
+ * (an orphaned kind is never redeclared) and an addon built before the
9071
+ * removal still sends it. Never set it.
9072
+ */
9067
9073
  adoptsFrom: string().min(1).optional(),
9068
9074
  /** Kinds that must agree through `transact` sit in one file under one family name. */
9069
9075
  transactFamily: string().min(1).optional(),
@@ -17735,11 +17741,12 @@ var DeclareKindResultSchema = object({
17735
17741
  kindId: number().int(),
17736
17742
  state: RecordKindStateSchema,
17737
17743
  createdIndexes: array(string()),
17738
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
17739
- adoptionPending: object({
17740
- legacyTable: string(),
17741
- legacyRows: number().int()
17742
- }).nullable()
17744
+ /**
17745
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17746
+ * it stays on the wire, null, because an addon built before the removal reads
17747
+ * an ABSENT field as "adoption pending" and refuses to start.
17748
+ */
17749
+ adoptionPending: _null()
17743
17750
  });
17744
17751
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17745
17752
  var SecretRefsList = array(string());
@@ -17912,26 +17919,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17912
17919
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17913
17920
  owner: string().min(1),
17914
17921
  kind: RecordKindNameSchema
17915
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17916
- owner: string().min(1),
17917
- kind: RecordKindNameSchema,
17918
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17919
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17920
- complete: boolean().optional()
17921
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17922
- kind: "mutation",
17923
- auth: "admin"
17924
- }), method(object({
17925
- collection: string().min(1),
17926
- cursor: string().optional(),
17927
- limit: number().int().min(1).max(1e3).optional()
17928
- }), object({
17929
- rows: array(object({
17930
- id: string(),
17931
- data: record(string(), unknown())
17932
- })),
17933
- nextCursor: string().nullable()
17934
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17922
+ }), RecordQueryResultSchema, { auth: "admin" });
17935
17923
  /**
17936
17924
  * record-entries - the ONE admin surface for every list of user-created entries
17937
17925
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -70214,6 +70202,12 @@ Object.freeze({
70214
70202
  addonId: null,
70215
70203
  access: "view"
70216
70204
  },
70205
+ "deviceHistory.queryMany": {
70206
+ capName: "device-history",
70207
+ capScope: "system",
70208
+ addonId: null,
70209
+ access: "view"
70210
+ },
70217
70211
  "deviceHistory.queryNode": {
70218
70212
  capName: "device-history",
70219
70213
  capScope: "system",
@@ -75434,24 +75428,12 @@ Object.freeze({
75434
75428
  addonId: null,
75435
75429
  access: "create"
75436
75430
  },
75437
- "storageAdmin.adoptRecords": {
75438
- capName: "storage-admin",
75439
- capScope: "system",
75440
- addonId: null,
75441
- access: "create"
75442
- },
75443
75431
  "storageAdmin.dropCollection": {
75444
75432
  capName: "storage-admin",
75445
75433
  capScope: "system",
75446
75434
  addonId: null,
75447
75435
  access: "delete"
75448
75436
  },
75449
- "storageAdmin.isAdoptedLegacyTable": {
75450
- capName: "storage-admin",
75451
- capScope: "system",
75452
- addonId: null,
75453
- access: "view"
75454
- },
75455
75437
  "storageAdmin.listKinds": {
75456
75438
  capName: "storage-admin",
75457
75439
  capScope: "system",
@@ -75464,12 +75446,6 @@ Object.freeze({
75464
75446
  addonId: null,
75465
75447
  access: "view"
75466
75448
  },
75467
- "storageAdmin.readLegacyCollection": {
75468
- capName: "storage-admin",
75469
- capScope: "system",
75470
- addonId: null,
75471
- access: "view"
75472
- },
75473
75449
  "storageAdmin.readRecords": {
75474
75450
  capName: "storage-admin",
75475
75451
  capScope: "system",
@@ -79284,12 +79260,6 @@ Object.freeze({
79284
79260
  form: "single",
79285
79261
  optional: false
79286
79262
  }],
79287
- "storageAdmin.adoptRecords": [{
79288
- name: "records",
79289
- form: "object-array",
79290
- optional: false,
79291
- itemField: "deviceId"
79292
- }],
79293
79263
  "storageAdmin.readRecords": [{
79294
79264
  name: "deviceId",
79295
79265
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-petkit",
3
- "version": "0.2.133",
3
+ "version": "0.2.135",
4
4
  "description": "PetKit smart-feeder device-provider addon for CamStack — wraps the @apocaliss92/nodepetkit PetKit cloud client",
5
5
  "keywords": [
6
6
  "camstack",