@seamapi/types 1.395.1 → 1.395.3

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 (71) hide show
  1. package/dist/connect.cjs +57 -18
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +694 -403
  4. package/lib/seam/connect/model-types.d.ts +1 -1
  5. package/lib/seam/connect/models/access-grants/access-grant.d.ts +2 -2
  6. package/lib/seam/connect/models/access-grants/access-method.d.ts +2 -2
  7. package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
  8. package/lib/seam/connect/models/acs/acs-credential-pool.d.ts +2 -2
  9. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.d.ts +4 -4
  10. package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
  11. package/lib/seam/connect/models/acs/acs-encoder.d.ts +2 -2
  12. package/lib/seam/connect/models/acs/acs-system.d.ts +2 -2
  13. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +4 -4
  14. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +24 -24
  15. package/lib/seam/connect/models/action-attempts/encode-access-method.d.ts +4 -4
  16. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
  17. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +12 -12
  18. package/lib/seam/connect/models/bridges/bridge-connected-system.d.ts +2 -2
  19. package/lib/seam/connect/models/bridges/bridge.d.ts +2 -2
  20. package/lib/seam/connect/models/client-sessions/client-session.d.ts +2 -2
  21. package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +2 -2
  22. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +102 -12
  23. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  24. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +25 -20
  25. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +25 -20
  26. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +2 -7
  27. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  28. package/lib/seam/connect/models/devices/device.d.ts +37 -30
  29. package/lib/seam/connect/models/devices/phone.d.ts +2 -2
  30. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +28 -23
  31. package/lib/seam/connect/models/events/access-codes.d.ts +68 -68
  32. package/lib/seam/connect/models/events/access-grants.d.ts +20 -20
  33. package/lib/seam/connect/models/events/access-methods.d.ts +12 -12
  34. package/lib/seam/connect/models/events/acs/access-groups.d.ts +4 -4
  35. package/lib/seam/connect/models/events/acs/common.d.ts +2 -2
  36. package/lib/seam/connect/models/events/acs/credentials.d.ts +16 -16
  37. package/lib/seam/connect/models/events/acs/encoders.d.ts +8 -8
  38. package/lib/seam/connect/models/events/acs/entrances.d.ts +8 -8
  39. package/lib/seam/connect/models/events/acs/index.d.ts +28 -28
  40. package/lib/seam/connect/models/events/acs/systems.d.ts +12 -12
  41. package/lib/seam/connect/models/events/acs/users.d.ts +8 -8
  42. package/lib/seam/connect/models/events/action-attempts.d.ts +16 -16
  43. package/lib/seam/connect/models/events/client-sessions.d.ts +4 -4
  44. package/lib/seam/connect/models/events/common.d.ts +2 -2
  45. package/lib/seam/connect/models/events/connect-webviews.d.ts +8 -8
  46. package/lib/seam/connect/models/events/connected-accounts.d.ts +28 -28
  47. package/lib/seam/connect/models/events/devices.d.ts +132 -132
  48. package/lib/seam/connect/models/events/enrollment-automations.d.ts +4 -4
  49. package/lib/seam/connect/models/events/phones.d.ts +4 -4
  50. package/lib/seam/connect/models/events/seam-event.d.ts +176 -176
  51. package/lib/seam/connect/models/instant-keys/instant-key.d.ts +2 -2
  52. package/lib/seam/connect/models/locations/location.d.ts +2 -2
  53. package/lib/seam/connect/models/thermostats/thermostat-program.d.ts +6 -6
  54. package/lib/seam/connect/models/thermostats/thermostat-program.js +5 -5
  55. package/lib/seam/connect/models/thermostats/thermostat-program.js.map +1 -1
  56. package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +6 -3
  57. package/lib/seam/connect/models/thermostats/thermostat-schedule.js +5 -1
  58. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
  59. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  60. package/lib/seam/connect/openapi.d.ts +35 -8
  61. package/lib/seam/connect/openapi.js +43 -9
  62. package/lib/seam/connect/openapi.js.map +1 -1
  63. package/lib/seam/connect/route-types.d.ts +136 -102
  64. package/package.json +2 -2
  65. package/src/lib/seam/connect/model-types.ts +2 -0
  66. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +4 -0
  67. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +2 -7
  68. package/src/lib/seam/connect/models/thermostats/thermostat-program.ts +7 -5
  69. package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +7 -1
  70. package/src/lib/seam/connect/openapi.ts +47 -10
  71. package/src/lib/seam/connect/route-types.ts +617 -505
