@camstack/addon-google-services 0.2.15 → 0.2.17

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.
@@ -5551,7 +5551,7 @@ var ZodIssueCode = {
5551
5551
  var ZodFirstPartyTypeKind;
5552
5552
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5553
5553
  //#endregion
5554
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5554
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5555
5555
  /**
5556
5556
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5557
5557
  * window to float samples (D455).
@@ -8169,7 +8169,13 @@ var RecordKindDeclarationSchema = object({
8169
8169
  secretPaths: array(string().min(1)).default([]),
8170
8170
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8171
8171
  secretArrayKeys: record(string(), string()).default({}),
8172
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8172
+ /**
8173
+ * RETIRED (D900): the legacy table a kind adopted from during the records
8174
+ * migration. Nothing declares it any more and nothing reads it; the schema
8175
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
8176
+ * (an orphaned kind is never redeclared) and an addon built before the
8177
+ * removal still sends it. Never set it.
8178
+ */
8173
8179
  adoptsFrom: string().min(1).optional(),
8174
8180
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8175
8181
  transactFamily: string().min(1).optional(),
@@ -8244,7 +8250,6 @@ function defineRecordKinds(specs) {
8244
8250
  maxDataBytes: spec.maxDataBytes,
8245
8251
  secretPaths: [...secretPaths],
8246
8252
  secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
8247
- adoptsFrom: spec.adoptsFrom,
8248
8253
  transactFamily: spec.transactFamily,
8249
8254
  entry: spec.entry === void 0 ? void 0 : {
8250
8255
  title: spec.entry.title,
@@ -8288,7 +8293,6 @@ function defineEntryKind(name, spec) {
8288
8293
  ...spec.database === void 0 ? {} : { database: spec.database },
8289
8294
  ...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
8290
8295
  ...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
8291
- ...spec.adoptsFrom === void 0 ? {} : { adoptsFrom: spec.adoptsFrom },
8292
8296
  entry: {
8293
8297
  title: spec.title,
8294
8298
  ...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
@@ -8297,16 +8301,6 @@ function defineEntryKind(name, spec) {
8297
8301
  if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
8298
8302
  return defined;
8299
8303
  }
8300
- /**
8301
- * Legacy source for broker entry adoption (B2): brokers live in addon-settings
8302
- * as one row `<addonId>.brokers` whose value is an array until records-adopt
8303
- * copies them into the entry kind.
8304
- */
8305
- var SETTINGS_BROKERS_ADOPTS_PREFIX = "@settings-brokers/";
8306
- /** The `adoptsFrom` value for an addon's broker entry kind. */
8307
- function settingsBrokersAdoptsFrom(addonId) {
8308
- return `${SETTINGS_BROKERS_ADOPTS_PREFIX}${addonId}`;
8309
- }
8310
8304
  /** Shared Zod schemas used across streaming capabilities. */
8311
8305
  var CamProfileSchema = _enum([
8312
8306
  "high",
@@ -17050,11 +17044,12 @@ var DeclareKindResultSchema = object({
17050
17044
  kindId: number().int(),
17051
17045
  state: RecordKindStateSchema,
17052
17046
  createdIndexes: array(string()),
17053
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
17054
- adoptionPending: object({
17055
- legacyTable: string(),
17056
- legacyRows: number().int()
17057
- }).nullable()
17047
+ /**
17048
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17049
+ * it stays on the wire, null, because an addon built before the removal reads
17050
+ * an ABSENT field as "adoption pending" and refuses to start.
17051
+ */
17052
+ adoptionPending: _null()
17058
17053
  });
17059
17054
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17060
17055
  var SecretRefsList = array(string());
@@ -17227,26 +17222,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17227
17222
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17228
17223
  owner: string().min(1),
17229
17224
  kind: RecordKindNameSchema
17230
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17231
- owner: string().min(1),
17232
- kind: RecordKindNameSchema,
17233
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17234
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17235
- complete: boolean().optional()
17236
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17237
- kind: "mutation",
17238
- auth: "admin"
17239
- }), method(object({
17240
- collection: string().min(1),
17241
- cursor: string().optional(),
17242
- limit: number().int().min(1).max(1e3).optional()
17243
- }), object({
17244
- rows: array(object({
17245
- id: string(),
17246
- data: record(string(), unknown())
17247
- })),
17248
- nextCursor: string().nullable()
17249
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17225
+ }), RecordQueryResultSchema, { auth: "admin" });
17250
17226
  /**
17251
17227
  * record-entries - the ONE admin surface for every list of user-created entries
17252
17228
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -58431,9 +58407,24 @@ var NpuInfoSchema = object({
58431
58407
  name: string().optional(),
58432
58408
  generation: _enum(["xdna1", "xdna2"]).optional()
58433
58409
  });
58410
+ var CoralBusSchema = _enum(["usb", "pci"]);
58434
58411
  var CoralInfoSchema = object({
58435
58412
  type: literal("coral-edgetpu"),
58436
- bus: string().optional()
58413
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
58414
+ bus: string().optional(),
58415
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
58416
+ count: number().int().nonnegative().optional(),
58417
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
58418
+ units: array(object({
58419
+ bus: CoralBusSchema,
58420
+ count: number().int().nonnegative()
58421
+ })).readonly().optional(),
58422
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
58423
+ unavailable: array(object({
58424
+ bus: CoralBusSchema,
58425
+ count: number().int().nonnegative(),
58426
+ reason: _enum(["driver-missing", "device-not-accessible"])
58427
+ })).readonly().optional()
58437
58428
  });
58438
58429
  var HardwareInfoSchema = object({
58439
58430
  platform: HardwarePlatformSchema,
@@ -64433,6 +64424,12 @@ Object.freeze({
64433
64424
  addonId: null,
64434
64425
  access: "view"
64435
64426
  },
64427
+ "deviceHistory.queryMany": {
64428
+ capName: "device-history",
64429
+ capScope: "system",
64430
+ addonId: null,
64431
+ access: "view"
64432
+ },
64436
64433
  "deviceHistory.queryNode": {
64437
64434
  capName: "device-history",
64438
64435
  capScope: "system",
@@ -69653,24 +69650,12 @@ Object.freeze({
69653
69650
  addonId: null,
69654
69651
  access: "create"
69655
69652
  },
69656
- "storageAdmin.adoptRecords": {
69657
- capName: "storage-admin",
69658
- capScope: "system",
69659
- addonId: null,
69660
- access: "create"
69661
- },
69662
69653
  "storageAdmin.dropCollection": {
69663
69654
  capName: "storage-admin",
69664
69655
  capScope: "system",
69665
69656
  addonId: null,
69666
69657
  access: "delete"
69667
69658
  },
69668
- "storageAdmin.isAdoptedLegacyTable": {
69669
- capName: "storage-admin",
69670
- capScope: "system",
69671
- addonId: null,
69672
- access: "view"
69673
- },
69674
69659
  "storageAdmin.listKinds": {
69675
69660
  capName: "storage-admin",
69676
69661
  capScope: "system",
@@ -69683,12 +69668,6 @@ Object.freeze({
69683
69668
  addonId: null,
69684
69669
  access: "view"
69685
69670
  },
69686
- "storageAdmin.readLegacyCollection": {
69687
- capName: "storage-admin",
69688
- capScope: "system",
69689
- addonId: null,
69690
- access: "view"
69691
- },
69692
69671
  "storageAdmin.readRecords": {
69693
69672
  capName: "storage-admin",
69694
69673
  capScope: "system",
@@ -73503,12 +73482,6 @@ Object.freeze({
73503
73482
  form: "single",
73504
73483
  optional: false
73505
73484
  }],
73506
- "storageAdmin.adoptRecords": [{
73507
- name: "records",
73508
- form: "object-array",
73509
- optional: false,
73510
- itemField: "deviceId"
73511
- }],
73512
73485
  "storageAdmin.readRecords": [{
73513
73486
  name: "deviceId",
73514
73487
  form: "single",
@@ -76033,8 +76006,7 @@ var googleBrokersEntryKind = defineEntryKind("brokers", {
76033
76006
  fromAddress: GoogleBrokerEntrySchema.shape.fromAddress,
76034
76007
  fromName: GoogleBrokerEntrySchema.shape.fromName
76035
76008
  }),
76036
- writeTrigger: "an operator adds or edits a Google OAuth broker",
76037
- adoptsFrom: settingsBrokersAdoptsFrom("google-services")
76009
+ writeTrigger: "an operator adds or edits a Google OAuth broker"
76038
76010
  });
76039
76011
  //#endregion
76040
76012
  //#region src/google-broker-store.ts
@@ -5547,7 +5547,7 @@ var ZodIssueCode = {
5547
5547
  var ZodFirstPartyTypeKind;
5548
5548
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5549
5549
  //#endregion
5550
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5550
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5551
5551
  /**
5552
5552
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5553
5553
  * window to float samples (D455).
@@ -8165,7 +8165,13 @@ var RecordKindDeclarationSchema = object({
8165
8165
  secretPaths: array(string().min(1)).default([]),
8166
8166
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8167
8167
  secretArrayKeys: record(string(), string()).default({}),
8168
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8168
+ /**
8169
+ * RETIRED (D900): the legacy table a kind adopted from during the records
8170
+ * migration. Nothing declares it any more and nothing reads it; the schema
8171
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
8172
+ * (an orphaned kind is never redeclared) and an addon built before the
8173
+ * removal still sends it. Never set it.
8174
+ */
8169
8175
  adoptsFrom: string().min(1).optional(),
8170
8176
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8171
8177
  transactFamily: string().min(1).optional(),
@@ -8240,7 +8246,6 @@ function defineRecordKinds(specs) {
8240
8246
  maxDataBytes: spec.maxDataBytes,
8241
8247
  secretPaths: [...secretPaths],
8242
8248
  secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
8243
- adoptsFrom: spec.adoptsFrom,
8244
8249
  transactFamily: spec.transactFamily,
8245
8250
  entry: spec.entry === void 0 ? void 0 : {
8246
8251
  title: spec.entry.title,
@@ -8284,7 +8289,6 @@ function defineEntryKind(name, spec) {
8284
8289
  ...spec.database === void 0 ? {} : { database: spec.database },
8285
8290
  ...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
8286
8291
  ...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
8287
- ...spec.adoptsFrom === void 0 ? {} : { adoptsFrom: spec.adoptsFrom },
8288
8292
  entry: {
8289
8293
  title: spec.title,
8290
8294
  ...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
@@ -8293,16 +8297,6 @@ function defineEntryKind(name, spec) {
8293
8297
  if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
8294
8298
  return defined;
8295
8299
  }
8296
- /**
8297
- * Legacy source for broker entry adoption (B2): brokers live in addon-settings
8298
- * as one row `<addonId>.brokers` whose value is an array until records-adopt
8299
- * copies them into the entry kind.
8300
- */
8301
- var SETTINGS_BROKERS_ADOPTS_PREFIX = "@settings-brokers/";
8302
- /** The `adoptsFrom` value for an addon's broker entry kind. */
8303
- function settingsBrokersAdoptsFrom(addonId) {
8304
- return `${SETTINGS_BROKERS_ADOPTS_PREFIX}${addonId}`;
8305
- }
8306
8300
  /** Shared Zod schemas used across streaming capabilities. */
8307
8301
  var CamProfileSchema = _enum([
8308
8302
  "high",
@@ -17046,11 +17040,12 @@ var DeclareKindResultSchema = object({
17046
17040
  kindId: number().int(),
17047
17041
  state: RecordKindStateSchema,
17048
17042
  createdIndexes: array(string()),
17049
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
17050
- adoptionPending: object({
17051
- legacyTable: string(),
17052
- legacyRows: number().int()
17053
- }).nullable()
17043
+ /**
17044
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17045
+ * it stays on the wire, null, because an addon built before the removal reads
17046
+ * an ABSENT field as "adoption pending" and refuses to start.
17047
+ */
17048
+ adoptionPending: _null()
17054
17049
  });
17055
17050
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17056
17051
  var SecretRefsList = array(string());
@@ -17223,26 +17218,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17223
17218
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17224
17219
  owner: string().min(1),
17225
17220
  kind: RecordKindNameSchema
17226
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17227
- owner: string().min(1),
17228
- kind: RecordKindNameSchema,
17229
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
17230
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
17231
- complete: boolean().optional()
17232
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
17233
- kind: "mutation",
17234
- auth: "admin"
17235
- }), method(object({
17236
- collection: string().min(1),
17237
- cursor: string().optional(),
17238
- limit: number().int().min(1).max(1e3).optional()
17239
- }), object({
17240
- rows: array(object({
17241
- id: string(),
17242
- data: record(string(), unknown())
17243
- })),
17244
- nextCursor: string().nullable()
17245
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
17221
+ }), RecordQueryResultSchema, { auth: "admin" });
17246
17222
  /**
17247
17223
  * record-entries - the ONE admin surface for every list of user-created entries
17248
17224
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -58427,9 +58403,24 @@ var NpuInfoSchema = object({
58427
58403
  name: string().optional(),
58428
58404
  generation: _enum(["xdna1", "xdna2"]).optional()
58429
58405
  });
58406
+ var CoralBusSchema = _enum(["usb", "pci"]);
58430
58407
  var CoralInfoSchema = object({
58431
58408
  type: literal("coral-edgetpu"),
58432
- bus: string().optional()
58409
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
58410
+ bus: string().optional(),
58411
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
58412
+ count: number().int().nonnegative().optional(),
58413
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
58414
+ units: array(object({
58415
+ bus: CoralBusSchema,
58416
+ count: number().int().nonnegative()
58417
+ })).readonly().optional(),
58418
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
58419
+ unavailable: array(object({
58420
+ bus: CoralBusSchema,
58421
+ count: number().int().nonnegative(),
58422
+ reason: _enum(["driver-missing", "device-not-accessible"])
58423
+ })).readonly().optional()
58433
58424
  });
58434
58425
  var HardwareInfoSchema = object({
58435
58426
  platform: HardwarePlatformSchema,
@@ -64429,6 +64420,12 @@ Object.freeze({
64429
64420
  addonId: null,
64430
64421
  access: "view"
64431
64422
  },
64423
+ "deviceHistory.queryMany": {
64424
+ capName: "device-history",
64425
+ capScope: "system",
64426
+ addonId: null,
64427
+ access: "view"
64428
+ },
64432
64429
  "deviceHistory.queryNode": {
64433
64430
  capName: "device-history",
64434
64431
  capScope: "system",
@@ -69649,24 +69646,12 @@ Object.freeze({
69649
69646
  addonId: null,
69650
69647
  access: "create"
69651
69648
  },
69652
- "storageAdmin.adoptRecords": {
69653
- capName: "storage-admin",
69654
- capScope: "system",
69655
- addonId: null,
69656
- access: "create"
69657
- },
69658
69649
  "storageAdmin.dropCollection": {
69659
69650
  capName: "storage-admin",
69660
69651
  capScope: "system",
69661
69652
  addonId: null,
69662
69653
  access: "delete"
69663
69654
  },
69664
- "storageAdmin.isAdoptedLegacyTable": {
69665
- capName: "storage-admin",
69666
- capScope: "system",
69667
- addonId: null,
69668
- access: "view"
69669
- },
69670
69655
  "storageAdmin.listKinds": {
69671
69656
  capName: "storage-admin",
69672
69657
  capScope: "system",
@@ -69679,12 +69664,6 @@ Object.freeze({
69679
69664
  addonId: null,
69680
69665
  access: "view"
69681
69666
  },
69682
- "storageAdmin.readLegacyCollection": {
69683
- capName: "storage-admin",
69684
- capScope: "system",
69685
- addonId: null,
69686
- access: "view"
69687
- },
69688
69667
  "storageAdmin.readRecords": {
69689
69668
  capName: "storage-admin",
69690
69669
  capScope: "system",
@@ -73499,12 +73478,6 @@ Object.freeze({
73499
73478
  form: "single",
73500
73479
  optional: false
73501
73480
  }],
73502
- "storageAdmin.adoptRecords": [{
73503
- name: "records",
73504
- form: "object-array",
73505
- optional: false,
73506
- itemField: "deviceId"
73507
- }],
73508
73481
  "storageAdmin.readRecords": [{
73509
73482
  name: "deviceId",
73510
73483
  form: "single",
@@ -76029,8 +76002,7 @@ var googleBrokersEntryKind = defineEntryKind("brokers", {
76029
76002
  fromAddress: GoogleBrokerEntrySchema.shape.fromAddress,
76030
76003
  fromName: GoogleBrokerEntrySchema.shape.fromName
76031
76004
  }),
76032
- writeTrigger: "an operator adds or edits a Google OAuth broker",
76033
- adoptsFrom: settingsBrokersAdoptsFrom("google-services")
76005
+ writeTrigger: "an operator adds or edits a Google OAuth broker"
76034
76006
  });
76035
76007
  //#endregion
76036
76008
  //#region src/google-broker-store.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-google-services",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
4
4
  "description": "Google Services — Google brokers (OAuth2): Calendar as calendar-source, Gmail send as smtp-provider.",
5
5
  "keywords": [
6
6
  "camstack",