@camstack/addon-export-google 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/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ const require_export_google_addon = require("./export-google.addon.js");
6
+ exports.EXPORTED_CAP_NAMES = require_export_google_addon.EXPORTED_CAP_NAMES;
7
+ exports.ExportGoogleAddon = require_export_google_addon.ExportGoogleAddon;
8
+ exports.SUPPORTED_DEVICE_KINDS = require_export_google_addon.SUPPORTED_DEVICE_KINDS;
9
+ exports.TRAIT_CATALOG = require_export_google_addon.TRAIT_CATALOG;
10
+ exports.buildGoogleOauthIntegration = require_export_google_addon.buildGoogleOauthIntegration;
11
+ exports.buildSyncDevice = require_export_google_addon.buildSyncDevice;
12
+ exports.createApiDeviceGateway = require_export_google_addon.createApiDeviceGateway;
13
+ exports.default = require_export_google_addon.ExportGoogleAddon;
14
+ exports.handleFulfillment = require_export_google_addon.handleFulfillment;
15
+ exports.resolveGoogleDeviceType = require_export_google_addon.resolveGoogleDeviceType;
16
+ exports.statesAfterCall = require_export_google_addon.statesAfterCall;
17
+ exports.traitForCommand = require_export_google_addon.traitForCommand;
18
+ exports.traitsForCaps = require_export_google_addon.traitsForCaps;
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import { ExportGoogleAddon, a as resolveGoogleDeviceType, c as statesAfterCall, d as createApiDeviceGateway, i as buildSyncDevice, l as traitForCommand, n as handleFulfillment, o as EXPORTED_CAP_NAMES, r as SUPPORTED_DEVICE_KINDS, s as TRAIT_CATALOG, t as buildGoogleOauthIntegration, u as traitsForCaps } from "./export-google.addon.mjs";
2
+ export { EXPORTED_CAP_NAMES, ExportGoogleAddon, ExportGoogleAddon as default, SUPPORTED_DEVICE_KINDS, TRAIT_CATALOG, buildGoogleOauthIntegration, buildSyncDevice, createApiDeviceGateway, handleFulfillment, resolveGoogleDeviceType, statesAfterCall, traitForCommand, traitsForCaps };
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "@camstack/addon-export-google",
3
+ "version": "0.1.1",
4
+ "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
+ "keywords": [
6
+ "camstack",
7
+ "addon",
8
+ "camstack-addon",
9
+ "google",
10
+ "google-home",
11
+ "smart-home"
12
+ ],
13
+ "license": "MIT",
14
+ "main": "./dist/index.js",
15
+ "module": "./dist/index.mjs",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs",
21
+ "require": "./dist/index.js"
22
+ },
23
+ "./package.json": "./package.json"
24
+ },
25
+ "camstack": {
26
+ "displayName": "Google Home export",
27
+ "addons": [
28
+ {
29
+ "id": "export-google",
30
+ "category": "exports",
31
+ "name": "Google Home export",
32
+ "description": "Publishes switches, dimmable lights, locks and covers to Google Home / Google Assistant. The hub answers Google's smart-home fulfillment directly (SYNC / QUERY / EXECUTE / DISCONNECT) and account-links through the hub's own OAuth server — no cloud function and no Google credential. Cameras and proactive Report State are deliberately out of scope (D268, D269).",
33
+ "entry": "./dist/index.js",
34
+ "execution": {
35
+ "placement": "hub-only"
36
+ },
37
+ "capabilities": [
38
+ {
39
+ "name": "device-export"
40
+ },
41
+ {
42
+ "name": "addon-routes"
43
+ },
44
+ {
45
+ "name": "oauth-integration"
46
+ }
47
+ ],
48
+ "icon": "assets/icon.svg",
49
+ "color": "#4285F4"
50
+ }
51
+ ]
52
+ },
53
+ "files": [
54
+ "dist",
55
+ "assets"
56
+ ],
57
+ "scripts": {
58
+ "build": "vite build",
59
+ "build:lib": "vite build",
60
+ "typecheck": "tsc --noEmit",
61
+ "test": "vitest run",
62
+ "test:watch": "vitest"
63
+ },
64
+ "peerDependencies": {
65
+ "@camstack/types": "*"
66
+ },
67
+ "dependencies": {
68
+ "zod": "^4.3.6"
69
+ },
70
+ "devDependencies": {
71
+ "@camstack/types": "*",
72
+ "typescript": "~6.0.3",
73
+ "vite": "^8.0.11",
74
+ "vite-plugin-dts": "^5.0.0",
75
+ "vitest": "^4.0.0"
76
+ }
77
+ }