@@ -218,12 +218,13 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
218
218
  active_thermostat_schedule: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
219
219
  thermostat_schedule_id: z.ZodString;
220
220
  device_id: z.ZodString;
221
- name: z.ZodOptional<z.ZodString>;
221
+ name: z.ZodNullable<z.ZodString>;
222
222
  climate_preset_key: z.ZodString;
223
223
  max_override_period_minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
224
224
  starts_at: z.ZodString;
225
225
  is_override_allowed: z.ZodOptional<z.ZodBoolean>;
226
226
  ends_at: z.ZodString;
227
+ workspace_id: z.ZodString;
227
228
  created_at: z.ZodString;
228
229
  errors: z.ZodArray<z.ZodObject<{
229
230
  error_code: z.ZodString;
@@ -236,8 +237,10 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
236
237
  error_code: string;
237
238
  }>, "many">;
238
239
  }, "strip", z.ZodTypeAny, {
240
+ name: string | null;
239
241
  climate_preset_key: string;
240
242
  device_id: string;
243
+ workspace_id: string;
241
244
  created_at: string;
242
245
  thermostat_schedule_id: string;
243
246
  starts_at: string;
@@ -246,12 +249,13 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
246
249
  message: string;
247
250
  error_code: string;
248
251
  }[];
249
- name?: string | undefined;
250
252
  max_override_period_minutes?: number | null | undefined;
251
253
  is_override_allowed?: boolean | undefined;
252
254
  }, {
255
+ name: string | null;
253
256
  climate_preset_key: string;
254
257
  device_id: string;
258
+ workspace_id: string;
255
259
  created_at: string;
256
260
  thermostat_schedule_id: string;
257
261
  starts_at: string;
@@ -260,14 +264,13 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
260
264
  message: string;
261
265
  error_code: string;
262
266
  }[];
263
- name?: string | undefined;
264
267
  max_override_period_minutes?: number | null | undefined;
265
268
  is_override_allowed?: boolean | undefined;
266
269
  }>>>>;
267
- thermostat_daily_programs: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
270
+ thermostat_daily_programs: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
268
271
  thermostat_daily_program_id: z.ZodString;
269
272
  device_id: z.ZodString;
270
- name: z.ZodOptional<z.ZodString>;
273
+ name: z.ZodNullable<z.ZodString>;
271
274
  periods: z.ZodArray<z.ZodObject<{
272
275
  starts_at_time: z.ZodString;
273
276
  climate_preset_key: z.ZodString;
@@ -278,28 +281,30 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
278
281
  climate_preset_key: string;
279
282
  starts_at_time: string;
280
283
  }>, "many">;
284
+ workspace_id: z.ZodString;
281
285
  created_at: z.ZodString;
282
286
  }, "strip", z.ZodTypeAny, {
287
+ name: string | null;
283
288
  thermostat_daily_program_id: string;
284
289
  device_id: string;
285
290
  periods: {
286
291
  climate_preset_key: string;
287
292
  starts_at_time: string;
288
293
  }[];
294
+ workspace_id: string;
289
295
  created_at: string;
290
- name?: string | undefined;
291
296
  }, {
297
+ name: string | null;
292
298
  thermostat_daily_program_id: string;
293
299
  device_id: string;
294
300
  periods: {
295
301
  climate_preset_key: string;
296
302
  starts_at_time: string;
297
303
  }[];
304
+ workspace_id: string;
298
305
  created_at: string;
299
- name?: string | undefined;
300
- }>, "many">>>>;
301
- thermostat_weekly_program: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
302
- device_id: z.ZodString;
306
+ }>, "many">>>;
307
+ thermostat_weekly_program: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
303
308
  monday_program_id: z.ZodNullable<z.ZodString>;
304
309
  tuesday_program_id: z.ZodNullable<z.ZodString>;
305
310
  wednesday_program_id: z.ZodNullable<z.ZodString>;
@@ -309,7 +314,6 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
309
314
  sunday_program_id: z.ZodNullable<z.ZodString>;
