@camstack/addon-import-alexa 0.2.193 → 0.2.194
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/CHANGELOG.md +6 -0
- package/dist/addon.js +36 -9
- package/dist/addon.mjs +36 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/addon.js
CHANGED
|
@@ -6044,7 +6044,7 @@ function number(params) {
|
|
|
6044
6044
|
return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
|
|
6045
6045
|
}
|
|
6046
6046
|
//#endregion
|
|
6047
|
-
//#region ../types/dist/sleep-
|
|
6047
|
+
//#region ../types/dist/sleep-D7ZKm4nb.mjs
|
|
6048
6048
|
/**
|
|
6049
6049
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6050
6050
|
* window to float samples (D455).
|
|
@@ -6753,10 +6753,33 @@ function integrationRowsApiOver(api) {
|
|
|
6753
6753
|
};
|
|
6754
6754
|
}
|
|
6755
6755
|
var PREFIX = "records/";
|
|
6756
|
+
/**
|
|
6757
|
+
* Cross-realm brand. An addon bundles its own copy of this module (D15) while
|
|
6758
|
+
* `ctx.records` is the HOST's door, so an error thrown by the host is an
|
|
6759
|
+
* instance of the host's classes, not of the addon's. The brand plus the code
|
|
6760
|
+
* make `instanceof` answer by identity of the failure, not of the copy.
|
|
6761
|
+
*/
|
|
6762
|
+
var RECORDS_ERROR_BRAND = Symbol.for("camstack.records-error");
|
|
6763
|
+
function carriesBrand(value) {
|
|
6764
|
+
return typeof value === "object" && value !== null && Reflect.get(value, RECORDS_ERROR_BRAND) === true;
|
|
6765
|
+
}
|
|
6756
6766
|
/** The base of every records failure. `detail` is the human part of the message. */
|
|
6757
6767
|
var RecordsError = class extends Error {
|
|
6768
|
+
/** The code a subclass stands for; the base stands for every code. */
|
|
6769
|
+
static code = void 0;
|
|
6770
|
+
/**
|
|
6771
|
+
* `instanceof` across copies of this module: any branded error is a
|
|
6772
|
+
* `RecordsError`, and is an instance of a subclass only when its code is the
|
|
6773
|
+
* subclass's code. Same-copy answers are unchanged.
|
|
6774
|
+
*/
|
|
6775
|
+
static [Symbol.hasInstance](value) {
|
|
6776
|
+
if (Function.prototype[Symbol.hasInstance].call(this, value)) return true;
|
|
6777
|
+
if (!carriesBrand(value)) return false;
|
|
6778
|
+
return this.code === void 0 || value.code === this.code;
|
|
6779
|
+
}
|
|
6758
6780
|
code;
|
|
6759
6781
|
detail;
|
|
6782
|
+
[RECORDS_ERROR_BRAND] = true;
|
|
6760
6783
|
constructor(code, detail) {
|
|
6761
6784
|
super(`${PREFIX}${code}: ${detail}`);
|
|
6762
6785
|
this.name = "RecordsError";
|
|
@@ -6765,29 +6788,33 @@ var RecordsError = class extends Error {
|
|
|
6765
6788
|
}
|
|
6766
6789
|
};
|
|
6767
6790
|
/** A write guarded by `ifRev` found another revision (or an existing row for `ifRev: 0`). */
|
|
6768
|
-
var RevConflictError = class extends RecordsError {
|
|
6791
|
+
var RevConflictError = class RevConflictError extends RecordsError {
|
|
6792
|
+
static code = "rev-conflict";
|
|
6769
6793
|
constructor(detail) {
|
|
6770
|
-
super(
|
|
6794
|
+
super(RevConflictError.code, detail);
|
|
6771
6795
|
this.name = "RevConflictError";
|
|
6772
6796
|
}
|
|
6773
6797
|
};
|
|
6774
6798
|
/** The keychain could not store or serve a value: explicit, never an empty string. */
|
|
6775
|
-
var RecordSecretUnavailableError = class extends RecordsError {
|
|
6799
|
+
var RecordSecretUnavailableError = class RecordSecretUnavailableError extends RecordsError {
|
|
6800
|
+
static code = "secret-unavailable";
|
|
6776
6801
|
constructor(detail) {
|
|
6777
|
-
super(
|
|
6802
|
+
super(RecordSecretUnavailableError.code, detail);
|
|
6778
6803
|
this.name = "RecordSecretUnavailableError";
|
|
6779
6804
|
}
|
|
6780
6805
|
};
|
|
6781
|
-
var InvalidRecordError = class extends RecordsError {
|
|
6806
|
+
var InvalidRecordError = class InvalidRecordError extends RecordsError {
|
|
6807
|
+
static code = "invalid-record";
|
|
6782
6808
|
constructor(detail) {
|
|
6783
|
-
super(
|
|
6809
|
+
super(InvalidRecordError.code, detail);
|
|
6784
6810
|
this.name = "InvalidRecordError";
|
|
6785
6811
|
}
|
|
6786
6812
|
};
|
|
6787
6813
|
/** A kind declaration the engine refuses (non-additive change, bad shape, wrong file). */
|
|
6788
|
-
var DeclarationRefusedError = class extends RecordsError {
|
|
6814
|
+
var DeclarationRefusedError = class DeclarationRefusedError extends RecordsError {
|
|
6815
|
+
static code = "declaration-refused";
|
|
6789
6816
|
constructor(detail) {
|
|
6790
|
-
super(
|
|
6817
|
+
super(DeclarationRefusedError.code, detail);
|
|
6791
6818
|
this.name = "DeclarationRefusedError";
|
|
6792
6819
|
}
|
|
6793
6820
|
};
|
package/dist/addon.mjs
CHANGED
|
@@ -6042,7 +6042,7 @@ function number(params) {
|
|
|
6042
6042
|
return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
|
|
6043
6043
|
}
|
|
6044
6044
|
//#endregion
|
|
6045
|
-
//#region ../types/dist/sleep-
|
|
6045
|
+
//#region ../types/dist/sleep-D7ZKm4nb.mjs
|
|
6046
6046
|
/**
|
|
6047
6047
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6048
6048
|
* window to float samples (D455).
|
|
@@ -6751,10 +6751,33 @@ function integrationRowsApiOver(api) {
|
|
|
6751
6751
|
};
|
|
6752
6752
|
}
|
|
6753
6753
|
var PREFIX = "records/";
|
|
6754
|
+
/**
|
|
6755
|
+
* Cross-realm brand. An addon bundles its own copy of this module (D15) while
|
|
6756
|
+
* `ctx.records` is the HOST's door, so an error thrown by the host is an
|
|
6757
|
+
* instance of the host's classes, not of the addon's. The brand plus the code
|
|
6758
|
+
* make `instanceof` answer by identity of the failure, not of the copy.
|
|
6759
|
+
*/
|
|
6760
|
+
var RECORDS_ERROR_BRAND = Symbol.for("camstack.records-error");
|
|
6761
|
+
function carriesBrand(value) {
|
|
6762
|
+
return typeof value === "object" && value !== null && Reflect.get(value, RECORDS_ERROR_BRAND) === true;
|
|
6763
|
+
}
|
|
6754
6764
|
/** The base of every records failure. `detail` is the human part of the message. */
|
|
6755
6765
|
var RecordsError = class extends Error {
|
|
6766
|
+
/** The code a subclass stands for; the base stands for every code. */
|
|
6767
|
+
static code = void 0;
|
|
6768
|
+
/**
|
|
6769
|
+
* `instanceof` across copies of this module: any branded error is a
|
|
6770
|
+
* `RecordsError`, and is an instance of a subclass only when its code is the
|
|
6771
|
+
* subclass's code. Same-copy answers are unchanged.
|
|
6772
|
+
*/
|
|
6773
|
+
static [Symbol.hasInstance](value) {
|
|
6774
|
+
if (Function.prototype[Symbol.hasInstance].call(this, value)) return true;
|
|
6775
|
+
if (!carriesBrand(value)) return false;
|
|
6776
|
+
return this.code === void 0 || value.code === this.code;
|
|
6777
|
+
}
|
|
6756
6778
|
code;
|
|
6757
6779
|
detail;
|
|
6780
|
+
[RECORDS_ERROR_BRAND] = true;
|
|
6758
6781
|
constructor(code, detail) {
|
|
6759
6782
|
super(`${PREFIX}${code}: ${detail}`);
|
|
6760
6783
|
this.name = "RecordsError";
|
|
@@ -6763,29 +6786,33 @@ var RecordsError = class extends Error {
|
|
|
6763
6786
|
}
|
|
6764
6787
|
};
|
|
6765
6788
|
/** A write guarded by `ifRev` found another revision (or an existing row for `ifRev: 0`). */
|
|
6766
|
-
var RevConflictError = class extends RecordsError {
|
|
6789
|
+
var RevConflictError = class RevConflictError extends RecordsError {
|
|
6790
|
+
static code = "rev-conflict";
|
|
6767
6791
|
constructor(detail) {
|
|
6768
|
-
super(
|
|
6792
|
+
super(RevConflictError.code, detail);
|
|
6769
6793
|
this.name = "RevConflictError";
|
|
6770
6794
|
}
|
|
6771
6795
|
};
|
|
6772
6796
|
/** The keychain could not store or serve a value: explicit, never an empty string. */
|
|
6773
|
-
var RecordSecretUnavailableError = class extends RecordsError {
|
|
6797
|
+
var RecordSecretUnavailableError = class RecordSecretUnavailableError extends RecordsError {
|
|
6798
|
+
static code = "secret-unavailable";
|
|
6774
6799
|
constructor(detail) {
|
|
6775
|
-
super(
|
|
6800
|
+
super(RecordSecretUnavailableError.code, detail);
|
|
6776
6801
|
this.name = "RecordSecretUnavailableError";
|
|
6777
6802
|
}
|
|
6778
6803
|
};
|
|
6779
|
-
var InvalidRecordError = class extends RecordsError {
|
|
6804
|
+
var InvalidRecordError = class InvalidRecordError extends RecordsError {
|
|
6805
|
+
static code = "invalid-record";
|
|
6780
6806
|
constructor(detail) {
|
|
6781
|
-
super(
|
|
6807
|
+
super(InvalidRecordError.code, detail);
|
|
6782
6808
|
this.name = "InvalidRecordError";
|
|
6783
6809
|
}
|
|
6784
6810
|
};
|
|
6785
6811
|
/** A kind declaration the engine refuses (non-additive change, bad shape, wrong file). */
|
|
6786
|
-
var DeclarationRefusedError = class extends RecordsError {
|
|
6812
|
+
var DeclarationRefusedError = class DeclarationRefusedError extends RecordsError {
|
|
6813
|
+
static code = "declaration-refused";
|
|
6787
6814
|
constructor(detail) {
|
|
6788
|
-
super(
|
|
6815
|
+
super(DeclarationRefusedError.code, detail);
|
|
6789
6816
|
this.name = "DeclarationRefusedError";
|
|
6790
6817
|
}
|
|
6791
6818
|
};
|
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.194",
|
|
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",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
],
|
|
74
74
|
"requires": {
|
|
75
|
-
"server": ">=1.2.
|
|
75
|
+
"server": ">=1.2.788"
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"files": [
|