@seamapi/types 1.22.1 → 1.23.1

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 (28) hide show
  1. package/dist/connect.cjs +17 -2
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +13 -6
  4. package/dist/devicedb.cjs +3 -2
  5. package/dist/devicedb.cjs.map +1 -1
  6. package/dist/devicedb.d.cts +92 -26
  7. package/lib/seam/connect/openapi.d.ts +3 -0
  8. package/lib/seam/connect/openapi.js +17 -2
  9. package/lib/seam/connect/openapi.js.map +1 -1
  10. package/lib/seam/connect/route-types.d.ts +10 -6
  11. package/lib/seam/connect/unstable/models/acs/access_group.d.ts +7 -7
  12. package/lib/seam/connect/unstable/models/acs/access_group.js +6 -1
  13. package/lib/seam/connect/unstable/models/acs/access_group.js.map +1 -1
  14. package/lib/seam/connect/unstable/models/device-metadata.d.ts +5 -0
  15. package/lib/seam/connect/unstable/models/device-metadata.js +1 -0
  16. package/lib/seam/connect/unstable/models/device-metadata.js.map +1 -1
  17. package/lib/seam/connect/unstable/models/managed-device.d.ts +9 -0
  18. package/lib/seam/devicedb/public-models/device-model-v1.d.ts +85 -20
  19. package/lib/seam/devicedb/public-models/device-model-v1.js +2 -1
  20. package/lib/seam/devicedb/public-models/device-model-v1.js.map +1 -1
  21. package/lib/seam/devicedb/route-types.d.ts +6 -6
  22. package/package.json +1 -1
  23. package/src/lib/seam/connect/openapi.ts +17 -2
  24. package/src/lib/seam/connect/route-types.ts +34 -6
  25. package/src/lib/seam/connect/unstable/models/acs/access_group.ts +6 -1
  26. package/src/lib/seam/connect/unstable/models/device-metadata.ts +1 -0
  27. package/src/lib/seam/devicedb/public-models/device-model-v1.ts +4 -1
  28. package/src/lib/seam/devicedb/route-types.ts +6 -4
@@ -501,10 +501,18 @@ export interface Routes {
501
501
  workspace_id: string
502
502
  name: string
503
503
  /** deprecated: use external_type */
504
- access_group_type: 'pti_unit'
504
+ access_group_type:
505
+ | 'pti_unit'
506
+ | 'pti_access_level'
507
+ | 'salto_access_group'
508
+ | 'brivo_group'
505
509
  /** deprecated: use external_type_display_name */
506
510
  access_group_type_display_name: string
507
- external_type: 'pti_unit'
511
+ external_type:
512
+ | 'pti_unit'
513
+ | 'pti_access_level'
514
+ | 'salto_access_group'
515
+ | 'brivo_group'
508
516
  external_type_display_name: string
509
517
  created_at: string
510
518
  }
@@ -537,10 +545,18 @@ export interface Routes {
537
545
  workspace_id: string
538
546
  name: string
539
547
  /** deprecated: use external_type */
540
- access_group_type: 'pti_unit'
548
+ access_group_type:
549
+ | 'pti_unit'
550
+ | 'pti_access_level'
551
+ | 'salto_access_group'
552
+ | 'brivo_group'
541
553
  /** deprecated: use external_type_display_name */
542
554
  access_group_type_display_name: string
543
- external_type: 'pti_unit'
555
+ external_type:
556
+ | 'pti_unit'
557
+ | 'pti_access_level'
558
+ | 'salto_access_group'
559
+ | 'brivo_group'
544
560
  external_type_display_name: string
545
561
  created_at: string
546
562
  }
@@ -563,10 +579,18 @@ export interface Routes {
563
579
  workspace_id: string
564
580
  name: string
565
581
  /** deprecated: use external_type */
566
- access_group_type: 'pti_unit'
582
+ access_group_type:
583
+ | 'pti_unit'
584
+ | 'pti_access_level'
585
+ | 'salto_access_group'
586
+ | 'brivo_group'
567
587
  /** deprecated: use external_type_display_name */
568
588
  access_group_type_display_name: string
569
- external_type: 'pti_unit'
589
+ external_type:
590
+ | 'pti_unit'
591
+ | 'pti_access_level'
592
+ | 'salto_access_group'
593
+ | 'brivo_group'
570
594
  external_type_display_name: string
571
595
  created_at: string
572
596
  }>