310
315
  created_at: z.ZodString;
311
316
  }, "strip", z.ZodTypeAny, {
312
- device_id: string;
313
317
  created_at: string;
314
318
  monday_program_id: string | null;
315
319
  tuesday_program_id: string | null;
@@ -319,7 +323,6 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
319
323
  saturday_program_id: string | null;
320
324
  sunday_program_id: string | null;
321
325
  }, {
322
- device_id: string;
323
326
  created_at: string;
324
327
  monday_program_id: string | null;
325
328
  tuesday_program_id: string | null;
@@ -413,8 +416,10 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
413
416
  }[] | undefined;
414
417
  fallback_climate_preset_key?: string | null | undefined;
415
418
  active_thermostat_schedule?: {
419
+ name: string | null;
416
420
  climate_preset_key: string;
417
421
  device_id: string;
422
+ workspace_id: string;
418
423
  created_at: string;
419
424
  thermostat_schedule_id: string;
420
425
  starts_at: string;
@@ -423,22 +428,21 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
423
428
  message: string;
424
429
  error_code: string;
425
430
  }[];
426
- name?: string | undefined;
427
431
  max_override_period_minutes?: number | null | undefined;
428
432
  is_override_allowed?: boolean | undefined;
429
433
  } | null | undefined;
430
434
  thermostat_daily_programs?: {
435
+ name: string | null;
431
436
  thermostat_daily_program_id: string;
432
437
  device_id: string;
433
438
  periods: {
434
439
  climate_preset_key: string;
435
440
  starts_at_time: string;
436
441
  }[];
442
+ workspace_id: string;
437
443
  created_at: string;
438
- name?: string | undefined;
439
- }[] | null | undefined;
444
+ }[] | undefined;
440
445
  thermostat_weekly_program?: {
441
- device_id: string;
442
446
  created_at: string;
443
447
  monday_program_id: string | null;
444
448
  tuesday_program_id: string | null;
@@ -522,8 +526,10 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
522
526
  }[] | undefined;
523
527
  fallback_climate_preset_key?: string | null | undefined;
524
528
  active_thermostat_schedule?: {
529
+ name: string | null;
525
530
  climate_preset_key: string;
526
531
  device_id: string;
532
+ workspace_id: string;
527
533
  created_at: string;
528
534
  thermostat_schedule_id: string;
529
535
  starts_at: string;
@@ -532,22 +538,21 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
532
538
  message: string;
533
539
  error_code: string;
534
540
  }[];
535
- name?: string | undefined;
536
541
  max_override_period_minutes?: number | null | undefined;
537
542
  is_override_allowed?: boolean | undefined;
538
543
  } | null | undefined;
