@seamapi/types 1.321.1 → 1.322.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/connect.cjs +62 -9
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +475 -305
  4. package/lib/seam/connect/models/acs/acs-credential.d.ts +12 -12
  5. package/lib/seam/connect/models/acs/acs-credential.js +2 -0
  6. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  7. package/lib/seam/connect/models/acs/acs-user.d.ts +12 -12
  8. package/lib/seam/connect/models/acs/acs-user.js +5 -2
  9. package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +48 -48
  11. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +20 -20
  12. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +28 -28
  13. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +26 -5
  14. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +26 -5
  15. package/lib/seam/connect/models/devices/device.d.ts +34 -7
  16. package/lib/seam/connect/models/devices/phone.d.ts +26 -5
  17. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +26 -5
  18. package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +18 -3
  19. package/lib/seam/connect/models/thermostats/thermostat-schedule.js +4 -1
  20. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
  21. package/lib/seam/connect/openapi.d.ts +54 -0
  22. package/lib/seam/connect/openapi.js +48 -0
  23. package/lib/seam/connect/openapi.js.map +1 -1
  24. package/lib/seam/connect/route-types.d.ts +271 -218
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/models/acs/acs-credential.ts +2 -0
  27. package/src/lib/seam/connect/models/acs/acs-user.ts +5 -2
  28. package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +6 -1
  29. package/src/lib/seam/connect/openapi.ts +49 -0
  30. package/src/lib/seam/connect/route-types.ts +341 -218
@@ -212,8 +212,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
212
212
  created_at: string;
213
213
  }>]>, "many">;
214
214
  is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
215
- is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodBoolean>;
216
- latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodString>;
215
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
216
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
217
  visionline_metadata: z.ZodOptional<z.ZodObject<{
218
218
  card_function_type: z.ZodEnum<["guest", "staff"]>;
219
219
  joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -300,8 +300,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
300
300
  is_issued?: boolean | undefined;
301
301
  issued_at?: string | null | undefined;
302
302
  is_multi_phone_sync_credential?: boolean | undefined;
303
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
304
- latest_desired_state_synced_with_provider_at?: string | undefined;
303
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
304
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
305
305
  }, {
306
306
  created_at: string;
307
307
  errors: {
@@ -358,8 +358,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
358
358
  is_issued?: boolean | undefined;
359
359
  issued_at?: string | null | undefined;
360
360
  is_multi_phone_sync_credential?: boolean | undefined;
361
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
362
- latest_desired_state_synced_with_provider_at?: string | undefined;
361
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
362
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
363
363
  }>, z.ZodObject<z.objectUtil.extendShape<{
364
364
  acs_credential_id: z.ZodString;
365
365
  acs_user_id: z.ZodOptional<z.ZodString>;
@@ -456,8 +456,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
456
456
  created_at: string;
457
457
  }>]>, "many">;
458
458
  is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
459
- is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodBoolean>;
460
- latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodString>;
459
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
460
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
461
  visionline_metadata: z.ZodOptional<z.ZodObject<{
462
462
  card_function_type: z.ZodEnum<["guest", "staff"]>;
463
463
  joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -544,8 +544,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
544
544
  is_issued?: boolean | undefined;
545
545
  issued_at?: string | null | undefined;
546
546
  is_multi_phone_sync_credential?: boolean | undefined;
547
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
548
- latest_desired_state_synced_with_provider_at?: string | undefined;
547
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
548
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
549
549
  }, {
550
550
  created_at: string;
551
551
  errors: {
@@ -602,8 +602,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
602
602
  is_issued?: boolean | undefined;
603
603
  issued_at?: string | null | undefined;
604
604
  is_multi_phone_sync_credential?: boolean | undefined;
605
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
606
- latest_desired_state_synced_with_provider_at?: string | undefined;
605
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
606
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
607
607
  }>]>>;
