@seamapi/types 1.91.2 → 1.92.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.
Files changed (26) hide show
  1. package/dist/connect.cjs +888 -908
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1196 -1143
  4. package/lib/seam/connect/openapi.d.ts +1103 -1053
  5. package/lib/seam/connect/openapi.js +875 -895
  6. package/lib/seam/connect/openapi.js.map +1 -1
  7. package/lib/seam/connect/route-types.d.ts +102 -99
  8. package/lib/seam/connect/unstable/models/acs/entrance.d.ts +39 -0
  9. package/lib/seam/connect/unstable/models/acs/entrance.js +15 -0
  10. package/lib/seam/connect/unstable/models/acs/entrance.js.map +1 -1
  11. package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +6 -6
  12. package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +95 -125
  13. package/lib/seam/connect/unstable/models/devices/managed-device.js +1 -1
  14. package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
  15. package/lib/seam/connect/unstable/models/devices/phone-properties.d.ts +35 -57
  16. package/lib/seam/connect/unstable/models/devices/phone-properties.js +9 -11
  17. package/lib/seam/connect/unstable/models/devices/phone-properties.js.map +1 -1
  18. package/lib/seam/connect/unstable/models/devices/phone.js +1 -1
  19. package/lib/seam/connect/unstable/models/devices/phone.js.map +1 -1
  20. package/package.json +1 -1
  21. package/src/lib/seam/connect/openapi.ts +878 -899
  22. package/src/lib/seam/connect/route-types.ts +153 -135
  23. package/src/lib/seam/connect/unstable/models/acs/entrance.ts +17 -0
  24. package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +1 -1
  25. package/src/lib/seam/connect/unstable/models/devices/phone-properties.ts +11 -13
  26. package/src/lib/seam/connect/unstable/models/devices/phone.ts +1 -1
@@ -1082,6 +1082,15 @@ export interface Routes {
1082
1082
  display_name: string
1083
1083
  acs_system_id: string
1084
1084
  created_at: string
1085
+ visionline_metadata: {
1086
+ door_name: string
1087
+ profiles?:
1088
+ | Array<{
1089
+ visionline_door_profile_id: string
1090
+ visionline_door_profile_type: 'BLE' | 'commonDoor' | 'touch'
1091
+ }>
1092
+ | undefined
1093
+ } | null
1085
1094
  }
1086
1095
  }
1087
1096
  }
@@ -1113,6 +1122,15 @@ export interface Routes {
1113
1122
  display_name: string
1114
1123
  acs_system_id: string
1115
1124
  created_at: string
1125
+ visionline_metadata: {
1126
+ door_name: string
1127
+ profiles?:
1128
+ | Array<{
1129
+ visionline_door_profile_id: string
1130
+ visionline_door_profile_type: 'BLE' | 'commonDoor' | 'touch'
1131
+ }>
1132
+ | undefined
1133
+ } | null
1116
1134
  }>
1117
1135
  }
1118
1136
  }
@@ -1380,6 +1398,15 @@ export interface Routes {
1380
1398
  display_name: string
1381
1399
  acs_system_id: string
1382
1400
  created_at: string
1401
+ visionline_metadata: {
1402
+ door_name: string
1403
+ profiles?:
1404
+ | Array<{
1405
+ visionline_door_profile_id: string
1406
+ visionline_door_profile_type: 'BLE' | 'commonDoor' | 'touch'
1407
+ }>
1408
+ | undefined
1409
+ } | null
1383
1410
  }>
1384
1411
  }
1385
1412
  }
@@ -2056,6 +2083,19 @@ export interface Routes {
2056
2083
  /** Deprecated. Use offline_access_codes_enabled. */
2057
2084
  supports_offline_access_codes?: boolean | undefined
2058
2085
  } & {
2086
+ assa_abloy_credential_service_metadata?:
2087
+ | (
2088
+ | {
2089
+ has_active_endpoint: boolean
2090
+ endpoints: Array<{
2091
+ endpoint_id: string
2092
+ is_active: boolean
2093
+ }>
2094
+ }
2095
+ | undefined
2096
+ )
2097
+ | undefined
2098
+ }) & {
2059
2099
  august_metadata?:
2060
2100
  | {
2061
2101
  lock_id: string
@@ -2582,21 +2622,7 @@ export interface Routes {
2582
2622
  max_cooling_set_point_celsius?: number | undefined
2583
2623
  max_cooling_set_point_fahrenheit?: number | undefined
2584
2624
  }
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
- }
2625
+ ))
2600
2626
  /** Location information for the device. */