539
544
  thermostat_daily_programs?: {
545
+ name: string | null;
540
546
  thermostat_daily_program_id: string;
541
547
  device_id: string;
542
548
  periods: {
543
549
  climate_preset_key: string;
544
550
  starts_at_time: string;
545
551
  }[];
552
+ workspace_id: string;
546
553
  created_at: string;
547
- name?: string | undefined;
548
- }[] | null | undefined;
554
+ }[] | undefined;
549
555
  thermostat_weekly_program?: {
550
- device_id: string;
551
556
  created_at: string;
552
557
  monday_program_id: string | null;
553
558
  tuesday_program_id: string | null;
@@ -143,12 +143,13 @@ export declare const thermostat_capability_properties: z.ZodObject<{
143
143
  active_thermostat_schedule: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
144
144
  thermostat_schedule_id: z.ZodString;
145
145
  device_id: z.ZodString;
146
- name: z.ZodOptional<z.ZodString>;
146
+ name: z.ZodNullable<z.ZodString>;
147
147
  climate_preset_key: z.ZodString;
148
148
  max_override_period_minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
149
149
  starts_at: z.ZodString;
150
150
  is_override_allowed: z.ZodOptional<z.ZodBoolean>;
151
151
  ends_at: z.ZodString;
152
+ workspace_id: z.ZodString;
152
153
  created_at: z.ZodString;
153
154
  errors: z.ZodArray<z.ZodObject<{
154
155
  error_code: z.ZodString;
@@ -161,8 +162,10 @@ export declare const thermostat_capability_properties: z.ZodObject<{
161
162
  error_code: string;
162
163
  }>, "many">;
163
164
  }, "strip", z.ZodTypeAny, {
165
+ name: string | null;
164
166
  climate_preset_key: string;
165
167
  device_id: string;
168
+ workspace_id: string;
166
169
  created_at: string;
167
170
  thermostat_schedule_id: string;
168
171
  starts_at: string;
@@ -171,12 +174,13 @@ export declare const thermostat_capability_properties: z.ZodObject<{
171
174
  message: string;
172
175
  error_code: string;
173
176
  }[];
174
- name?: string | undefined;
175
177
  max_override_period_minutes?: number | null | undefined;
176
178
  is_override_allowed?: boolean | undefined;
177
179
  }, {
180
+ name: string | null;
178
181
  climate_preset_key: string;
179
182
  device_id: string;
183
+ workspace_id: string;
180
184
  created_at: string;
181
185
  thermostat_schedule_id: string;
182
186
  starts_at: string;
@@ -185,14 +189,13 @@ export declare const thermostat_capability_properties: z.ZodObject<{
185
189
  message: string;
186
190
  error_code: string;
187
191
  }[];
188
- name?: string | undefined;
189
192
  max_override_period_minutes?: number | null | undefined;
190
193
  is_override_allowed?: boolean | undefined;
191
194
  }>>>>;
192
- thermostat_daily_programs: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
195
+ thermostat_daily_programs: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
193
196
  thermostat_daily_program_id: z.ZodString;
194
197
  device_id: z.ZodString;
195
- name: z.ZodOptional<z.ZodString>;
198
+ name: z.ZodNullable<z.ZodString>;
196
199
  periods: z.ZodArray<z.ZodObject<{
197
200
  starts_at_time: z.ZodString;
198
201
  climate_preset_key: z.ZodString;
@@ -203,28 +206,30 @@ export declare const thermostat_capability_properties: z.ZodObject<{
203
206
  climate_preset_key: string;
204
207
  starts_at_time: string;
205
208
  }>, "many">;
209
+ workspace_id: z.ZodString;
206
210
  created_at: z.ZodString;
207
211
  }, "strip", z.ZodTypeAny, {
212
+ name: string | null;
208
213
  thermostat_daily_program_id: string;
209
214
  device_id: string;
210
215
  periods: {
211
216
  climate_preset_key: string;
212
217
  starts_at_time: string;
213
218
  }[];
219
+ workspace_id: string;
214
220
  created_at: string;
215
- name?: string | undefined;
216
221
  }, {
222
+ name: string | null;
217
223
  thermostat_daily_program_id: string;
218
224
  device_id: string;
219
225
  periods: {
220
226
  climate_preset_key: string;
221
227
  starts_at_time: string;
222
228
  }[];
229
+ workspace_id: string;
223
230
  created_at: string;
224
- name?: string | undefined;
225
- }>, "many">>>>;
226
- thermostat_weekly_program: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
227
- device_id: z.ZodString;
231
+ }>, "many">>>;
232
+ thermostat_weekly_program: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
228
233
  monday_program_id: z.ZodNullable<z.ZodString>;
229
234
  tuesday_program_id: z.ZodNullable<z.ZodString>;
230
235
  wednesday_program_id: z.ZodNullable<z.ZodString>;
@@ -234,7 +239,6 @@ export declare const thermostat_capability_properties: z.ZodObject<{
234
239
  sunday_program_id: z.ZodNullable<z.ZodString>;
235
240
  created_at: z.ZodString;
236
241
  }, "strip", z.ZodTypeAny, {
237
- device_id: string;
238
242
  created_at: string;
239
243
  monday_program_id: string | null;
240
244
  tuesday_program_id: string | null;
@@ -244,7 +248,6 @@ export declare const thermostat_capability_properties: z.ZodObject<{
244
248
  saturday_program_id: string | null;
245
249
  sunday_program_id: string | null;
246
250
  }, {
247
- device_id: string;
248
251
  created_at: string;
249
252
  monday_program_id: string | null;
250
253
  tuesday_program_id: string | null;
@@ -338,8 +341,10 @@ export declare const thermostat_capability_properties: z.ZodObject<{
338
341
  }[] | undefined;
339
342
  fallback_climate_preset_key?: string | null | undefined;
340
343
  active_thermostat_schedule?: {
344
+ name: string | null;
341
345
  climate_preset_key: string;
342
346
  device_id: string;
347
+ workspace_id: string;
343
348
  created_at: string;
344
349
  thermostat_schedule_id: string;
345
350
  starts_at: string;
@@ -348,22 +353,21 @@ export declare const thermostat_capability_properties: z.ZodObject<{
348
353
  message: string;
349
354
  error_code: string;
350
355
  }[];
351
- name?: string | undefined;
352
356
  max_override_period_minutes?: number | null | undefined;
353
357
  is_override_allowed?: boolean | undefined;
354
358
  } | null | undefined;
355
359
  thermostat_daily_programs?: {
360
+ name: string | null;
356
361
  thermostat_daily_program_id: string;
357
362
  device_id: string;
358
363
  periods: {
359
364
  climate_preset_key: string;
360
365
  starts_at_time: string;
361
366
  }[];
367
+ workspace_id: string;
362
368
  created_at: string;
363
- name?: string | undefined;
364
- }[] | null | undefined;
369
+ }[] | undefined;
365
370
  thermostat_weekly_program?: {
366
- device_id: string;
367
371
  created_at: string;
368
372
  monday_program_id: string | null;
369
373
  tuesday_program_id: string | null;
@@ -447,8 +451,10 @@ export declare const thermostat_capability_properties: z.ZodObject<{
447
451
  }[] | undefined;
448
452
  fallback_climate_preset_key?: string | null | undefined;
449
453
  active_thermostat_schedule?: {
454
+ name: string | null;
450
455
  climate_preset_key: string;
451
456
  device_id: string;
457
+ workspace_id: string;
452
458
  created_at: string;
453
459
  thermostat_schedule_id: string;
454
460
  starts_at: string;
@@ -457,22 +463,21 @@ export declare const thermostat_capability_properties: z.ZodObject<{
457
463
  message: string;
458
464
  error_code: string;
459
465
  }[];
460
- name?: string | undefined;
461
466
  max_override_period_minutes?: number | null | undefined;
462
467
  is_override_allowed?: boolean | undefined;
463
468
  } | null | undefined;
464
469
  thermostat_daily_programs?: {
470
+ name: string | null;
465
471
  thermostat_daily_program_id: string;
466
472
  device_id: string;
467
473
  periods: {
468
474
  climate_preset_key: string;
469
475
  starts_at_time: string;
470
476
  }[];
477
+ workspace_id: string;
471
478
  created_at: string;
472
- name?: string | undefined;
473
- }[] | null | undefined;
479
+ }[] | undefined;
474
480
  thermostat_weekly_program?: {
475
- device_id: string;
476
481
  created_at: string;
477
482
  monday_program_id: string | null;
478
483
  tuesday_program_id: string | null;
@@ -31,13 +31,8 @@ export const thermostat_capability_properties = z
31
31
  available_climate_presets: z.array(climate_preset),
32
32
  fallback_climate_preset_key: z.string().min(1).nullable().default(null),
33
33
  active_thermostat_schedule: thermostat_schedule.nullable().default(null),
34
- thermostat_daily_programs: z
35
- .array(thermostat_daily_program)
36
- .nullable()
37
- .default(null),
38
- thermostat_weekly_program: thermostat_weekly_program
39
- .nullable()
40
- .default(null),
34
+ thermostat_daily_programs: z.array(thermostat_daily_program).optional(),
35
+ thermostat_weekly_program: thermostat_weekly_program.nullable().optional(),
41
36
  min_cooling_set_point_celsius: z.number(),
42
37
  min_cooling_set_point_fahrenheit: z.number(),
43
38
  max_cooling_set_point_celsius: z.number(),
@@ -1 +1 @@
1
- {"version":3,"file":"thermostat.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/thermostat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAA;AAEnC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,4BAA4B,EAAE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C,CAAC,MAAM,EAAE;IAC5C,iCAAiC,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7C,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE;IAChD,qBAAqB,EAAE,CAAC;SACrB,MAAM,CAAC;QACN,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9C,CAAC;SACD,QAAQ,EAAE;CACd,CAAC;KACD,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"thermostat.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/thermostat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAA;AAEnC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,4BAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;IACxD,2BAA2B,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IACtD,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,cA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AsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1C,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9C,CAAC;SACD,QAAQ,EAAE;CACd,CAAC;KACD,OAAO,EAAE,CAAA"}
@@ -3440,12 +3440,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3440
3440
  active_thermostat_schedule: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
3441
3441
  thermostat_schedule_id: z.ZodString;
3442
3442
  device_id: z.ZodString;
3443
- name: z.ZodOptional<z.ZodString>;
3443
+ name: z.ZodNullable<z.ZodString>;
3444
3444
  climate_preset_key: z.ZodString;
3445
3445
  max_override_period_minutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3446
3446
  starts_at: z.ZodString;
3447
3447
  is_override_allowed: z.ZodOptional<z.ZodBoolean>;
3448
3448
  ends_at: z.ZodString;
3449
+ workspace_id: z.ZodString;
3449
3450
  created_at: z.ZodString;
3450
3451
  errors: z.ZodArray<z.ZodObject<{
3451
3452
  error_code: z.ZodString;
@@ -3458,8 +3459,10 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3458
3459
  error_code: string;
3459
3460
  }>, "many">;
3460
3461
  }, "strip", z.ZodTypeAny, {
3462
+ name: string | null;
3461
3463
  climate_preset_key: string;
3462
3464
  device_id: string;
3465
+ workspace_id: string;
3463
3466
  created_at: string;
3464
3467
  thermostat_schedule_id: string;
3465
3468
  starts_at: string;
@@ -3468,12 +3471,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3468
3471
  message: string;
3469
3472
  error_code: string;
3470
3473
  }[];
3471
- name?: string | undefined;
3472
3474
  max_override_period_minutes?: number | null | undefined;
3473
3475
  is_override_allowed?: boolean | undefined;
3474
3476
  }, {
3477
+ name: string | null;
3475
3478
  climate_preset_key: string;
3476
3479
  device_id: string;
3480
+ workspace_id: string;
3477
3481
  created_at: string;
3478
3482
  thermostat_schedule_id: string;
3479
3483
  starts_at: string;
@@ -3482,14 +3486,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3482
3486
  message: string;
3483
3487
  error_code: string;
3484
3488
  }[];
3485
- name?: string | undefined;
3486
3489
  max_override_period_minutes?: number | null | undefined;
3487
3490
  is_override_allowed?: boolean | undefined;
3488
3491
  }>>>>;
3489
- thermostat_daily_programs: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodObject<{
3492
+ thermostat_daily_programs: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
3490
3493
  thermostat_daily_program_id: z.ZodString;
3491
3494
  device_id: z.ZodString;
3492
- name: z.ZodOptional<z.ZodString>;
3495
+ name: z.ZodNullable<z.ZodString>;
3493
3496
  periods: z.ZodArray<z.ZodObject<{
3494
3497
  starts_at_time: z.ZodString;
3495
3498
  climate_preset_key: z.ZodString;
@@ -3500,28 +3503,30 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3500
3503
  climate_preset_key: string;
3501
3504
  starts_at_time: string;
3502
3505
  }>, "many">;
3506
+ workspace_id: z.ZodString;
3503
3507
  created_at: z.ZodString;
3504
3508
  }, "strip", z.ZodTypeAny, {
3509
+ name: string | null;
3505
3510
  thermostat_daily_program_id: string;
3506
3511
  device_id: string;
3507
3512
  periods: {
3508
3513
  climate_preset_key: string;
3509
3514
  starts_at_time: string;
3510
3515
  }[];
3516
+ workspace_id: string;
3511
3517
  created_at: string;
3512
- name?: string | undefined;
3513
3518
  }, {
3519
+ name: string | null;
3514
3520
  thermostat_daily_program_id: string;
3515
3521
  device_id: string;
3516
3522
  periods: {
3517
3523
  climate_preset_key: string;
3518
3524
  starts_at_time: string;
3519
3525
  }[];
3526
+ workspace_id: string;
3520
3527
  created_at: string;
3521
- name?: string | undefined;
3522
- }>, "many">>>>;
3523
- thermostat_weekly_program: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodObject<{
3524
- device_id: z.ZodString;
3528
+ }>, "many">>>;
3529
+ thermostat_weekly_program: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
3525
3530
  monday_program_id: z.ZodNullable<z.ZodString>;
3526
3531
  tuesday_program_id: z.ZodNullable<z.ZodString>;
3527
3532
  wednesday_program_id: z.ZodNullable<z.ZodString>;
@@ -3531,7 +3536,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3531
3536
  sunday_program_id: z.ZodNullable<z.ZodString>;
3532
3537
  created_at: z.ZodString;
3533
3538
  }, "strip", z.ZodTypeAny, {
3534
- device_id: string;
3535
3539
  created_at: string;
3536
3540
  monday_program_id: string | null;
3537
3541
  tuesday_program_id: string | null;
@@ -3541,7 +3545,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3541
3545
  saturday_program_id: string | null;
3542
3546
  sunday_program_id: string | null;
3543
3547
  }, {
3544
- device_id: string;
3545
3548
  created_at: string;
3546
3549
  monday_program_id: string | null;
3547
3550
  tuesday_program_id: string | null;
@@ -3635,8 +3638,10 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3635
3638
  }[] | undefined;
