@camstack/addon-provider-petkit 0.2.132 → 0.2.134

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
@@ -61451,9 +61439,24 @@ var NpuInfoSchema = object({
61451
61439
  name: string().optional(),
61452
61440
  generation: _enum(["xdna1", "xdna2"]).optional()
61453
61441
  });
61442
+ var CoralBusSchema = _enum(["usb", "pci"]);
61454
61443
  var CoralInfoSchema = object({
61455
61444
  type: literal("coral-edgetpu"),
61456
- bus: string().optional()
61445
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
61446
+ bus: string().optional(),
61447
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
61448
+ count: number().int().nonnegative().optional(),
61449
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
61450
+ units: array(object({
61451
+ bus: CoralBusSchema,
61452
+ count: number().int().nonnegative()
61453
+ })).readonly().optional(),
61454
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
61455
+ unavailable: array(object({
61456
+ bus: CoralBusSchema,
61457
+ count: number().int().nonnegative(),
61458
+ reason: _enum(["driver-missing", "device-not-accessible"])
61459
+ })).readonly().optional()
61457
61460
  });
61458
61461
  var HardwareInfoSchema = object({
61459
61462
  platform: HardwarePlatformSchema,
@@ -70200,6 +70203,12 @@ Object.freeze({
70200
70203
  addonId: null,
70201
70204
  access: "view"
70202
70205
  },
70206
+ "deviceHistory.queryMany": {
70207
+ capName: "device-history",
70208
+ capScope: "system",
70209
+ addonId: null,
70210
+ access: "view"
70211
+ },
70203
70212
  "deviceHistory.queryNode": {
70204
70213
  capName: "device-history",
70205
70214
  capScope: "system",
@@ -75420,24 +75429,12 @@ Object.freeze({
75420
75429
  addonId: null,
75421
75430
  access: "create"
75422
75431
  },
75423
- "storageAdmin.adoptRecords": {
75424
- capName: "storage-admin",
75425
- capScope: "system",
75426
- addonId: null,
75427
- access: "create"
75428
- },
75429
75432
  "storageAdmin.dropCollection": {
75430
75433
  capName: "storage-admin",
75431
75434
  capScope: "system",
75432
75435
  addonId: null,
75433
75436
  access: "delete"
75434
75437
  },
75435
- "storageAdmin.isAdoptedLegacyTable": {
75436
- capName: "storage-admin",
75437
- capScope: "system",
75438
- addonId: null,
75439
- access: "view"
75440
- },
75441
75438
  "storageAdmin.listKinds": {
75442
75439
  capName: "storage-admin",
75443
75440
  capScope: "system",
@@ -75450,12 +75447,6 @@ Object.freeze({
75450
75447
  addonId: null,
75451
75448
  access: "view"
75452
75449
  },
75453
- "storageAdmin.readLegacyCollection": {
75454
- capName: "storage-admin",
75455
- capScope: "system",
75456
- addonId: null,
75457
- access: "view"
75458
- },
75459
75450
  "storageAdmin.readRecords": {
75460
75451
  capName: "storage-admin",
75461
75452
  capScope: "system",
@@ -79270,12 +79261,6 @@ Object.freeze({
79270
79261
  form: "single",
79271
79262
  optional: false
79272
79263
  }],
79273
- "storageAdmin.adoptRecords": [{
79274
- name: "records",
79275
- form: "object-array",
79276
- optional: false,
79277
- itemField: "deviceId"
79278
- }],
79279
79264
  "storageAdmin.readRecords": [{
79280
79265
  name: "deviceId",
79281
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
@@ -61450,9 +61438,24 @@ var NpuInfoSchema = object({
61450
61438
  name: string().optional(),
61451
61439
  generation: _enum(["xdna1", "xdna2"]).optional()
61452
61440
  });
61441
+ var CoralBusSchema = _enum(["usb", "pci"]);
61453
61442
  var CoralInfoSchema = object({
61454
61443
  type: literal("coral-edgetpu"),
61455
- bus: string().optional()
61444
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
61445
+ bus: string().optional(),
61446
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
61447
+ count: number().int().nonnegative().optional(),
61448
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
61449
+ units: array(object({
61450
+ bus: CoralBusSchema,
61451
+ count: number().int().nonnegative()
61452
+ })).readonly().optional(),
61453
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
61454
+ unavailable: array(object({
61455
+ bus: CoralBusSchema,
61456
+ count: number().int().nonnegative(),
61457
+ reason: _enum(["driver-missing", "device-not-accessible"])
61458
+ })).readonly().optional()
61456
61459
  });
61457
61460
  var HardwareInfoSchema = object({
61458
61461
  platform: HardwarePlatformSchema,
@@ -70199,6 +70202,12 @@ Object.freeze({
70199
70202
  addonId: null,
70200
70203
  access: "view"
70201
70204
  },
70205
+ "deviceHistory.queryMany": {
70206
+ capName: "device-history",
70207
+ capScope: "system",
70208
+ addonId: null,
70209
+ access: "view"
70210
+ },
70202
70211
  "deviceHistory.queryNode": {
70203
70212
  capName: "device-history",
70204
70213
  capScope: "system",
@@ -75419,24 +75428,12 @@ Object.freeze({
75419
75428
  addonId: null,
75420
75429
  access: "create"
75421
75430
  },
75422
- "storageAdmin.adoptRecords": {
75423
- capName: "storage-admin",
75424
- capScope: "system",
75425
- addonId: null,
75426
- access: "create"
75427
- },
75428
75431
  "storageAdmin.dropCollection": {
75429
75432
  capName: "storage-admin",
75430
75433
  capScope: "system",
75431
75434
  addonId: null,
75432
75435
  access: "delete"
75433
75436
  },
75434
- "storageAdmin.isAdoptedLegacyTable": {
75435
- capName: "storage-admin",
75436
- capScope: "system",
75437
- addonId: null,
75438
- access: "view"
75439
- },
75440
75437
  "storageAdmin.listKinds": {
75441
75438
  capName: "storage-admin",
75442
75439
  capScope: "system",
@@ -75449,12 +75446,6 @@ Object.freeze({
75449
75446
  addonId: null,
75450
75447
  access: "view"
75451
75448
  },
75452
- "storageAdmin.readLegacyCollection": {
75453
- capName: "storage-admin",
75454
- capScope: "system",
75455
- addonId: null,
75456
- access: "view"
75457
- },
75458
75449
  "storageAdmin.readRecords": {
75459
75450
  capName: "storage-admin",
75460
75451
  capScope: "system",
@@ -79269,12 +79260,6 @@ Object.freeze({
79269
79260
  form: "single",
79270
79261
  optional: false
79271
79262
  }],
79272
- "storageAdmin.adoptRecords": [{
79273
- name: "records",
79274
- form: "object-array",
79275
- optional: false,
79276
- itemField: "deviceId"
79277
- }],
79278
79263
  "storageAdmin.readRecords": [{
79279
79264
  name: "deviceId",
79280
79265
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-petkit",
3
- "version": "0.2.132",
3
+ "version": "0.2.134",
4
4
  "description": "PetKit smart-feeder device-provider addon for CamStack — wraps the @apocaliss92/nodepetkit PetKit cloud client",
5
5
  "keywords": [
6
6
  "camstack",