@seamapi/types 1.201.0 → 1.203.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.
@@ -4656,7 +4656,7 @@ export interface Routes {
4656
4656
  }) & ({
4657
4657
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
4658
4658
  code_constraints?: (Array<{
4659
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
4659
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
4660
4660
  } | {
4661
4661
  constraint_type: 'name_length' | 'name_must_be_unique';
4662
4662
  min_length?: number | undefined;
@@ -5196,7 +5196,7 @@ export interface Routes {
5196
5196
  }) & ({
5197
5197
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
5198
5198
  code_constraints?: (Array<{
5199
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
5199
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
5200
5200
  } | {
5201
5201
  constraint_type: 'name_length' | 'name_must_be_unique';
5202
5202
  min_length?: number | undefined;
@@ -5502,6 +5502,13 @@ export interface Routes {
5502
5502
  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_resideo_thermostat') | ('ios_phone' | 'android_phone');
5503
5503
  /** Unique identifier for the account associated with the device. */
5504
5504
  connected_account_id: string;
5505
+ /** Location information for the device. */
5506
+ location: {
5507
+ /** Name of the device location. */
5508
+ location_name?: string | undefined;
5509
+ /** Time zone of the device location. */
5510
+ timezone?: string | undefined;
5511
+ } | null;
5505
5512
  /** 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. */
5506
5513
  capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
5507
5514
  /** Unique identifier for the Seam workspace associated with the device. */
@@ -5614,6 +5621,13 @@ export interface Routes {
5614
5621
  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_resideo_thermostat') | ('ios_phone' | 'android_phone');
5615
5622
  /** Unique identifier for the account associated with the device. */
5616
5623
  connected_account_id: string;
5624
+ /** Location information for the device. */
5625
+ location: {
5626
+ /** Name of the device location. */
5627
+ location_name?: string | undefined;
5628
+ /** Time zone of the device location. */
5629
+ timezone?: string | undefined;
5630
+ } | null;
5617
5631
  /** 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. */
5618
5632
  capabilities_supported: Array<'access_code' | 'lock' | 'noise_detection' | 'thermostat' | 'battery' | 'phone'>;
5619
5633
  /** Unique identifier for the Seam workspace associated with the device. */
@@ -6080,7 +6094,7 @@ export interface Routes {
6080
6094
  }) & ({
6081
6095
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
6082
6096
  code_constraints?: (Array<{
6083
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
6097
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
6084
6098
  } | {
6085
6099
  constraint_type: 'name_length' | 'name_must_be_unique';
6086
6100
  min_length?: number | undefined;
@@ -6595,7 +6609,7 @@ export interface Routes {
6595
6609
  }) & ({
6596
6610
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
6597
6611
  code_constraints?: (Array<{
6598
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
6612
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
6599
6613
  } | {
6600
6614
  constraint_type: 'name_length' | 'name_must_be_unique';
6601
6615
  min_length?: number | undefined;
@@ -7135,7 +7149,7 @@ export interface Routes {
7135
7149
  }) & ({
7136
7150
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
7137
7151
  code_constraints?: (Array<{
7138
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
7152
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
7139
7153
  } | {
7140
7154
  constraint_type: 'name_length' | 'name_must_be_unique';
7141
7155
  min_length?: number | undefined;
@@ -7650,7 +7664,7 @@ export interface Routes {
7650
7664
  }) & ({
7651
7665
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
7652
7666
  code_constraints?: (Array<{
7653
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
7667
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
7654
7668
  } | {
7655
7669
  constraint_type: 'name_length' | 'name_must_be_unique';
7656
7670
  min_length?: number | undefined;
@@ -10856,7 +10870,7 @@ export interface Routes {
10856
10870
  }) & ({
10857
10871
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
10858
10872
  code_constraints?: (Array<{
10859
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
10873
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
10860
10874
  } | {
10861
10875
  constraint_type: 'name_length' | 'name_must_be_unique';
10862
10876
  min_length?: number | undefined;
@@ -12150,7 +12164,7 @@ export interface Routes {
12150
12164
  }) & ({
12151
12165
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
12152
12166
  code_constraints?: (Array<{
12153
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
12167
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
12154
12168
  } | {
12155
12169
  constraint_type: 'name_length' | 'name_must_be_unique';
12156
12170
  min_length?: number | undefined;
@@ -13627,7 +13641,7 @@ export interface Routes {
13627
13641
  }) & ({
13628
13642
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
13629
13643
  code_constraints?: (Array<{
13630
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
13644
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
13631
13645
  } | {
13632
13646
  constraint_type: 'name_length' | 'name_must_be_unique';
13633
13647
  min_length?: number | undefined;
@@ -14144,7 +14158,7 @@ export interface Routes {
14144
14158
  }) & ({
14145
14159
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
14146
14160
  code_constraints?: (Array<{
14147
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
14161
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089' | 'cannot_contain_0789';
14148
14162
  } | {
14149
14163
  constraint_type: 'name_length' | 'name_must_be_unique';
14150
14164
  min_length?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.201.0",
3
+ "version": "1.203.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -10,7 +10,8 @@ export const access_code_code_constraint = z.object({
10
10
  'start_date_in_future', // Kwikset
11
11
  'no_ascending_or_descending_sequence', // Tedee
12
12
  'at_least_three_unique_digits', // Tedee
13
- 'cannot_contain_089', // TTLock (for some cylinder devices only)
13
+ 'cannot_contain_089', // TTLock
14
+ 'cannot_contain_0789', // TTLock (for some cylinder devices only)
14
15
  ]),
15
16
  })
16
17
 
@@ -90,6 +90,8 @@ export const PROVIDER_CATEGORY_MAP = {
90
90
  'kwikset',
91
91
  'igloohome',
92
92
  'wyze',
93
+ 'lockly',
94
+ 'tedee',
93
95
  ],
94
96
 
95
97
  thermostats: ['ecobee', 'nest'],
@@ -11,6 +11,7 @@ export const unmanaged_device = device
11
11
  device_id: true,
12
12
  device_type: true,
13
13
  connected_account_id: true,
14
+ location: true,
14
15
  capabilities_supported: true,
15
16
  workspace_id: true,
16
17
  errors: true,
@@ -2802,6 +2802,7 @@ export default {
2802
2802
  'no_ascending_or_descending_sequence',
2803
2803
  'at_least_three_unique_digits',
2804
2804
  'cannot_contain_089',
2805
+ 'cannot_contain_0789',
2805
2806
  ],
2806
2807
  type: 'string',
2807
2808
  },
@@ -4047,6 +4048,21 @@ export default {
4047
4048
  type: 'array',
4048
4049
  },
4049
4050
  is_managed: { enum: [false], type: 'boolean' },
4051
+ location: {
4052
+ description: 'Location information for the device.',
4053
+ nullable: true,
4054
+ properties: {
4055
+ location_name: {
4056
+ description: 'Name of the device location.',
4057
+ type: 'string',
4058
+ },
4059
+ timezone: {
4060
+ description: 'Time zone of the device location.',
4061
+ type: 'string',
4062
+ },
4063
+ },
4064
+ type: 'object',
4065
+ },
4050
4066
  properties: {
4051
4067
  properties: {
4052
4068
  accessory_keypad: {
@@ -4202,6 +4218,7 @@ export default {
4202
4218
  'device_id',
4203
4219
  'device_type',
4204
4220
  'connected_account_id',
4221
+ 'location',
4205
4222
  'capabilities_supported',
4206
4223
  'workspace_id',
4207
4224
  'errors',
@@ -5393,6 +5393,7 @@ export interface Routes {
5393
5393
  | 'no_ascending_or_descending_sequence'
5394
5394
  | 'at_least_three_unique_digits'
5395
5395
  | 'cannot_contain_089'
5396
+ | 'cannot_contain_0789'
5396
5397
  }
5397
5398
  | {
5398
5399
  constraint_type: 'name_length' | 'name_must_be_unique'
@@ -6289,6 +6290,7 @@ export interface Routes {
6289
6290
  | 'no_ascending_or_descending_sequence'
6290
6291
  | 'at_least_three_unique_digits'
6291
6292
  | 'cannot_contain_089'
6293
+ | 'cannot_contain_0789'
6292
6294
  }
6293
6295
  | {
6294
6296
  constraint_type: 'name_length' | 'name_must_be_unique'
@@ -6781,6 +6783,13 @@ export interface Routes {
6781
6783
  | ('ios_phone' | 'android_phone')
6782
6784
  /** Unique identifier for the account associated with the device. */
6783
6785
  connected_account_id: string
6786
+ /** Location information for the device. */
6787
+ location: {
6788
+ /** Name of the device location. */
6789
+ location_name?: string | undefined
6790
+ /** Time zone of the device location. */
6791
+ timezone?: string | undefined
6792
+ } | null
6784
6793
  /** 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. */
6785
6794
  capabilities_supported: Array<
6786
6795
  | 'access_code'
@@ -7077,6 +7086,13 @@ export interface Routes {
7077
7086
  | ('ios_phone' | 'android_phone')
7078
7087
  /** Unique identifier for the account associated with the device. */
7079
7088
  connected_account_id: string
7089
+ /** Location information for the device. */
7090
+ location: {
7091
+ /** Name of the device location. */
7092
+ location_name?: string | undefined
7093
+ /** Time zone of the device location. */
7094
+ timezone?: string | undefined
7095
+ } | null
7080
7096
  /** 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. */
7081
7097
  capabilities_supported: Array<
7082
7098
  | 'access_code'
@@ -7810,6 +7826,7 @@ export interface Routes {
7810
7826
  | 'no_ascending_or_descending_sequence'
7811
7827
  | 'at_least_three_unique_digits'
7812
7828
  | 'cannot_contain_089'
7829
+ | 'cannot_contain_0789'
7813
7830
  }
7814
7831
  | {
7815
7832
  constraint_type: 'name_length' | 'name_must_be_unique'
@@ -8548,6 +8565,7 @@ export interface Routes {
8548
8565
  | 'no_ascending_or_descending_sequence'
8549
8566
  | 'at_least_three_unique_digits'
8550
8567
  | 'cannot_contain_089'
8568
+ | 'cannot_contain_0789'
8551
8569
  }
8552
8570
  | {
8553
8571
  constraint_type: 'name_length' | 'name_must_be_unique'
@@ -9444,6 +9462,7 @@ export interface Routes {
9444
9462
  | 'no_ascending_or_descending_sequence'
9445
9463
  | 'at_least_three_unique_digits'
9446
9464
  | 'cannot_contain_089'
9465
+ | 'cannot_contain_0789'
9447
9466
  }
9448
9467
  | {
9449
9468
  constraint_type: 'name_length' | 'name_must_be_unique'
@@ -10182,6 +10201,7 @@ export interface Routes {
10182
10201
  | 'no_ascending_or_descending_sequence'
10183
10202
  | 'at_least_three_unique_digits'
10184
10203
  | 'cannot_contain_089'
10204
+ | 'cannot_contain_0789'
10185
10205
  }
10186
10206
  | {
10187
10207
  constraint_type: 'name_length' | 'name_must_be_unique'
@@ -13905,6 +13925,7 @@ export interface Routes {
13905
13925
  | 'no_ascending_or_descending_sequence'
13906
13926
  | 'at_least_three_unique_digits'
13907
13927
  | 'cannot_contain_089'
13928
+ | 'cannot_contain_0789'
13908
13929
  }
13909
13930
  | {
13910
13931
  constraint_type: 'name_length' | 'name_must_be_unique'
@@ -15645,6 +15666,7 @@ export interface Routes {
15645
15666
  | 'no_ascending_or_descending_sequence'
15646
15667
  | 'at_least_three_unique_digits'
15647
15668
  | 'cannot_contain_089'
15669
+ | 'cannot_contain_0789'
15648
15670
  }
15649
15671
  | {
15650
15672
  constraint_type: 'name_length' | 'name_must_be_unique'
@@ -17437,6 +17459,7 @@ export interface Routes {
17437
17459
  | 'no_ascending_or_descending_sequence'
17438
17460
  | 'at_least_three_unique_digits'
17439
17461
  | 'cannot_contain_089'
17462
+ | 'cannot_contain_0789'
17440
17463
  }
17441
17464
  | {
17442
17465
  constraint_type: 'name_length' | 'name_must_be_unique'
@@ -18177,6 +18200,7 @@ export interface Routes {
18177
18200
  | 'no_ascending_or_descending_sequence'
18178
18201
  | 'at_least_three_unique_digits'
18179
18202
  | 'cannot_contain_089'
18203
+ | 'cannot_contain_0789'
18180
18204
  }
18181
18205
  | {
18182
18206
  constraint_type: 'name_length' | 'name_must_be_unique'