@seamapi/types 1.429.1 → 1.431.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 (35) hide show
  1. package/dist/connect.cjs +145 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +573 -0
  4. package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -0
  5. package/lib/seam/connect/models/acs/acs-credential.js +5 -0
  6. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +24 -0
  8. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +10 -0
  9. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +14 -0
  10. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +18 -0
  11. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +18 -0
  12. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +8 -1
  13. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  14. package/lib/seam/connect/models/devices/device.d.ts +26 -0
  15. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +18 -0
  16. package/lib/seam/connect/models/events/devices.d.ts +2 -0
  17. package/lib/seam/connect/models/events/seam-event.d.ts +1 -0
  18. package/lib/seam/connect/models/phones/phone-session.d.ts +12 -0
  19. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +6 -0
  20. package/lib/seam/connect/models/thermostats/climate-preset.js +4 -1
  21. package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
  22. package/lib/seam/connect/models/thermostats/modes.d.ts +2 -0
  23. package/lib/seam/connect/models/thermostats/modes.js +8 -0
  24. package/lib/seam/connect/models/thermostats/modes.js.map +1 -1
  25. package/lib/seam/connect/openapi.d.ts +76 -0
  26. package/lib/seam/connect/openapi.js +124 -0
  27. package/lib/seam/connect/openapi.js.map +1 -1
  28. package/lib/seam/connect/route-types.d.ts +422 -0
  29. package/package.json +2 -2
  30. package/src/lib/seam/connect/models/acs/acs-credential.ts +7 -0
  31. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +8 -0
  32. package/src/lib/seam/connect/models/thermostats/climate-preset.ts +8 -1
  33. package/src/lib/seam/connect/models/thermostats/modes.ts +11 -0
  34. package/src/lib/seam/connect/openapi.ts +138 -0
  35. package/src/lib/seam/connect/route-types.ts +907 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.429.1",
3
+ "version": "1.431.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -92,7 +92,7 @@
92
92
  "zod": "^3.24.0"
93
93
  },
