@seamapi/types 1.247.1 → 1.249.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 +55 -11
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +206 -97
- package/lib/seam/connect/models/acs/acs-credential.d.ts +18 -0
- package/lib/seam/connect/models/acs/acs-credential.js +3 -0
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +21 -18
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +21 -18
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js +1 -0
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +31 -26
- package/lib/seam/connect/models/devices/phone.d.ts +21 -18
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -18
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +6 -6
- package/lib/seam/connect/models/thermostats/modes.d.ts +3 -1
- package/lib/seam/connect/models/thermostats/modes.js +2 -1
- package/lib/seam/connect/models/thermostats/modes.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +44 -0
- package/lib/seam/connect/openapi.js +49 -10
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +92 -53
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +3 -0
- package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +1 -0
- package/src/lib/seam/connect/models/thermostats/modes.ts +7 -1
- package/src/lib/seam/connect/openapi.ts +49 -10
- package/src/lib/seam/connect/route-types.ts +164 -53
|
@@ -29,6 +29,9 @@ const common_acs_credential = z.object({
|
|
|
29
29
|
parent_acs_credential_id: z.string().uuid().optional(),
|
|
30
30
|
display_name: z.string().min(1),
|
|
31
31
|
code: z.string().optional().nullable(),
|
|
32
|
+
card_number: z.string().optional().nullable(),
|
|
33
|
+
is_encoded: z.boolean().optional(),
|
|
34
|
+
encoded_at: z.string().datetime().optional().nullable(),
|
|
32
35
|
access_method: acs_credential_access_method_type,
|
|
33
36
|
external_type: acs_credential_external_type.optional(),
|
|
34
37
|
external_type_display_name: z.string().optional(),
|
|
@@ -14,6 +14,7 @@ export const thermostat_capability_properties = z
|
|
|
14
14
|
temperature_celsius: z.number(),
|
|
15
15
|
relative_humidity: z.number().min(0).max(1),
|
|
16
16
|
available_hvac_mode_settings: z.array(hvac_mode_setting),
|
|
17
|
+
available_fan_mode_settings: z.array(fan_mode_setting),
|
|
17
18
|
is_heating: z.boolean(),
|
|
18
19
|
is_cooling: z.boolean(),
|
|
19
20
|
is_fan_running: z.boolean(),
|
|
@@ -4,6 +4,12 @@ export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heat_cool'])
|
|
|
4
4
|
|
|
5
5
|
export type HvacModeSetting = z.infer<typeof hvac_mode_setting>
|
|
6
6
|
|
|
7
|
-
export const fan_mode_setting = z.enum(['auto', 'on'])
|
|
7
|
+
export const fan_mode_setting = z.enum(['auto', 'on', 'circulate'])
|
|
8
8
|
|
|
9
9
|
export type FanModeSetting = z.infer<typeof fan_mode_setting>
|
|
10
|
+
|
|
11
|
+
export const available_fan_mode_settings = z.array(fan_mode_setting)
|
|
12
|
+
|
|
13
|
+
export type AvailableFanModeSettings = z.infer<
|
|
14
|
+
typeof available_fan_mode_settings
|
|
15
|
+
>
|
|
@@ -246,9 +246,11 @@ export default {
|
|
|
246
246
|
acs_credential_pool_id: { format: 'uuid', type: 'string' },
|
|
247
247
|
acs_system_id: { format: 'uuid', type: 'string' },
|
|
248
248
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
249
|
+
card_number: { nullable: true, type: 'string' },
|
|
249
250
|
code: { nullable: true, type: 'string' },
|
|
250
251
|
created_at: { format: 'date-time', type: 'string' },
|
|
251
252
|
display_name: { minLength: 1, type: 'string' },
|
|
253
|
+
encoded_at: { format: 'date-time', nullable: true, type: 'string' },
|
|
252
254
|
ends_at: { type: 'string' },
|
|
253
255
|
errors: {
|
|
254
256
|
items: {
|
|
@@ -272,6 +274,7 @@ export default {
|
|
|
272
274
|
type: 'string',
|
|
273
275
|
},
|
|
274
276
|
external_type_display_name: { type: 'string' },
|
|
277
|
+
is_encoded: { type: 'boolean' },
|
|
275
278
|
is_latest_desired_state_synced_with_provider: { type: 'boolean' },
|
|
276
279
|
is_managed: { enum: [true], type: 'boolean' },
|
|
277
280
|
is_multi_phone_sync_credential: { type: 'boolean' },
|
|
@@ -2234,7 +2237,10 @@ export default {
|
|
|
2234
2237
|
cooling_set_point_celsius: { format: 'float', type: 'number' },
|
|
2235
2238
|
cooling_set_point_fahrenheit: { format: 'float', type: 'number' },
|
|
2236
2239
|
display_name: { type: 'string' },
|
|
2237
|
-
fan_mode_setting: {
|
|
2240
|
+
fan_mode_setting: {
|
|
2241
|
+
enum: ['auto', 'on', 'circulate'],
|
|
2242
|
+
type: 'string',
|
|
2243
|
+
},
|
|
2238
2244
|
heating_set_point_celsius: { format: 'float', type: 'number' },
|
|
2239
2245
|
heating_set_point_fahrenheit: { format: 'float', type: 'number' },
|
|
2240
2246
|
hvac_mode_setting: {
|
|
@@ -3373,7 +3379,7 @@ export default {
|
|
|
3373
3379
|
},
|
|
3374
3380
|
display_name: { type: 'string' },
|
|
3375
3381
|
fan_mode_setting: {
|
|
3376
|
-
enum: ['auto', 'on'],
|
|
3382
|
+
enum: ['auto', 'on', 'circulate'],
|
|
3377
3383
|
type: 'string',
|
|
3378
3384
|
},
|
|
3379
3385
|
heating_set_point_celsius: {
|
|
@@ -3406,6 +3412,13 @@ export default {
|
|
|
3406
3412
|
},
|
|
3407
3413
|
type: 'array',
|
|
3408
3414
|
},
|
|
3415
|
+
available_fan_mode_settings: {
|
|
3416
|
+
items: {
|
|
3417
|
+
enum: ['auto', 'on', 'circulate'],
|
|
3418
|
+
type: 'string',
|
|
3419
|
+
},
|
|
3420
|
+
type: 'array',
|
|
3421
|
+
},
|
|
3409
3422
|
available_hvac_mode_settings: {
|
|
3410
3423
|
items: {
|
|
3411
3424
|
enum: ['off', 'heat', 'cool', 'heat_cool'],
|
|
@@ -3428,7 +3441,7 @@ export default {
|
|
|
3428
3441
|
},
|
|
3429
3442
|
display_name: { type: 'string' },
|
|
3430
3443
|
fan_mode_setting: {
|
|
3431
|
-
enum: ['auto', 'on'],
|
|
3444
|
+
enum: ['auto', 'on', 'circulate'],
|
|
3432
3445
|
type: 'string',
|
|
3433
3446
|
},
|
|
3434
3447
|
heating_set_point_celsius: {
|
|
@@ -3468,7 +3481,7 @@ export default {
|
|
|
3468
3481
|
},
|
|
3469
3482
|
display_name: { type: 'string' },
|
|
3470
3483
|
fan_mode_setting: {
|
|
3471
|
-
enum: ['auto', 'on'],
|
|
3484
|
+
enum: ['auto', 'on', 'circulate'],
|
|
3472
3485
|
type: 'string',
|
|
3473
3486
|
},
|
|
3474
3487
|
heating_set_point_celsius: {
|
|
@@ -3502,7 +3515,7 @@ export default {
|
|
|
3502
3515
|
},
|
|
3503
3516
|
fan_mode_setting: {
|
|
3504
3517
|
deprecated: true,
|
|
3505
|
-
enum: ['auto', 'on'],
|
|
3518
|
+
enum: ['auto', 'on', 'circulate'],
|
|
3506
3519
|
type: 'string',
|
|
3507
3520
|
'x-deprecated':
|
|
3508
3521
|
'use current_climate_setting.fan_mode_setting instead.',
|
|
@@ -6833,9 +6846,15 @@ export default {
|
|
|
6833
6846
|
},
|
|
6834
6847
|
acs_system_id: { format: 'uuid', type: 'string' },
|
|
6835
6848
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
6849
|
+
card_number: { nullable: true, type: 'string' },
|
|
6836
6850
|
code: { nullable: true, type: 'string' },
|
|
6837
6851
|
created_at: { format: 'date-time', type: 'string' },
|
|
6838
6852
|
display_name: { minLength: 1, type: 'string' },
|
|
6853
|
+
encoded_at: {
|
|
6854
|
+
format: 'date-time',
|
|
6855
|
+
nullable: true,
|
|
6856
|
+
type: 'string',
|
|
6857
|
+
},
|
|
6839
6858
|
ends_at: { type: 'string' },
|
|
6840
6859
|
errors: {
|
|
6841
6860
|
items: {
|
|
@@ -6859,6 +6878,7 @@ export default {
|
|
|
6859
6878
|
type: 'string',
|
|
6860
6879
|
},
|
|
6861
6880
|
external_type_display_name: { type: 'string' },
|
|
6881
|
+
is_encoded: { type: 'boolean' },
|
|
6862
6882
|
is_latest_desired_state_synced_with_provider: {
|
|
6863
6883
|
type: 'boolean',
|
|
6864
6884
|
},
|
|
@@ -7010,9 +7030,15 @@ export default {
|
|
|
7010
7030
|
},
|
|
7011
7031
|
acs_system_id: { format: 'uuid', type: 'string' },
|
|
7012
7032
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
7033
|
+
card_number: { nullable: true, type: 'string' },
|
|
7013
7034
|
code: { nullable: true, type: 'string' },
|
|
7014
7035
|
created_at: { format: 'date-time', type: 'string' },
|
|
7015
7036
|
display_name: { minLength: 1, type: 'string' },
|
|
7037
|
+
encoded_at: {
|
|
7038
|
+
format: 'date-time',
|
|
7039
|
+
nullable: true,
|
|
7040
|
+
type: 'string',
|
|
7041
|
+
},
|
|
7016
7042
|
ends_at: { type: 'string' },
|
|
7017
7043
|
errors: {
|
|
7018
7044
|
items: {
|
|
@@ -7036,6 +7062,7 @@ export default {
|
|
|
7036
7062
|
type: 'string',
|
|
7037
7063
|
},
|
|
7038
7064
|
external_type_display_name: { type: 'string' },
|
|
7065
|
+
is_encoded: { type: 'boolean' },
|
|
7039
7066
|
is_latest_desired_state_synced_with_provider: {
|
|
7040
7067
|
type: 'boolean',
|
|
7041
7068
|
},
|
|
@@ -13050,7 +13077,10 @@ export default {
|
|
|
13050
13077
|
type: 'number',
|
|
13051
13078
|
},
|
|
13052
13079
|
device_id: { format: 'uuid', type: 'string' },
|
|
13053
|
-
fan_mode_setting: {
|
|
13080
|
+
fan_mode_setting: {
|
|
13081
|
+
enum: ['auto', 'on', 'circulate'],
|
|
13082
|
+
type: 'string',
|
|
13083
|
+
},
|
|
13054
13084
|
heating_set_point_celsius: {
|
|
13055
13085
|
format: 'float',
|
|
13056
13086
|
type: 'number',
|
|
@@ -13992,11 +14022,14 @@ export default {
|
|
|
13992
14022
|
device_id: { format: 'uuid', type: 'string' },
|
|
13993
14023
|
fan_mode: {
|
|
13994
14024
|
deprecated: true,
|
|
13995
|
-
enum: ['auto', 'on'],
|
|
14025
|
+
enum: ['auto', 'on', 'circulate'],
|
|
13996
14026
|
type: 'string',
|
|
13997
14027
|
'x-deprecated': 'use fan_mode_setting instead.',
|
|
13998
14028
|
},
|
|
13999
|
-
fan_mode_setting: {
|
|
14029
|
+
fan_mode_setting: {
|
|
14030
|
+
enum: ['auto', 'on', 'circulate'],
|
|
14031
|
+
type: 'string',
|
|
14032
|
+
},
|
|
14000
14033
|
sync: { default: false, type: 'boolean' },
|
|
14001
14034
|
},
|
|
14002
14035
|
required: ['device_id'],
|
|
@@ -14057,7 +14090,10 @@ export default {
|
|
|
14057
14090
|
type: 'number',
|
|
14058
14091
|
},
|
|
14059
14092
|
device_id: { format: 'uuid', type: 'string' },
|
|
14060
|
-
fan_mode_setting: {
|
|
14093
|
+
fan_mode_setting: {
|
|
14094
|
+
enum: ['auto', 'on', 'circulate'],
|
|
14095
|
+
type: 'string',
|
|
14096
|
+
},
|
|
14061
14097
|
heating_set_point_celsius: {
|
|
14062
14098
|
format: 'float',
|
|
14063
14099
|
type: 'number',
|
|
@@ -14125,7 +14161,10 @@ export default {
|
|
|
14125
14161
|
type: 'number',
|
|
14126
14162
|
},
|
|
14127
14163
|
device_id: { format: 'uuid', type: 'string' },
|
|
14128
|
-
fan_mode_setting: {
|
|
14164
|
+
fan_mode_setting: {
|
|
14165
|
+
enum: ['auto', 'on', 'circulate'],
|
|
14166
|
+
type: 'string',
|
|
14167
|
+
},
|
|
14129
14168
|
heating_set_point_celsius: {
|
|
14130
14169
|
format: 'float',
|
|
14131
14170
|
type: 'number',
|