3636
3639
  fallback_climate_preset_key?: string | null | undefined;
3637
3640
  active_thermostat_schedule?: {
3641
+ name: string | null;
3638
3642
  climate_preset_key: string;
3639
3643
  device_id: string;
3644
+ workspace_id: string;
3640
3645
  created_at: string;
3641
3646
  thermostat_schedule_id: string;
3642
3647
  starts_at: string;
@@ -3645,22 +3650,21 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3645
3650
  message: string;
3646
3651
  error_code: string;
3647
3652
  }[];
3648
- name?: string | undefined;
3649
3653
  max_override_period_minutes?: number | null | undefined;
3650
3654
  is_override_allowed?: boolean | undefined;
3651
3655
  } | null | undefined;
3652
3656
  thermostat_daily_programs?: {
3657
+ name: string | null;
3653
3658
  thermostat_daily_program_id: string;
3654
3659
  device_id: string;
3655
3660
  periods: {
3656
3661
  climate_preset_key: string;
3657
3662
  starts_at_time: string;
3658
3663
  }[];
3664
+ workspace_id: string;
3659
3665
  created_at: string;
3660
- name?: string | undefined;
3661
- }[] | null | undefined;
3666
+ }[] | undefined;
3662
3667
  thermostat_weekly_program?: {
3663
- device_id: string;
3664
3668
  created_at: string;
3665
3669
  monday_program_id: string | null;
3666
3670
  tuesday_program_id: string | null;
@@ -3744,8 +3748,10 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3744
3748
  }[] | undefined;
