@seamapi/types 1.115.0 → 1.116.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.
@@ -2973,6 +2973,8 @@ export interface Routes {
2973
2973
  accessory_keypad_supported?: boolean | undefined;
2974
2974
  };
2975
2975
  };
2976
+ can_remotely_unlock?: boolean | undefined;
2977
+ can_program_online_access_codes?: boolean | undefined;
2976
2978
  };
2977
2979
  };
2978
2980
  };
@@ -3056,6 +3058,8 @@ export interface Routes {
3056
3058
  accessory_keypad_supported?: boolean | undefined;
3057
3059
  };
3058
3060
  };
3061
+ can_remotely_unlock?: boolean | undefined;
3062
+ can_program_online_access_codes?: boolean | undefined;
3059
3063
  }>;
3060
3064
  };
3061
3065
  };
@@ -4,28 +4,6 @@ export declare const unmanaged_device: z.ZodObject<{
4
4
  workspace_id: z.ZodString;
5
5
  created_at: z.ZodString;
6
6
  device_id: z.ZodString;
7
- device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
8
- capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
9
- errors: z.ZodArray<z.ZodObject<{
10
- error_code: z.ZodString;
11
- message: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- message: string;
14
- error_code: string;
15
- }, {
16
- message: string;
17
- error_code: string;
18
- }>, "many">;
19
- warnings: z.ZodArray<z.ZodObject<{
20
- warning_code: z.ZodString;
21
- message: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- message: string;
24
- warning_code: string;
25
- }, {
26
- message: string;
27
- warning_code: string;
28
- }>, "many">;
29
7
  is_managed: z.ZodLiteral<false>;
30
8
  properties: z.ZodObject<Pick<{
31
9
  online: z.ZodBoolean;
@@ -110,6 +88,30 @@ export declare const unmanaged_device: z.ZodObject<{
110
88
  online_access_codes_enabled?: boolean | undefined;
111
89
  offline_access_codes_enabled?: boolean | undefined;
112
90
  }>;
91
+ device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
92
+ capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
93
+ errors: z.ZodArray<z.ZodObject<{
94
+ error_code: z.ZodString;
95
+ message: z.ZodString;
96
+ }, "strip", z.ZodTypeAny, {
97
+ message: string;
98
+ error_code: string;
99
+ }, {
100
+ message: string;
101
+ error_code: string;
102
+ }>, "many">;
103
+ warnings: z.ZodArray<z.ZodObject<{
104
+ warning_code: z.ZodString;
105
+ message: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
107
+ message: string;
108
+ warning_code: string;
109
+ }, {
110
+ message: string;
111
+ warning_code: string;
112
+ }>, "many">;
113
+ can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
114
+ can_program_online_access_codes: z.ZodOptional<z.ZodBoolean>;
113
115
  }, "strip", z.ZodTypeAny, {
114
116
  connected_account_id: string;
115
117
  workspace_id: string;
@@ -147,6 +149,8 @@ export declare const unmanaged_device: z.ZodObject<{
147
149
  message: string;
148
150
  warning_code: string;
149
151
  }[];
152
+ can_remotely_unlock?: boolean | undefined;
153
+ can_program_online_access_codes?: boolean | undefined;
150
154
  }, {
151
155
  connected_account_id: string;
152
156
  workspace_id: string;
@@ -184,5 +188,7 @@ export declare const unmanaged_device: z.ZodObject<{
184
188
  message: string;
185
189
  warning_code: string;
186
190
  }[];
191
+ can_remotely_unlock?: boolean | undefined;
192
+ can_program_online_access_codes?: boolean | undefined;
187
193
  }>;
188
194
  export type UnmanagedDevice = z.infer<typeof unmanaged_device>;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { schemas as devicedb_schemas } from '../../../../../../devicedb.js';
2
3
  import { common_device_properties, managed_device } from './managed-device.js';
3
4
  export const unmanaged_device = managed_device
4
5
  .pick({
@@ -25,5 +26,6 @@ export const unmanaged_device = managed_device
25
26
  offline_access_codes_enabled: true,
26
27
  model: true,
27
28
  }),
28
- });
29
+ })
30
+ .merge(devicedb_schemas.device_capability_flags);
29
31
  //# sourceMappingURL=unmanaged-device.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"unmanaged-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAE9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc;KAC3C,IAAI,CAAC;IACJ,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,IAAI;IAC1B,sBAAsB,EAAE,IAAI;IAC5B,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,IAAI;CACjB,CAAC;KACD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5B,UAAU,EAAE,wBAAwB,CAAC,IAAI,CAAC;QACxC,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,IAAI;QACf,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE,IAAI;QACb,2BAA2B,EAAE,IAAI;QACjC,4BAA4B,EAAE,IAAI;QAClC,KAAK,EAAE,IAAI;KACZ,CAAC;CACH,CAAC,CAAA"}
1
+ {"version":3,"file":"unmanaged-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAE9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc;KAC3C,IAAI,CAAC;IACJ,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,IAAI;IAC1B,sBAAsB,EAAE,IAAI;IAC5B,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,IAAI;CACjB,CAAC;KACD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5B,UAAU,EAAE,wBAAwB,CAAC,IAAI,CAAC;QACxC,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,IAAI;QACf,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE,IAAI;QACb,2BAA2B,EAAE,IAAI;QACjC,4BAA4B,EAAE,IAAI;QAClC,KAAK,EAAE,IAAI;KACZ,CAAC;CACH,CAAC;KACD,KAAK,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.115.0",
3
+ "version": "1.116.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -2010,6 +2010,8 @@ export default {
2010
2010
  },
2011
2011
  unmanaged_device: {
2012
2012
  properties: {
2013
+ can_program_online_access_codes: { type: 'boolean' },
2014
+ can_remotely_unlock: { type: 'boolean' },
2013
2015
  capabilities_supported: {
2014
2016
  description:
2015
2017
  'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
@@ -3787,6 +3787,8 @@ export interface Routes {
3787
3787
  accessory_keypad_supported?: boolean | undefined
3788
3788
  }
3789
3789
  }
3790
+ can_remotely_unlock?: boolean | undefined
3791
+ can_program_online_access_codes?: boolean | undefined
3790
3792
  }
3791
3793
  }
3792
3794
  }
@@ -4015,6 +4017,8 @@ export interface Routes {
4015
4017
  accessory_keypad_supported?: boolean | undefined
4016
4018
  }
4017
4019
  }
4020
+ can_remotely_unlock?: boolean | undefined
4021
+ can_program_online_access_codes?: boolean | undefined
4018
4022
  }>
4019
4023
  }
4020
4024
  }
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { schemas as devicedb_schemas } from '@seamapi/types/devicedb'
4
+
3
5
  import { common_device_properties, managed_device } from './managed-device.js'
4
6
 
5
7
  export const unmanaged_device = managed_device
@@ -28,5 +30,6 @@ export const unmanaged_device = managed_device
28
30
  model: true,
29
31
  }),
30
32
  })
33
+ .merge(devicedb_schemas.device_capability_flags)
31
34
 
32
35
  export type UnmanagedDevice = z.infer<typeof unmanaged_device>