@seamapi/types 1.247.1 → 1.249.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/connect.cjs +55 -11
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +206 -97
  4. package/lib/seam/connect/models/acs/acs-credential.d.ts +18 -0
  5. package/lib/seam/connect/models/acs/acs-credential.js +3 -0
  6. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  7. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +21 -18
  8. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +21 -18
  9. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +1 -0
  10. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  11. package/lib/seam/connect/models/devices/device.d.ts +31 -26
  12. package/lib/seam/connect/models/devices/phone.d.ts +21 -18
  13. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -18
  14. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +6 -6
  15. package/lib/seam/connect/models/thermostats/modes.d.ts +3 -1
  16. package/lib/seam/connect/models/thermostats/modes.js +2 -1
  17. package/lib/seam/connect/models/thermostats/modes.js.map +1 -1
  18. package/lib/seam/connect/openapi.d.ts +44 -0
  19. package/lib/seam/connect/openapi.js +49 -10
  20. package/lib/seam/connect/openapi.js.map +1 -1
  21. package/lib/seam/connect/route-types.d.ts +92 -53
  22. package/package.json +1 -1
  23. package/src/lib/seam/connect/models/acs/acs-credential.ts +3 -0
  24. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +1 -0
  25. package/src/lib/seam/connect/models/thermostats/modes.ts +7 -1
  26. package/src/lib/seam/connect/openapi.ts +49 -10
  27. package/src/lib/seam/connect/route-types.ts +164 -53