3745
3749
  fallback_climate_preset_key?: string | null | undefined;
3746
3750
  active_thermostat_schedule?: {
3751
+ name: string | null;
3747
3752
  climate_preset_key: string;
3748
3753
  device_id: string;
3754
+ workspace_id: string;
3749
3755
  created_at: string;
3750
3756
  thermostat_schedule_id: string;
3751
3757
  starts_at: string;
@@ -3754,22 +3760,21 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3754
3760
  message: string;
3755
3761
  error_code: string;
3756
3762
  }[];
3757
- name?: string | undefined;
3758
3763
  max_override_period_minutes?: number | null | undefined;
3759
3764
  is_override_allowed?: boolean | undefined;
3760
3765
  } | null | undefined;
3761
3766
  thermostat_daily_programs?: {
3767
+ name: string | null;
3762
3768
  thermostat_daily_program_id: string;
3763
3769
  device_id: string;
3764
3770
  periods: {
3765
3771
  climate_preset_key: string;
3766
3772
  starts_at_time: string;
3767
3773
  }[];
3774
+ workspace_id: string;
3768
3775
  created_at: string;
3769
- name?: string | undefined;
3770
- }[] | null | undefined;
3776
+ }[] | undefined;
3771
3777
  thermostat_weekly_program?: {
3772
- device_id: string;
3773
3778
  created_at: string;
3774
3779
  monday_program_id: string | null;
3775
3780
  tuesday_program_id: string | null;
@@ -4394,6 +4399,7 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
4394
4399
  } | null;
