@seamapi/types 1.130.0 → 1.131.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 +20 -6
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +71 -34
- package/lib/seam/connect/openapi.d.ts +16 -5
- package/lib/seam/connect/openapi.js +20 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +55 -29
- package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +6 -10
- package/lib/seam/connect/unstable/models/devices/managed-device.js +8 -5
- package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/unstable/models/devices/phone.d.ts +6 -0
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.d.ts +0 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +24 -7
- package/src/lib/seam/connect/route-types.ts +55 -29
- package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +12 -7
|
@@ -1938,16 +1938,18 @@ export interface Routes {
|
|
|
1938
1938
|
device_id: string;
|
|
1939
1939
|
/** Type of the device. */
|
|
1940
1940
|
device_type: ('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') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_thermostat') | ('ios_phone' | 'android_phone');
|
|
1941
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
1942
|
+
nickname?: string | undefined;
|
|
1943
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
1944
|
+
display_name: string;
|
|
1941
1945
|
/** 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. */
|
|
1942
1946
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
1943
1947
|
/** Properties of the device. */
|
|
1944
1948
|
properties: (({
|
|
1945
1949
|
/** Indicates whether the device is online. */
|
|
1946
1950
|
online: boolean;
|
|
1947
|
-
/** Name of the device.
|
|
1951
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
1948
1952
|
name: string;
|
|
1949
|
-
/** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
1950
|
-
nickname?: string | undefined;
|
|
1951
1953
|
appearance: {
|
|
1952
1954
|
/** Name of the device as seen from the provider API and application, not settable through Seam. */
|
|
1953
1955
|
name: string;
|
|
@@ -2434,16 +2436,18 @@ export interface Routes {
|
|
|
2434
2436
|
device_id: string;
|
|
2435
2437
|
/** Type of the device. */
|
|
2436
2438
|
device_type: ('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') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_thermostat') | ('ios_phone' | 'android_phone');
|
|
2439
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
2440
|
+
nickname?: string | undefined;
|
|
2441
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
2442
|
+
display_name: string;
|
|
2437
2443
|
/** 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. */
|
|
2438
2444
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
2439
2445
|
/** Properties of the device. */
|
|
2440
2446
|
properties: (({
|
|
2441
2447
|
/** Indicates whether the device is online. */
|
|
2442
2448
|
online: boolean;
|
|
2443
|
-
/** Name of the device.
|
|
2449
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
2444
2450
|
name: string;
|
|
2445
|
-
/** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
2446
|
-
nickname?: string | undefined;
|
|
2447
2451
|
appearance: {
|
|
2448
2452
|
/** Name of the device as seen from the provider API and application, not settable through Seam. */
|
|
2449
2453
|
name: string;
|
|
@@ -2958,7 +2962,7 @@ export interface Routes {
|
|
|
2958
2962
|
created_at: string;
|
|
2959
2963
|
is_managed: false;
|
|
2960
2964
|
properties: {
|
|
2961
|
-
/** Name of the device.
|
|
2965
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
2962
2966
|
name: string;
|
|
2963
2967
|
/** Indicates whether the device is online. */
|
|
2964
2968
|
online: boolean;
|
|
@@ -3043,7 +3047,7 @@ export interface Routes {
|
|
|
3043
3047
|
created_at: string;
|
|
3044
3048
|
is_managed: false;
|
|
3045
3049
|
properties: {
|
|
3046
|
-
/** Name of the device.
|
|
3050
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
3047
3051
|
name: string;
|
|
3048
3052
|
/** Indicates whether the device is online. */
|
|
3049
3053
|
online: boolean;
|
|
@@ -3253,16 +3257,18 @@ export interface Routes {
|
|
|
3253
3257
|
device_id: string;
|
|
3254
3258
|
/** Type of the device. */
|
|
3255
3259
|
device_type: ('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') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_thermostat') | ('ios_phone' | 'android_phone');
|
|
3260
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
3261
|
+
nickname?: string | undefined;
|
|
3262
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
3263
|
+
display_name: string;
|
|
3256
3264
|
/** 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. */
|
|
3257
3265
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
3258
3266
|
/** Properties of the device. */
|
|
3259
3267
|
properties: (({
|
|
3260
3268
|
/** Indicates whether the device is online. */
|
|
3261
3269
|
online: boolean;
|
|
3262
|
-
/** Name of the device.
|
|
3270
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
3263
3271
|
name: string;
|
|
3264
|
-
/** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
3265
|
-
nickname?: string | undefined;
|
|
3266
3272
|
appearance: {
|
|
3267
3273
|
/** Name of the device as seen from the provider API and application, not settable through Seam. */
|
|
3268
3274
|
name: string;
|
|
@@ -3726,16 +3732,18 @@ export interface Routes {
|
|
|
3726
3732
|
device_id: string;
|
|
3727
3733
|
/** Type of the device. */
|
|
3728
3734
|
device_type: ('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') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_thermostat') | ('ios_phone' | 'android_phone');
|
|
3735
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
3736
|
+
nickname?: string | undefined;
|
|
3737
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
3738
|
+
display_name: string;
|
|
3729
3739
|
/** 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. */
|
|
3730
3740
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
3731
3741
|
/** Properties of the device. */
|
|
3732
3742
|
properties: (({
|
|
3733
3743
|
/** Indicates whether the device is online. */
|
|
3734
3744
|
online: boolean;
|
|
3735
|
-
/** Name of the device.
|
|
3745
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
3736
3746
|
name: string;
|
|
3737
|
-
/** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
3738
|
-
nickname?: string | undefined;
|
|
3739
3747
|
appearance: {
|
|
3740
3748
|
/** Name of the device as seen from the provider API and application, not settable through Seam. */
|
|
3741
3749
|
name: string;
|
|
@@ -4222,16 +4230,18 @@ export interface Routes {
|
|
|
4222
4230
|
device_id: string;
|
|
4223
4231
|
/** Type of the device. */
|
|
4224
4232
|
device_type: ('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') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_thermostat') | ('ios_phone' | 'android_phone');
|
|
4233
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
4234
|
+
nickname?: string | undefined;
|
|
4235
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
4236
|
+
display_name: string;
|
|
4225
4237
|
/** 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. */
|
|
4226
4238
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
4227
4239
|
/** Properties of the device. */
|
|
4228
4240
|
properties: (({
|
|
4229
4241
|
/** Indicates whether the device is online. */
|
|
4230
4242
|
online: boolean;
|
|
4231
|
-
/** Name of the device.
|
|
4243
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
4232
4244
|
name: string;
|
|
4233
|
-
/** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
4234
|
-
nickname?: string | undefined;
|
|
4235
4245
|
appearance: {
|
|
4236
4246
|
/** Name of the device as seen from the provider API and application, not settable through Seam. */
|
|
4237
4247
|
name: string;
|
|
@@ -4695,16 +4705,18 @@ export interface Routes {
|
|
|
4695
4705
|
device_id: string;
|
|
4696
4706
|
/** Type of the device. */
|
|
4697
4707
|
device_type: ('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') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_thermostat') | ('ios_phone' | 'android_phone');
|
|
4708
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
4709
|
+
nickname?: string | undefined;
|
|
4710
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
4711
|
+
display_name: string;
|
|
4698
4712
|
/** 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. */
|
|
4699
4713
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
4700
4714
|
/** Properties of the device. */
|
|
4701
4715
|
properties: (({
|
|
4702
4716
|
/** Indicates whether the device is online. */
|
|
4703
4717
|
online: boolean;
|
|
4704
|
-
/** Name of the device.
|
|
4718
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
4705
4719
|
name: string;
|
|
4706
|
-
/** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
4707
|
-
nickname?: string | undefined;
|
|
4708
4720
|
appearance: {
|
|
4709
4721
|
/** Name of the device as seen from the provider API and application, not settable through Seam. */
|
|
4710
4722
|
name: string;
|
|
@@ -5474,6 +5486,10 @@ export interface Routes {
|
|
|
5474
5486
|
/** Unique identifier for the device. */
|
|
5475
5487
|
device_id: string;
|
|
5476
5488
|
device_type: 'android_phone' | 'ios_phone';
|
|
5489
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
5490
|
+
nickname?: string | undefined;
|
|
5491
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
5492
|
+
display_name: string;
|
|
5477
5493
|
/** 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. */
|
|
5478
5494
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
5479
5495
|
properties: {
|
|
@@ -5543,6 +5559,10 @@ export interface Routes {
|
|
|
5543
5559
|
/** Unique identifier for the device. */
|
|
5544
5560
|
device_id: string;
|
|
5545
5561
|
device_type: 'android_phone' | 'ios_phone';
|
|
5562
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
5563
|
+
nickname?: string | undefined;
|
|
5564
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
5565
|
+
display_name: string;
|
|
5546
5566
|
/** 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. */
|
|
5547
5567
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
5548
5568
|
properties: {
|
|
@@ -5797,16 +5817,18 @@ export interface Routes {
|
|
|
5797
5817
|
device_id: string;
|
|
5798
5818
|
/** Type of the device. */
|
|
5799
5819
|
device_type: ('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') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_thermostat') | ('ios_phone' | 'android_phone');
|
|
5820
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
5821
|
+
nickname?: string | undefined;
|
|
5822
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
5823
|
+
display_name: string;
|
|
5800
5824
|
/** 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. */
|
|
5801
5825
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
5802
5826
|
/** Properties of the device. */
|
|
5803
5827
|
properties: (({
|
|
5804
5828
|
/** Indicates whether the device is online. */
|
|
5805
5829
|
online: boolean;
|
|
5806
|
-
/** Name of the device.
|
|
5830
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
5807
5831
|
name: string;
|
|
5808
|
-
/** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
5809
|
-
nickname?: string | undefined;
|
|
5810
5832
|
appearance: {
|
|
5811
5833
|
/** Name of the device as seen from the provider API and application, not settable through Seam. */
|
|
5812
5834
|
name: string;
|
|
@@ -6369,16 +6391,18 @@ export interface Routes {
|
|
|
6369
6391
|
device_id: string;
|
|
6370
6392
|
/** Type of the device. */
|
|
6371
6393
|
device_type: ('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') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_thermostat') | ('ios_phone' | 'android_phone');
|
|
6394
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
6395
|
+
nickname?: string | undefined;
|
|
6396
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
6397
|
+
display_name: string;
|
|
6372
6398
|
/** 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. */
|
|
6373
6399
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
6374
6400
|
/** Properties of the device. */
|
|
6375
6401
|
properties: (({
|
|
6376
6402
|
/** Indicates whether the device is online. */
|
|
6377
6403
|
online: boolean;
|
|
6378
|
-
/** Name of the device.
|
|
6404
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
6379
6405
|
name: string;
|
|
6380
|
-
/** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
6381
|
-
nickname?: string | undefined;
|
|
6382
6406
|
appearance: {
|
|
6383
6407
|
/** Name of the device as seen from the provider API and application, not settable through Seam. */
|
|
6384
6408
|
name: string;
|
|
@@ -7126,16 +7150,18 @@ export interface Routes {
|
|
|
7126
7150
|
device_id: string;
|
|
7127
7151
|
/** Type of the device. */
|
|
7128
7152
|
device_type: ('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') | ('noiseaware_activity_zone' | 'minut_sensor') | ('ecobee_thermostat' | 'nest_thermostat' | 'honeywell_thermostat') | ('ios_phone' | 'android_phone');
|
|
7153
|
+
/** Optional nickname to describe the device, settable through Seam */
|
|
7154
|
+
nickname?: string | undefined;
|
|
7155
|
+
/** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
7156
|
+
display_name: string;
|
|
7129
7157
|
/** 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. */
|
|
7130
7158
|
capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
|
|
7131
7159
|
/** Properties of the device. */
|
|
7132
7160
|
properties: (({
|
|
7133
7161
|
/** Indicates whether the device is online. */
|
|
7134
7162
|
online: boolean;
|
|
7135
|
-
/** Name of the device.
|
|
7163
|
+
/** Name of the device. Deprecated - use device.display_name instead */
|
|
7136
7164
|
name: string;
|
|
7137
|
-
/** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
7138
|
-
nickname?: string | undefined;
|
|
7139
7165
|
appearance: {
|
|
7140
7166
|
/** Name of the device as seen from the provider API and application, not settable through Seam. */
|
|
7141
7167
|
name: string;
|
|
@@ -6,7 +6,6 @@ export type BatteryStatus = z.infer<typeof battery_status>;
|
|
|
6
6
|
export declare const common_device_properties: z.ZodObject<{
|
|
7
7
|
online: z.ZodBoolean;
|
|
8
8
|
name: z.ZodString;
|
|
9
|
-
nickname: z.ZodOptional<z.ZodString>;
|
|
10
9
|
appearance: z.ZodObject<{
|
|
11
10
|
name: z.ZodString;
|
|
12
11
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -66,7 +65,6 @@ export declare const common_device_properties: z.ZodObject<{
|
|
|
66
65
|
online_access_codes_supported?: boolean | undefined;
|
|
67
66
|
accessory_keypad_supported?: boolean | undefined;
|
|
68
67
|
};
|
|
69
|
-
nickname?: string | undefined;
|
|
70
68
|
has_direct_power?: boolean | undefined;
|
|
71
69
|
battery_level?: number | undefined;
|
|
72
70
|
battery?: {
|
|
@@ -94,7 +92,6 @@ export declare const common_device_properties: z.ZodObject<{
|
|
|
94
92
|
online_access_codes_supported?: boolean | undefined;
|
|
95
93
|
accessory_keypad_supported?: boolean | undefined;
|
|
96
94
|
};
|
|
97
|
-
nickname?: string | undefined;
|
|
98
95
|
has_direct_power?: boolean | undefined;
|
|
99
96
|
battery_level?: number | undefined;
|
|
100
97
|
battery?: {
|
|
@@ -127,10 +124,10 @@ export declare const managed_device: z.ZodObject<{
|
|
|
127
124
|
custom_metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>>;
|
|
128
125
|
device_id: z.ZodString;
|
|
129
126
|
is_managed: z.ZodLiteral<true>;
|
|
127
|
+
display_name: z.ZodString;
|
|
130
128
|
properties: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
131
129
|
online: z.ZodBoolean;
|
|
132
130
|
name: z.ZodString;
|
|
133
|
-
nickname: z.ZodOptional<z.ZodString>;
|
|
134
131
|
appearance: z.ZodObject<{
|
|
135
132
|
name: z.ZodString;
|
|
136
133
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -190,7 +187,6 @@ export declare const managed_device: z.ZodObject<{
|
|
|
190
187
|
online_access_codes_supported?: boolean | undefined;
|
|
191
188
|
accessory_keypad_supported?: boolean | undefined;
|
|
192
189
|
};
|
|
193
|
-
nickname?: string | undefined;
|
|
194
190
|
has_direct_power?: boolean | undefined;
|
|
195
191
|
battery_level?: number | undefined;
|
|
196
192
|
battery?: {
|
|
@@ -218,7 +214,6 @@ export declare const managed_device: z.ZodObject<{
|
|
|
218
214
|
online_access_codes_supported?: boolean | undefined;
|
|
219
215
|
accessory_keypad_supported?: boolean | undefined;
|
|
220
216
|
};
|
|
221
|
-
nickname?: string | undefined;
|
|
222
217
|
has_direct_power?: boolean | undefined;
|
|
223
218
|
battery_level?: number | undefined;
|
|
224
219
|
battery?: {
|
|
@@ -2054,6 +2049,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2054
2049
|
message: string;
|
|
2055
2050
|
warning_code: string;
|
|
2056
2051
|
}>, "many">;
|
|
2052
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
2057
2053
|
can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
|
|
2058
2054
|
can_remotely_lock: z.ZodOptional<z.ZodBoolean>;
|
|
2059
2055
|
can_program_online_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2067,6 +2063,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2067
2063
|
created_at: string;
|
|
2068
2064
|
device_id: string;
|
|
2069
2065
|
is_managed: true;
|
|
2066
|
+
display_name: string;
|
|
2070
2067
|
properties: ({
|
|
2071
2068
|
name: string;
|
|
2072
2069
|
appearance: {
|
|
@@ -2080,7 +2077,6 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2080
2077
|
online_access_codes_supported?: boolean | undefined;
|
|
2081
2078
|
accessory_keypad_supported?: boolean | undefined;
|
|
2082
2079
|
};
|
|
2083
|
-
nickname?: string | undefined;
|
|
2084
2080
|
has_direct_power?: boolean | undefined;
|
|
2085
2081
|
battery_level?: number | undefined;
|
|
2086
2082
|
battery?: {
|
|
@@ -2492,7 +2488,6 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2492
2488
|
online_access_codes_supported?: boolean | undefined;
|
|
2493
2489
|
accessory_keypad_supported?: boolean | undefined;
|
|
2494
2490
|
};
|
|
2495
|
-
nickname?: string | undefined;
|
|
2496
2491
|
has_direct_power?: boolean | undefined;
|
|
2497
2492
|
battery_level?: number | undefined;
|
|
2498
2493
|
battery?: {
|
|
@@ -2903,6 +2898,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2903
2898
|
warning_code: string;
|
|
2904
2899
|
}[];
|
|
2905
2900
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
2901
|
+
nickname?: string | undefined;
|
|
2906
2902
|
can_remotely_unlock?: boolean | undefined;
|
|
2907
2903
|
can_remotely_lock?: boolean | undefined;
|
|
2908
2904
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -2916,6 +2912,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2916
2912
|
created_at: string;
|
|
2917
2913
|
device_id: string;
|
|
2918
2914
|
is_managed: true;
|
|
2915
|
+
display_name: string;
|
|
2919
2916
|
properties: ({
|
|
2920
2917
|
name: string;
|
|
2921
2918
|
appearance: {
|
|
@@ -2929,7 +2926,6 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2929
2926
|
online_access_codes_supported?: boolean | undefined;
|
|
2930
2927
|
accessory_keypad_supported?: boolean | undefined;
|
|
2931
2928
|
};
|
|
2932
|
-
nickname?: string | undefined;
|
|
2933
2929
|
has_direct_power?: boolean | undefined;
|
|
2934
2930
|
battery_level?: number | undefined;
|
|
2935
2931
|
battery?: {
|
|
@@ -3341,7 +3337,6 @@ export declare const managed_device: z.ZodObject<{
|
|
|
3341
3337
|
online_access_codes_supported?: boolean | undefined;
|
|
3342
3338
|
accessory_keypad_supported?: boolean | undefined;
|
|
3343
3339
|
};
|
|
3344
|
-
nickname?: string | undefined;
|
|
3345
3340
|
has_direct_power?: boolean | undefined;
|
|
3346
3341
|
battery_level?: number | undefined;
|
|
3347
3342
|
battery?: {
|
|
@@ -3752,6 +3747,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
3752
3747
|
warning_code: string;
|
|
3753
3748
|
}[];
|
|
3754
3749
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
3750
|
+
nickname?: string | undefined;
|
|
3755
3751
|
can_remotely_unlock?: boolean | undefined;
|
|
3756
3752
|
can_remotely_lock?: boolean | undefined;
|
|
3757
3753
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -11,11 +11,7 @@ export const common_device_properties = z.object({
|
|
|
11
11
|
online: z.boolean().describe('Indicates whether the device is online.'),
|
|
12
12
|
name: z
|
|
13
13
|
.string()
|
|
14
|
-
.describe('Name of the device.
|
|
15
|
-
nickname: z
|
|
16
|
-
.string()
|
|
17
|
-
.optional()
|
|
18
|
-
.describe('Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices.'),
|
|
14
|
+
.describe('Name of the device. Deprecated - use device.display_name instead'),
|
|
19
15
|
appearance: z.object({
|
|
20
16
|
name: z
|
|
21
17
|
.string()
|
|
@@ -86,6 +82,13 @@ export const managed_device = z
|
|
|
86
82
|
.object({
|
|
87
83
|
device_id: z.string().uuid().describe('Unique identifier for the device.'),
|
|
88
84
|
device_type: any_device_type.describe('Type of the device.'),
|
|
85
|
+
nickname: z
|
|
86
|
+
.string()
|
|
87
|
+
.optional()
|
|
88
|
+
.describe('Optional nickname to describe the device, settable through Seam'),
|
|
89
|
+
display_name: z
|
|
90
|
+
.string()
|
|
91
|
+
.describe('Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.'),
|
|
89
92
|
capabilities_supported: z
|
|
90
93
|
.array(capabilities)
|
|
91
94
|
.describe('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.'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAEjE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAIzE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,
|
|
1
|
+
{"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"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"}
|
|
@@ -16,6 +16,7 @@ export declare const phone: z.ZodObject<{
|
|
|
16
16
|
custom_metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>>;
|
|
17
17
|
device_id: z.ZodString;
|
|
18
18
|
is_managed: z.ZodLiteral<true>;
|
|
19
|
+
display_name: z.ZodString;
|
|
19
20
|
device_type: z.ZodEnum<["android_phone", "ios_phone"]>;
|
|
20
21
|
capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
|
|
21
22
|
errors: z.ZodArray<z.ZodObject<{
|
|
@@ -41,6 +42,7 @@ export declare const phone: z.ZodObject<{
|
|
|
41
42
|
can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
|
|
42
43
|
can_remotely_lock: z.ZodOptional<z.ZodBoolean>;
|
|
43
44
|
can_program_online_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
44
46
|
properties: z.ZodObject<{
|
|
45
47
|
assa_abloy_credential_service_metadata: z.ZodOptional<z.ZodObject<{
|
|
46
48
|
has_active_endpoint: z.ZodBoolean;
|
|
@@ -93,6 +95,7 @@ export declare const phone: z.ZodObject<{
|
|
|
93
95
|
created_at: string;
|
|
94
96
|
device_id: string;
|
|
95
97
|
is_managed: true;
|
|
98
|
+
display_name: string;
|
|
96
99
|
properties: {
|
|
97
100
|
assa_abloy_credential_service_metadata?: {
|
|
98
101
|
has_active_endpoint: boolean;
|
|
@@ -116,6 +119,7 @@ export declare const phone: z.ZodObject<{
|
|
|
116
119
|
can_remotely_unlock?: boolean | undefined;
|
|
117
120
|
can_remotely_lock?: boolean | undefined;
|
|
118
121
|
can_program_online_access_codes?: boolean | undefined;
|
|
122
|
+
nickname?: string | undefined;
|
|
119
123
|
}, {
|
|
120
124
|
location: {
|
|
121
125
|
location_name?: string | undefined;
|
|
@@ -125,6 +129,7 @@ export declare const phone: z.ZodObject<{
|
|
|
125
129
|
created_at: string;
|
|
126
130
|
device_id: string;
|
|
127
131
|
is_managed: true;
|
|
132
|
+
display_name: string;
|
|
128
133
|
properties: {
|
|
129
134
|
assa_abloy_credential_service_metadata?: {
|
|
130
135
|
has_active_endpoint: boolean;
|
|
@@ -148,4 +153,5 @@ export declare const phone: z.ZodObject<{
|
|
|
148
153
|
can_remotely_unlock?: boolean | undefined;
|
|
149
154
|
can_remotely_lock?: boolean | undefined;
|
|
150
155
|
can_program_online_access_codes?: boolean | undefined;
|
|
156
|
+
nickname?: string | undefined;
|
|
151
157
|
}>;
|
package/package.json
CHANGED
|
@@ -616,6 +616,11 @@ export default {
|
|
|
616
616
|
{ enum: ['ios_phone', 'android_phone'], type: 'string' },
|
|
617
617
|
],
|
|
618
618
|
},
|
|
619
|
+
display_name: {
|
|
620
|
+
description:
|
|
621
|
+
'Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.',
|
|
622
|
+
type: 'string',
|
|
623
|
+
},
|
|
619
624
|
errors: {
|
|
620
625
|
description:
|
|
621
626
|
'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
|
|
@@ -649,6 +654,11 @@ export default {
|
|
|
649
654
|
},
|
|
650
655
|
type: 'object',
|
|
651
656
|
},
|
|
657
|
+
nickname: {
|
|
658
|
+
description:
|
|
659
|
+
'Optional nickname to describe the device, settable through Seam',
|
|
660
|
+
type: 'string',
|
|
661
|
+
},
|
|
652
662
|
properties: {
|
|
653
663
|
allOf: [
|
|
654
664
|
{
|
|
@@ -742,12 +752,7 @@ export default {
|
|
|
742
752
|
},
|
|
743
753
|
name: {
|
|
744
754
|
description:
|
|
745
|
-
'Name of the device.
|
|
746
|
-
type: 'string',
|
|
747
|
-
},
|
|
748
|
-
nickname: {
|
|
749
|
-
description:
|
|
750
|
-
'Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices.',
|
|
755
|
+
'Name of the device. Deprecated - use device.display_name instead',
|
|
751
756
|
type: 'string',
|
|
752
757
|
},
|
|
753
758
|
offline_access_codes_enabled: {
|
|
@@ -1726,6 +1731,7 @@ export default {
|
|
|
1726
1731
|
required: [
|
|
1727
1732
|
'device_id',
|
|
1728
1733
|
'device_type',
|
|
1734
|
+
'display_name',
|
|
1729
1735
|
'capabilities_supported',
|
|
1730
1736
|
'properties',
|
|
1731
1737
|
'location',
|
|
@@ -1903,6 +1909,11 @@ export default {
|
|
|
1903
1909
|
type: 'string',
|
|
1904
1910
|
},
|
|
1905
1911
|
device_type: { enum: ['android_phone', 'ios_phone'], type: 'string' },
|
|
1912
|
+
display_name: {
|
|
1913
|
+
description:
|
|
1914
|
+
'Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.',
|
|
1915
|
+
type: 'string',
|
|
1916
|
+
},
|
|
1906
1917
|
errors: {
|
|
1907
1918
|
description:
|
|
1908
1919
|
'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
|
|
@@ -1936,6 +1947,11 @@ export default {
|
|
|
1936
1947
|
},
|
|
1937
1948
|
type: 'object',
|
|
1938
1949
|
},
|
|
1950
|
+
nickname: {
|
|
1951
|
+
description:
|
|
1952
|
+
'Optional nickname to describe the device, settable through Seam',
|
|
1953
|
+
type: 'string',
|
|
1954
|
+
},
|
|
1939
1955
|
properties: {
|
|
1940
1956
|
properties: {
|
|
1941
1957
|
assa_abloy_credential_service_metadata: {
|
|
@@ -1982,6 +1998,7 @@ export default {
|
|
|
1982
1998
|
required: [
|
|
1983
1999
|
'device_id',
|
|
1984
2000
|
'device_type',
|
|
2001
|
+
'display_name',
|
|
1985
2002
|
'capabilities_supported',
|
|
1986
2003
|
'properties',
|
|
1987
2004
|
'location',
|
|
@@ -2244,7 +2261,7 @@ export default {
|
|
|
2244
2261
|
},
|
|
2245
2262
|
name: {
|
|
2246
2263
|
description:
|
|
2247
|
-
'Name of the device.
|
|
2264
|
+
'Name of the device. Deprecated - use device.display_name instead',
|
|
2248
2265
|
type: 'string',
|
|
2249
2266
|
},
|
|
2250
2267
|
offline_access_codes_enabled: {
|