608
608
  warnings: z.ZodArray<z.ZodObject<{
609
609
  warning_code: z.ZodUnion<[z.ZodLiteral<"acs_credential_on_encoder_out_of_sync">, z.ZodLiteral<"acs_credential_on_seam_not_found">]>;
@@ -697,8 +697,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
697
697
  is_issued?: boolean | undefined;
698
698
  issued_at?: string | null | undefined;
699
699
  is_multi_phone_sync_credential?: boolean | undefined;
700
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
701
- latest_desired_state_synced_with_provider_at?: string | undefined;
700
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
701
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
702
702
  } | {
703
703
  created_at: string;
704
704
  errors: {
@@ -755,8 +755,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
755
755
  is_issued?: boolean | undefined;
756
756
  issued_at?: string | null | undefined;
757
757
  is_multi_phone_sync_credential?: boolean | undefined;
758
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
759
- latest_desired_state_synced_with_provider_at?: string | undefined;
758
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
759
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
760
760
  } | null;
761
761
  }, {
762
762
  warnings: {
@@ -840,8 +840,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
840
840
  is_issued?: boolean | undefined;
841
841
  issued_at?: string | null | undefined;
842
842
  is_multi_phone_sync_credential?: boolean | undefined;
843
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
844
- latest_desired_state_synced_with_provider_at?: string | undefined;
843
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
844
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
845
845
  } | {
846
846
  created_at: string;
847
847
  errors: {
@@ -898,8 +898,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
898
898
  is_issued?: boolean | undefined;
899
899
  issued_at?: string | null | undefined;
900
900
  is_multi_phone_sync_credential?: boolean | undefined;
901
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
902
- latest_desired_state_synced_with_provider_at?: string | undefined;
901
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
902
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
903
903
  } | null;
904
904
  }>;
905
905
  }>, "strip", z.ZodTypeAny, {
@@ -988,8 +988,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
988
988
  is_issued?: boolean | undefined;
989
989
  issued_at?: string | null | undefined;
990
990
  is_multi_phone_sync_credential?: boolean | undefined;
991
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
992
- latest_desired_state_synced_with_provider_at?: string | undefined;
991
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
992
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
993
993
  } | {
994
994
  created_at: string;
995
995
  errors: {
@@ -1046,8 +1046,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
1046
1046
  is_issued?: boolean | undefined;
1047
1047
  issued_at?: string | null | undefined;
1048
1048
  is_multi_phone_sync_credential?: boolean | undefined;
1049
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
1050
- latest_desired_state_synced_with_provider_at?: string | undefined;
1049
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1050
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
1051
1051
  } | null;
1052
1052
  };
1053
1053
  action_type: "SCAN_CREDENTIAL";
@@ -1137,8 +1137,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
1137
1137
  is_issued?: boolean | undefined;
1138
1138
  issued_at?: string | null | undefined;
1139
1139
  is_multi_phone_sync_credential?: boolean | undefined;
1140
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
1141
- latest_desired_state_synced_with_provider_at?: string | undefined;
1140
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1141
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
1142
1142
  } | {
1143
1143
  created_at: string;
1144
1144
  errors: {
@@ -1195,8 +1195,8 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
1195
1195
  is_issued?: boolean | undefined;
1196
1196
  issued_at?: string | null | undefined;
1197
1197
  is_multi_phone_sync_credential?: boolean | undefined;
1198
- is_latest_desired_state_synced_with_provider?: boolean | undefined;
1199
- latest_desired_state_synced_with_provider_at?: string | undefined;
1198
+ is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1199
+ latest_desired_state_synced_with_provider_at?: string | null | undefined;
1200
1200
  } | null;
1201
1201
  };
1202
1202
  action_type: "SCAN_CREDENTIAL";
@@ -216,9 +216,22 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
216
216
  unstable_is_override_allowed: z.ZodOptional<z.ZodBoolean>;
217
217
  ends_at: z.ZodString;
218
218
  created_at: z.ZodString;
219
- errors: z.ZodAny;
219
+ errors: z.ZodArray<z.ZodObject<{
220
+ error_code: z.ZodString;
221
+ message: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ message: string;
224
+ error_code: string;
225
+ }, {
226
+ message: string;
227
+ error_code: string;
228
+ }>, "many">;
220
229
  }, "strip", z.ZodTypeAny, {
221
230
  created_at: string;
231
+ errors: {
232
+ message: string;
233
+ error_code: string;
234
+ }[];
222
235
  climate_preset_key: string;
223
236
  thermostat_schedule_id: string;
224
237
  device_id: string;
@@ -226,10 +239,13 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
226
239
  starts_at: string;
227
240
  ends_at: string;
228
241
  name?: string | undefined;
229
- errors?: any;
230
242
  unstable_is_override_allowed?: boolean | undefined;
231
243
  }, {
232
244
  created_at: string;
245
+ errors: {
246
+ message: string;
247
+ error_code: string;
248
+ }[];
233
249
  climate_preset_key: string;
234
250
  thermostat_schedule_id: string;
235
251
  device_id: string;
@@ -237,7 +253,6 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
237
253
  starts_at: string;
238
254
  ends_at: string;
239
255
  name?: string | undefined;
240
- errors?: any;
241
256
  unstable_is_override_allowed?: boolean | undefined;
242
257
  }>>>>;