4395
4400
  display_name: string;
4396
4401
  device_id: string;
4402
+ workspace_id: string;
4397
4403
  created_at: string;
4398
4404
  errors: ({
4399
4405
  message: string;
@@ -4924,8 +4930,10 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
4924
4930
  }[] | undefined;
4925
4931
  fallback_climate_preset_key?: string | null | undefined;
4926
4932
  active_thermostat_schedule?: {
4933
+ name: string | null;
4927
4934
  climate_preset_key: string;
4928
4935
  device_id: string;
4936
+ workspace_id: string;
4929
4937
  created_at: string;
4930
4938
  thermostat_schedule_id: string;
4931
4939
  starts_at: string;
@@ -4934,22 +4942,21 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
4934
4942
  message: string;
4935
4943
  error_code: string;
4936
4944
  }[];
4937
- name?: string | undefined;
4938
4945
  max_override_period_minutes?: number | null | undefined;
4939
4946
  is_override_allowed?: boolean | undefined;
4940
4947
  } | null | undefined;
4941
4948
  thermostat_daily_programs?: {
4949
+ name: string | null;
4942
4950
  thermostat_daily_program_id: string;
4943
4951
  device_id: string;
4944
4952
  periods: {
4945
4953
  climate_preset_key: string;
4946
4954
  starts_at_time: string;
4947
4955
  }[];
4956
+ workspace_id: string;
4948
4957
  created_at: string;
4949
- name?: string | undefined;
4950
- }[] | null | undefined;
4958
+ }[] | undefined;
4951
4959
  thermostat_weekly_program?: {
4952
- device_id: string;
4953
4960
  created_at: string;
4954
4961
  monday_program_id: string | null;
4955
4962
  tuesday_program_id: string | null;
@@ -4976,7 +4983,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
4976
4983
  upper_limit_fahrenheit: number | null;
4977
4984
  } | undefined;
