@camstack/addon-google-services 0.2.16 → 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
@@ -64448,6 +64424,12 @@ Object.freeze({
64448
64424
  addonId: null,
64449
64425
  access: "view"
64450
64426
  },
64427
+ "deviceHistory.queryMany": {
64428
+ capName: "device-history",
64429
+ capScope: "system",
64430
+ addonId: null,
64431
+ access: "view"
64432
+ },
64451
64433
  "deviceHistory.queryNode": {
64452
64434
  capName: "device-history",
64453
64435
  capScope: "system",
@@ -69668,24 +69650,12 @@ Object.freeze({
69668
69650
  addonId: null,
69669
69651
  access: "create"
69670
69652
  },
69671
- "storageAdmin.adoptRecords": {
69672
- capName: "storage-admin",
69673
- capScope: "system",
69674
- addonId: null,
69675
- access: "create"
69676
- },
69677
69653
  "storageAdmin.dropCollection": {
69678
69654
  capName: "storage-admin",
69679
69655
  capScope: "system",
69680
69656
  addonId: null,
69681
69657
  access: "delete"
69682
69658
  },
69683
- "storageAdmin.isAdoptedLegacyTable": {
69684
- capName: "storage-admin",
69685
- capScope: "system",
69686
- addonId: null,
69687
- access: "view"
69688
- },
69689
69659
  "storageAdmin.listKinds": {
69690
69660
  capName: "storage-admin",
69691
69661
  capScope: "system",
@@ -69698,12 +69668,6 @@ Object.freeze({
69698
69668
  addonId: null,
69699
69669
  access: "view"
69700
69670
  },
69701
- "storageAdmin.readLegacyCollection": {
69702
- capName: "storage-admin",
69703
- capScope: "system",
69704
- addonId: null,
69705
- access: "view"
69706
- },
69707
69671
  "storageAdmin.readRecords": {
69708
69672
  capName: "storage-admin",
69709
69673
  capScope: "system",
@@ -73518,12 +73482,6 @@ Object.freeze({
73518
73482
  form: "single",
73519
73483
  optional: false
73520
73484
  }],
73521
- "storageAdmin.adoptRecords": [{
73522
- name: "records",
73523
- form: "object-array",
73524
- optional: false,
73525
- itemField: "deviceId"
73526
- }],
73527
73485
  "storageAdmin.readRecords": [{
73528
73486
  name: "deviceId",
73529
73487
  form: "single",
@@ -76048,8 +76006,7 @@ var googleBrokersEntryKind = defineEntryKind("brokers", {
76048
76006
  fromAddress: GoogleBrokerEntrySchema.shape.fromAddress,
76049
76007
  fromName: GoogleBrokerEntrySchema.shape.fromName
76050
76008
  }),
76051
- writeTrigger: "an operator adds or edits a Google OAuth broker",
76052
- adoptsFrom: settingsBrokersAdoptsFrom("google-services")
76009
+ writeTrigger: "an operator adds or edits a Google OAuth broker"
76053
76010
  });
76054
76011
  //#endregion
76055
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
@@ -64444,6 +64420,12 @@ Object.freeze({
64444
64420
  addonId: null,
64445
64421
  access: "view"
64446
64422
  },
64423
+ "deviceHistory.queryMany": {
64424
+ capName: "device-history",
64425
+ capScope: "system",
64426
+ addonId: null,
64427
+ access: "view"
64428
+ },
64447
64429
  "deviceHistory.queryNode": {
64448
64430
  capName: "device-history",
64449
64431
  capScope: "system",
@@ -69664,24 +69646,12 @@ Object.freeze({
69664
69646
  addonId: null,
69665
69647
  access: "create"
69666
69648
  },
69667
- "storageAdmin.adoptRecords": {
69668
- capName: "storage-admin",
69669
- capScope: "system",
69670
- addonId: null,
69671
- access: "create"
69672
- },
69673
69649
  "storageAdmin.dropCollection": {
69674
69650
  capName: "storage-admin",
69675
69651
  capScope: "system",
69676
69652
  addonId: null,
69677
69653
  access: "delete"
69678
69654
  },
69679
- "storageAdmin.isAdoptedLegacyTable": {
69680
- capName: "storage-admin",
69681
- capScope: "system",
69682
- addonId: null,
69683
- access: "view"
69684
- },
69685
69655
  "storageAdmin.listKinds": {
69686
69656
  capName: "storage-admin",
69687
69657
  capScope: "system",
@@ -69694,12 +69664,6 @@ Object.freeze({
69694
69664
  addonId: null,
69695
69665
  access: "view"
69696
69666
  },
69697
- "storageAdmin.readLegacyCollection": {
69698
- capName: "storage-admin",
69699
- capScope: "system",
69700
- addonId: null,
69701
- access: "view"
69702
- },
69703
69667
  "storageAdmin.readRecords": {
69704
69668
  capName: "storage-admin",
69705
69669
  capScope: "system",
@@ -73514,12 +73478,6 @@ Object.freeze({
73514
73478
  form: "single",
73515
73479
  optional: false
73516
73480
  }],
73517
- "storageAdmin.adoptRecords": [{
73518
- name: "records",
73519
- form: "object-array",
73520
- optional: false,
73521
- itemField: "deviceId"
73522
- }],
73523
73481
  "storageAdmin.readRecords": [{
73524
73482
  name: "deviceId",
73525
73483
  form: "single",
@@ -76044,8 +76002,7 @@ var googleBrokersEntryKind = defineEntryKind("brokers", {
76044
76002
  fromAddress: GoogleBrokerEntrySchema.shape.fromAddress,
76045
76003
  fromName: GoogleBrokerEntrySchema.shape.fromName
76046
76004
  }),
76047
- writeTrigger: "an operator adds or edits a Google OAuth broker",
76048
- adoptsFrom: settingsBrokersAdoptsFrom("google-services")
76005
+ writeTrigger: "an operator adds or edits a Google OAuth broker"
76049
76006
  });
76050
76007
  //#endregion
76051
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.16",
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",