243
258
  min_cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
@@ -322,6 +337,10 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
322
337
  fallback_climate_preset_key?: string | null | undefined;
323
338
  active_thermostat_schedule?: {
324
339
  created_at: string;
340
+ errors: {
341
+ message: string;
342
+ error_code: string;
343
+ }[];
325
344
  climate_preset_key: string;
326
345
  thermostat_schedule_id: string;
327
346
  device_id: string;
@@ -329,7 +348,6 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
329
348
  starts_at: string;
330
349
  ends_at: string;
331
350
  name?: string | undefined;
332
- errors?: any;
333
351
  unstable_is_override_allowed?: boolean | undefined;
334
352
  } | null | undefined;
335
353
  min_cooling_set_point_celsius?: number | undefined;
@@ -404,6 +422,10 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
404
422
  fallback_climate_preset_key?: string | null | undefined;
405
423
  active_thermostat_schedule?: {
406
424
  created_at: string;
425
+ errors: {
426
+ message: string;
427
+ error_code: string;
428
+ }[];
407
429
  climate_preset_key: string;
408
430
  thermostat_schedule_id: string;
409
431
  device_id: string;
@@ -411,7 +433,6 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<z.obje
411
433
  starts_at: string;
412
434
  ends_at: string;
413
435
  name?: string | undefined;
414
- errors?: any;
415
436
  unstable_is_override_allowed?: boolean | undefined;
416
437
  } | null | undefined;
417
438
  min_cooling_set_point_celsius?: number | undefined;
