@seamapi/types 1.239.0 → 1.241.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 +1412 -774
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3622 -1409
- package/dist/devicedb.d.cts +30 -30
- package/lib/seam/connect/internal/schemas.d.ts +1 -1
- package/lib/seam/connect/internal/schemas.js +1 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +4 -4
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +1 -1
- package/lib/seam/connect/models/acs/acs-user.d.ts +289 -7
- package/lib/seam/connect/models/acs/acs-user.js +61 -8
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +78 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/activate-climate-preset.d.ts +80 -0
- package/lib/seam/connect/models/action-attempts/activate-climate-preset.js +25 -0
- package/lib/seam/connect/models/action-attempts/activate-climate-preset.js.map +1 -0
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +185 -83
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +185 -83
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js +15 -6
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +263 -119
- package/lib/seam/connect/models/devices/phone.d.ts +187 -85
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +185 -83
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +83 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js +18 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -0
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.d.ts +18 -34
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.js +8 -10
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.js.map +1 -1
- package/lib/seam/connect/models/thermostats/index.d.ts +1 -1
- package/lib/seam/connect/models/thermostats/index.js +1 -1
- package/lib/seam/connect/models/thermostats/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +1000 -569
- package/lib/seam/connect/openapi.js +1218 -657
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1759 -453
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/lib/seam/devicedb/models/device-model.d.ts +8 -8
- package/lib/seam/devicedb/models/manufacturer.d.ts +2 -2
- package/lib/seam/devicedb/route-specs.d.ts +20 -20
- package/package.json +2 -2
- package/src/lib/seam/connect/internal/schemas.ts +2 -2
- package/src/lib/seam/connect/model-types.ts +1 -1
- package/src/lib/seam/connect/models/acs/acs-user.ts +88 -13
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/activate-climate-preset.ts +36 -0
- package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +16 -6
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +24 -0
- package/src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts +16 -19
- package/src/lib/seam/connect/models/thermostats/index.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +1252 -652
- package/src/lib/seam/connect/route-types.ts +2058 -498
- package/src/lib/seam/connect/schemas.ts +1 -1
- package/lib/seam/connect/models/thermostats/climate-setting.d.ts +0 -24
- package/lib/seam/connect/models/thermostats/climate-setting.js +0 -11
- package/lib/seam/connect/models/thermostats/climate-setting.js.map +0 -1
- package/src/lib/seam/connect/models/thermostats/climate-setting.ts +0 -14
|
@@ -1270,97 +1270,157 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1270
1270
|
fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on"]>>;
|
|
1271
1271
|
is_temporary_manual_override_active: z.ZodOptional<z.ZodBoolean>;
|
|
1272
1272
|
current_climate_setting: z.ZodOptional<z.ZodObject<{
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1273
|
+
climate_preset_key: z.ZodOptional<z.ZodString>;
|
|
1274
|
+
can_edit: z.ZodOptional<z.ZodBoolean>;
|
|
1275
|
+
can_delete: z.ZodOptional<z.ZodBoolean>;
|
|
1276
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1277
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
1278
|
+
fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on"]>>>;
|
|
1279
|
+
hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
|
|
1280
|
+
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1281
|
+
heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1282
|
+
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1283
|
+
heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1284
|
+
manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
1279
1285
|
}, "strip", z.ZodTypeAny, {
|
|
1280
|
-
|
|
1281
|
-
|
|
1286
|
+
name?: string | null | undefined;
|
|
1287
|
+
climate_preset_key?: string | undefined;
|
|
1288
|
+
can_edit?: boolean | undefined;
|
|
1289
|
+
can_delete?: boolean | undefined;
|
|
1290
|
+
display_name?: string | undefined;
|
|
1291
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1292
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1282
1293
|
cooling_set_point_celsius?: number | undefined;
|
|
1283
1294
|
heating_set_point_celsius?: number | undefined;
|
|
1284
1295
|
cooling_set_point_fahrenheit?: number | undefined;
|
|
1285
1296
|
heating_set_point_fahrenheit?: number | undefined;
|
|
1297
|
+
manual_override_allowed?: boolean | undefined;
|
|
1286
1298
|
}, {
|
|
1287
|
-
|
|
1288
|
-
|
|
1299
|
+
name?: string | null | undefined;
|
|
1300
|
+
climate_preset_key?: string | undefined;
|
|
1301
|
+
can_edit?: boolean | undefined;
|
|
1302
|
+
can_delete?: boolean | undefined;
|
|
1303
|
+
display_name?: string | undefined;
|
|
1304
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1305
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1289
1306
|
cooling_set_point_celsius?: number | undefined;
|
|
1290
1307
|
heating_set_point_celsius?: number | undefined;
|
|
1291
1308
|
cooling_set_point_fahrenheit?: number | undefined;
|
|
1292
1309
|
heating_set_point_fahrenheit?: number | undefined;
|
|
1310
|
+
manual_override_allowed?: boolean | undefined;
|
|
1293
1311
|
}>>;
|
|
1294
1312
|
default_climate_setting: z.ZodOptional<z.ZodObject<{
|
|
1295
|
-
|
|
1313
|
+
climate_preset_key: z.ZodOptional<z.ZodString>;
|
|
1314
|
+
can_edit: z.ZodOptional<z.ZodBoolean>;
|
|
1315
|
+
can_delete: z.ZodOptional<z.ZodBoolean>;
|
|
1316
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1317
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
1318
|
+
fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on"]>>>;
|
|
1319
|
+
hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
|
|
1320
|
+
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1321
|
+
heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1322
|
+
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1323
|
+
heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1324
|
+
manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
1325
|
+
}, "strip", z.ZodTypeAny, {
|
|
1326
|
+
name?: string | null | undefined;
|
|
1327
|
+
climate_preset_key?: string | undefined;
|
|
1328
|
+
can_edit?: boolean | undefined;
|
|
1329
|
+
can_delete?: boolean | undefined;
|
|
1330
|
+
display_name?: string | undefined;
|
|
1331
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1332
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1333
|
+
cooling_set_point_celsius?: number | undefined;
|
|
1334
|
+
heating_set_point_celsius?: number | undefined;
|
|
1335
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
1336
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
1337
|
+
manual_override_allowed?: boolean | undefined;
|
|
1338
|
+
}, {
|
|
1339
|
+
name?: string | null | undefined;
|
|
1340
|
+
climate_preset_key?: string | undefined;
|
|
1341
|
+
can_edit?: boolean | undefined;
|
|
1342
|
+
can_delete?: boolean | undefined;
|
|
1343
|
+
display_name?: string | undefined;
|
|
1344
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1345
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1346
|
+
cooling_set_point_celsius?: number | undefined;
|
|
1347
|
+
heating_set_point_celsius?: number | undefined;
|
|
1348
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
1349
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
1350
|
+
manual_override_allowed?: boolean | undefined;
|
|
1351
|
+
}>>;
|
|
1352
|
+
available_climate_presets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1353
|
+
climate_preset_key: z.ZodString;
|
|
1354
|
+
can_edit: z.ZodBoolean;
|
|
1355
|
+
can_delete: z.ZodBoolean;
|
|
1356
|
+
name: z.ZodNullable<z.ZodString>;
|
|
1357
|
+
display_name: z.ZodString;
|
|
1358
|
+
fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on"]>>;
|
|
1359
|
+
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
|
|
1296
1360
|
cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
1297
1361
|
heating_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
1298
1362
|
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
1299
1363
|
heating_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
1300
1364
|
manual_override_allowed: z.ZodBoolean;
|
|
1301
1365
|
}, "strip", z.ZodTypeAny, {
|
|
1302
|
-
|
|
1366
|
+
name: string | null;
|
|
1367
|
+
climate_preset_key: string;
|
|
1368
|
+
can_edit: boolean;
|
|
1369
|
+
can_delete: boolean;
|
|
1370
|
+
display_name: string;
|
|
1303
1371
|
manual_override_allowed: boolean;
|
|
1372
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1373
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1304
1374
|
cooling_set_point_celsius?: number | undefined;
|
|
1305
1375
|
heating_set_point_celsius?: number | undefined;
|
|
1306
1376
|
cooling_set_point_fahrenheit?: number | undefined;
|
|
1307
1377
|
heating_set_point_fahrenheit?: number | undefined;
|
|
1308
1378
|
}, {
|
|
1309
|
-
|
|
1379
|
+
name: string | null;
|
|
1380
|
+
climate_preset_key: string;
|
|
1381
|
+
can_edit: boolean;
|
|
1382
|
+
can_delete: boolean;
|
|
1383
|
+
display_name: string;
|
|
1310
1384
|
manual_override_allowed: boolean;
|
|
1385
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1386
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1311
1387
|
cooling_set_point_celsius?: number | undefined;
|
|
1312
1388
|
heating_set_point_celsius?: number | undefined;
|
|
1313
1389
|
cooling_set_point_fahrenheit?: number | undefined;
|
|
1314
1390
|
heating_set_point_fahrenheit?: number | undefined;
|
|
1315
|
-
}>>;
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
schedule_type: z.ZodLiteral<"time_bound">;
|
|
1391
|
+
}>, "many">>;
|
|
1392
|
+
fallback_climate_preset_key: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
1393
|
+
active_thermostat_schedule: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1394
|
+
thermostat_schedule_id: z.ZodString;
|
|
1320
1395
|
device_id: z.ZodString;
|
|
1321
1396
|
name: z.ZodOptional<z.ZodString>;
|
|
1322
|
-
|
|
1323
|
-
|
|
1397
|
+
climate_preset_key: z.ZodString;
|
|
1398
|
+
max_override_period_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1399
|
+
starts_at: z.ZodString;
|
|
1400
|
+
ends_at: z.ZodString;
|
|
1324
1401
|
created_at: z.ZodString;
|
|
1325
1402
|
errors: z.ZodAny;
|
|
1326
|
-
}, {
|
|
1327
|
-
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
|
|
1328
|
-
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1329
|
-
heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1330
|
-
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1331
|
-
heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1332
|
-
manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
1333
|
-
}>, "strip", z.ZodTypeAny, {
|
|
1403
|
+
}, "strip", z.ZodTypeAny, {
|
|
1334
1404
|
created_at: string;
|
|
1335
|
-
|
|
1336
|
-
|
|
1405
|
+
climate_preset_key: string;
|
|
1406
|
+
thermostat_schedule_id: string;
|
|
1337
1407
|
device_id: string;
|
|
1338
|
-
|
|
1339
|
-
|
|
1408
|
+
max_override_period_minutes: number;
|
|
1409
|
+
starts_at: string;
|
|
1410
|
+
ends_at: string;
|
|
1340
1411
|
name?: string | undefined;
|
|
1341
1412
|
errors?: any;
|
|
1342
|
-
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1343
|
-
cooling_set_point_celsius?: number | undefined;
|
|
1344
|
-
heating_set_point_celsius?: number | undefined;
|
|
1345
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
1346
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
1347
|
-
manual_override_allowed?: boolean | undefined;
|
|
1348
1413
|
}, {
|
|
1349
1414
|
created_at: string;
|
|
1350
|
-
|
|
1351
|
-
|
|
1415
|
+
climate_preset_key: string;
|
|
1416
|
+
thermostat_schedule_id: string;
|
|
1352
1417
|
device_id: string;
|
|
1353
|
-
|
|
1354
|
-
|
|
1418
|
+
starts_at: string;
|
|
1419
|
+
ends_at: string;
|
|
1355
1420
|
name?: string | undefined;
|
|
1356
1421
|
errors?: any;
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
heating_set_point_celsius?: number | undefined;
|
|
1360
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
1361
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
1362
|
-
manual_override_allowed?: boolean | undefined;
|
|
1363
|
-
}>>;
|
|
1422
|
+
max_override_period_minutes?: number | undefined;
|
|
1423
|
+
}>>>>;
|
|
1364
1424
|
min_cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
1365
1425
|
min_cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
1366
1426
|
max_cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1372,6 +1432,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1372
1432
|
min_heating_cooling_delta_celsius: z.ZodOptional<z.ZodNumber>;
|
|
1373
1433
|
min_heating_cooling_delta_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
1374
1434
|
}, "strip", z.ZodTypeAny, {
|
|
1435
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1375
1436
|
temperature_fahrenheit?: number | undefined;
|
|
1376
1437
|
temperature_celsius?: number | undefined;
|
|
1377
1438
|
relative_humidity?: number | undefined;
|
|
@@ -1379,41 +1440,61 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1379
1440
|
is_heating?: boolean | undefined;
|
|
1380
1441
|
is_cooling?: boolean | undefined;
|
|
1381
1442
|
is_fan_running?: boolean | undefined;
|
|
1382
|
-
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1383
1443
|
is_temporary_manual_override_active?: boolean | undefined;
|
|
1384
1444
|
current_climate_setting?: {
|
|
1385
|
-
|
|
1386
|
-
|
|
1445
|
+
name?: string | null | undefined;
|
|
1446
|
+
climate_preset_key?: string | undefined;
|
|
1447
|
+
can_edit?: boolean | undefined;
|
|
1448
|
+
can_delete?: boolean | undefined;
|
|
1449
|
+
display_name?: string | undefined;
|
|
1450
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1451
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1387
1452
|
cooling_set_point_celsius?: number | undefined;
|
|
1388
1453
|
heating_set_point_celsius?: number | undefined;
|
|
1389
1454
|
cooling_set_point_fahrenheit?: number | undefined;
|
|
1390
1455
|
heating_set_point_fahrenheit?: number | undefined;
|
|
1456
|
+
manual_override_allowed?: boolean | undefined;
|
|
1391
1457
|
} | undefined;
|
|
1392
1458
|
default_climate_setting?: {
|
|
1393
|
-
|
|
1394
|
-
|
|
1459
|
+
name?: string | null | undefined;
|
|
1460
|
+
climate_preset_key?: string | undefined;
|
|
1461
|
+
can_edit?: boolean | undefined;
|
|
1462
|
+
can_delete?: boolean | undefined;
|
|
1463
|
+
display_name?: string | undefined;
|
|
1464
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1465
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1395
1466
|
cooling_set_point_celsius?: number | undefined;
|
|
1396
1467
|
heating_set_point_celsius?: number | undefined;
|
|
1397
1468
|
cooling_set_point_fahrenheit?: number | undefined;
|
|
1398
1469
|
heating_set_point_fahrenheit?: number | undefined;
|
|
1470
|
+
manual_override_allowed?: boolean | undefined;
|
|
1399
1471
|
} | undefined;
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
name?: string | undefined;
|
|
1409
|
-
errors?: any;
|
|
1472
|
+
available_climate_presets?: {
|
|
1473
|
+
name: string | null;
|
|
1474
|
+
climate_preset_key: string;
|
|
1475
|
+
can_edit: boolean;
|
|
1476
|
+
can_delete: boolean;
|
|
1477
|
+
display_name: string;
|
|
1478
|
+
manual_override_allowed: boolean;
|
|
1479
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1410
1480
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1411
1481
|
cooling_set_point_celsius?: number | undefined;
|
|
1412
1482
|
heating_set_point_celsius?: number | undefined;
|
|
1413
1483
|
cooling_set_point_fahrenheit?: number | undefined;
|
|
1414
1484
|
heating_set_point_fahrenheit?: number | undefined;
|
|
1415
|
-
|
|
1416
|
-
|
|
1485
|
+
}[] | undefined;
|
|
1486
|
+
fallback_climate_preset_key?: string | null | undefined;
|
|
1487
|
+
active_thermostat_schedule?: {
|
|
1488
|
+
created_at: string;
|
|
1489
|
+
climate_preset_key: string;
|
|
1490
|
+
thermostat_schedule_id: string;
|
|
1491
|
+
device_id: string;
|
|
1492
|
+
max_override_period_minutes: number;
|
|
1493
|
+
starts_at: string;
|
|
1494
|
+
ends_at: string;
|
|
1495
|
+
name?: string | undefined;
|
|
1496
|
+
errors?: any;
|
|
1497
|
+
} | null | undefined;
|
|
1417
1498
|
min_cooling_set_point_celsius?: number | undefined;
|
|
1418
1499
|
min_cooling_set_point_fahrenheit?: number | undefined;
|
|
1419
1500
|
max_cooling_set_point_celsius?: number | undefined;
|
|
@@ -1425,6 +1506,7 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1425
1506
|
min_heating_cooling_delta_celsius?: number | undefined;
|
|
1426
1507
|
min_heating_cooling_delta_fahrenheit?: number | undefined;
|
|
1427
1508
|
}, {
|
|
1509
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1428
1510
|
temperature_fahrenheit?: number | undefined;
|
|
1429
1511
|
temperature_celsius?: number | undefined;
|
|
1430
1512
|
relative_humidity?: number | undefined;
|
|
@@ -1432,41 +1514,61 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
|
|
|
1432
1514
|
is_heating?: boolean | undefined;
|
|
1433
1515
|
is_cooling?: boolean | undefined;
|
|
1434
1516
|
is_fan_running?: boolean | undefined;
|
|
1435
|
-
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1436
1517
|
is_temporary_manual_override_active?: boolean | undefined;
|
|
1437
1518
|
current_climate_setting?: {
|
|
1438
|
-
|
|
1439
|
-
|
|
1519
|
+
name?: string | null | undefined;
|
|
1520
|
+
climate_preset_key?: string | undefined;
|
|
1521
|
+
can_edit?: boolean | undefined;
|
|
1522
|
+
can_delete?: boolean | undefined;
|
|
1523
|
+
display_name?: string | undefined;
|
|
1524
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1525
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1440
1526
|
cooling_set_point_celsius?: number | undefined;
|
|
1441
1527
|
heating_set_point_celsius?: number | undefined;
|
|
1442
1528
|
cooling_set_point_fahrenheit?: number | undefined;
|
|
1443
1529
|
heating_set_point_fahrenheit?: number | undefined;
|
|
1530
|
+
manual_override_allowed?: boolean | undefined;
|
|
1444
1531
|
} | undefined;
|
|
1445
1532
|
default_climate_setting?: {
|
|
1446
|
-
|
|
1447
|
-
|
|
1533
|
+
name?: string | null | undefined;
|
|
1534
|
+
climate_preset_key?: string | undefined;
|
|
1535
|
+
can_edit?: boolean | undefined;
|
|
1536
|
+
can_delete?: boolean | undefined;
|
|
1537
|
+
display_name?: string | undefined;
|
|
1538
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1539
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1448
1540
|
cooling_set_point_celsius?: number | undefined;
|
|
1449
1541
|
heating_set_point_celsius?: number | undefined;
|
|
1450
1542
|
cooling_set_point_fahrenheit?: number | undefined;
|
|
1451
1543
|
heating_set_point_fahrenheit?: number | undefined;
|
|
1544
|
+
manual_override_allowed?: boolean | undefined;
|
|
1452
1545
|
} | undefined;
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
name?: string | undefined;
|
|
1462
|
-
errors?: any;
|
|
1546
|
+
available_climate_presets?: {
|
|
1547
|
+
name: string | null;
|
|
1548
|
+
climate_preset_key: string;
|
|
1549
|
+
can_edit: boolean;
|
|
1550
|
+
can_delete: boolean;
|
|
1551
|
+
display_name: string;
|
|
1552
|
+
manual_override_allowed: boolean;
|
|
1553
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
1463
1554
|
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
1464
1555
|
cooling_set_point_celsius?: number | undefined;
|
|
1465
1556
|
heating_set_point_celsius?: number | undefined;
|
|
1466
1557
|
cooling_set_point_fahrenheit?: number | undefined;
|
|
1467
1558
|
heating_set_point_fahrenheit?: number | undefined;
|
|
1468
|
-
|
|
1469
|
-
|
|
1559
|
+
}[] | undefined;
|
|
1560
|
+
fallback_climate_preset_key?: string | null | undefined;
|
|
1561
|
+
active_thermostat_schedule?: {
|
|
1562
|
+
created_at: string;
|
|
1563
|
+
climate_preset_key: string;
|
|
1564
|
+
thermostat_schedule_id: string;
|
|
1565
|
+
device_id: string;
|
|
1566
|
+
starts_at: string;
|
|
1567
|
+
ends_at: string;
|
|
1568
|
+
name?: string | undefined;
|
|
1569
|
+
errors?: any;
|
|
1570
|
+
max_override_period_minutes?: number | undefined;
|
|
1571
|
+
} | null | undefined;
|
|
1470
1572
|
min_cooling_set_point_celsius?: number | undefined;
|
|
1471
1573
|
min_cooling_set_point_fahrenheit?: number | undefined;
|
|
1472
1574
|
max_cooling_set_point_celsius?: number | undefined;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const climate_preset: z.ZodObject<{
|
|
3
|
+
climate_preset_key: z.ZodString;
|
|
4
|
+
can_edit: z.ZodBoolean;
|
|
5
|
+
can_delete: z.ZodBoolean;
|
|
6
|
+
name: z.ZodNullable<z.ZodString>;
|
|
7
|
+
display_name: z.ZodString;
|
|
8
|
+
fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on"]>>;
|
|
9
|
+
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
|
|
10
|
+
cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
heating_set_point_celsius: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
heating_set_point_fahrenheit: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
manual_override_allowed: z.ZodBoolean;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
name: string | null;
|
|
17
|
+
climate_preset_key: string;
|
|
18
|
+
can_edit: boolean;
|
|
19
|
+
can_delete: boolean;
|
|
20
|
+
display_name: string;
|
|
21
|
+
manual_override_allowed: boolean;
|
|
22
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
23
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
24
|
+
cooling_set_point_celsius?: number | undefined;
|
|
25
|
+
heating_set_point_celsius?: number | undefined;
|
|
26
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
27
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
name: string | null;
|
|
30
|
+
climate_preset_key: string;
|
|
31
|
+
can_edit: boolean;
|
|
32
|
+
can_delete: boolean;
|
|
33
|
+
display_name: string;
|
|
34
|
+
manual_override_allowed: boolean;
|
|
35
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
36
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
37
|
+
cooling_set_point_celsius?: number | undefined;
|
|
38
|
+
heating_set_point_celsius?: number | undefined;
|
|
39
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
40
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export type ClimatePreset = z.infer<typeof climate_preset>;
|
|
43
|
+
export declare const climate_setting: z.ZodObject<{
|
|
44
|
+
climate_preset_key: z.ZodOptional<z.ZodString>;
|
|
45
|
+
can_edit: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
can_delete: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
49
|
+
fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on"]>>>;
|
|
50
|
+
hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
|
|
51
|
+
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
52
|
+
heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
53
|
+
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
54
|
+
heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
55
|
+
manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
name?: string | null | undefined;
|
|
58
|
+
climate_preset_key?: string | undefined;
|
|
59
|
+
can_edit?: boolean | undefined;
|
|
60
|
+
can_delete?: boolean | undefined;
|
|
61
|
+
display_name?: string | undefined;
|
|
62
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
63
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
64
|
+
cooling_set_point_celsius?: number | undefined;
|
|
65
|
+
heating_set_point_celsius?: number | undefined;
|
|
66
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
67
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
68
|
+
manual_override_allowed?: boolean | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
name?: string | null | undefined;
|
|
71
|
+
climate_preset_key?: string | undefined;
|
|
72
|
+
can_edit?: boolean | undefined;
|
|
73
|
+
can_delete?: boolean | undefined;
|
|
74
|
+
display_name?: string | undefined;
|
|
75
|
+
fan_mode_setting?: "auto" | "on" | undefined;
|
|
76
|
+
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
77
|
+
cooling_set_point_celsius?: number | undefined;
|
|
78
|
+
heating_set_point_celsius?: number | undefined;
|
|
79
|
+
cooling_set_point_fahrenheit?: number | undefined;
|
|
80
|
+
heating_set_point_fahrenheit?: number | undefined;
|
|
81
|
+
manual_override_allowed?: boolean | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
export type ClimateSetting = z.infer<typeof climate_setting>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { fan_mode_setting, hvac_mode_setting } from './modes.js';
|
|
3
|
+
export const climate_preset = z.object({
|
|
4
|
+
climate_preset_key: z.string(),
|
|
5
|
+
can_edit: z.boolean(),
|
|
6
|
+
can_delete: z.boolean(),
|
|
7
|
+
name: z.string().nullable(),
|
|
8
|
+
display_name: z.string(),
|
|
9
|
+
fan_mode_setting: fan_mode_setting.optional(),
|
|
10
|
+
hvac_mode_setting: hvac_mode_setting.optional(),
|
|
11
|
+
cooling_set_point_celsius: z.number().optional(),
|
|
12
|
+
heating_set_point_celsius: z.number().optional(),
|
|
13
|
+
cooling_set_point_fahrenheit: z.number().optional(),
|
|
14
|
+
heating_set_point_fahrenheit: z.number().optional(),
|
|
15
|
+
manual_override_allowed: z.boolean(),
|
|
16
|
+
});
|
|
17
|
+
export const climate_setting = climate_preset.partial();
|
|
18
|
+
//# sourceMappingURL=climate-preset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"climate-preset.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,gBAAgB,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IAC7C,iBAAiB,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IAC/C,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnD,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE;CACrC,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,EAAE,CAAA"}
|
|
@@ -1,49 +1,33 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
schedule_type: z.ZodLiteral<"time_bound">;
|
|
2
|
+
export declare const thermostat_schedule: z.ZodObject<{
|
|
3
|
+
thermostat_schedule_id: z.ZodString;
|
|
5
4
|
device_id: z.ZodString;
|
|
6
5
|
name: z.ZodOptional<z.ZodString>;
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
climate_preset_key: z.ZodString;
|
|
7
|
+
max_override_period_minutes: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
starts_at: z.ZodString;
|
|
9
|
+
ends_at: z.ZodString;
|
|
9
10
|
created_at: z.ZodString;
|
|
10
11
|
errors: z.ZodAny;
|
|
11
|
-
}, {
|
|
12
|
-
hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
|
|
13
|
-
cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
14
|
-
heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
-
cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
16
|
-
heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
17
|
-
manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
13
|
created_at: string;
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
climate_preset_key: string;
|
|
15
|
+
thermostat_schedule_id: string;
|
|
22
16
|
device_id: string;
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
max_override_period_minutes: number;
|
|
18
|
+
starts_at: string;
|
|
19
|
+
ends_at: string;
|
|
25
20
|
name?: string | undefined;
|
|
26
21
|
errors?: any;
|
|
27
|
-
hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
|
|
28
|
-
cooling_set_point_celsius?: number | undefined;
|
|
29
|
-
heating_set_point_celsius?: number | undefined;
|
|
30
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
31
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
32
|
-
manual_override_allowed?: boolean | undefined;
|
|
33
22
|
}, {
|
|
34
23
|
created_at: string;
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
climate_preset_key: string;
|
|
25
|
+
thermostat_schedule_id: string;
|
|
37
26
|
device_id: string;
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
starts_at: string;
|
|
28
|
+
ends_at: string;
|
|
40
29
|
name?: string | undefined;
|
|
41
30
|
errors?: any;
|
|
42
|
-
|
|
43
|
-
cooling_set_point_celsius?: number | undefined;
|
|
44
|
-
heating_set_point_celsius?: number | undefined;
|
|
45
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
46
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
47
|
-
manual_override_allowed?: boolean | undefined;
|
|
31
|
+
max_override_period_minutes?: number | undefined;
|
|
48
32
|
}>;
|
|
49
|
-
export type
|
|
33
|
+
export type ThermostatSchedule = z.infer<typeof thermostat_schedule>;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
.object({
|
|
5
|
-
climate_setting_schedule_id: z.string().uuid(),
|
|
6
|
-
schedule_type: z.literal('time_bound'),
|
|
2
|
+
export const thermostat_schedule = z.object({
|
|
3
|
+
thermostat_schedule_id: z.string().uuid(),
|
|
7
4
|
device_id: z.string().uuid(),
|
|
8
5
|
name: z.string().optional(),
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
climate_preset_key: z.string(),
|
|
7
|
+
max_override_period_minutes: z.number().int().nonnegative().default(0),
|
|
8
|
+
starts_at: z.string().datetime(),
|
|
9
|
+
ends_at: z.string().datetime(),
|
|
11
10
|
created_at: z.string().datetime(),
|
|
12
11
|
errors: z
|
|
13
12
|
.any()
|
|
14
|
-
.describe('Collection of errors associated with the
|
|
15
|
-
})
|
|
16
|
-
.merge(climate_setting.partial());
|
|
13
|
+
.describe('Collection of errors associated with the thermostat schedule, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.'),
|
|
14
|
+
});
|
|
17
15
|
//# sourceMappingURL=climate-setting-schedule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"climate-setting-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,
|
|
1
|
+
{"version":3,"file":"climate-setting-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACtE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,CAAC;SACN,GAAG,EAAE;SACL,QAAQ,CACP,+ZAA+Z,CACha;CACJ,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,YAAY,CAAA"}
|