@seamapi/types 1.91.2 → 1.91.3

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.
@@ -2056,6 +2056,19 @@ export interface Routes {
2056
2056
  /** Deprecated. Use offline_access_codes_enabled. */
2057
2057
  supports_offline_access_codes?: boolean | undefined
2058
2058
  } & {
2059
+ assa_abloy_credential_service_metadata?:
2060
+ | (
2061
+ | {
2062
+ has_active_endpoint: boolean
2063
+ endpoints: Array<{
2064
+ endpoint_id: string
2065
+ is_active: boolean
2066
+ }>
2067
+ }
2068
+ | undefined
2069
+ )
2070
+ | undefined
2071
+ }) & {
2059
2072
  august_metadata?:
2060
2073
  | {
2061
2074
  lock_id: string
@@ -2582,21 +2595,7 @@ export interface Routes {
2582
2595
  max_cooling_set_point_celsius?: number | undefined
2583
2596
  max_cooling_set_point_fahrenheit?: number | undefined
2584
2597
  }
2585
- ))) & {
2586
- properties?:
2587
- | {
2588
- assa_abloy_credential_service_metadata?:
2589
- | {
2590
- has_active_endpoint: boolean
2591
- endpoints: Array<{
2592
- endpoint_id: string
2593
- is_active: boolean
2594
- }>
2595
- }
2596
- | undefined
2597
- }
2598
- | undefined
2599
- }
2598
+ ))
2600
2599
  /** Location information for the device. */
2601
2600
  location: {
2602
2601
  /** Name of the device location. */
@@ -2838,6 +2837,19 @@ export interface Routes {
2838
2837
  /** Deprecated. Use offline_access_codes_enabled. */
2839
2838
  supports_offline_access_codes?: boolean | undefined
2840
2839
  } & {
2840
+ assa_abloy_credential_service_metadata?:
2841
+ | (
2842
+ | {
2843
+ has_active_endpoint: boolean
2844
+ endpoints: Array<{
2845
+ endpoint_id: string
2846
+ is_active: boolean
2847
+ }>
2848
+ }
2849
+ | undefined
2850
+ )
2851
+ | undefined
2852
+ }) & {
2841
2853
  august_metadata?:
2842
2854
  | {
2843
2855
  lock_id: string
@@ -3364,21 +3376,7 @@ export interface Routes {
3364
3376
  max_cooling_set_point_celsius?: number | undefined
3365
3377
  max_cooling_set_point_fahrenheit?: number | undefined
3366
3378
  }
3367
- ))) & {
3368
- properties?:
3369
- | {
3370
- assa_abloy_credential_service_metadata?:
3371
- | {
3372
- has_active_endpoint: boolean
3373
- endpoints: Array<{
3374
- endpoint_id: string
3375
- is_active: boolean
3376
- }>
3377
- }
3378
- | undefined
3379
- }
3380
- | undefined
3381
- }
3379
+ ))
3382
3380
  /** Location information for the device. */
3383
3381
  location: {
3384
3382
  /** Name of the device location. */
@@ -4117,6 +4115,19 @@ export interface Routes {
4117
4115
  /** Deprecated. Use offline_access_codes_enabled. */
4118
4116
  supports_offline_access_codes?: boolean | undefined
4119
4117
  } & {
4118
+ assa_abloy_credential_service_metadata?:
4119
+ | (
4120
+ | {
4121
+ has_active_endpoint: boolean
4122
+ endpoints: Array<{
4123
+ endpoint_id: string
4124
+ is_active: boolean
4125
+ }>
4126
+ }
4127
+ | undefined
4128
+ )
4129
+ | undefined
4130
+ }) & {
4120
4131
  august_metadata?:
4121
4132
  | {
4122
4133
  lock_id: string
@@ -4643,21 +4654,7 @@ export interface Routes {
4643
4654
  max_cooling_set_point_celsius?: number | undefined
4644
4655
  max_cooling_set_point_fahrenheit?: number | undefined
4645
4656
  }
4646
- ))) & {
4647
- properties?:
4648
- | {
4649
- assa_abloy_credential_service_metadata?:
4650
- | {
4651
- has_active_endpoint: boolean
4652
- endpoints: Array<{
4653
- endpoint_id: string
4654
- is_active: boolean
4655
- }>
4656
- }
4657
- | undefined
4658
- }
4659
- | undefined
4660
- }
4657
+ ))
4661
4658
  /** Location information for the device. */
