@seamapi/types 1.8.0 → 1.10.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 +34 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +26 -0
- package/lib/seam/connect/openapi.d.ts +26 -0
- package/lib/seam/connect/openapi.js +34 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +49 -20
- package/lib/seam/connect/unstable/models/device-metadata.d.ts +33 -0
- package/lib/seam/connect/unstable/models/device-metadata.js +7 -0
- package/lib/seam/connect/unstable/models/device-metadata.js.map +1 -1
- package/lib/seam/connect/unstable/models/device-type.d.ts +1 -0
- package/lib/seam/connect/unstable/models/device-type.js +1 -0
- package/lib/seam/connect/unstable/models/device-type.js.map +1 -1
- package/lib/seam/connect/unstable/models/managed-device.d.ts +64 -3
- package/lib/seam/connect/unstable/models/unmanaged-device.d.ts +3 -3
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +34 -1
- package/src/lib/seam/connect/route-types.ts +57 -1
- package/src/lib/seam/connect/unstable/models/device-metadata.ts +8 -0
- package/src/lib/seam/connect/unstable/models/device-type.ts +1 -0
|
@@ -1135,6 +1135,7 @@ export default {
|
|
|
1135
1135
|
'hubitat',
|
|
1136
1136
|
'four_suites',
|
|
1137
1137
|
'dormakaba_oracode',
|
|
1138
|
+
'pti',
|
|
1138
1139
|
'wyze',
|
|
1139
1140
|
'yale_access',
|
|
1140
1141
|
],
|
|
@@ -1684,6 +1685,7 @@ export default {
|
|
|
1684
1685
|
'schlage_lock',
|
|
1685
1686
|
'seam_relay',
|
|
1686
1687
|
'smartthings_lock',
|
|
1688
|
+
'wyze_lock',
|
|
1687
1689
|
'yale_lock',
|
|
1688
1690
|
'two_n_intercom',
|
|
1689
1691
|
'controlbyweb_device',
|
|
@@ -1727,6 +1729,7 @@ export default {
|
|
|
1727
1729
|
'schlage_lock',
|
|
1728
1730
|
'seam_relay',
|
|
1729
1731
|
'smartthings_lock',
|
|
1732
|
+
'wyze_lock',
|
|
1730
1733
|
'yale_lock',
|
|
1731
1734
|
'two_n_intercom',
|
|
1732
1735
|
'controlbyweb_device',
|
|
@@ -1771,6 +1774,7 @@ export default {
|
|
|
1771
1774
|
'schlage',
|
|
1772
1775
|
'seam',
|
|
1773
1776
|
'unknown',
|
|
1777
|
+
'wyze',
|
|
1774
1778
|
'yale',
|
|
1775
1779
|
'minut',
|
|
1776
1780
|
'two_n',
|
|
@@ -2400,6 +2404,7 @@ export default {
|
|
|
2400
2404
|
'schlage_lock',
|
|
2401
2405
|
'seam_relay',
|
|
2402
2406
|
'smartthings_lock',
|
|
2407
|
+
'wyze_lock',
|
|
2403
2408
|
'yale_lock',
|
|
2404
2409
|
'two_n_intercom',
|
|
2405
2410
|
'controlbyweb_device',
|
|
@@ -2443,6 +2448,7 @@ export default {
|
|
|
2443
2448
|
'schlage_lock',
|
|
2444
2449
|
'seam_relay',
|
|
2445
2450
|
'smartthings_lock',
|
|
2451
|
+
'wyze_lock',
|
|
2446
2452
|
'yale_lock',
|
|
2447
2453
|
'two_n_intercom',
|
|
2448
2454
|
'controlbyweb_device',
|
|
@@ -2487,6 +2493,7 @@ export default {
|
|
|
2487
2493
|
'schlage',
|
|
2488
2494
|
'seam',
|
|
2489
2495
|
'unknown',
|
|
2496
|
+
'wyze',
|
|
2490
2497
|
'yale',
|
|
2491
2498
|
'minut',
|
|
2492
2499
|
'two_n',
|
|
@@ -2869,6 +2876,7 @@ export default {
|
|
|
2869
2876
|
'schlage_lock',
|
|
2870
2877
|
'seam_relay',
|
|
2871
2878
|
'smartthings_lock',
|
|
2879
|
+
'wyze_lock',
|
|
2872
2880
|
'yale_lock',
|
|
2873
2881
|
'two_n_intercom',
|
|
2874
2882
|
'controlbyweb_device',
|
|
@@ -2912,6 +2920,7 @@ export default {
|
|
|
2912
2920
|
'schlage_lock',
|
|
2913
2921
|
'seam_relay',
|
|
2914
2922
|
'smartthings_lock',
|
|
2923
|
+
'wyze_lock',
|
|
2915
2924
|
'yale_lock',
|
|
2916
2925
|
'two_n_intercom',
|
|
2917
2926
|
'controlbyweb_device',
|
|
@@ -2956,6 +2965,7 @@ export default {
|
|
|
2956
2965
|
'schlage',
|
|
2957
2966
|
'seam',
|
|
2958
2967
|
'unknown',
|
|
2968
|
+
'wyze',
|
|
2959
2969
|
'yale',
|
|
2960
2970
|
'minut',
|
|
2961
2971
|
'two_n',
|
|
@@ -3062,9 +3072,10 @@ export default {
|
|
|
3062
3072
|
properties: {
|
|
3063
3073
|
device_id: { type: 'string', format: 'uuid' },
|
|
3064
3074
|
fan_mode: { type: 'string', enum: ['auto', 'on'] },
|
|
3075
|
+
fan_mode_setting: { type: 'string', enum: ['auto', 'on'] },
|
|
3065
3076
|
sync: { default: false, type: 'boolean' },
|
|
3066
3077
|
},
|
|
3067
|
-
required: ['device_id'
|
|
3078
|
+
required: ['device_id'],
|
|
3068
3079
|
},
|
|
3069
3080
|
},
|
|
3070
3081
|
},
|
|
@@ -5015,6 +5026,7 @@ export default {
|
|
|
5015
5026
|
'schlage_lock',
|
|
5016
5027
|
'seam_relay',
|
|
5017
5028
|
'smartthings_lock',
|
|
5029
|
+
'wyze_lock',
|
|
5018
5030
|
'yale_lock',
|
|
5019
5031
|
'two_n_intercom',
|
|
5020
5032
|
'controlbyweb_device',
|
|
@@ -5058,6 +5070,7 @@ export default {
|
|
|
5058
5070
|
'schlage_lock',
|
|
5059
5071
|
'seam_relay',
|
|
5060
5072
|
'smartthings_lock',
|
|
5073
|
+
'wyze_lock',
|
|
5061
5074
|
'yale_lock',
|
|
5062
5075
|
'two_n_intercom',
|
|
5063
5076
|
'controlbyweb_device',
|
|
@@ -5102,6 +5115,7 @@ export default {
|
|
|
5102
5115
|
'schlage',
|
|
5103
5116
|
'seam',
|
|
5104
5117
|
'unknown',
|
|
5118
|
+
'wyze',
|
|
5105
5119
|
'yale',
|
|
5106
5120
|
'minut',
|
|
5107
5121
|
'two_n',
|
|
@@ -6286,6 +6300,7 @@ export default {
|
|
|
6286
6300
|
'schlage_lock',
|
|
6287
6301
|
'seam_relay',
|
|
6288
6302
|
'smartthings_lock',
|
|
6303
|
+
'wyze_lock',
|
|
6289
6304
|
'yale_lock',
|
|
6290
6305
|
'two_n_intercom',
|
|
6291
6306
|
'controlbyweb_device',
|
|
@@ -6682,6 +6697,23 @@ export default {
|
|
|
6682
6697
|
'site_name',
|
|
6683
6698
|
],
|
|
6684
6699
|
},
|
|
6700
|
+
wyze_metadata: {
|
|
6701
|
+
type: 'object',
|
|
6702
|
+
properties: {
|
|
6703
|
+
device_id: { type: 'string' },
|
|
6704
|
+
device_name: { type: 'string' },
|
|
6705
|
+
product_type: { type: 'string' },
|
|
6706
|
+
product_model: { type: 'string' },
|
|
6707
|
+
device_info_model: { type: 'string' },
|
|
6708
|
+
},
|
|
6709
|
+
required: [
|
|
6710
|
+
'device_id',
|
|
6711
|
+
'device_name',
|
|
6712
|
+
'product_type',
|
|
6713
|
+
'product_model',
|
|
6714
|
+
'device_info_model',
|
|
6715
|
+
],
|
|
6716
|
+
},
|
|
6685
6717
|
},
|
|
6686
6718
|
},
|
|
6687
6719
|
],
|
|
@@ -7270,6 +7302,7 @@ export default {
|
|
|
7270
7302
|
'schlage_lock',
|
|
7271
7303
|
'seam_relay',
|
|
7272
7304
|
'smartthings_lock',
|
|
7305
|
+
'wyze_lock',
|
|
7273
7306
|
'yale_lock',
|
|
7274
7307
|
'two_n_intercom',
|
|
7275
7308
|
'controlbyweb_device',
|
|
@@ -967,6 +967,7 @@ export interface Routes {
|
|
|
967
967
|
| 'hubitat'
|
|
968
968
|
| 'four_suites'
|
|
969
969
|
| 'dormakaba_oracode'
|
|
970
|
+
| 'pti'
|
|
970
971
|
| 'wyze'
|
|
971
972
|
| 'yale_access'
|
|
972
973
|
>
|
|
@@ -1192,6 +1193,7 @@ export interface Routes {
|
|
|
1192
1193
|
| 'schlage_lock'
|
|
1193
1194
|
| 'seam_relay'
|
|
1194
1195
|
| 'smartthings_lock'
|
|
1196
|
+
| 'wyze_lock'
|
|
1195
1197
|
| 'yale_lock'
|
|
1196
1198
|
| 'two_n_intercom'
|
|
1197
1199
|
| 'controlbyweb_device'
|
|
@@ -1419,6 +1421,15 @@ export interface Routes {
|
|
|
1419
1421
|
site_name: string
|
|
1420
1422
|
}
|
|
1421
1423
|
| undefined
|
|
1424
|
+
wyze_metadata?:
|
|
1425
|
+
| {
|
|
1426
|
+
device_id: string
|
|
1427
|
+
device_name: string
|
|
1428
|
+
product_type: string
|
|
1429
|
+
product_model: string
|
|
1430
|
+
device_info_model: string
|
|
1431
|
+
}
|
|
1432
|
+
| undefined
|
|
1422
1433
|
}) &
|
|
1423
1434
|
({
|
|
1424
1435
|
code_constraints?:
|
|
@@ -1766,6 +1777,7 @@ export interface Routes {
|
|
|
1766
1777
|
| 'schlage_lock'
|
|
1767
1778
|
| 'seam_relay'
|
|
1768
1779
|
| 'smartthings_lock'
|
|
1780
|
+
| 'wyze_lock'
|
|
1769
1781
|
| 'yale_lock'
|
|
1770
1782
|
| 'two_n_intercom'
|
|
1771
1783
|
| 'controlbyweb_device'
|
|
@@ -1798,6 +1810,7 @@ export interface Routes {
|
|
|
1798
1810
|
| 'schlage_lock'
|
|
1799
1811
|
| 'seam_relay'
|
|
1800
1812
|
| 'smartthings_lock'
|
|
1813
|
+
| 'wyze_lock'
|
|
1801
1814
|
| 'yale_lock'
|
|
1802
1815
|
| 'two_n_intercom'
|
|
1803
1816
|
| 'controlbyweb_device'
|
|
@@ -1833,6 +1846,7 @@ export interface Routes {
|
|
|
1833
1846
|
| 'schlage'
|
|
1834
1847
|
| 'seam'
|
|
1835
1848
|
| 'unknown'
|
|
1849
|
+
| 'wyze'
|
|
1836
1850
|
| 'yale'
|
|
1837
1851
|
| 'minut'
|
|
1838
1852
|
| 'two_n'
|
|
@@ -1872,6 +1886,7 @@ export interface Routes {
|
|
|
1872
1886
|
| 'schlage_lock'
|
|
1873
1887
|
| 'seam_relay'
|
|
1874
1888
|
| 'smartthings_lock'
|
|
1889
|
+
| 'wyze_lock'
|
|
1875
1890
|
| 'yale_lock'
|
|
1876
1891
|
| 'two_n_intercom'
|
|
1877
1892
|
| 'controlbyweb_device'
|
|
@@ -2099,6 +2114,15 @@ export interface Routes {
|
|
|
2099
2114
|
site_name: string
|
|
2100
2115
|
}
|
|
2101
2116
|
| undefined
|
|
2117
|
+
wyze_metadata?:
|
|
2118
|
+
| {
|
|
2119
|
+
device_id: string
|
|
2120
|
+
device_name: string
|
|
2121
|
+
product_type: string
|
|
2122
|
+
product_model: string
|
|
2123
|
+
device_info_model: string
|
|
2124
|
+
}
|
|
2125
|
+
| undefined
|
|
2102
2126
|
}) &
|
|
2103
2127
|
({
|
|
2104
2128
|
code_constraints?:
|
|
@@ -2467,6 +2491,7 @@ export interface Routes {
|
|
|
2467
2491
|
| 'schlage_lock'
|
|
2468
2492
|
| 'seam_relay'
|
|
2469
2493
|
| 'smartthings_lock'
|
|
2494
|
+
| 'wyze_lock'
|
|
2470
2495
|
| 'yale_lock'
|
|
2471
2496
|
| 'two_n_intercom'
|
|
2472
2497
|
| 'controlbyweb_device'
|
|
@@ -2535,6 +2560,7 @@ export interface Routes {
|
|
|
2535
2560
|
| 'schlage_lock'
|
|
2536
2561
|
| 'seam_relay'
|
|
2537
2562
|
| 'smartthings_lock'
|
|
2563
|
+
| 'wyze_lock'
|
|
2538
2564
|
| 'yale_lock'
|
|
2539
2565
|
| 'two_n_intercom'
|
|
2540
2566
|
| 'controlbyweb_device'
|
|
@@ -2567,6 +2593,7 @@ export interface Routes {
|
|
|
2567
2593
|
| 'schlage_lock'
|
|
2568
2594
|
| 'seam_relay'
|
|
2569
2595
|
| 'smartthings_lock'
|
|
2596
|
+
| 'wyze_lock'
|
|
2570
2597
|
| 'yale_lock'
|
|
2571
2598
|
| 'two_n_intercom'
|
|
2572
2599
|
| 'controlbyweb_device'
|
|
@@ -2602,6 +2629,7 @@ export interface Routes {
|
|
|
2602
2629
|
| 'schlage'
|
|
2603
2630
|
| 'seam'
|
|
2604
2631
|
| 'unknown'
|
|
2632
|
+
| 'wyze'
|
|
2605
2633
|
| 'yale'
|
|
2606
2634
|
| 'minut'
|
|
2607
2635
|
| 'two_n'
|
|
@@ -2641,6 +2669,7 @@ export interface Routes {
|
|
|
2641
2669
|
| 'schlage_lock'
|
|
2642
2670
|
| 'seam_relay'
|
|
2643
2671
|
| 'smartthings_lock'
|
|
2672
|
+
| 'wyze_lock'
|
|
2644
2673
|
| 'yale_lock'
|
|
2645
2674
|
| 'two_n_intercom'
|
|
2646
2675
|
| 'controlbyweb_device'
|
|
@@ -2959,6 +2988,7 @@ export interface Routes {
|
|
|
2959
2988
|
| 'schlage_lock'
|
|
2960
2989
|
| 'seam_relay'
|
|
2961
2990
|
| 'smartthings_lock'
|
|
2991
|
+
| 'wyze_lock'
|
|
2962
2992
|
| 'yale_lock'
|
|
2963
2993
|
| 'two_n_intercom'
|
|
2964
2994
|
| 'controlbyweb_device'
|
|
@@ -2991,6 +3021,7 @@ export interface Routes {
|
|
|
2991
3021
|
| 'schlage_lock'
|
|
2992
3022
|
| 'seam_relay'
|
|
2993
3023
|
| 'smartthings_lock'
|
|
3024
|
+
| 'wyze_lock'
|
|
2994
3025
|
| 'yale_lock'
|
|
2995
3026
|
| 'two_n_intercom'
|
|
2996
3027
|
| 'controlbyweb_device'
|
|
@@ -3026,6 +3057,7 @@ export interface Routes {
|
|
|
3026
3057
|
| 'schlage'
|
|
3027
3058
|
| 'seam'
|
|
3028
3059
|
| 'unknown'
|
|
3060
|
+
| 'wyze'
|
|
3029
3061
|
| 'yale'
|
|
3030
3062
|
| 'minut'
|
|
3031
3063
|
| 'two_n'
|
|
@@ -3501,6 +3533,7 @@ export interface Routes {
|
|
|
3501
3533
|
| 'schlage_lock'
|
|
3502
3534
|
| 'seam_relay'
|
|
3503
3535
|
| 'smartthings_lock'
|
|
3536
|
+
| 'wyze_lock'
|
|
3504
3537
|
| 'yale_lock'
|
|
3505
3538
|
| 'two_n_intercom'
|
|
3506
3539
|
| 'controlbyweb_device'
|
|
@@ -3728,6 +3761,15 @@ export interface Routes {
|
|
|
3728
3761
|
site_name: string
|
|
3729
3762
|
}
|
|
3730
3763
|
| undefined
|
|
3764
|
+
wyze_metadata?:
|
|
3765
|
+
| {
|
|
3766
|
+
device_id: string
|
|
3767
|
+
device_name: string
|
|
3768
|
+
product_type: string
|
|
3769
|
+
product_model: string
|
|
3770
|
+
device_info_model: string
|
|
3771
|
+
}
|
|
3772
|
+
| undefined
|
|
3731
3773
|
}) &
|
|
3732
3774
|
({
|
|
3733
3775
|
code_constraints?:
|
|
@@ -4105,6 +4147,7 @@ export interface Routes {
|
|
|
4105
4147
|
| 'schlage_lock'
|
|
4106
4148
|
| 'seam_relay'
|
|
4107
4149
|
| 'smartthings_lock'
|
|
4150
|
+
| 'wyze_lock'
|
|
4108
4151
|
| 'yale_lock'
|
|
4109
4152
|
| 'two_n_intercom'
|
|
4110
4153
|
| 'controlbyweb_device'
|
|
@@ -4137,6 +4180,7 @@ export interface Routes {
|
|
|
4137
4180
|
| 'schlage_lock'
|
|
4138
4181
|
| 'seam_relay'
|
|
4139
4182
|
| 'smartthings_lock'
|
|
4183
|
+
| 'wyze_lock'
|
|
4140
4184
|
| 'yale_lock'
|
|
4141
4185
|
| 'two_n_intercom'
|
|
4142
4186
|
| 'controlbyweb_device'
|
|
@@ -4172,6 +4216,7 @@ export interface Routes {
|
|
|
4172
4216
|
| 'schlage'
|
|
4173
4217
|
| 'seam'
|
|
4174
4218
|
| 'unknown'
|
|
4219
|
+
| 'wyze'
|
|
4175
4220
|
| 'yale'
|
|
4176
4221
|
| 'minut'
|
|
4177
4222
|
| 'two_n'
|
|
@@ -4211,6 +4256,7 @@ export interface Routes {
|
|
|
4211
4256
|
| 'schlage_lock'
|
|
4212
4257
|
| 'seam_relay'
|
|
4213
4258
|
| 'smartthings_lock'
|
|
4259
|
+
| 'wyze_lock'
|
|
4214
4260
|
| 'yale_lock'
|
|
4215
4261
|
| 'two_n_intercom'
|
|
4216
4262
|
| 'controlbyweb_device'
|
|
@@ -4438,6 +4484,15 @@ export interface Routes {
|
|
|
4438
4484
|
site_name: string
|
|
4439
4485
|
}
|
|
4440
4486
|
| undefined
|
|
4487
|
+
wyze_metadata?:
|
|
4488
|
+
| {
|
|
4489
|
+
device_id: string
|
|
4490
|
+
device_name: string
|
|
4491
|
+
product_type: string
|
|
4492
|
+
product_model: string
|
|
4493
|
+
device_info_model: string
|
|
4494
|
+
}
|
|
4495
|
+
| undefined
|
|
4441
4496
|
}) &
|
|
4442
4497
|
({
|
|
4443
4498
|
code_constraints?:
|
|
@@ -4775,7 +4830,8 @@ export interface Routes {
|
|
|
4775
4830
|
queryParams: {}
|
|
4776
4831
|
jsonBody: {
|
|
4777
4832
|
device_id: string
|
|
4778
|
-
fan_mode
|
|
4833
|
+
fan_mode?: ('auto' | 'on') | undefined
|
|
4834
|
+
fan_mode_setting?: ('auto' | 'on') | undefined
|
|
4779
4835
|
sync?: boolean
|
|
4780
4836
|
}
|
|
4781
4837
|
commonParams: {}
|
|
@@ -170,5 +170,13 @@ export const device_metadata = z
|
|
|
170
170
|
site_id: z.number(),
|
|
171
171
|
site_name: z.string(),
|
|
172
172
|
}),
|
|
173
|
+
|
|
174
|
+
wyze_metadata: z.object({
|
|
175
|
+
device_id: z.string(),
|
|
176
|
+
device_name: z.string(),
|
|
177
|
+
product_type: z.string(),
|
|
178
|
+
product_model: z.string(),
|
|
179
|
+
device_info_model: z.string(),
|
|
180
|
+
}),
|
|
173
181
|
})
|
|
174
182
|
.partial()
|
|
@@ -18,6 +18,7 @@ export const LOCK_DEVICE_TYPE = {
|
|
|
18
18
|
SCHLAGE_LOCK: 'schlage_lock',
|
|
19
19
|
SEAM_RELAY: 'seam_relay',
|
|
20
20
|
SMARTTHINGS_LOCK: 'smartthings_lock',
|
|
21
|
+
WYZE_LOCK: 'wyze_lock',
|
|
21
22
|
YALE_LOCK: 'yale_lock',
|
|
22
23
|
TWO_N_INTERCOM: 'two_n_intercom',
|
|
23
24
|
CONTROLBYWEB_DEVICE: 'controlbyweb_device',
|