@camstack/addon-import-alexa 0.2.134 → 0.2.136
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 +22 -65
- package/dist/addon.mjs +22 -65
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5586,7 +5586,7 @@ var ZodIssueCode = {
|
|
|
5586
5586
|
var ZodFirstPartyTypeKind;
|
|
5587
5587
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5588
5588
|
//#endregion
|
|
5589
|
-
//#region ../types/dist/sleep-
|
|
5589
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5590
5590
|
/**
|
|
5591
5591
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5592
5592
|
* window to float samples (D455).
|
|
@@ -8204,7 +8204,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
8204
8204
|
secretPaths: array(string().min(1)).default([]),
|
|
8205
8205
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
8206
8206
|
secretArrayKeys: record(string(), string()).default({}),
|
|
8207
|
-
/**
|
|
8207
|
+
/**
|
|
8208
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
8209
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
8210
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
8211
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
8212
|
+
* removal still sends it. Never set it.
|
|
8213
|
+
*/
|
|
8208
8214
|
adoptsFrom: string().min(1).optional(),
|
|
8209
8215
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
8210
8216
|
transactFamily: string().min(1).optional(),
|
|
@@ -8279,7 +8285,6 @@ function defineRecordKinds(specs) {
|
|
|
8279
8285
|
maxDataBytes: spec.maxDataBytes,
|
|
8280
8286
|
secretPaths: [...secretPaths],
|
|
8281
8287
|
secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
|
|
8282
|
-
adoptsFrom: spec.adoptsFrom,
|
|
8283
8288
|
transactFamily: spec.transactFamily,
|
|
8284
8289
|
entry: spec.entry === void 0 ? void 0 : {
|
|
8285
8290
|
title: spec.entry.title,
|
|
@@ -8323,7 +8328,6 @@ function defineEntryKind(name, spec) {
|
|
|
8323
8328
|
...spec.database === void 0 ? {} : { database: spec.database },
|
|
8324
8329
|
...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
|
|
8325
8330
|
...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
|
|
8326
|
-
...spec.adoptsFrom === void 0 ? {} : { adoptsFrom: spec.adoptsFrom },
|
|
8327
8331
|
entry: {
|
|
8328
8332
|
title: spec.title,
|
|
8329
8333
|
...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
|
|
@@ -8332,16 +8336,6 @@ function defineEntryKind(name, spec) {
|
|
|
8332
8336
|
if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
|
|
8333
8337
|
return defined;
|
|
8334
8338
|
}
|
|
8335
|
-
/**
|
|
8336
|
-
* Legacy source for broker entry adoption (B2): brokers live in addon-settings
|
|
8337
|
-
* as one row `<addonId>.brokers` whose value is an array until records-adopt
|
|
8338
|
-
* copies them into the entry kind.
|
|
8339
|
-
*/
|
|
8340
|
-
var SETTINGS_BROKERS_ADOPTS_PREFIX = "@settings-brokers/";
|
|
8341
|
-
/** The `adoptsFrom` value for an addon's broker entry kind. */
|
|
8342
|
-
function settingsBrokersAdoptsFrom(addonId) {
|
|
8343
|
-
return `${SETTINGS_BROKERS_ADOPTS_PREFIX}${addonId}`;
|
|
8344
|
-
}
|
|
8345
8339
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
8346
8340
|
var CamProfileSchema = _enum([
|
|
8347
8341
|
"high",
|
|
@@ -17191,11 +17185,12 @@ var DeclareKindResultSchema = object({
|
|
|
17191
17185
|
kindId: number().int(),
|
|
17192
17186
|
state: RecordKindStateSchema,
|
|
17193
17187
|
createdIndexes: array(string()),
|
|
17194
|
-
/**
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17198
|
-
|
|
17188
|
+
/**
|
|
17189
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
17190
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
17191
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
17192
|
+
*/
|
|
17193
|
+
adoptionPending: _null()
|
|
17199
17194
|
});
|
|
17200
17195
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
17201
17196
|
var SecretRefsList = array(string());
|
|
@@ -17368,26 +17363,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
17368
17363
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
17369
17364
|
owner: string().min(1),
|
|
17370
17365
|
kind: RecordKindNameSchema
|
|
17371
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
17372
|
-
owner: string().min(1),
|
|
17373
|
-
kind: RecordKindNameSchema,
|
|
17374
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
17375
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
17376
|
-
complete: boolean().optional()
|
|
17377
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
17378
|
-
kind: "mutation",
|
|
17379
|
-
auth: "admin"
|
|
17380
|
-
}), method(object({
|
|
17381
|
-
collection: string().min(1),
|
|
17382
|
-
cursor: string().optional(),
|
|
17383
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
17384
|
-
}), object({
|
|
17385
|
-
rows: array(object({
|
|
17386
|
-
id: string(),
|
|
17387
|
-
data: record(string(), unknown())
|
|
17388
|
-
})),
|
|
17389
|
-
nextCursor: string().nullable()
|
|
17390
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
17366
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
17391
17367
|
/**
|
|
17392
17368
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
17393
17369
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -69679,6 +69655,12 @@ Object.freeze({
|
|
|
69679
69655
|
addonId: null,
|
|
69680
69656
|
access: "view"
|
|
69681
69657
|
},
|
|
69658
|
+
"deviceHistory.queryMany": {
|
|
69659
|
+
capName: "device-history",
|
|
69660
|
+
capScope: "system",
|
|
69661
|
+
addonId: null,
|
|
69662
|
+
access: "view"
|
|
69663
|
+
},
|
|
69682
69664
|
"deviceHistory.queryNode": {
|
|
69683
69665
|
capName: "device-history",
|
|
69684
69666
|
capScope: "system",
|
|
@@ -74899,24 +74881,12 @@ Object.freeze({
|
|
|
74899
74881
|
addonId: null,
|
|
74900
74882
|
access: "create"
|
|
74901
74883
|
},
|
|
74902
|
-
"storageAdmin.adoptRecords": {
|
|
74903
|
-
capName: "storage-admin",
|
|
74904
|
-
capScope: "system",
|
|
74905
|
-
addonId: null,
|
|
74906
|
-
access: "create"
|
|
74907
|
-
},
|
|
74908
74884
|
"storageAdmin.dropCollection": {
|
|
74909
74885
|
capName: "storage-admin",
|
|
74910
74886
|
capScope: "system",
|
|
74911
74887
|
addonId: null,
|
|
74912
74888
|
access: "delete"
|
|
74913
74889
|
},
|
|
74914
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
74915
|
-
capName: "storage-admin",
|
|
74916
|
-
capScope: "system",
|
|
74917
|
-
addonId: null,
|
|
74918
|
-
access: "view"
|
|
74919
|
-
},
|
|
74920
74890
|
"storageAdmin.listKinds": {
|
|
74921
74891
|
capName: "storage-admin",
|
|
74922
74892
|
capScope: "system",
|
|
@@ -74929,12 +74899,6 @@ Object.freeze({
|
|
|
74929
74899
|
addonId: null,
|
|
74930
74900
|
access: "view"
|
|
74931
74901
|
},
|
|
74932
|
-
"storageAdmin.readLegacyCollection": {
|
|
74933
|
-
capName: "storage-admin",
|
|
74934
|
-
capScope: "system",
|
|
74935
|
-
addonId: null,
|
|
74936
|
-
access: "view"
|
|
74937
|
-
},
|
|
74938
74902
|
"storageAdmin.readRecords": {
|
|
74939
74903
|
capName: "storage-admin",
|
|
74940
74904
|
capScope: "system",
|
|
@@ -78749,12 +78713,6 @@ Object.freeze({
|
|
|
78749
78713
|
form: "single",
|
|
78750
78714
|
optional: false
|
|
78751
78715
|
}],
|
|
78752
|
-
"storageAdmin.adoptRecords": [{
|
|
78753
|
-
name: "records",
|
|
78754
|
-
form: "object-array",
|
|
78755
|
-
optional: false,
|
|
78756
|
-
itemField: "deviceId"
|
|
78757
|
-
}],
|
|
78758
78716
|
"storageAdmin.readRecords": [{
|
|
78759
78717
|
name: "deviceId",
|
|
78760
78718
|
form: "single",
|
|
@@ -123742,8 +123700,7 @@ var alexaBrokersEntryKind = defineEntryKind("brokers", {
|
|
|
123742
123700
|
connection: AlexaBrokerEntrySchema.shape.connection,
|
|
123743
123701
|
integrationId: string().optional()
|
|
123744
123702
|
}),
|
|
123745
|
-
writeTrigger: "an operator links or removes an Alexa account broker"
|
|
123746
|
-
adoptsFrom: settingsBrokersAdoptsFrom("import-alexa")
|
|
123703
|
+
writeTrigger: "an operator links or removes an Alexa account broker"
|
|
123747
123704
|
});
|
|
123748
123705
|
//#endregion
|
|
123749
123706
|
//#region src/alexa-broker-store.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -5586,7 +5586,7 @@ var ZodIssueCode = {
|
|
|
5586
5586
|
var ZodFirstPartyTypeKind;
|
|
5587
5587
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5588
5588
|
//#endregion
|
|
5589
|
-
//#region ../types/dist/sleep-
|
|
5589
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5590
5590
|
/**
|
|
5591
5591
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5592
5592
|
* window to float samples (D455).
|
|
@@ -8204,7 +8204,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
8204
8204
|
secretPaths: array(string().min(1)).default([]),
|
|
8205
8205
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
8206
8206
|
secretArrayKeys: record(string(), string()).default({}),
|
|
8207
|
-
/**
|
|
8207
|
+
/**
|
|
8208
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
8209
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
8210
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
8211
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
8212
|
+
* removal still sends it. Never set it.
|
|
8213
|
+
*/
|
|
8208
8214
|
adoptsFrom: string().min(1).optional(),
|
|
8209
8215
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
8210
8216
|
transactFamily: string().min(1).optional(),
|
|
@@ -8279,7 +8285,6 @@ function defineRecordKinds(specs) {
|
|
|
8279
8285
|
maxDataBytes: spec.maxDataBytes,
|
|
8280
8286
|
secretPaths: [...secretPaths],
|
|
8281
8287
|
secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
|
|
8282
|
-
adoptsFrom: spec.adoptsFrom,
|
|
8283
8288
|
transactFamily: spec.transactFamily,
|
|
8284
8289
|
entry: spec.entry === void 0 ? void 0 : {
|
|
8285
8290
|
title: spec.entry.title,
|
|
@@ -8323,7 +8328,6 @@ function defineEntryKind(name, spec) {
|
|
|
8323
8328
|
...spec.database === void 0 ? {} : { database: spec.database },
|
|
8324
8329
|
...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
|
|
8325
8330
|
...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
|
|
8326
|
-
...spec.adoptsFrom === void 0 ? {} : { adoptsFrom: spec.adoptsFrom },
|
|
8327
8331
|
entry: {
|
|
8328
8332
|
title: spec.title,
|
|
8329
8333
|
...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
|
|
@@ -8332,16 +8336,6 @@ function defineEntryKind(name, spec) {
|
|
|
8332
8336
|
if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
|
|
8333
8337
|
return defined;
|
|
8334
8338
|
}
|
|
8335
|
-
/**
|
|
8336
|
-
* Legacy source for broker entry adoption (B2): brokers live in addon-settings
|
|
8337
|
-
* as one row `<addonId>.brokers` whose value is an array until records-adopt
|
|
8338
|
-
* copies them into the entry kind.
|
|
8339
|
-
*/
|
|
8340
|
-
var SETTINGS_BROKERS_ADOPTS_PREFIX = "@settings-brokers/";
|
|
8341
|
-
/** The `adoptsFrom` value for an addon's broker entry kind. */
|
|
8342
|
-
function settingsBrokersAdoptsFrom(addonId) {
|
|
8343
|
-
return `${SETTINGS_BROKERS_ADOPTS_PREFIX}${addonId}`;
|
|
8344
|
-
}
|
|
8345
8339
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
8346
8340
|
var CamProfileSchema = _enum([
|
|
8347
8341
|
"high",
|
|
@@ -17191,11 +17185,12 @@ var DeclareKindResultSchema = object({
|
|
|
17191
17185
|
kindId: number().int(),
|
|
17192
17186
|
state: RecordKindStateSchema,
|
|
17193
17187
|
createdIndexes: array(string()),
|
|
17194
|
-
/**
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17198
|
-
|
|
17188
|
+
/**
|
|
17189
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
17190
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
17191
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
17192
|
+
*/
|
|
17193
|
+
adoptionPending: _null()
|
|
17199
17194
|
});
|
|
17200
17195
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
17201
17196
|
var SecretRefsList = array(string());
|
|
@@ -17368,26 +17363,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
17368
17363
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
17369
17364
|
owner: string().min(1),
|
|
17370
17365
|
kind: RecordKindNameSchema
|
|
17371
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
17372
|
-
owner: string().min(1),
|
|
17373
|
-
kind: RecordKindNameSchema,
|
|
17374
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
17375
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
17376
|
-
complete: boolean().optional()
|
|
17377
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
17378
|
-
kind: "mutation",
|
|
17379
|
-
auth: "admin"
|
|
17380
|
-
}), method(object({
|
|
17381
|
-
collection: string().min(1),
|
|
17382
|
-
cursor: string().optional(),
|
|
17383
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
17384
|
-
}), object({
|
|
17385
|
-
rows: array(object({
|
|
17386
|
-
id: string(),
|
|
17387
|
-
data: record(string(), unknown())
|
|
17388
|
-
})),
|
|
17389
|
-
nextCursor: string().nullable()
|
|
17390
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
17366
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
17391
17367
|
/**
|
|
17392
17368
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
17393
17369
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -69679,6 +69655,12 @@ Object.freeze({
|
|
|
69679
69655
|
addonId: null,
|
|
69680
69656
|
access: "view"
|
|
69681
69657
|
},
|
|
69658
|
+
"deviceHistory.queryMany": {
|
|
69659
|
+
capName: "device-history",
|
|
69660
|
+
capScope: "system",
|
|
69661
|
+
addonId: null,
|
|
69662
|
+
access: "view"
|
|
69663
|
+
},
|
|
69682
69664
|
"deviceHistory.queryNode": {
|
|
69683
69665
|
capName: "device-history",
|
|
69684
69666
|
capScope: "system",
|
|
@@ -74899,24 +74881,12 @@ Object.freeze({
|
|
|
74899
74881
|
addonId: null,
|
|
74900
74882
|
access: "create"
|
|
74901
74883
|
},
|
|
74902
|
-
"storageAdmin.adoptRecords": {
|
|
74903
|
-
capName: "storage-admin",
|
|
74904
|
-
capScope: "system",
|
|
74905
|
-
addonId: null,
|
|
74906
|
-
access: "create"
|
|
74907
|
-
},
|
|
74908
74884
|
"storageAdmin.dropCollection": {
|
|
74909
74885
|
capName: "storage-admin",
|
|
74910
74886
|
capScope: "system",
|
|
74911
74887
|
addonId: null,
|
|
74912
74888
|
access: "delete"
|
|
74913
74889
|
},
|
|
74914
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
74915
|
-
capName: "storage-admin",
|
|
74916
|
-
capScope: "system",
|
|
74917
|
-
addonId: null,
|
|
74918
|
-
access: "view"
|
|
74919
|
-
},
|
|
74920
74890
|
"storageAdmin.listKinds": {
|
|
74921
74891
|
capName: "storage-admin",
|
|
74922
74892
|
capScope: "system",
|
|
@@ -74929,12 +74899,6 @@ Object.freeze({
|
|
|
74929
74899
|
addonId: null,
|
|
74930
74900
|
access: "view"
|
|
74931
74901
|
},
|
|
74932
|
-
"storageAdmin.readLegacyCollection": {
|
|
74933
|
-
capName: "storage-admin",
|
|
74934
|
-
capScope: "system",
|
|
74935
|
-
addonId: null,
|
|
74936
|
-
access: "view"
|
|
74937
|
-
},
|
|
74938
74902
|
"storageAdmin.readRecords": {
|
|
74939
74903
|
capName: "storage-admin",
|
|
74940
74904
|
capScope: "system",
|
|
@@ -78749,12 +78713,6 @@ Object.freeze({
|
|
|
78749
78713
|
form: "single",
|
|
78750
78714
|
optional: false
|
|
78751
78715
|
}],
|
|
78752
|
-
"storageAdmin.adoptRecords": [{
|
|
78753
|
-
name: "records",
|
|
78754
|
-
form: "object-array",
|
|
78755
|
-
optional: false,
|
|
78756
|
-
itemField: "deviceId"
|
|
78757
|
-
}],
|
|
78758
78716
|
"storageAdmin.readRecords": [{
|
|
78759
78717
|
name: "deviceId",
|
|
78760
78718
|
form: "single",
|
|
@@ -123742,8 +123700,7 @@ var alexaBrokersEntryKind = defineEntryKind("brokers", {
|
|
|
123742
123700
|
connection: AlexaBrokerEntrySchema.shape.connection,
|
|
123743
123701
|
integrationId: string().optional()
|
|
123744
123702
|
}),
|
|
123745
|
-
writeTrigger: "an operator links or removes an Alexa account broker"
|
|
123746
|
-
adoptsFrom: settingsBrokersAdoptsFrom("import-alexa")
|
|
123703
|
+
writeTrigger: "an operator links or removes an Alexa account broker"
|
|
123747
123704
|
});
|
|
123748
123705
|
//#endregion
|
|
123749
123706
|
//#region src/alexa-broker-store.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.136",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|