4978
4985
  };
4979
- workspace_id: string;
4980
4986
  is_managed: true;
4981
4987
  can_remotely_unlock?: boolean | undefined;
4982
4988
  can_remotely_lock?: boolean | undefined;
@@ -4997,6 +5003,7 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
4997
5003
  } | null;
4998
5004
  display_name: string;
4999
5005
  device_id: string;
5006
+ workspace_id: string;
5000
5007
  created_at: string;
5001
5008
  errors: ({
5002
5009
  message: string;
@@ -5527,8 +5534,10 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
5527
5534
  }[] | undefined;
5528
5535
  fallback_climate_preset_key?: string | null | undefined;
5529
5536
  active_thermostat_schedule?: {
5537
+ name: string | null;
5530
5538
  climate_preset_key: string;
5531
5539
  device_id: string;
5540
+ workspace_id: string;
5532
5541
  created_at: string;
5533
5542
  thermostat_schedule_id: string;
5534
5543
  starts_at: string;
@@ -5537,22 +5546,21 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
5537
5546
  message: string;
5538
5547
  error_code: string;
5539
5548
  }[];
5540
- name?: string | undefined;
5541
5549
  max_override_period_minutes?: number | null | undefined;
5542
5550
  is_override_allowed?: boolean | undefined;
5543
5551
  } | null | undefined;
5544
5552
  thermostat_daily_programs?: {
5553
+ name: string | null;
5545
5554
  thermostat_daily_program_id: string;
5546
5555
  device_id: string;
5547
5556
  periods: {
5548
5557
  climate_preset_key: string;
5549
5558
  starts_at_time: string;
5550
5559
  }[];
5560
+ workspace_id: string;
5551
5561
  created_at: string;
5552
- name?: string | undefined;
5553
- }[] | null | undefined;
5562
+ }[] | undefined;
5554
5563
  thermostat_weekly_program?: {
5555
- device_id: string;
5556
5564
  created_at: string;
5557
5565
  monday_program_id: string | null;
5558
5566
  tuesday_program_id: string | null;
@@ -5579,7 +5587,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
5579
5587
  upper_limit_fahrenheit: number | null;
5580
5588
  } | undefined;
5581
5589
  };
5582
- workspace_id: string;
5583
5590
  is_managed: true;
5584
5591
  can_remotely_unlock?: boolean | undefined;
5585
5592
  can_remotely_lock?: boolean | undefined;