4662
4659
  location: {
4663
4660
  /** Name of the device location. */
@@ -4775,6 +4772,19 @@ export interface Routes {
4775
4772
  /** Deprecated. Use offline_access_codes_enabled. */
4776
4773
  supports_offline_access_codes?: boolean | undefined
4777
4774
  } & {
4775
+ assa_abloy_credential_service_metadata?:
4776
+ | (
4777
+ | {
4778
+ has_active_endpoint: boolean
4779
+ endpoints: Array<{
4780
+ endpoint_id: string
4781
+ is_active: boolean
4782
+ }>
4783
+ }
4784
+ | undefined
4785
+ )
4786
+ | undefined
4787
+ }) & {
4778
4788
  august_metadata?:
4779
4789
  | {
4780
4790
  lock_id: string
@@ -5301,21 +5311,7 @@ export interface Routes {
5301
5311
  max_cooling_set_point_celsius?: number | undefined
5302
5312
  max_cooling_set_point_fahrenheit?: number | undefined
5303
5313
  }
5304
- ))) & {
5305
- properties?:
5306
- | {
5307
- assa_abloy_credential_service_metadata?:
5308
- | {
5309
- has_active_endpoint: boolean
5310
- endpoints: Array<{
5311
- endpoint_id: string
5312
- is_active: boolean
5313
- }>
5314
- }
5315
- | undefined
5316
- }
5317
- | undefined
5318
- }
5314
+ ))
5319
5315
  /** Location information for the device. */
5320
5316
  location: {
5321
5317
  /** Name of the device location. */
@@ -5557,6 +5553,19 @@ export interface Routes {
5557
5553
  /** Deprecated. Use offline_access_codes_enabled. */
5558
5554
  supports_offline_access_codes?: boolean | undefined
5559
5555
  } & {
5556
+ assa_abloy_credential_service_metadata?:
5557
+ | (
5558
+ | {
5559
+ has_active_endpoint: boolean
5560
+ endpoints: Array<{
5561
+ endpoint_id: string
5562
+ is_active: boolean
5563
+ }>
5564
+ }
5565
+ | undefined
5566
+ )
5567
+ | undefined
5568
+ }) & {
5560
5569
  august_metadata?:
5561
5570
  | {
5562
5571
  lock_id: string
@@ -6083,21 +6092,7 @@ export interface Routes {
6083
6092
  max_cooling_set_point_celsius?: number | undefined
6084
6093
  max_cooling_set_point_fahrenheit?: number | undefined
6085
6094
  }
6086
- ))) & {
6087
- properties?:
6088
- | {
6089
- assa_abloy_credential_service_metadata?:
6090
- | {
6091
- has_active_endpoint: boolean
6092
- endpoints: Array<{
6093
- endpoint_id: string
6094
- is_active: boolean
6095
- }>
6096
- }
6097
- | undefined
6098
- }
6099
- | undefined
6100
- }
6095
+ ))
6101
6096
  /** Location information for the device. */
6102
6097
  location: {
6103
6098
  /** Name of the device location. */
@@ -6215,6 +6210,19 @@ export interface Routes {
6215
6210
  /** Deprecated. Use offline_access_codes_enabled. */
6216
6211
  supports_offline_access_codes?: boolean | undefined
6217
6212
  } & {
6213
+ assa_abloy_credential_service_metadata?:
6214
+ | (
6215
+ | {
6216
+ has_active_endpoint: boolean
6217
+ endpoints: Array<{
6218
+ endpoint_id: string
6219
+ is_active: boolean
6220
+ }>
6221
+ }
6222
+ | undefined
6223
+ )
6224
+ | undefined
6225
+ }) & {
6218
6226
  august_metadata?:
6219
6227
  | {
6220
6228
  lock_id: string
@@ -6741,21 +6749,7 @@ export interface Routes {
6741
6749
  max_cooling_set_point_celsius?: number | undefined
6742
6750
  max_cooling_set_point_fahrenheit?: number | undefined
6743
6751
  }
6744
- ))) & {
6745
- properties?:
6746
- | {
6747
- assa_abloy_credential_service_metadata?:
6748
- | {
6749
- has_active_endpoint: boolean
6750
- endpoints: Array<{
6751
- endpoint_id: string
6752
- is_active: boolean
6753
- }>
6754
- }
6755
- | undefined
6756
- }
6757
- | undefined
6758
- }
6752
+ ))
6759
6753
  /** Location information for the device. */
6760
6754
  location: {
6761
6755
  /** Name of the device location. */
@@ -7498,6 +7492,19 @@ export interface Routes {
7498
7492
  /** Deprecated. Use offline_access_codes_enabled. */
7499
7493
  supports_offline_access_codes?: boolean | undefined
7500
7494
  } & {
7495
+ assa_abloy_credential_service_metadata?:
7496
+ | (
7497
+ | {
7498
+ has_active_endpoint: boolean
7499
+ endpoints: Array<{
7500
+ endpoint_id: string
7501
+ is_active: boolean
7502
+ }>
7503
+ }
7504
+ | undefined
7505
+ )
7506
+ | undefined
7507
+ }) & {
7501
7508
  august_metadata?:
7502
7509
  | {
7503
7510
  lock_id: string
@@ -8024,21 +8031,7 @@ export interface Routes {
8024
8031
  max_cooling_set_point_celsius?: number | undefined
8025
8032
  max_cooling_set_point_fahrenheit?: number | undefined
8026
8033
  }
8027
- ))) & {
8028
- properties?:
8029
- | {
8030
- assa_abloy_credential_service_metadata?:
8031
- | {
8032
- has_active_endpoint: boolean
8033
- endpoints: Array<{
8034
- endpoint_id: string
8035
- is_active: boolean
8036
- }>
8037
- }
8038
- | undefined
8039
- }
8040
- | undefined
8041
- }
8034
+ ))
8042
8035
  /** Location information for the device. */