@@ -5,7 +5,7 @@ export declare const climate_preset: z.ZodObject<{
5
5
  can_delete: z.ZodBoolean;
6
6
  name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7
7
  display_name: z.ZodString;
8
- fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on"]>>;
8
+ fan_mode_setting: z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>;
9
9
  hvac_mode_setting: z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>;
10
10
  cooling_set_point_celsius: z.ZodOptional<z.ZodNumber>;
11
11
  heating_set_point_celsius: z.ZodOptional<z.ZodNumber>;
@@ -19,7 +19,7 @@ export declare const climate_preset: z.ZodObject<{
19
19
  can_delete: boolean;
20
20
  display_name: string;
21
21
  manual_override_allowed: boolean;
22
- fan_mode_setting?: "auto" | "on" | undefined;
22
+ fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
23
23
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
24
24
  cooling_set_point_celsius?: number | undefined;
25
25
  heating_set_point_celsius?: number | undefined;
@@ -32,7 +32,7 @@ export declare const climate_preset: z.ZodObject<{
32
32
  display_name: string;
33
33
  manual_override_allowed: boolean;
34
34
  name?: string | null | undefined;
35
- fan_mode_setting?: "auto" | "on" | undefined;
35
+ fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
36
36
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
37
37
  cooling_set_point_celsius?: number | undefined;
38
38
  heating_set_point_celsius?: number | undefined;
@@ -46,7 +46,7 @@ export declare const climate_setting: z.ZodObject<{
46
46
  can_delete: z.ZodOptional<z.ZodBoolean>;
47
47
  name: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
48
48
  display_name: z.ZodOptional<z.ZodString>;
49
- fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on"]>>>;
49
+ fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>>;
50
50
  hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
51
51
  cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
52
52
  heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -59,7 +59,7 @@ export declare const climate_setting: z.ZodObject<{
59
59
  can_edit?: boolean | undefined;
60
60
  can_delete?: boolean | undefined;
61
61
  display_name?: string | undefined;
62
- fan_mode_setting?: "auto" | "on" | undefined;
62
+ fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
63
63
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
64
64
  cooling_set_point_celsius?: number | undefined;
65
65
  heating_set_point_celsius?: number | undefined;
@@ -72,7 +72,7 @@ export declare const climate_setting: z.ZodObject<{
72
72
  can_edit?: boolean | undefined;
73
73
  can_delete?: boolean | undefined;
74
74
  display_name?: string | undefined;
75
- fan_mode_setting?: "auto" | "on" | undefined;
75
+ fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
76
76
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
77
77
  cooling_set_point_celsius?: number | undefined;
78
78
  heating_set_point_celsius?: number | undefined;
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const hvac_mode_setting: z.ZodEnum<["off", "heat", "cool", "heat_cool"]>;
3
3
  export type HvacModeSetting = z.infer<typeof hvac_mode_setting>;
4
- export declare const fan_mode_setting: z.ZodEnum<["auto", "on"]>;
4
+ export declare const fan_mode_setting: z.ZodEnum<["auto", "on", "circulate"]>;
5
5
  export type FanModeSetting = z.infer<typeof fan_mode_setting>;
6
+ export declare const available_fan_mode_settings: z.ZodArray<z.ZodEnum<["auto", "on", "circulate"]>, "many">;
7
+ export type AvailableFanModeSettings = z.infer<typeof available_fan_mode_settings>;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
2
  export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heat_cool']);
3
- export const fan_mode_setting = z.enum(['auto', 'on']);
3
+ export const fan_mode_setting = z.enum(['auto', 'on', 'circulate']);
4
+ export const available_fan_mode_settings = z.array(fan_mode_setting);
4
5
  //# sourceMappingURL=modes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modes.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/modes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAA;AAI7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"modes.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/modes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAA;AAI7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAA;AAInE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA"}
@@ -244,6 +244,10 @@ declare const _default: {
244
244
  format: string;
245
245
  type: string;
246
246
  };
247
+ card_number: {
248
+ nullable: boolean;
249
+ type: string;
250
+ };
247
251
  code: {
248
252
  nullable: boolean;
249
253
  type: string;
@@ -256,6 +260,11 @@ declare const _default: {
256
260
  minLength: number;
257
261
  type: string;
258
262
  };
263
+ encoded_at: {
264
+ format: string;
265
+ nullable: boolean;
266
+ type: string;
267
+ };
259
268
  ends_at: {
260
269
  type: string;
261
270
  };
@@ -281,6 +290,9 @@ declare const _default: {
281
290
  external_type_display_name: {
282
291
  type: string;
283
292
  };
293
+ is_encoded: {
294
+ type: string;
295
+ };
284
296
  is_latest_desired_state_synced_with_provider: {
285
297
  type: string;
286
298
  };
@@ -2407,6 +2419,7 @@ declare const _default: {
2407
2419
  };
2408
2420
  active_thermostat_schedule?: never;
2409
2421
  available_climate_presets?: never;
2422
+ available_fan_mode_settings?: never;
2410
2423
  available_hvac_mode_settings?: never;
2411
2424
  current_climate_setting?: never;
2412
2425
  default_climate_setting?: never;
@@ -2528,6 +2541,13 @@ declare const _default: {
2528
2541
  };
2529
2542
  type: string;
2530
2543
  };
2544
+ available_fan_mode_settings: {
2545
+ items: {
2546
+ enum: string[];
2547
+ type: string;
2548
+ };
2549
+ type: string;
2550
+ };
2531
2551
  available_hvac_mode_settings: {
2532
2552
  items: {
2533
2553
  enum: string[];
@@ -7212,6 +7232,10 @@ declare const _default: {
7212
7232
  format: string;
7213
7233
  type: string;
7214
7234
  };
7235
+ card_number: {
7236
+ nullable: boolean;
7237
+ type: string;
7238
+ };
7215
7239
  code: {
7216
7240
  nullable: boolean;
7217
7241
  type: string;
@@ -7224,6 +7248,11 @@ declare const _default: {
7224
7248
  minLength: number;
7225
7249
  type: string;
7226
7250
  };
7251
+ encoded_at: {
7252
+ format: string;
7253
+ nullable: boolean;
7254
+ type: string;
7255
+ };
7227
7256
  ends_at: {
7228
7257
  type: string;
7229
7258
  };
@@ -7249,6 +7278,9 @@ declare const _default: {
7249
7278
  external_type_display_name: {
7250
7279
  type: string;
7251
7280
  };
7281
+ is_encoded: {
7282
+ type: string;
7283
+ };
7252
7284
  is_latest_desired_state_synced_with_provider: {
7253
7285
  type: string;
7254
7286
  };
@@ -7459,6 +7491,10 @@ declare const _default: {
7459
7491
  format: string;
7460
7492
  type: string;
7461
7493
  };
7494
+ card_number: {
7495
+ nullable: boolean;
7496
+ type: string;
7497
+ };
7462
7498
  code: {
7463
7499
  nullable: boolean;
7464
7500
  type: string;
@@ -7471,6 +7507,11 @@ declare const _default: {
7471
7507
  minLength: number;
7472
7508
  type: string;
7473
7509
  };
7510
+ encoded_at: {
7511
+ format: string;
7512
+ nullable: boolean;
7513
+ type: string;
7514
+ };
7474
7515
  ends_at: {
7475
7516
  type: string;
7476
7517
  };
@@ -7496,6 +7537,9 @@ declare const _default: {
7496
7537
  external_type_display_name: {
7497
7538
  type: string;
7498
7539
  };
7540
+ is_encoded: {
7541
+ type: string;
7542
+ };
7499
7543
  is_latest_desired_state_synced_with_provider: {
7500
7544
  type: string;
7501
7545
  };
@@ -229,9 +229,11 @@ export default {
229
229
  acs_credential_pool_id: { format: 'uuid', type: 'string' },
230
230
  acs_system_id: { format: 'uuid', type: 'string' },
231
231
  acs_user_id: { format: 'uuid', type: 'string' },
232
+ card_number: { nullable: true, type: 'string' },
232
233
  code: { nullable: true, type: 'string' },
233
234
  created_at: { format: 'date-time', type: 'string' },
234
235
  display_name: { minLength: 1, type: 'string' },
236
+ encoded_at: { format: 'date-time', nullable: true, type: 'string' },
235
237
  ends_at: { type: 'string' },
236
238
  errors: {
237
239
  items: {
@@ -255,6 +257,7 @@ export default {
255
257
  type: 'string',
256
258
  },
257
259
  external_type_display_name: { type: 'string' },
260
+ is_encoded: { type: 'boolean' },
258
261
  is_latest_desired_state_synced_with_provider: { type: 'boolean' },
259
262
  is_managed: { enum: [true], type: 'boolean' },
260
263
  is_multi_phone_sync_credential: { type: 'boolean' },
@@ -2158,7 +2161,10 @@ export default {
2158
2161
  cooling_set_point_celsius: { format: 'float', type: 'number' },
2159
2162
  cooling_set_point_fahrenheit: { format: 'float', type: 'number' },
2160
2163
  display_name: { type: 'string' },
2161
- fan_mode_setting: { enum: ['auto', 'on'], type: 'string' },
2164
+ fan_mode_setting: {
2165
+ enum: ['auto', 'on', 'circulate'],
2166
+ type: 'string',
2167
+ },
2162
2168
  heating_set_point_celsius: { format: 'float', type: 'number' },
2163
2169
  heating_set_point_fahrenheit: { format: 'float', type: 'number' },
2164
2170
  hvac_mode_setting: {
@@ -3270,7 +3276,7 @@ export default {
3270
3276
  },
3271
3277
  display_name: { type: 'string' },
3272
3278
  fan_mode_setting: {
3273
- enum: ['auto', 'on'],
3279
+ enum: ['auto', 'on', 'circulate'],
3274
3280
  type: 'string',
3275
3281
  },
3276
3282
  heating_set_point_celsius: {
@@ -3303,6 +3309,13 @@ export default {
3303
3309
  },
3304
3310
  type: 'array',
3305
3311
  },
3312
+ available_fan_mode_settings: {
3313
+ items: {
3314
+ enum: ['auto', 'on', 'circulate'],
3315
+ type: 'string',
3316
+ },
3317
+ type: 'array',
3318
+ },
3306
3319
  available_hvac_mode_settings: {
3307
3320
  items: {
3308
3321
  enum: ['off', 'heat', 'cool', 'heat_cool'],
@@ -3325,7 +3338,7 @@ export default {
3325
3338
  },
3326
3339
  display_name: { type: 'string' },
3327
3340
  fan_mode_setting: {
3328
- enum: ['auto', 'on'],
3341
+ enum: ['auto', 'on', 'circulate'],
3329
3342
  type: 'string',
3330
3343
  },
3331
3344
  heating_set_point_celsius: {
@@ -3365,7 +3378,7 @@ export default {
3365
3378
  },
3366
3379
  display_name: { type: 'string' },
3367
3380
  fan_mode_setting: {
3368
- enum: ['auto', 'on'],
3381
+ enum: ['auto', 'on', 'circulate'],
3369
3382
  type: 'string',
3370
3383
  },
3371
3384
  heating_set_point_celsius: {
@@ -3398,7 +3411,7 @@ export default {
3398
3411
  },
3399
3412
  fan_mode_setting: {
3400
3413
  deprecated: true,
3401
- enum: ['auto', 'on'],
3414
+ enum: ['auto', 'on', 'circulate'],
3402
3415
  type: 'string',
3403
3416
  'x-deprecated': 'use current_climate_setting.fan_mode_setting instead.',
3404
3417
  },
@@ -6693,9 +6706,15 @@ export default {
6693
6706
  },
6694
6707
  acs_system_id: { format: 'uuid', type: 'string' },
6695
6708
  acs_user_id: { format: 'uuid', type: 'string' },
6709
+ card_number: { nullable: true, type: 'string' },
6696
6710
  code: { nullable: true, type: 'string' },
6697
6711
  created_at: { format: 'date-time', type: 'string' },
6698
6712
  display_name: { minLength: 1, type: 'string' },
6713
+ encoded_at: {
6714
+ format: 'date-time',
6715
+ nullable: true,
6716
+ type: 'string',
6717
+ },
6699
6718
  ends_at: { type: 'string' },
6700
6719
  errors: {
6701
6720
  items: {
@@ -6719,6 +6738,7 @@ export default {
6719
6738
  type: 'string',
6720
6739
  },
6721
6740
  external_type_display_name: { type: 'string' },
6741
+ is_encoded: { type: 'boolean' },
6722
6742
  is_latest_desired_state_synced_with_provider: {
6723
6743
  type: 'boolean',
6724
6744
  },
@@ -6870,9 +6890,15 @@ export default {
6870
6890
  },
6871
6891
  acs_system_id: { format: 'uuid', type: 'string' },
6872
6892
  acs_user_id: { format: 'uuid', type: 'string' },
6893
+ card_number: { nullable: true, type: 'string' },
6873
6894
  code: { nullable: true, type: 'string' },
6874
6895
  created_at: { format: 'date-time', type: 'string' },
6875
6896
  display_name: { minLength: 1, type: 'string' },
6897
+ encoded_at: {
6898
+ format: 'date-time',
6899
+ nullable: true,
6900
+ type: 'string',
6901
+ },
6876
6902
  ends_at: { type: 'string' },
6877
6903
  errors: {
6878
6904
  items: {
@@ -6896,6 +6922,7 @@ export default {
6896
6922
  type: 'string',
6897
6923
  },
6898
6924
  external_type_display_name: { type: 'string' },
6925
+ is_encoded: { type: 'boolean' },
6899
6926
  is_latest_desired_state_synced_with_provider: {
6900
6927
  type: 'boolean',
6901
6928
  },
@@ -12805,7 +12832,10 @@ export default {
12805
12832
  type: 'number',
12806
12833
  },
12807
12834
  device_id: { format: 'uuid', type: 'string' },
12808
- fan_mode_setting: { enum: ['auto', 'on'], type: 'string' },
12835
+ fan_mode_setting: {
12836
+ enum: ['auto', 'on', 'circulate'],
12837
+ type: 'string',
12838
+ },
12809
12839
  heating_set_point_celsius: {
12810
12840
  format: 'float',
12811
12841
  type: 'number',
@@ -13746,11 +13776,14 @@ export default {
13746
13776
  device_id: { format: 'uuid', type: 'string' },
13747
13777
  fan_mode: {
13748
13778
  deprecated: true,
13749
- enum: ['auto', 'on'],
13779
+ enum: ['auto', 'on', 'circulate'],
13750
13780
  type: 'string',
13751
13781
  'x-deprecated': 'use fan_mode_setting instead.',
13752
13782
  },
13753
- fan_mode_setting: { enum: ['auto', 'on'], type: 'string' },
13783
+ fan_mode_setting: {
13784
+ enum: ['auto', 'on', 'circulate'],
13785
+ type: 'string',
13786
+ },
13754
13787
  sync: { default: false, type: 'boolean' },
13755
13788
  },
13756
13789
  required: ['device_id'],
@@ -13811,7 +13844,10 @@ export default {
13811
13844
  type: 'number',
13812
13845
  },
13813
13846
  device_id: { format: 'uuid', type: 'string' },
13814
- fan_mode_setting: { enum: ['auto', 'on'], type: 'string' },
13847
+ fan_mode_setting: {
13848
+ enum: ['auto', 'on', 'circulate'],
13849
+ type: 'string',
13850
+ },
13815
13851
  heating_set_point_celsius: {
13816
13852
  format: 'float',
13817
13853
  type: 'number',
@@ -13879,7 +13915,10 @@ export default {
13879
13915
  type: 'number',
13880
13916
  },
13881
13917
  device_id: { format: 'uuid', type: 'string' },
13882
- fan_mode_setting: { enum: ['auto', 'on'], type: 'string' },
13918
+ fan_mode_setting: {
13919
+ enum: ['auto', 'on', 'circulate'],
13920
+ type: 'string',
13921
+ },
13883
13922
  heating_set_point_celsius: {
13884
13923
  format: 'float',
13885
13924
  type: 'number',