@seamapi/types 0.7.0 → 0.9.0
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/connect.cjs +1 -1
- package/dist/connect.cjs.map +1 -1
- package/lib/seam/connect/enums.d.ts +1 -0
- package/lib/seam/connect/enums.js +2 -0
- package/lib/seam/connect/enums.js.map +1 -0
- package/lib/seam/connect/index.d.ts +2 -2
- package/lib/seam/connect/index.js +2 -2
- package/lib/seam/connect/index.js.map +1 -1
- package/lib/seam/connect/internal.d.ts +1 -0
- package/lib/seam/connect/internal.js +2 -0
- package/lib/seam/connect/internal.js.map +1 -0
- package/lib/seam/connect/route-types.d.ts +26 -18
- package/lib/seam/connect/stable/model-types.js.map +1 -0
- package/lib/seam/connect/stable/models/connect-webview.js.map +1 -0
- package/lib/seam/connect/stable/models/index.js.map +1 -0
- package/lib/seam/connect/stable/schemas.js.map +1 -0
- package/lib/seam/connect/unstable/index.d.ts +3 -0
- package/lib/seam/connect/unstable/index.js +4 -0
- package/lib/seam/connect/unstable/index.js.map +1 -0
- package/lib/seam/connect/unstable/model-types.d.ts +1 -0
- package/lib/seam/connect/unstable/model-types.js +2 -0
- package/lib/seam/connect/unstable/model-types.js.map +1 -0
- package/lib/seam/connect/unstable/models/capabilities-supported.d.ts +3 -0
- package/lib/seam/connect/unstable/models/capabilities-supported.js +9 -0
- package/lib/seam/connect/unstable/models/capabilities-supported.js.map +1 -0
- package/lib/seam/connect/unstable/models/device-type.d.ts +50 -0
- package/lib/seam/connect/unstable/models/device-type.js +47 -0
- package/lib/seam/connect/unstable/models/device-type.js.map +1 -0
- package/lib/seam/connect/unstable/models/index.d.ts +4 -0
- package/lib/seam/connect/unstable/models/index.js +5 -0
- package/lib/seam/connect/unstable/models/index.js.map +1 -0
- package/lib/seam/connect/unstable/models/managed-device.d.ts +103 -0
- package/lib/seam/connect/unstable/models/managed-device.js +32 -0
- package/lib/seam/connect/unstable/models/managed-device.js.map +1 -0
- package/lib/seam/connect/unstable/models/unmanaged-device.d.ts +115 -0
- package/lib/seam/connect/unstable/models/unmanaged-device.js +28 -0
- package/lib/seam/connect/unstable/models/unmanaged-device.js.map +1 -0
- package/lib/seam/connect/unstable/schemas.d.ts +1 -0
- package/lib/seam/connect/unstable/schemas.js +2 -0
- package/lib/seam/connect/unstable/schemas.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/enums.ts +8 -0
- package/src/lib/seam/connect/index.ts +3 -2
- package/src/lib/seam/connect/internal.ts +1 -0
- package/src/lib/seam/connect/route-types.ts +348 -330
- package/src/lib/seam/connect/unstable/index.ts +5 -0
- package/src/lib/seam/connect/unstable/model-types.ts +9 -0
- package/src/lib/seam/connect/unstable/models/capabilities-supported.ts +11 -0
- package/src/lib/seam/connect/unstable/models/device-type.ts +85 -0
- package/src/lib/seam/connect/unstable/models/index.ts +4 -0
- package/src/lib/seam/connect/unstable/models/managed-device.ts +39 -0
- package/src/lib/seam/connect/unstable/models/unmanaged-device.ts +31 -0
- package/src/lib/seam/connect/unstable/schemas.ts +9 -0
- package/lib/seam/connect/model-types.js.map +0 -1
- package/lib/seam/connect/models/connect-webview.js.map +0 -1
- package/lib/seam/connect/models/index.js.map +0 -1
- package/lib/seam/connect/schemas.js.map +0 -1
- /package/lib/seam/connect/{model-types.d.ts → stable/model-types.d.ts} +0 -0
- /package/lib/seam/connect/{model-types.js → stable/model-types.js} +0 -0
- /package/lib/seam/connect/{models → stable/models}/connect-webview.d.ts +0 -0
- /package/lib/seam/connect/{models → stable/models}/connect-webview.js +0 -0
- /package/lib/seam/connect/{models → stable/models}/index.d.ts +0 -0
- /package/lib/seam/connect/{models → stable/models}/index.js +0 -0
- /package/lib/seam/connect/{schemas.d.ts → stable/schemas.d.ts} +0 -0
- /package/lib/seam/connect/{schemas.js → stable/schemas.js} +0 -0
- /package/src/lib/seam/connect/{model-types.ts → stable/model-types.ts} +0 -0
- /package/src/lib/seam/connect/{models → stable/models}/connect-webview.ts +0 -0
- /package/src/lib/seam/connect/{models → stable/models}/index.ts +0 -0
- /package/src/lib/seam/connect/{schemas.ts → stable/schemas.ts} +0 -0
package/dist/connect.cjs
CHANGED
|
@@ -8,7 +8,7 @@ var __export = (target, all) => {
|
|
|
8
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
// src/lib/seam/connect/schemas.ts
|
|
11
|
+
// src/lib/seam/connect/stable/schemas.ts
|
|
12
12
|
var schemas_exports = {};
|
|
13
13
|
__export(schemas_exports, {
|
|
14
14
|
connect_webview: () => connect_webview
|
package/dist/connect.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/seam/connect/schemas.ts","../src/lib/seam/connect/models/connect-webview.ts","../src/lib/seam/connect/openapi.ts","../src/lib/seam/connect/index.ts"],"names":[],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;;;ACAA,SAAS,SAAS;AAEX,IAAM,kBAAkB,EAAE,OAAO;AAAA,EACtC,oBAAoB,EAAE,OAAO,EAAE,KAAK;AAAA,EACpC,sBAAsB,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS;AAAA,EACjD,KAAK,EAAE,OAAO,EAAE,IAAI;AAAA,EACpB,cAAc,EAAE,OAAO,EAAE,KAAK;AAAA,EAC9B,uBAAuB,EAAE,KAAK,CAAC,QAAQ,UAAU,UAAU,CAAC;AAAA,EAC5D,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC;AAAA,EACtC,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC;AAAA,EACpC,sBAAsB,EAAE,QAAQ;AAAA,EAChC,oBAAoB,EAAE,QAAQ;AAAA,EAC9B,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA,EAChC,kBAAkB,EAAE,QAAQ;AAAA,EAC5B,QAAQ,EAAE,KAAK,CAAC,WAAW,UAAU,YAAY,CAAC;AACpD,CAAC;;;ACfD,IAAO,kBAAQ,CAAC;;;
|
|
1
|
+
{"version":3,"sources":["../src/lib/seam/connect/stable/schemas.ts","../src/lib/seam/connect/stable/models/connect-webview.ts","../src/lib/seam/connect/openapi.ts","../src/lib/seam/connect/index.ts"],"names":[],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;;;ACAA,SAAS,SAAS;AAEX,IAAM,kBAAkB,EAAE,OAAO;AAAA,EACtC,oBAAoB,EAAE,OAAO,EAAE,KAAK;AAAA,EACpC,sBAAsB,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS;AAAA,EACjD,KAAK,EAAE,OAAO,EAAE,IAAI;AAAA,EACpB,cAAc,EAAE,OAAO,EAAE,KAAK;AAAA,EAC9B,uBAAuB,EAAE,KAAK,CAAC,QAAQ,UAAU,UAAU,CAAC;AAAA,EAC5D,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC;AAAA,EACtC,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC;AAAA,EACpC,sBAAsB,EAAE,QAAQ;AAAA,EAChC,oBAAoB,EAAE,QAAQ;AAAA,EAC9B,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA,EAChC,kBAAkB,EAAE,QAAQ;AAAA,EAC5B,QAAQ,EAAE,KAAK,CAAC,WAAW,UAAU,YAAY,CAAC;AACpD,CAAC;;;ACfD,IAAO,kBAAQ,CAAC;;;ACQT,IAAM,SAAS,CAAC","sourcesContent":["export { connect_webview } from './models/index.js'\n","import { z } from 'zod'\n\nexport const connect_webview = z.object({\n connect_webview_id: z.string().uuid(),\n connected_account_id: z.string().uuid().optional(),\n url: z.string().url(),\n workspace_id: z.string().uuid(),\n device_selection_mode: z.enum(['none', 'single', 'multiple']),\n accepted_providers: z.array(z.string()),\n accepted_devices: z.array(z.string()),\n any_provider_allowed: z.boolean(),\n any_device_allowed: z.boolean(),\n created_at: z.string().datetime(),\n login_successful: z.boolean(),\n status: z.enum(['pending', 'failed', 'authorized']),\n})\n\nexport type ConnectWebview = z.infer<typeof connect_webview>\n","export default {}\n","import * as schemas from './stable/schemas.js'\n\nexport { schemas }\n\nexport { default as openapi } from './openapi.js'\nexport * from './stable/model-types.js'\n\n// UPSTREAM: Reserve this named export until nextlove is able to generate this.\nexport const routes = {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LOCK_DEVICE_TYPE, LOCK_DEVICE_TYPE_LIST, NOISE_SENSOR_DEVICE_TYPE, NOISE_SENSOR_DEVICE_TYPE_LIST, THERMOSTAT_DEVICE_TYPE, THERMOSTAT_DEVICE_TYPE_LIST, } from './unstable/models/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/enums.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,4BAA4B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as schemas from './schemas.js';
|
|
1
|
+
import * as schemas from './stable/schemas.js';
|
|
2
2
|
export { schemas };
|
|
3
|
-
export * from './model-types.js';
|
|
4
3
|
export { default as openapi } from './openapi.js';
|
|
4
|
+
export * from './stable/model-types.js';
|
|
5
5
|
export declare const routes: {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as schemas from './schemas.js';
|
|
1
|
+
import * as schemas from './stable/schemas.js';
|
|
2
2
|
export { schemas };
|
|
3
|
-
export * from './model-types.js';
|
|
4
3
|
export { default as openapi } from './openapi.js';
|
|
4
|
+
export * from './stable/model-types.js';
|
|
5
5
|
// UPSTREAM: Reserve this named export until nextlove is able to generate this.
|
|
6
6
|
export const routes = {};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAE9C,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAA;AACjD,cAAc,yBAAyB,CAAA;AAEvC,+EAA+E;AAC/E,MAAM,CAAC,MAAM,MAAM,GAAG,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './enums.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/internal.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -743,8 +743,8 @@ export interface Routes {
|
|
|
743
743
|
jsonResponse: {
|
|
744
744
|
device: {
|
|
745
745
|
device_id: string;
|
|
746
|
-
device_type: 'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat';
|
|
747
|
-
capabilities_supported:
|
|
746
|
+
device_type: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat');
|
|
747
|
+
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery'>;
|
|
748
748
|
properties: {
|
|
749
749
|
online: boolean;
|
|
750
750
|
name: string;
|
|
@@ -777,17 +777,19 @@ export interface Routes {
|
|
|
777
777
|
connected_account_id?: string | undefined;
|
|
778
778
|
connected_account_ids?: string[] | undefined;
|
|
779
779
|
connect_webview_id?: string | undefined;
|
|
780
|
-
device_type?: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat') | undefined;
|
|
781
|
-
device_types?: Array<'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat'> | undefined;
|
|
780
|
+
device_type?: (('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat')) | undefined;
|
|
781
|
+
device_types?: Array<('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat')> | undefined;
|
|
782
782
|
manufacturer?: ('akuvox' | 'august' | 'brivo' | 'butterflymx' | 'doorking' | 'genie' | 'igloo' | 'keywe' | 'kwikset' | 'linear' | 'lockly' | 'nuki' | 'philia' | 'salto' | 'samsung' | 'schlage' | 'seam' | 'unknown' | 'yale' | 'minut' | 'two_n' | 'ttlock' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat') | undefined;
|
|
783
783
|
device_ids?: string[] | undefined;
|
|
784
|
+
limit?: number;
|
|
785
|
+
created_before?: string | undefined;
|
|
784
786
|
};
|
|
785
787
|
formData: {};
|
|
786
788
|
jsonResponse: {
|
|
787
789
|
devices: Array<{
|
|
788
790
|
device_id: string;
|
|
789
|
-
device_type: 'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat';
|
|
790
|
-
capabilities_supported:
|
|
791
|
+
device_type: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat');
|
|
792
|
+
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery'>;
|
|
791
793
|
properties: {
|
|
792
794
|
online: boolean;
|
|
793
795
|
name: string;
|
|
@@ -838,18 +840,20 @@ export interface Routes {
|
|
|
838
840
|
connected_account_id?: string | undefined;
|
|
839
841
|
connected_account_ids?: string[] | undefined;
|
|
840
842
|
connect_webview_id?: string | undefined;
|
|
841
|
-
device_type?: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat') | undefined;
|
|
842
|
-
device_types?: Array<'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat'> | undefined;
|
|
843
|
+
device_type?: (('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat')) | undefined;
|
|
844
|
+
device_types?: Array<('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat')> | undefined;
|
|
843
845
|
manufacturer?: ('akuvox' | 'august' | 'brivo' | 'butterflymx' | 'doorking' | 'genie' | 'igloo' | 'keywe' | 'kwikset' | 'linear' | 'lockly' | 'nuki' | 'philia' | 'salto' | 'samsung' | 'schlage' | 'seam' | 'unknown' | 'yale' | 'minut' | 'two_n' | 'ttlock' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat') | undefined;
|
|
844
846
|
device_ids?: string[] | undefined;
|
|
847
|
+
limit?: number;
|
|
848
|
+
created_before?: string | undefined;
|
|
845
849
|
};
|
|
846
850
|
formData: {};
|
|
847
851
|
jsonResponse: {
|
|
848
852
|
devices: Array<{
|
|
849
853
|
device_id: string;
|
|
850
|
-
device_type: 'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat';
|
|
854
|
+
device_type: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat');
|
|
851
855
|
connected_account_id: string;
|
|
852
|
-
capabilities_supported:
|
|
856
|
+
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery'>;
|
|
853
857
|
workspace_id: string;
|
|
854
858
|
errors: Array<{
|
|
855
859
|
error_code: string;
|
|
@@ -1053,10 +1057,12 @@ export interface Routes {
|
|
|
1053
1057
|
connected_account_id?: string | undefined;
|
|
1054
1058
|
connected_account_ids?: string[] | undefined;
|
|
1055
1059
|
connect_webview_id?: string | undefined;
|
|
1056
|
-
device_type?: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat') | undefined;
|
|
1057
|
-
device_types?: Array<'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat'> | undefined;
|
|
1060
|
+
device_type?: (('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat')) | undefined;
|
|
1061
|
+
device_types?: Array<('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat')> | undefined;
|
|
1058
1062
|
manufacturer?: ('akuvox' | 'august' | 'brivo' | 'butterflymx' | 'doorking' | 'genie' | 'igloo' | 'keywe' | 'kwikset' | 'linear' | 'lockly' | 'nuki' | 'philia' | 'salto' | 'samsung' | 'schlage' | 'seam' | 'unknown' | 'yale' | 'minut' | 'two_n' | 'ttlock' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat') | undefined;
|
|
1059
1063
|
device_ids?: string[] | undefined;
|
|
1064
|
+
limit?: number;
|
|
1065
|
+
created_before?: string | undefined;
|
|
1060
1066
|
};
|
|
1061
1067
|
formData: {};
|
|
1062
1068
|
jsonResponse: {
|
|
@@ -1469,8 +1475,8 @@ export interface Routes {
|
|
|
1469
1475
|
jsonResponse: {
|
|
1470
1476
|
thermostat: {
|
|
1471
1477
|
device_id: string;
|
|
1472
|
-
device_type: 'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat';
|
|
1473
|
-
capabilities_supported:
|
|
1478
|
+
device_type: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat');
|
|
1479
|
+
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery'>;
|
|
1474
1480
|
properties: {
|
|
1475
1481
|
online: boolean;
|
|
1476
1482
|
name: string;
|
|
@@ -1517,17 +1523,19 @@ export interface Routes {
|
|
|
1517
1523
|
connected_account_id?: string | undefined;
|
|
1518
1524
|
connected_account_ids?: string[] | undefined;
|
|
1519
1525
|
connect_webview_id?: string | undefined;
|
|
1520
|
-
device_type?: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat') | undefined;
|
|
1521
|
-
device_types?: Array<'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat'> | undefined;
|
|
1526
|
+
device_type?: (('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat')) | undefined;
|
|
1527
|
+
device_types?: Array<('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat')> | undefined;
|
|
1522
1528
|
manufacturer?: ('akuvox' | 'august' | 'brivo' | 'butterflymx' | 'doorking' | 'genie' | 'igloo' | 'keywe' | 'kwikset' | 'linear' | 'lockly' | 'nuki' | 'philia' | 'salto' | 'samsung' | 'schlage' | 'seam' | 'unknown' | 'yale' | 'minut' | 'two_n' | 'ttlock' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat') | undefined;
|
|
1523
1529
|
device_ids?: string[] | undefined;
|
|
1530
|
+
limit?: number;
|
|
1531
|
+
created_before?: string | undefined;
|
|
1524
1532
|
};
|
|
1525
1533
|
formData: {};
|
|
1526
1534
|
jsonResponse: {
|
|
1527
1535
|
thermostats: Array<{
|
|
1528
1536
|
device_id: string;
|
|
1529
|
-
device_type: 'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'noiseaware_activity_zone' | 'minut_sensor' | 'ecobee_thermostat' | 'nest_thermostat';
|
|
1530
|
-
capabilities_supported:
|
|
1537
|
+
device_type: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat');
|
|
1538
|
+
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery'>;
|
|
1531
1539
|
properties: {
|
|
1532
1540
|
online: boolean;
|
|
1533
1541
|
name: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-types.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/stable/model-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connect-webview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/stable/models/connect-webview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC7D,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACvC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACrC,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE;IACjC,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;CACpD,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/stable/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/stable/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/unstable/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC,cAAc,kBAAkB,CAAA;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AnyDeviceType, Capabilities, LockDeviceType, ManagedDevice, NoiseSensorDeviceType, ThermostatDeviceType, UnmanagedDevice, } from './models/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-types.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/unstable/model-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities-supported.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/unstable/models/capabilities-supported.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC;IACjC,aAAa;IACb,MAAM;IACN,iBAAiB;IACjB,YAAY;IACZ,SAAS;CACV,CAAC,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Locks */
|
|
3
|
+
export declare const LOCK_DEVICE_TYPE: {
|
|
4
|
+
readonly AKUVOX_LOCK: "akuvox_lock";
|
|
5
|
+
readonly AUGUST_LOCK: "august_lock";
|
|
6
|
+
readonly BRIVO_ACCESS_POINT: "brivo_access_point";
|
|
7
|
+
readonly BUTTERFLYMX_PANEL: "butterflymx_panel";
|
|
8
|
+
readonly DOORKING_LOCK: "doorking_lock";
|
|
9
|
+
readonly GENIE_DOOR: "genie_door";
|
|
10
|
+
readonly IGLOO_LOCK: "igloo_lock";
|
|
11
|
+
readonly LINEAR_LOCK: "linear_lock";
|
|
12
|
+
readonly LOCKLY_LOCK: "lockly_lock";
|
|
13
|
+
readonly KWIKSET_LOCK: "kwikset_lock";
|
|
14
|
+
readonly NUKI_LOCK: "nuki_lock";
|
|
15
|
+
readonly SALTO_LOCK: "salto_lock";
|
|
16
|
+
readonly SCHLAGE_LOCK: "schlage_lock";
|
|
17
|
+
readonly SEAM_RELAY: "seam_relay";
|
|
18
|
+
readonly SMARTTHINGS_LOCK: "smartthings_lock";
|
|
19
|
+
readonly YALE_LOCK: "yale_lock";
|
|
20
|
+
readonly TWO_N_INTERCOM: "two_n_intercom";
|
|
21
|
+
readonly CONTROLBYWEB_DEVICE: "controlbyweb_device";
|
|
22
|
+
readonly TTLOCK_LOCK: "ttlock_lock";
|
|
23
|
+
readonly IGLOOHOME_LOCK: "igloohome_lock";
|
|
24
|
+
readonly HUBITAT_LOCK: "hubitat_lock";
|
|
25
|
+
};
|
|
26
|
+
type LockDeviceTypeFromMapping = (typeof LOCK_DEVICE_TYPE)[keyof typeof LOCK_DEVICE_TYPE];
|
|
27
|
+
export declare const LOCK_DEVICE_TYPE_LIST: LockDeviceTypeFromMapping[];
|
|
28
|
+
export declare const lock_device_type: z.ZodEnum<[LockDeviceTypeFromMapping]>;
|
|
29
|
+
export type LockDeviceType = z.infer<typeof lock_device_type>;
|
|
30
|
+
/** Noise Sensors */
|
|
31
|
+
export declare const NOISE_SENSOR_DEVICE_TYPE: {
|
|
32
|
+
readonly NOISEAWARE_ACTIVITY_ZONE: "noiseaware_activity_zone";
|
|
33
|
+
readonly MINUT_SENSOR: "minut_sensor";
|
|
34
|
+
};
|
|
35
|
+
type NoiseSensorDeviceTypeFromMapping = (typeof NOISE_SENSOR_DEVICE_TYPE)[keyof typeof NOISE_SENSOR_DEVICE_TYPE];
|
|
36
|
+
export declare const NOISE_SENSOR_DEVICE_TYPE_LIST: NoiseSensorDeviceTypeFromMapping[];
|
|
37
|
+
export declare const noise_sensor_device_type: z.ZodEnum<[NoiseSensorDeviceTypeFromMapping]>;
|
|
38
|
+
export type NoiseSensorDeviceType = z.infer<typeof noise_sensor_device_type>;
|
|
39
|
+
/** Thermostats */
|
|
40
|
+
export declare const THERMOSTAT_DEVICE_TYPE: {
|
|
41
|
+
readonly ECOBEE_THERMOSTAT: "ecobee_thermostat";
|
|
42
|
+
readonly NEST_THERMOSTAT: "nest_thermostat";
|
|
43
|
+
};
|
|
44
|
+
type ThermostatDeviceTypeFromMapping = (typeof THERMOSTAT_DEVICE_TYPE)[keyof typeof THERMOSTAT_DEVICE_TYPE];
|
|
45
|
+
export declare const THERMOSTAT_DEVICE_TYPE_LIST: ThermostatDeviceTypeFromMapping[];
|
|
46
|
+
export declare const thermostat_device_type: z.ZodEnum<[ThermostatDeviceTypeFromMapping]>;
|
|
47
|
+
export type ThermostatDeviceType = z.infer<typeof thermostat_device_type>;
|
|
48
|
+
export declare const any_device_type: z.ZodUnion<[z.ZodEnum<[LockDeviceTypeFromMapping]>, z.ZodEnum<[NoiseSensorDeviceTypeFromMapping]>, z.ZodEnum<[ThermostatDeviceTypeFromMapping]>]>;
|
|
49
|
+
export type AnyDeviceType = z.infer<typeof any_device_type>;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Locks */
|
|
3
|
+
export const LOCK_DEVICE_TYPE = {
|
|
4
|
+
AKUVOX_LOCK: 'akuvox_lock',
|
|
5
|
+
AUGUST_LOCK: 'august_lock',
|
|
6
|
+
BRIVO_ACCESS_POINT: 'brivo_access_point',
|
|
7
|
+
BUTTERFLYMX_PANEL: 'butterflymx_panel',
|
|
8
|
+
DOORKING_LOCK: 'doorking_lock',
|
|
9
|
+
GENIE_DOOR: 'genie_door',
|
|
10
|
+
IGLOO_LOCK: 'igloo_lock',
|
|
11
|
+
LINEAR_LOCK: 'linear_lock',
|
|
12
|
+
LOCKLY_LOCK: 'lockly_lock',
|
|
13
|
+
KWIKSET_LOCK: 'kwikset_lock',
|
|
14
|
+
NUKI_LOCK: 'nuki_lock',
|
|
15
|
+
SALTO_LOCK: 'salto_lock',
|
|
16
|
+
SCHLAGE_LOCK: 'schlage_lock',
|
|
17
|
+
SEAM_RELAY: 'seam_relay',
|
|
18
|
+
SMARTTHINGS_LOCK: 'smartthings_lock',
|
|
19
|
+
YALE_LOCK: 'yale_lock',
|
|
20
|
+
TWO_N_INTERCOM: 'two_n_intercom',
|
|
21
|
+
CONTROLBYWEB_DEVICE: 'controlbyweb_device',
|
|
22
|
+
TTLOCK_LOCK: 'ttlock_lock',
|
|
23
|
+
IGLOOHOME_LOCK: 'igloohome_lock',
|
|
24
|
+
HUBITAT_LOCK: 'hubitat_lock',
|
|
25
|
+
};
|
|
26
|
+
export const LOCK_DEVICE_TYPE_LIST = Object.values(LOCK_DEVICE_TYPE);
|
|
27
|
+
export const lock_device_type = z.enum(Object.values(LOCK_DEVICE_TYPE));
|
|
28
|
+
/** Noise Sensors */
|
|
29
|
+
export const NOISE_SENSOR_DEVICE_TYPE = {
|
|
30
|
+
NOISEAWARE_ACTIVITY_ZONE: 'noiseaware_activity_zone',
|
|
31
|
+
MINUT_SENSOR: 'minut_sensor',
|
|
32
|
+
};
|
|
33
|
+
export const NOISE_SENSOR_DEVICE_TYPE_LIST = Object.values(NOISE_SENSOR_DEVICE_TYPE);
|
|
34
|
+
export const noise_sensor_device_type = z.enum(Object.values(NOISE_SENSOR_DEVICE_TYPE));
|
|
35
|
+
/** Thermostats */
|
|
36
|
+
export const THERMOSTAT_DEVICE_TYPE = {
|
|
37
|
+
ECOBEE_THERMOSTAT: 'ecobee_thermostat',
|
|
38
|
+
NEST_THERMOSTAT: 'nest_thermostat',
|
|
39
|
+
};
|
|
40
|
+
export const THERMOSTAT_DEVICE_TYPE_LIST = Object.values(THERMOSTAT_DEVICE_TYPE);
|
|
41
|
+
export const thermostat_device_type = z.enum(Object.values(THERMOSTAT_DEVICE_TYPE));
|
|
42
|
+
export const any_device_type = z.union([
|
|
43
|
+
lock_device_type,
|
|
44
|
+
noise_sensor_device_type,
|
|
45
|
+
thermostat_device_type,
|
|
46
|
+
]);
|
|
47
|
+
//# sourceMappingURL=device-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-type.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/unstable/models/device-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,YAAY;AACZ,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,mBAAmB,EAAE,qBAAqB;IAC1C,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,YAAY,EAAE,cAAc;CACpB,CAAA;AAKV,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAChD,gBAAgB,CACc,CAAA;AAEhC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CACpC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAgC,CAC/D,CAAA;AAID,oBAAoB;AACpB,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,wBAAwB,EAAE,0BAA0B;IACpD,YAAY,EAAE,cAAc;CACpB,CAAA;AAKV,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,CACxD,wBAAwB,CACa,CAAA;AAEvC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAC5C,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAuC,CAC9E,CAAA;AAID,kBAAkB;AAClB,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,iBAAiB,EAAE,mBAAmB;IACtC,eAAe,EAAE,iBAAiB;CAC1B,CAAA;AAKV,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,CACtD,sBAAsB,CACc,CAAA;AAEtC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAC1C,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAsC,CAC3E,CAAA;AAID,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC;IACrC,gBAAgB;IAChB,wBAAwB;IACxB,sBAAsB;CACvB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/unstable/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const managed_device: z.ZodObject<{
|
|
3
|
+
device_id: z.ZodString;
|
|
4
|
+
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat"]>]>;
|
|
5
|
+
capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery"]>, "many">;
|
|
6
|
+
properties: z.ZodIntersection<z.ZodObject<{
|
|
7
|
+
online: z.ZodBoolean;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
model: z.ZodObject<{
|
|
10
|
+
display_name: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
display_name: string;
|
|
13
|
+
}, {
|
|
14
|
+
display_name: string;
|
|
15
|
+
}>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: string;
|
|
18
|
+
online: boolean;
|
|
19
|
+
model: {
|
|
20
|
+
display_name: string;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
name: string;
|
|
24
|
+
online: boolean;
|
|
25
|
+
model: {
|
|
26
|
+
display_name: string;
|
|
27
|
+
};
|
|
28
|
+
}>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
29
|
+
location: z.ZodAny;
|
|
30
|
+
connected_account_id: z.ZodString;
|
|
31
|
+
workspace_id: z.ZodString;
|
|
32
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
33
|
+
error_code: z.ZodString;
|
|
34
|
+
message: z.ZodString;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
message: string;
|
|
37
|
+
error_code: string;
|
|
38
|
+
}, {
|
|
39
|
+
message: string;
|
|
40
|
+
error_code: string;
|
|
41
|
+
}>, "many">;
|
|
42
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
43
|
+
warning_code: z.ZodString;
|
|
44
|
+
message: z.ZodString;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
message: string;
|
|
47
|
+
warning_code: string;
|
|
48
|
+
}, {
|
|
49
|
+
message: string;
|
|
50
|
+
warning_code: string;
|
|
51
|
+
}>, "many">;
|
|
52
|
+
created_at: z.ZodString;
|
|
53
|
+
is_managed: z.ZodLiteral<true>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
connected_account_id: string;
|
|
56
|
+
workspace_id: string;
|
|
57
|
+
created_at: string;
|
|
58
|
+
device_id: string;
|
|
59
|
+
device_type: "akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "noiseaware_activity_zone" | "minut_sensor" | "ecobee_thermostat" | "nest_thermostat";
|
|
60
|
+
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery")[];
|
|
61
|
+
properties: {
|
|
62
|
+
name: string;
|
|
63
|
+
online: boolean;
|
|
64
|
+
model: {
|
|
65
|
+
display_name: string;
|
|
66
|
+
};
|
|
67
|
+
} & Record<string, any>;
|
|
68
|
+
errors: {
|
|
69
|
+
message: string;
|
|
70
|
+
error_code: string;
|
|
71
|
+
}[];
|
|
72
|
+
warnings: {
|
|
73
|
+
message: string;
|
|
74
|
+
warning_code: string;
|
|
75
|
+
}[];
|
|
76
|
+
is_managed: true;
|
|
77
|
+
location?: any;
|
|
78
|
+
}, {
|
|
79
|
+
connected_account_id: string;
|
|
80
|
+
workspace_id: string;
|
|
81
|
+
created_at: string;
|
|
82
|
+
device_id: string;
|
|
83
|
+
device_type: "akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "noiseaware_activity_zone" | "minut_sensor" | "ecobee_thermostat" | "nest_thermostat";
|
|
84
|
+
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery")[];
|
|
85
|
+
properties: {
|
|
86
|
+
name: string;
|
|
87
|
+
online: boolean;
|
|
88
|
+
model: {
|
|
89
|
+
display_name: string;
|
|
90
|
+
};
|
|
91
|
+
} & Record<string, any>;
|
|
92
|
+
errors: {
|
|
93
|
+
message: string;
|
|
94
|
+
error_code: string;
|
|
95
|
+
}[];
|
|
96
|
+
warnings: {
|
|
97
|
+
message: string;
|
|
98
|
+
warning_code: string;
|
|
99
|
+
}[];
|
|
100
|
+
is_managed: true;
|
|
101
|
+
location?: any;
|
|
102
|
+
}>;
|
|
103
|
+
export type ManagedDevice = z.infer<typeof managed_device>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { capabilities } from './capabilities-supported.js';
|
|
3
|
+
import { any_device_type } from './device-type.js';
|
|
4
|
+
export const managed_device = z.object({
|
|
5
|
+
device_id: z.string().uuid(),
|
|
6
|
+
device_type: any_device_type,
|
|
7
|
+
capabilities_supported: z.array(capabilities),
|
|
8
|
+
properties: z
|
|
9
|
+
.object({
|
|
10
|
+
online: z.boolean(),
|
|
11
|
+
name: z.string(),
|
|
12
|
+
model: z.object({
|
|
13
|
+
display_name: z.string(),
|
|
14
|
+
}),
|
|
15
|
+
})
|
|
16
|
+
.and(z.record(z.string(), z.any())),
|
|
17
|
+
// todo: better type
|
|
18
|
+
location: z.any(),
|
|
19
|
+
connected_account_id: z.string().uuid(),
|
|
20
|
+
workspace_id: z.string().uuid(),
|
|
21
|
+
errors: z.array(z.object({
|
|
22
|
+
error_code: z.string(),
|
|
23
|
+
message: z.string(),
|
|
24
|
+
})),
|
|
25
|
+
warnings: z.array(z.object({
|
|
26
|
+
warning_code: z.string(),
|
|
27
|
+
message: z.string(),
|
|
28
|
+
})),
|
|
29
|
+
created_at: z.string().datetime(),
|
|
30
|
+
is_managed: z.literal(true),
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=managed-device.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/unstable/models/managed-device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,WAAW,EAAE,eAAe;IAC5B,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;IAC7C,UAAU,EAAE,CAAC;SACV,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;QACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;SACzB,CAAC;KACH,CAAC;SACD,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACrC,oBAAoB;IACpB,QAAQ,EAAE,CAAC,CAAC,GAAG,EAAE;IACjB,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5B,CAAC,CAAA"}
|