8043
8036
  location: {
8044
8037
  /** Name of the device location. */
@@ -8310,6 +8303,19 @@ export interface Routes {
8310
8303
  /** Deprecated. Use offline_access_codes_enabled. */
8311
8304
  supports_offline_access_codes?: boolean | undefined
8312
8305
  } & {
8306
+ assa_abloy_credential_service_metadata?:
8307
+ | (
8308
+ | {
8309
+ has_active_endpoint: boolean
8310
+ endpoints: Array<{
8311
+ endpoint_id: string
8312
+ is_active: boolean
8313
+ }>
8314
+ }
8315
+ | undefined
8316
+ )
8317
+ | undefined
8318
+ }) & {
8313
8319
  august_metadata?:
8314
8320
  | {
8315
8321
  lock_id: string
@@ -8836,21 +8842,7 @@ export interface Routes {
8836
8842
  max_cooling_set_point_celsius?: number | undefined
8837
8843
  max_cooling_set_point_fahrenheit?: number | undefined
8838
8844
  }
8839
- ))) & {
8840
- properties?:
8841
- | {
8842
- assa_abloy_credential_service_metadata?:
8843
- | {
8844
- has_active_endpoint: boolean
8845
- endpoints: Array<{
8846
- endpoint_id: string
8847
- is_active: boolean
8848
- }>
8849
- }
8850
- | undefined
8851
- }
8852
- | undefined
8853
- }
8845
+ ))
8854
8846
  /** Location information for the device. */
8855
8847
  location: {
8856
8848
  /** Name of the device location. */
@@ -9184,6 +9176,19 @@ export interface Routes {
9184
9176
  /** Deprecated. Use offline_access_codes_enabled. */
9185
9177
  supports_offline_access_codes?: boolean | undefined
9186
9178
  } & {
9179
+ assa_abloy_credential_service_metadata?:
9180
+ | (
9181
+ | {
9182
+ has_active_endpoint: boolean
9183
+ endpoints: Array<{
9184
+ endpoint_id: string
9185
+ is_active: boolean
9186
+ }>
9187
+ }
9188
+ | undefined
9189
+ )
9190
+ | undefined
9191
+ }) & {
9187
9192
  august_metadata?:
9188
9193
  | {
9189
9194
  lock_id: string
@@ -9710,21 +9715,7 @@ export interface Routes {
9710
9715
  max_cooling_set_point_celsius?: number | undefined
9711
9716
  max_cooling_set_point_fahrenheit?: number | undefined
9712
9717
  }
9713
- ))) & {
9714
- properties?:
9715
- | {
9716
- assa_abloy_credential_service_metadata?:
9717
- | {
9718
- has_active_endpoint: boolean
9719
- endpoints: Array<{
9720
- endpoint_id: string
9721
- is_active: boolean
9722
- }>
9723
- }
9724
- | undefined
9725
- }
9726
- | undefined
9727
- }
9718
+ ))
9728
9719
  /** Location information for the device. */
9729
9720
  location: {
9730
9721
  /** Name of the device location. */
@@ -103,9 +103,9 @@ export const managed_device = z.object({
103
103
  '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.',
104
104
  ),
105
105
  properties: common_device_properties
106
+ .and(phone_specific_properties.partial())
106
107
  .and(device_metadata)
107
108
  .and(capability_properties)
108
- .and(phone_specific_properties.partial())
109
109
  .describe('Properties of the device.'),
110
110
  location: z
111
111
  // todo: optional instead of nullable
@@ -1,17 +1,15 @@
1
1
  import { z } from 'zod'
2
2
 
3
3
  export const phone_specific_properties = z.object({
4
- properties: z.object({
5
- assa_abloy_credential_service_metadata: z
6
- .object({
7
- has_active_endpoint: z.boolean(),
8
- endpoints: z.array(
9
- z.object({
10
- endpoint_id: z.string(),
11
- is_active: z.boolean(),
12
- }),
13
- ),
14
- })
15
- .optional(),
16
- }),
4
+ assa_abloy_credential_service_metadata: z
5
+ .object({
6
+ has_active_endpoint: z.boolean(),
7
+ endpoints: z.array(
8
+ z.object({
9
+ endpoint_id: z.string(),
10
+ is_active: z.boolean(),
11
+ }),
12
+ ),
13
+ })
14
+ .optional(),
17
15
  })
@@ -12,4 +12,4 @@ export const phone = managed_device
12
12
  .extend({
13
13
  device_type: z.enum(['android_phone', 'ios_phone']),
14
14
  })
15
- .merge(phone_specific_properties)
15
+ .merge(z.object({ properties: phone_specific_properties }))