2601
2627
  location: {
2602
2628
  /** Name of the device location. */
@@ -2838,6 +2864,19 @@ export interface Routes {
2838
2864
  /** Deprecated. Use offline_access_codes_enabled. */
2839
2865
  supports_offline_access_codes?: boolean | undefined
2840
2866
  } & {
2867
+ assa_abloy_credential_service_metadata?:
2868
+ | (
2869
+ | {
2870
+ has_active_endpoint: boolean
2871
+ endpoints: Array<{
2872
+ endpoint_id: string
2873
+ is_active: boolean
2874
+ }>
2875
+ }
2876
+ | undefined
2877
+ )
2878
+ | undefined
2879
+ }) & {
2841
2880
  august_metadata?:
2842
2881
  | {
2843
2882
  lock_id: string
@@ -3364,21 +3403,7 @@ export interface Routes {
3364
3403
  max_cooling_set_point_celsius?: number | undefined
3365
3404
  max_cooling_set_point_fahrenheit?: number | undefined
3366
3405
  }
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
- }
3406
+ ))
3382
3407
  /** Location information for the device. */
3383
3408
  location: {
3384
3409
  /** Name of the device location. */
@@ -4117,6 +4142,19 @@ export interface Routes {
4117
4142
  /** Deprecated. Use offline_access_codes_enabled. */
4118
4143
  supports_offline_access_codes?: boolean | undefined
4119
4144
  } & {
4145
+ assa_abloy_credential_service_metadata?:
4146
+ | (
4147
+ | {
4148
+ has_active_endpoint: boolean
4149
+ endpoints: Array<{
4150
+ endpoint_id: string
4151
+ is_active: boolean
4152
+ }>
4153
+ }
4154
+ | undefined
4155
+ )
4156
+ | undefined
4157
+ }) & {
4120
4158
  august_metadata?:
4121
4159
  | {
4122
4160
  lock_id: string
@@ -4643,21 +4681,7 @@ export interface Routes {
4643
4681
  max_cooling_set_point_celsius?: number | undefined
4644
4682
  max_cooling_set_point_fahrenheit?: number | undefined
4645
4683
  }
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
- }
4684
+ ))
4661
4685
  /** Location information for the device. */
4662
4686
  location: {
4663
4687
  /** Name of the device location. */
@@ -4775,6 +4799,19 @@ export interface Routes {
4775
4799
  /** Deprecated. Use offline_access_codes_enabled. */
4776
4800
  supports_offline_access_codes?: boolean | undefined
4777
4801
  } & {
4802
+ assa_abloy_credential_service_metadata?:
4803
+ | (
4804
+ | {
4805
+ has_active_endpoint: boolean
4806
+ endpoints: Array<{
4807
+ endpoint_id: string
4808
+ is_active: boolean
4809
+ }>
4810
+ }
4811
+ | undefined
4812
+ )
4813
+ | undefined
4814
+ }) & {
4778
4815
  august_metadata?:
4779
4816
  | {
4780
4817
  lock_id: string
@@ -5301,21 +5338,7 @@ export interface Routes {
5301
5338
  max_cooling_set_point_celsius?: number | undefined
5302
5339
  max_cooling_set_point_fahrenheit?: number | undefined
5303
5340
  }
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
- }
5341
+ ))
5319
5342
  /** Location information for the device. */
5320
5343
  location: {
5321
5344
  /** Name of the device location. */
@@ -5557,6 +5580,19 @@ export interface Routes {
5557
5580
  /** Deprecated. Use offline_access_codes_enabled. */
5558
5581
  supports_offline_access_codes?: boolean | undefined
5559
5582
  } & {
5583
+ assa_abloy_credential_service_metadata?:
5584
+ | (
5585
+ | {
5586
+ has_active_endpoint: boolean
5587
+ endpoints: Array<{
5588
+ endpoint_id: string
5589
+ is_active: boolean
5590
+ }>
5591
+ }
5592
+ | undefined
5593
+ )
5594
+ | undefined
5595
+ }) & {
5560
5596
  august_metadata?:
5561
5597
  | {
5562
5598
  lock_id: string
@@ -6083,21 +6119,7 @@ export interface Routes {
6083
6119
  max_cooling_set_point_celsius?: number | undefined
6084
6120
  max_cooling_set_point_fahrenheit?: number | undefined
6085
6121
  }
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
- }
6122
+ ))
6101
6123
  /** Location information for the device. */