@@ -1572,6 +1596,7 @@ export interface Routes {
1572
1596
  | {
1573
1597
  device_id: string
1574
1598
  device_name: string
1599
+ product_name: string
1575
1600
  product_type: string
1576
1601
  product_model: string
1577
1602
  device_info_model: string
@@ -2266,6 +2291,7 @@ export interface Routes {
2266
2291
  | {
2267
2292
  device_id: string
2268
2293
  device_name: string
2294
+ product_name: string
2269
2295
  product_type: string
2270
2296
  product_model: string
2271
2297
  device_info_model: string
@@ -3932,6 +3958,7 @@ export interface Routes {
3932
3958
  | {
3933
3959
  device_id: string
3934
3960
  device_name: string
3961
+ product_name: string
3935
3962
  product_type: string
3936
3963
  product_model: string
3937
3964
  device_info_model: string
@@ -4656,6 +4683,7 @@ export interface Routes {
4656
4683
  | {
4657
4684
  device_id: string
4658
4685
  device_name: string
4686
+ product_name: string
4659
4687
  product_type: string
4660
4688
  product_model: string
4661
4689
  device_info_model: string
@@ -1,7 +1,12 @@
1
1
  import { z } from 'zod'
2
2
 
3
3
  // If changed, update seam.acs_access_group.access_group_type check constraint
4
- export const acs_access_group_external_type = z.enum(['pti_unit'])
4
+ export const acs_access_group_external_type = z.enum([
5
+ 'pti_unit',
6
+ 'pti_access_level',
7
+ 'salto_access_group',
8
+ 'brivo_group',
9
+ ])
5
10
 
6
11
  export type AcsAccessGroupExternalType = z.infer<
7
12
  typeof acs_access_group_external_type
@@ -174,6 +174,7 @@ export const device_metadata = z
174
174
  wyze_metadata: z.object({
175
175
  device_id: z.string(),
176
176
  device_name: z.string(),
177
+ product_name: z.string(),
177
178
  product_type: z.string(),
178
179
  product_model: z.string(),
179
180
  device_info_model: z.string(),
@@ -14,6 +14,7 @@ const smartlock = z.object({
14
14
  'cylinder',
15
15
  'padlock',
16
16
  'locker',
17
+ 'unknown',
17
18
  ]),
18
19
  has_physical_key: z.boolean(),
19
20
  has_camera: z.boolean(),
@@ -52,6 +53,8 @@ const thermostat = z.object({
52
53
  }),
53
54
  })
54
55
 
56
+ export type ThermostatPropertiesV1 = z.infer<typeof thermostat>
57
+
55
58
  const relay = z.object({
56
59
  main_category: z.literal('relay'),
57
60
  })
@@ -74,7 +77,7 @@ export const base_device_model_v1 = z.object({
74
77
  slug: z.string(),
75
78
  display_name: z.string(),
76
79
  primary_color_hex: z.string().optional(),
77
- manufacturer_sku: z.string(),
80
+ manufacturer_sku: z.string().optional(),
78
81
  front_image: image_reference.optional(),
79
82
  back_image: image_reference.optional(),
80
83
  })
@@ -28,13 +28,13 @@ export interface Routes {
28
28
  is_device_supported: boolean
29
29
  display_name: string
30
30
  description: string
31
- product_url: string
31
+ product_url?: string | undefined
32
32
  main_connection_type: 'wifi' | 'zwave' | 'zigbee' | 'unknown'
33
33
  aesthetic_variants: Array<{
34
34
  slug: string
35
35
  display_name: string
36
36
  primary_color_hex?: string | undefined
37
- manufacturer_sku: string
37
+ manufacturer_sku?: string | undefined
38
38
  front_image?:
39
39
  | {
40
40
  url: string
@@ -69,6 +69,7 @@ export interface Routes {
69
69
  | 'cylinder'
70
70
  | 'padlock'
71
71
  | 'locker'
72
+ | 'unknown'
72
73
  has_physical_key: boolean
73
74
  has_camera: boolean
74
75
  }
@@ -150,13 +151,13 @@ export interface Routes {
150
151
  is_device_supported: boolean
151
152
  display_name: string
152
153
  description: string
153
- product_url: string
154
+ product_url?: string | undefined
154
155
  main_connection_type: 'wifi' | 'zwave' | 'zigbee' | 'unknown'
155
156
  aesthetic_variants: Array<{
156
157
  slug: string
157
158
  display_name: string
158
159
  primary_color_hex?: string | undefined
159
- manufacturer_sku: string
160
+ manufacturer_sku?: string | undefined
160
161
  front_image?:
161
162
  | {
162
163
  url: string
@@ -191,6 +192,7 @@ export interface Routes {
191
192
  | 'cylinder'
192
193
  | 'padlock'
193
194
  | 'locker'
195
+ | 'unknown'
194
196
  has_physical_key: boolean
195
197
  has_camera: boolean
196
198
  }