@@ -141,9 +141,22 @@ export declare const thermostat_capability_properties: z.ZodObject<{
141
141
  unstable_is_override_allowed: z.ZodOptional<z.ZodBoolean>;
142
142
  ends_at: z.ZodString;
143
143
  created_at: z.ZodString;
144
- errors: z.ZodAny;
144
+ errors: z.ZodArray<z.ZodObject<{
145
+ error_code: z.ZodString;
146
+ message: z.ZodString;
147
+ }, "strip", z.ZodTypeAny, {
148
+ message: string;
149
+ error_code: string;
150
+ }, {
151
+ message: string;
152
+ error_code: string;
153
+ }>, "many">;
145
154
  }, "strip", z.ZodTypeAny, {
146
155
  created_at: string;
156
+ errors: {
157
+ message: string;
158
+ error_code: string;
159
+ }[];
147
160
  climate_preset_key: string;
148
161
  thermostat_schedule_id: string;
149
162
  device_id: string;
@@ -151,10 +164,13 @@ export declare const thermostat_capability_properties: z.ZodObject<{
151
164
  starts_at: string;
152
165
  ends_at: string;
153
166
  name?: string | undefined;
154
- errors?: any;
155
167
  unstable_is_override_allowed?: boolean | undefined;
156
168
  }, {
157
169
  created_at: string;
170
+ errors: {
171
+ message: string;
172
+ error_code: string;
173
+ }[];
158
174
  climate_preset_key: string;
159
175
  thermostat_schedule_id: string;
160
176
  device_id: string;
@@ -162,7 +178,6 @@ export declare const thermostat_capability_properties: z.ZodObject<{
162
178
  starts_at: string;
163
179
  ends_at: string;
164
180
  name?: string | undefined;
165
- errors?: any;
166
181
  unstable_is_override_allowed?: boolean | undefined;
167
182
  }>>>>;
168
183
  min_cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
@@ -247,6 +262,10 @@ export declare const thermostat_capability_properties: z.ZodObject<{
247
262
  fallback_climate_preset_key?: string | null | undefined;
248
263
  active_thermostat_schedule?: {
249
264
  created_at: string;
265
+ errors: {
266
+ message: string;
267
+ error_code: string;
268
+ }[];
250
269
  climate_preset_key: string;
251
270
  thermostat_schedule_id: string;
252
271
  device_id: string;
@@ -254,7 +273,6 @@ export declare const thermostat_capability_properties: z.ZodObject<{
254
273
  starts_at: string;
255
274
  ends_at: string;
256
275
  name?: string | undefined;
257
- errors?: any;
258
276
  unstable_is_override_allowed?: boolean | undefined;
259
277
  } | null | undefined;
260
278
  min_cooling_set_point_celsius?: number | undefined;
@@ -329,6 +347,10 @@ export declare const thermostat_capability_properties: z.ZodObject<{
329
347
  fallback_climate_preset_key?: string | null | undefined;
330
348
  active_thermostat_schedule?: {
331
349
  created_at: string;
350
+ errors: {
351
+ message: string;
352
+ error_code: string;
353
+ }[];
332
354
  climate_preset_key: string;
333
355
  thermostat_schedule_id: string;
334
356
  device_id: string;
@@ -336,7 +358,6 @@ export declare const thermostat_capability_properties: z.ZodObject<{
336
358
  starts_at: string;
337
359
  ends_at: string;
338
360
  name?: string | undefined;
339
- errors?: any;
340
361
  unstable_is_override_allowed?: boolean | undefined;
341
362
  } | null | undefined;
342
363
  min_cooling_set_point_celsius?: number | undefined;
@@ -1813,9 +1813,22 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1813
1813
  unstable_is_override_allowed: z.ZodOptional<z.ZodBoolean>;
1814
1814
  ends_at: z.ZodString;
1815
1815
  created_at: z.ZodString;
1816
- errors: z.ZodAny;
1816
+ errors: z.ZodArray<z.ZodObject<{
1817
+ error_code: z.ZodString;
1818
+ message: z.ZodString;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ message: string;
1821
+ error_code: string;
1822
+ }, {
1823
+ message: string;
1824
+ error_code: string;
1825
+ }>, "many">;
1817
1826
  }, "strip", z.ZodTypeAny, {
1818
1827
  created_at: string;
1828
+ errors: {
1829
+ message: string;
1830
+ error_code: string;
1831
+ }[];
1819
1832
  climate_preset_key: string;
1820
1833
  thermostat_schedule_id: string;
1821
1834
  device_id: string;
@@ -1823,10 +1836,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1823
1836
  starts_at: string;
1824
1837
  ends_at: string;
1825
1838
  name?: string | undefined;
1826
- errors?: any;
1827
1839
  unstable_is_override_allowed?: boolean | undefined;
1828
1840
  }, {
1829
1841
  created_at: string;
1842
+ errors: {
1843
+ message: string;
1844
+ error_code: string;
1845
+ }[];
1830
1846
  climate_preset_key: string;
1831
1847
  thermostat_schedule_id: string;
1832
1848
  device_id: string;
@@ -1834,7 +1850,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1834
1850
  starts_at: string;
1835
1851
  ends_at: string;
1836
1852
  name?: string | undefined;
1837
- errors?: any;
1838
1853
  unstable_is_override_allowed?: boolean | undefined;
1839
1854
  }>>>>;
1840
1855
  min_cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
@@ -1919,6 +1934,10 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1919
1934
  fallback_climate_preset_key?: string | null | undefined;
1920
1935
  active_thermostat_schedule?: {
1921
1936
  created_at: string;
1937
+ errors: {
1938
+ message: string;
1939
+ error_code: string;
1940
+ }[];
1922
1941
  climate_preset_key: string;
1923
1942
  thermostat_schedule_id: string;
1924
1943
  device_id: string;
@@ -1926,7 +1945,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1926
1945
  starts_at: string;
1927
1946
  ends_at: string;
1928
1947
  name?: string | undefined;
1929
- errors?: any;
1930
1948
  unstable_is_override_allowed?: boolean | undefined;
1931
1949
  } | null | undefined;
1932
1950
  min_cooling_set_point_celsius?: number | undefined;
@@ -2001,6 +2019,10 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2001
2019
  fallback_climate_preset_key?: string | null | undefined;
2002
2020
  active_thermostat_schedule?: {
2003
2021
  created_at: string;
2022
+ errors: {
2023
+ message: string;
2024
+ error_code: string;
2025
+ }[];
2004
2026
  climate_preset_key: string;
2005
2027
  thermostat_schedule_id: string;
2006
2028
  device_id: string;
@@ -2008,7 +2030,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2008
2030
  starts_at: string;
2009
2031
  ends_at: string;
2010
2032
  name?: string | undefined;
2011
- errors?: any;
2012
2033
  unstable_is_override_allowed?: boolean | undefined;
2013
2034
  } | null | undefined;
2014
2035
  min_cooling_set_point_celsius?: number | undefined;
@@ -2465,6 +2486,10 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2465
2486
  fallback_climate_preset_key?: string | null | undefined;
2466
2487
  active_thermostat_schedule?: {
2467
2488
  created_at: string;
2489
+ errors: {
2490
+ message: string;
2491
+ error_code: string;
2492
+ }[];
2468
2493
  climate_preset_key: string;
2469
2494
  thermostat_schedule_id: string;
2470
2495
  device_id: string;
@@ -2472,7 +2497,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2472
2497
  starts_at: string;
2473
2498
  ends_at: string;
2474
2499
  name?: string | undefined;
2475
- errors?: any;
2476
2500
  unstable_is_override_allowed?: boolean | undefined;
2477
2501
  } | null | undefined;
2478
2502
  min_cooling_set_point_celsius?: number | undefined;
@@ -2877,6 +2901,10 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2877
2901
  fallback_climate_preset_key?: string | null | undefined;
2878
2902
  active_thermostat_schedule?: {
2879
2903
  created_at: string;
2904
+ errors: {
2905
+ message: string;
2906
+ error_code: string;
2907
+ }[];
2880
2908
  climate_preset_key: string;
2881
2909
  thermostat_schedule_id: string;
2882
2910
  device_id: string;
@@ -2884,7 +2912,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2884
2912
  starts_at: string;
2885
2913
  ends_at: string;
2886
2914
  name?: string | undefined;
2887
- errors?: any;
2888
2915
  unstable_is_override_allowed?: boolean | undefined;
2889
2916
  } | null | undefined;
2890
2917
  min_cooling_set_point_celsius?: number | undefined;
@@ -1595,9 +1595,22 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1595
1595
  unstable_is_override_allowed: z.ZodOptional<z.ZodBoolean>;
1596
1596
  ends_at: z.ZodString;
1597
1597
  created_at: z.ZodString;
1598
- errors: z.ZodAny;
1598
+ errors: z.ZodArray<z.ZodObject<{
1599
+ error_code: z.ZodString;
1600
+ message: z.ZodString;
1601
+ }, "strip", z.ZodTypeAny, {
1602
+ message: string;
1603
+ error_code: string;
1604
+ }, {
1605
+ message: string;
1606
+ error_code: string;
1607
+ }>, "many">;
1599
1608
  }, "strip", z.ZodTypeAny, {
1600
1609
  created_at: string;
1610
+ errors: {
1611
+ message: string;
1612
+ error_code: string;
1613
+ }[];
1601
1614
  climate_preset_key: string;
1602
1615
  thermostat_schedule_id: string;
1603
1616
  device_id: string;
@@ -1605,10 +1618,13 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1605
1618
  starts_at: string;
1606
1619
  ends_at: string;
1607
1620
  name?: string | undefined;
1608
- errors?: any;
1609
1621
  unstable_is_override_allowed?: boolean | undefined;
1610
1622
  }, {
1611
1623
  created_at: string;
1624
+ errors: {
1625
+ message: string;
1626
+ error_code: string;
1627
+ }[];
1612
1628
  climate_preset_key: string;
1613
1629
  thermostat_schedule_id: string;
1614
1630
  device_id: string;
@@ -1616,7 +1632,6 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1616
1632
  starts_at: string;
1617
1633
  ends_at: string;
1618
1634
  name?: string | undefined;
1619
- errors?: any;
1620
1635
  unstable_is_override_allowed?: boolean | undefined;
1621
1636
  }>>>>;
1622
1637
  min_cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
@@ -1701,6 +1716,10 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1701
1716
  fallback_climate_preset_key?: string | null | undefined;
1702
1717
  active_thermostat_schedule?: {
1703
1718
  created_at: string;
1719
+ errors: {
1720
+ message: string;
1721
+ error_code: string;
1722
+ }[];
1704
1723
  climate_preset_key: string;
1705
1724
  thermostat_schedule_id: string;
1706
1725
  device_id: string;
@@ -1708,7 +1727,6 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1708
1727
  starts_at: string;
1709
1728
  ends_at: string;
1710
1729
  name?: string | undefined;
1711
- errors?: any;
1712
1730
  unstable_is_override_allowed?: boolean | undefined;
1713
1731
  } | null | undefined;
1714
1732
  min_cooling_set_point_celsius?: number | undefined;
@@ -1783,6 +1801,10 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1783
1801
  fallback_climate_preset_key?: string | null | undefined;
1784
1802
  active_thermostat_schedule?: {
1785
1803
  created_at: string;
1804
+ errors: {
1805
+ message: string;
1806
+ error_code: string;
1807
+ }[];
1786
1808
  climate_preset_key: string;
1787
1809
  thermostat_schedule_id: string;
1788
1810
  device_id: string;
@@ -1790,7 +1812,6 @@ export declare const phone: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1790
1812
  starts_at: string;
1791
1813
  ends_at: string;
1792
1814
  name?: string | undefined;
1793
- errors?: any;
1794
1815
  unstable_is_override_allowed?: boolean | undefined;
1795
1816
  } | null | undefined;
1796
1817
  min_cooling_set_point_celsius?: number | undefined;
@@ -1594,9 +1594,22 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
1594
1594
  unstable_is_override_allowed: z.ZodOptional<z.ZodBoolean>;
1595
1595
  ends_at: z.ZodString;
1596
1596
  created_at: z.ZodString;
1597
- errors: z.ZodAny;
1597
+ errors: z.ZodArray<z.ZodObject<{
1598
+ error_code: z.ZodString;
1599
+ message: z.ZodString;
1600
+ }, "strip", z.ZodTypeAny, {
1601
+ message: string;
1602
+ error_code: string;
1603
+ }, {
1604
+ message: string;
1605
+ error_code: string;
1606
+ }>, "many">;
1598
1607
  }, "strip", z.ZodTypeAny, {
1599
1608
  created_at: string;
1609
+ errors: {
1610
+ message: string;
1611
+ error_code: string;
1612
+ }[];
1600
1613
  climate_preset_key: string;
1601
1614
  thermostat_schedule_id: string;
1602
1615
  device_id: string;
@@ -1604,10 +1617,13 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
1604
1617
  starts_at: string;
1605
1618
  ends_at: string;
1606
1619
  name?: string | undefined;
1607
- errors?: any;
1608
1620
  unstable_is_override_allowed?: boolean | undefined;
1609
1621
  }, {
1610
1622
  created_at: string;
1623
+ errors: {
1624
+ message: string;
1625
+ error_code: string;
1626
+ }[];
1611
1627
  climate_preset_key: string;
1612
1628
  thermostat_schedule_id: string;
1613
1629
  device_id: string;
@@ -1615,7 +1631,6 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
1615
1631
  starts_at: string;
1616
1632
  ends_at: string;
1617
1633
  name?: string | undefined;
1618
- errors?: any;
1619
1634
  unstable_is_override_allowed?: boolean | undefined;
1620
1635
  }>>>>;
1621
1636
  min_cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
@@ -1700,6 +1715,10 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
1700
1715
  fallback_climate_preset_key?: string | null | undefined;
1701
1716
  active_thermostat_schedule?: {
1702
1717
  created_at: string;
1718
+ errors: {
1719
+ message: string;
1720
+ error_code: string;
1721
+ }[];
1703
1722
  climate_preset_key: string;
1704
1723
  thermostat_schedule_id: string;
1705
1724
  device_id: string;
@@ -1707,7 +1726,6 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
1707
1726
  starts_at: string;
1708
1727
  ends_at: string;
1709
1728
  name?: string | undefined;
1710
- errors?: any;
1711
1729
  unstable_is_override_allowed?: boolean | undefined;
1712
1730
  } | null | undefined;
1713
1731
  min_cooling_set_point_celsius?: number | undefined;
@@ -1782,6 +1800,10 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
1782
1800
  fallback_climate_preset_key?: string | null | undefined;
1783
1801
  active_thermostat_schedule?: {
1784
1802
  created_at: string;
1803
+ errors: {
1804
+ message: string;
1805
+ error_code: string;
1806
+ }[];
1785
1807
  climate_preset_key: string;
1786
1808
  thermostat_schedule_id: string;
1787
1809
  device_id: string;
@@ -1789,7 +1811,6 @@ export declare const unmanaged_device: z.ZodObject<z.objectUtil.extendShape<z.ob
1789
1811
  starts_at: string;
1790
1812
  ends_at: string;
1791
1813
  name?: string | undefined;
1792
- errors?: any;
1793
1814
  unstable_is_override_allowed?: boolean | undefined;
1794
1815
  } | null | undefined;
1795
1816
  min_cooling_set_point_celsius?: number | undefined;
@@ -9,9 +9,22 @@ export declare const thermostat_schedule: z.ZodObject<{
9
9
  unstable_is_override_allowed: z.ZodOptional<z.ZodBoolean>;
10
10
  ends_at: z.ZodString;
11
11
  created_at: z.ZodString;
12
- errors: z.ZodAny;
12
+ errors: z.ZodArray<z.ZodObject<{
13
+ error_code: z.ZodString;
14
+ message: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ message: string;
17
+ error_code: string;
18
+ }, {
19
+ message: string;
20
+ error_code: string;
21
+ }>, "many">;
13
22
  }, "strip", z.ZodTypeAny, {
14
23
  created_at: string;
24
+ errors: {
25
+ message: string;
26
+ error_code: string;
27
+ }[];
15
28
  climate_preset_key: string;
16
29
  thermostat_schedule_id: string;
17
30
  device_id: string;
@@ -19,10 +32,13 @@ export declare const thermostat_schedule: z.ZodObject<{
19
32
  starts_at: string;
20
33
  ends_at: string;
21
34
  name?: string | undefined;
22
- errors?: any;
23
35
  unstable_is_override_allowed?: boolean | undefined;
24
36
  }, {
25
37
  created_at: string;
38
+ errors: {
39
+ message: string;
40
+ error_code: string;
41
+ }[];
26
42
  climate_preset_key: string;
27
43
  thermostat_schedule_id: string;
28
44
  device_id: string;
@@ -30,7 +46,6 @@ export declare const thermostat_schedule: z.ZodObject<{
30
46
  starts_at: string;
31
47
  ends_at: string;
32
48
  name?: string | undefined;
33
- errors?: any;
34
49
  unstable_is_override_allowed?: boolean | undefined;
35
50
  }>;
36
51
  export type ThermostatSchedule = z.infer<typeof thermostat_schedule>;
@@ -42,7 +42,10 @@ export const thermostat_schedule = z
42
42
  .datetime()
43
43
  .describe('Date and time at which the thermostat schedule was created.'),
44
44
  errors: z
45
- .any()
45
+ .array(z.object({
46
+ error_code: z.string(),
47
+ message: z.string(),
48
+ }))
46
49
  .describe('Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.'),
47
50
  })
48
51
  .describe('Represents a [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) that activates a configured [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) on a [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) at a specified starting time and deactivates the climate preset at a specified ending time.');
@@ -1 +1 @@
1
- {"version":3,"file":"thermostat-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/thermostat-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,sBAAsB,EAAE,CAAC;SACtB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,gCAAgC,CAAC;IAC7C,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,sCAAsC,CAAC;IACnD,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CACP,kKAAkK,CACnK;IACH,2BAA2B,EAAE,CAAC;SAC3B,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,QAAQ,CACP,mVAAmV,CACpV;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,sIAAsI,CACvI;IACH,4BAA4B,EAAE,CAAC;SAC5B,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP;;;;2FAImF,CACpF;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oIAAoI,CACrI;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,MAAM,EAAE,CAAC;SACN,GAAG,EAAE;SACL,QAAQ,CACP,gZAAgZ,CACjZ;CACJ,CAAC;KACD,QAAQ,CACP,icAAic,CAClc,CAAA"}
1
+ {"version":3,"file":"thermostat-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/thermostat-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,sBAAsB,EAAE,CAAC;SACtB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,gCAAgC,CAAC;IAC7C,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,sCAAsC,CAAC;IACnD,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CACP,kKAAkK,CACnK;IACH,2BAA2B,EAAE,CAAC;SAC3B,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,QAAQ,CACP,mVAAmV,CACpV;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,sIAAsI,CACvI;IACH,4BAA4B,EAAE,CAAC;SAC5B,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP;;;;2FAImF,CACpF;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oIAAoI,CACrI;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;SACA,QAAQ,CACP,gZAAgZ,CACjZ;CACJ,CAAC;KACD,QAAQ,CACP,icAAic,CAClc,CAAA"}