6102
6124
  location: {
6103
6125
  /** Name of the device location. */
@@ -6215,6 +6237,19 @@ export interface Routes {
6215
6237
  /** Deprecated. Use offline_access_codes_enabled. */
6216
6238
  supports_offline_access_codes?: boolean | undefined
6217
6239
  } & {
6240
+ assa_abloy_credential_service_metadata?:
6241
+ | (
6242
+ | {
6243
+ has_active_endpoint: boolean
6244
+ endpoints: Array<{
6245
+ endpoint_id: string
6246
+ is_active: boolean
6247
+ }>
6248
+ }
6249
+ | undefined
6250
+ )
6251
+ | undefined
6252
+ }) & {
6218
6253
  august_metadata?:
6219
6254
  | {
6220
6255
  lock_id: string
@@ -6741,21 +6776,7 @@ export interface Routes {
6741
6776
  max_cooling_set_point_celsius?: number | undefined
6742
6777
  max_cooling_set_point_fahrenheit?: number | undefined
6743
6778
  }
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
- }
6779
+ ))
6759
6780
  /** Location information for the device. */
6760
6781
  location: {
6761
6782
  /** Name of the device location. */
@@ -7498,6 +7519,19 @@ export interface Routes {
7498
7519
  /** Deprecated. Use offline_access_codes_enabled. */
7499
7520
  supports_offline_access_codes?: boolean | undefined
7500
7521
  } & {
7522
+ assa_abloy_credential_service_metadata?:
7523
+ | (
7524
+ | {
7525
+ has_active_endpoint: boolean
7526
+ endpoints: Array<{
7527
+ endpoint_id: string
7528
+ is_active: boolean
7529
+ }>
7530
+ }
7531
+ | undefined
7532
+ )
7533
+ | undefined
7534
+ }) & {
7501
7535
  august_metadata?:
7502
7536
  | {
7503
7537
  lock_id: string
@@ -8024,21 +8058,7 @@ export interface Routes {
8024
8058
  max_cooling_set_point_celsius?: number | undefined
8025
8059
  max_cooling_set_point_fahrenheit?: number | undefined
8026
8060
  }
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
- }
8061
+ ))
8042
8062
  /** Location information for the device. */
8043
8063
  location: {
8044
8064
  /** Name of the device location. */
@@ -8310,6 +8330,19 @@ export interface Routes {
8310
8330
  /** Deprecated. Use offline_access_codes_enabled. */
8311
8331
  supports_offline_access_codes?: boolean | undefined
8312
8332
  } & {
8333
+ assa_abloy_credential_service_metadata?:
8334
+ | (
8335
+ | {
8336
+ has_active_endpoint: boolean
8337
+ endpoints: Array<{
8338
+ endpoint_id: string
8339
+ is_active: boolean
8340
+ }>
8341
+ }
8342
+ | undefined
8343
+ )
8344
+ | undefined
8345
+ }) & {
8313
8346
  august_metadata?:
8314
8347
  | {
8315
8348
  lock_id: string
@@ -8836,21 +8869,7 @@ export interface Routes {
8836
8869
  max_cooling_set_point_celsius?: number | undefined
8837
8870
  max_cooling_set_point_fahrenheit?: number | undefined
8838
8871
  }
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
- }
8872
+ ))
8854
8873
  /** Location information for the device. */
8855
8874
  location: {
8856
8875
  /** Name of the device location. */
@@ -9184,6 +9203,19 @@ export interface Routes {
9184
9203
  /** Deprecated. Use offline_access_codes_enabled. */
9185
9204
  supports_offline_access_codes?: boolean | undefined
9186
9205
  } & {
9206
+ assa_abloy_credential_service_metadata?:
9207
+ | (
9208
+ | {
9209
+ has_active_endpoint: boolean
9210
+ endpoints: Array<{
9211
+ endpoint_id: string
9212
+ is_active: boolean
9213
+ }>
9214
+ }
9215
+ | undefined
9216
+ )
9217
+ | undefined
9218
+ }) & {
9187
9219
  august_metadata?:
9188
9220
  | {
9189
9221
  lock_id: string
@@ -9710,21 +9742,7 @@ export interface Routes {
9710
9742
  max_cooling_set_point_celsius?: number | undefined
9711
9743
  max_cooling_set_point_fahrenheit?: number | undefined
9712
9744
  }
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
- }
9745
+ ))
9728
9746
  /** Location information for the device. */
9729
9747
  location: {
9730
9748
  /** Name of the device location. */
@@ -5,6 +5,23 @@ export const acs_entrance = z.object({
5
5
  display_name: z.string(),
6
6
  acs_system_id: z.string().uuid(),
7
7
  created_at: z.string().datetime(),
8
+ visionline_metadata: z
9
+ .object({
10
+ door_name: z.string(),
11
+ profiles: z
12
+ .array(
13
+ z.object({
14
+ visionline_door_profile_id: z.string(),
15
+ visionline_door_profile_type: z.enum([
16
+ 'BLE',
17
+ 'commonDoor',
18
+ 'touch',
19
+ ]),
20
+ }),
21
+ )
22
+ .optional(),
23
+ })
24
+ .nullable(),
8
25
  })
9
26
 
10
27
  export type AcsEntrance = z.infer<typeof acs_entrance>
@@ -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 }))