@camstack/addon-import-alexa 0.1.1
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/assets/icon.svg +6 -0
- package/dist/addon.js +67369 -0
- package/dist/addon.mjs +67356 -0
- package/dist/index.js +15 -0
- package/dist/index.mjs +2 -0
- package/package.json +84 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_addon = require("./addon.js");
|
|
3
|
+
exports.AlexaAuthError = require_addon.AlexaAuthError;
|
|
4
|
+
exports.AlexaClientNotWiredError = require_addon.AlexaClientNotWiredError;
|
|
5
|
+
exports.AlexaImportAddon = require_addon.AlexaImportAddon;
|
|
6
|
+
exports.StubAlexaClient = require_addon.StubAlexaClient;
|
|
7
|
+
exports.alexaAddonConfigSchema = require_addon.alexaAddonConfigSchema;
|
|
8
|
+
exports.alexaConnectionSchema = require_addon.alexaConnectionSchema;
|
|
9
|
+
exports.buildAlexaApplianceCandidate = require_addon.buildAlexaApplianceCandidate;
|
|
10
|
+
exports.buildConnectionFormSchema = require_addon.buildConnectionFormSchema;
|
|
11
|
+
exports.connectionToCredentials = require_addon.connectionToCredentials;
|
|
12
|
+
exports.createAlexaClient = require_addon.createAlexaClient;
|
|
13
|
+
exports.mapAlexaCapabilitiesToCamStack = require_addon.mapAlexaCapabilitiesToCamStack;
|
|
14
|
+
exports.mappableAppliance = require_addon.mappableAppliance;
|
|
15
|
+
exports.settingsToAlexaConnection = require_addon.settingsToAlexaConnection;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AlexaImportAddon, a as alexaConnectionSchema, c as settingsToAlexaConnection, d as StubAlexaClient, f as createAlexaClient, i as alexaAddonConfigSchema, l as AlexaAuthError, n as mappableAppliance, o as buildConnectionFormSchema, r as mapAlexaCapabilitiesToCamStack, s as connectionToCredentials, t as buildAlexaApplianceCandidate, u as AlexaClientNotWiredError } from "./addon.mjs";
|
|
2
|
+
export { AlexaAuthError, AlexaClientNotWiredError, AlexaImportAddon, StubAlexaClient, alexaAddonConfigSchema, alexaConnectionSchema, buildAlexaApplianceCandidate, buildConnectionFormSchema, connectionToCredentials, createAlexaClient, mapAlexaCapabilitiesToCamStack, mappableAppliance, settingsToAlexaConnection };
|
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@camstack/addon-import-alexa",
|
|
3
|
+
"version": "0.1.1",
|
|
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
|
+
"keywords": [
|
|
6
|
+
"camstack",
|
|
7
|
+
"addon",
|
|
8
|
+
"camstack-addon",
|
|
9
|
+
"alexa",
|
|
10
|
+
"alexa-remote2",
|
|
11
|
+
"import",
|
|
12
|
+
"provider"
|
|
13
|
+
],
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/camstack/server"
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/index.js",
|
|
20
|
+
"module": "./dist/index.mjs",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.mjs",
|
|
26
|
+
"require": "./dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
"camstack": {
|
|
31
|
+
"displayName": "Alexa Import",
|
|
32
|
+
"addons": [
|
|
33
|
+
{
|
|
34
|
+
"id": "import-alexa",
|
|
35
|
+
"category": "providers",
|
|
36
|
+
"name": "Alexa Import",
|
|
37
|
+
"version": "0.1.0",
|
|
38
|
+
"description": "Import smart-home devices from an Amazon Alexa account (unofficial cookie/token client; poll-based state sync). Maps Alexa capability interfaces onto typed CamStack device caps.",
|
|
39
|
+
"entry": "./dist/addon.js",
|
|
40
|
+
"icon": "assets/icon.svg",
|
|
41
|
+
"color": "#00caff",
|
|
42
|
+
"instanceMode": "multiple",
|
|
43
|
+
"brokerKind": "alexa",
|
|
44
|
+
"supportsLocationImport": true,
|
|
45
|
+
"capabilities": [
|
|
46
|
+
{
|
|
47
|
+
"name": "device-provider"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "broker"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "device-adoption"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist",
|
|
61
|
+
"assets"
|
|
62
|
+
],
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "vite build",
|
|
65
|
+
"dev": "vite build --watch",
|
|
66
|
+
"typecheck": "tsc --noEmit",
|
|
67
|
+
"test": "vitest run",
|
|
68
|
+
"publish": "npm publish --access public"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"alexa-remote2": "^8.0.4"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@camstack/types": "*",
|
|
75
|
+
"zod": "^4.3.6"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@camstack/types": "*",
|
|
79
|
+
"typescript": "~6.0.3",
|
|
80
|
+
"vite": "^8.0.11",
|
|
81
|
+
"vitest": "^2.0.0",
|
|
82
|
+
"zod": "^4.3.6"
|
|
83
|
+
}
|
|
84
|
+
}
|