94
94
  "devDependencies": {
95
- "@seamapi/blueprint": "^0.50.2",
95
+ "@seamapi/blueprint": "^0.50.6",
96
96
  "@types/node": "^20.8.10",
97
97
  "concurrently": "^8.2.0",
98
98
  "del-cli": "^5.0.0",
@@ -142,6 +142,13 @@ const common_acs_credential = z.object({
142
142
  .describe(
143
143
  'ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs.',
144
144
  ),
145
+ user_identity_id: z
146
+ .string()
147
+ .uuid()
148
+ .optional()
149
+ .describe(
150
+ 'ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs.',
151
+ ),
145
152
  connected_account_id: z
146
153
  .string()
147
154
  .uuid()
@@ -2,6 +2,7 @@ import { z } from 'zod'
2
2
 
3
3
  import {
4
4
  climate_preset,
5
+ climate_preset_mode,
5
6
  climate_setting,
6
7
  fan_mode_setting,
7
8
  hvac_mode_setting,
@@ -42,6 +43,13 @@ export const thermostat_capability_properties = z
42
43
  ---
43
44
  Fan mode settings that the thermostat supports.
44
45
  `),
46
+ available_climate_preset_modes: z.array(climate_preset_mode).describe(`
47
+ ---
48
+ property_group_key: thermostats
49
+ draft: Needs review.
50
+ ---
51
+ Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied".
52
+ `),
45
53
  is_heating: z.boolean().describe(`
46
54
  ---
47
55
  property_group_key: thermostats
@@ -1,6 +1,10 @@
1
1
  import { z } from 'zod'
2
2
 
3
- import { fan_mode_setting, hvac_mode_setting } from './modes.js'
3
+ import {
4
+ climate_preset_mode,
5
+ fan_mode_setting,
6
+ hvac_mode_setting,
7
+ } from './modes.js'
4
8
 
5
9
  export const climate_preset = z.object({
6
10
  climate_preset_key: z
@@ -36,6 +40,9 @@ export const climate_preset = z.object({
36
40
  .describe(
37
41
  'Display name for the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
38
42
  ),
43
+ climate_preset_mode: climate_preset_mode.optional().describe(`
44
+ The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.
45
+ `),
39
46
  fan_mode_setting: fan_mode_setting
40
47
  .optional()
41
48
  .describe(
@@ -13,3 +13,14 @@ export const available_fan_mode_settings = z.array(fan_mode_setting)
13
13
  export type AvailableFanModeSettings = z.infer<
14
14
  typeof available_fan_mode_settings
15
15
  >
16
+
17
+ export const climate_preset_mode = z.enum([
18
+ 'home',
19
+ 'away',
20
+ 'wake',
21
+ 'sleep',
22
+ 'occupied',
23
+ 'unoccupied',
24
+ ])
25
+
26
+ export type ClimatePresetMode = z.infer<typeof climate_preset_mode>
@@ -2289,6 +2289,12 @@ export default {
2289
2289
  'Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
2290
2290
  type: 'string',
2291
2291
  },
2292
+ user_identity_id: {
2293
+ description:
2294
+ 'ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs.',
2295
+ format: 'uuid',
2296
+ type: 'string',
2297
+ },
2292
2298
  visionline_metadata: {
2293
2299
  description:
2294
2300
  'Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).',
@@ -4663,6 +4669,12 @@ export default {
4663
4669
  'Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
4664
4670
  type: 'string',
4665
4671
  },
4672
+ user_identity_id: {
4673
+ description:
4674
+ 'ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs.',
4675
+ format: 'uuid',
4676
+ type: 'string',
4677
+ },
4666
4678
  visionline_metadata: {
4667
4679
  description:
4668
4680
  'Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).',
@@ -5111,6 +5123,12 @@ export default {
5111
5123
  'Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
5112
5124
  type: 'string',
5113
5125
  },
5126
+ user_identity_id: {
5127
+ description:
5128
+ 'ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs.',
5129
+ format: 'uuid',
5130
+ type: 'string',
5131
+ },
5114
5132
  visionline_metadata: {
5115
5133
  description:
5116
5134
  'Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).',
@@ -5758,6 +5776,12 @@ export default {
5758
5776
  'Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
5759
5777
  type: 'string',
5760
5778
  },
5779
+ user_identity_id: {
5780
+ description:
5781
+ 'ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs.',
5782
+ format: 'uuid',
5783
+ type: 'string',
5784
+ },
5761
5785
  visionline_metadata: {
5762
5786
  description:
5763
5787
  'Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).',
@@ -6203,6 +6227,12 @@ export default {
6203
6227
  'Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
6204
6228
  type: 'string',
6205
6229
  },
6230
+ user_identity_id: {
6231
+ description:
6232
+ 'ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs.',
6233
+ format: 'uuid',
6234
+ type: 'string',
6235
+ },
6206
6236
  visionline_metadata: {
6207
6237
  description:
6208
6238
  'Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).',
@@ -11466,6 +11496,24 @@ export default {
11466
11496
  type: 'string',
11467
11497
  'x-property-group-key': 'thermostats',
11468
11498
  },
11499
+ available_climate_preset_modes: {
11500
+ description:
11501
+ 'Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied".',
11502
+ items: {
11503
+ enum: [
11504
+ 'home',
11505
+ 'away',
11506
+ 'wake',
11507
+ 'sleep',
11508
+ 'occupied',
11509
+ 'unoccupied',
11510
+ ],
11511
+ type: 'string',
11512
+ },
11513
+ type: 'array',
11514
+ 'x-draft': 'Needs review.',
11515
+ 'x-property-group-key': 'thermostats',
11516
+ },
11469
11517
  available_climate_presets: {
11470
11518
  description:
11471
11519
  'Available [climate presets](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat.',
@@ -11491,6 +11539,19 @@ export default {
11491
11539
  'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
11492
11540
  type: 'string',
11493
11541
  },
11542
+ climate_preset_mode: {
11543
+ description:
11544
+ '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
11545
+ enum: [
11546
+ 'home',
11547
+ 'away',
11548
+ 'wake',
11549
+ 'sleep',
11550
+ 'occupied',
11551
+ 'unoccupied',
11552
+ ],
11553
+ type: 'string',
11554
+ },
11494
11555
  cooling_set_point_celsius: {
11495
11556
  description:
11496
11557
  'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
@@ -11604,6 +11665,19 @@ export default {
11604
11665
  'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
11605
11666
  type: 'string',
11606
11667
  },
11668
+ climate_preset_mode: {
11669
+ description:
11670
+ '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
11671
+ enum: [
11672
+ 'home',
11673
+ 'away',
11674
+ 'wake',
11675
+ 'sleep',
11676
+ 'occupied',
11677
+ 'unoccupied',
11678
+ ],
11679
+ type: 'string',
11680
+ },
11607
11681
  cooling_set_point_celsius: {
11608
11682
  description:
11609
11683
  'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
@@ -11687,6 +11761,19 @@ export default {
11687
11761
  'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
11688
11762
  type: 'string',
11689
11763
  },
11764
+ climate_preset_mode: {
11765
+ description:
11766
+ '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
11767
+ enum: [
11768
+ 'home',
11769
+ 'away',
11770
+ 'wake',
11771
+ 'sleep',
11772
+ 'occupied',
11773
+ 'unoccupied',
11774
+ ],
11775
+ type: 'string',
11776
+ },
11690
11777
  cooling_set_point_celsius: {
11691
11778
  description:
11692
11779
  'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
@@ -18668,6 +18755,12 @@ export default {
18668
18755
  'Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
18669
18756
  type: 'string',
18670
18757
  },
18758
+ user_identity_id: {
18759
+ description:
18760
+ 'ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs.',
18761
+ format: 'uuid',
18762
+ type: 'string',
18763
+ },
18671
18764
  visionline_metadata: {
18672
18765
  description:
18673
18766
  'Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).',
@@ -21236,6 +21329,12 @@ export default {
21236
21329
  'Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
21237
21330
  type: 'string',
21238
21331
  },
21332
+ user_identity_id: {
21333
+ description:
21334
+ 'ID of the [user identity](https://docs.seam.co/latest/api/user_identities) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs.',
21335
+ format: 'uuid',
21336
+ type: 'string',
21337
+ },
21239
21338
  visionline_metadata: {
21240
21339
  description:
21241
21340
  'Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).',
@@ -46433,6 +46532,19 @@ export default {
46433
46532
  'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
46434
46533
  type: 'string',
46435
46534
  },
46535
+ climate_preset_mode: {
46536
+ description:
46537
+ '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
46538
+ enum: [
46539
+ 'home',
46540
+ 'away',
46541
+ 'wake',
46542
+ 'sleep',
46543
+ 'occupied',
46544
+ 'unoccupied',
46545
+ ],
46546
+ type: 'string',
46547
+ },
46436
46548
  cooling_set_point_celsius: {
46437
46549
  description:
46438
46550
  'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
@@ -49158,6 +49270,19 @@ export default {
49158
49270
  'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
49159
49271
  type: 'string',
49160
49272
  },
49273
+ climate_preset_mode: {
49274
+ description:
49275
+ '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
49276
+ enum: [
49277
+ 'home',
49278
+ 'away',
49279
+ 'wake',
49280
+ 'sleep',
49281
+ 'occupied',
49282
+ 'unoccupied',
49283
+ ],
49284
+ type: 'string',
49285
+ },
49161
49286
  cooling_set_point_celsius: {
49162
49287
  description:
49163
49288
  'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',
@@ -49265,6 +49390,19 @@ export default {
49265
49390
  'Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).',
49266
49391
  type: 'string',
49267
49392
  },
49393
+ climate_preset_mode: {
49394
+ description:
49395
+ '\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ',
49396
+ enum: [
49397
+ 'home',
49398
+ 'away',
49399
+ 'wake',
49400
+ 'sleep',
49401
+ 'occupied',
49402
+ 'unoccupied',
49403
+ ],
49404
+ type: 'string',
49405
+ },
49268
49406
  cooling_set_point_celsius: {
49269
49407
  description:
49270
49408
  'Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).',