@seamapi/types 1.252.2 → 1.253.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 +42 -14
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +197 -120
  4. package/lib/seam/connect/models/acs/acs-credential.d.ts +36 -36
  5. package/lib/seam/connect/models/acs/acs-system.d.ts +4 -4
  6. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +5 -5
  7. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +5 -5
  8. package/lib/seam/connect/models/devices/device-metadata.d.ts +13 -0
  9. package/lib/seam/connect/models/devices/device-metadata.js +3 -0
  10. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  11. package/lib/seam/connect/models/devices/device-type.d.ts +8 -1
  12. package/lib/seam/connect/models/devices/device-type.js +7 -0
  13. package/lib/seam/connect/models/devices/device-type.js.map +1 -1
  14. package/lib/seam/connect/models/devices/device.d.ts +28 -9
  15. package/lib/seam/connect/models/devices/phone.d.ts +19 -6
  16. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -8
  17. package/lib/seam/connect/models/events/devices.d.ts +1 -1
  18. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +3 -3
  19. package/lib/seam/connect/models/thermostats/climate-preset.js +1 -1
  20. package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
  21. package/lib/seam/connect/openapi.d.ts +9 -0
  22. package/lib/seam/connect/openapi.js +17 -0
  23. package/lib/seam/connect/openapi.js.map +1 -1
  24. package/lib/seam/connect/route-types.d.ts +99 -63
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/models/devices/device-metadata.ts +4 -0
  27. package/src/lib/seam/connect/models/devices/device-type.ts +17 -0
  28. package/src/lib/seam/connect/models/thermostats/climate-preset.ts +1 -1
  29. package/src/lib/seam/connect/openapi.ts +17 -0
  30. package/src/lib/seam/connect/route-types.ts +123 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.252.2",
3
+ "version": "1.253.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -237,6 +237,10 @@ export const device_metadata = z
237
237
  bridge_name: z.string(),
238
238
  keypad_id: z.number().optional(),
239
239
  }),
240
+
241
+ visionline_metadata: z.object({
242
+ encoder_id: z.string(),
243
+ }),
240
244
  })
241
245
  .partial()
242
246
 
@@ -101,11 +101,28 @@ export const phone_device_type = z.enum(
101
101
 
102
102
  export type PhoneDeviceType = z.infer<typeof phone_device_type>
103
103
 
104
+ /** Encoders */
105
+ export const ENCODER_DEVICE_TYPE = {
106
+ VISIONLINE_ENCODER: 'visionline_encoder',
107
+ } as const
108
+
109
+ type EncoderDeviceTypeFromMapping =
110
+ (typeof ENCODER_DEVICE_TYPE)[keyof typeof ENCODER_DEVICE_TYPE]
111
+
112
+ export const ENCODER_DEVICE_TYPE_LIST = Object.values(ENCODER_DEVICE_TYPE)
113
+
114
+ export const encoder_device_type = z.enum(
115
+ Object.values(ENCODER_DEVICE_TYPE_LIST) as [EncoderDeviceTypeFromMapping],
116
+ )
117
+
118
+ export type EncoderDeviceType = z.infer<typeof encoder_device_type>
119
+
104
120
  export const any_device_type = z.union([
105
121
  lock_device_type,
106
122
  noise_sensor_device_type,
107
123
  thermostat_device_type,
108
124
  phone_device_type,
125
+ encoder_device_type,
109
126
  ])
110
127
 
111
128
  export type AnyDeviceType = z.infer<typeof any_device_type>
@@ -6,7 +6,7 @@ export const climate_preset = z.object({
6
6
  climate_preset_key: z.string(),
7
7
  can_edit: z.boolean(),
8
8
  can_delete: z.boolean(),
9
- name: z.string().nullable().default(null),
9
+ name: z.string().nullable().default(null).optional(),
10
10
  display_name: z.string(),
11
11
  fan_mode_setting: fan_mode_setting.optional(),
12
12
  hvac_mode_setting: hvac_mode_setting.optional(),
@@ -2586,6 +2586,7 @@ export default {
2586
2586
  type: 'string',
2587
2587
  },
2588
2588
  { enum: ['ios_phone', 'android_phone'], type: 'string' },
2589
+ { enum: ['visionline_encoder'], type: 'string' },
2589
2590
  ],
2590
2591
  },
2591
2592
  display_name: {
@@ -3322,6 +3323,11 @@ export default {
3322
3323
  required: ['device_id', 'device_name'],
3323
3324
  type: 'object',
3324
3325
  },
3326
+ visionline_metadata: {
3327
+ properties: { encoder_id: { type: 'string' } },
3328
+ required: ['encoder_id'],
3329
+ type: 'object',
3330
+ },
3325
3331
  wyze_metadata: {
3326
3332
  properties: {
3327
3333
  device_id: { type: 'string' },
@@ -4291,6 +4297,7 @@ export default {
4291
4297
  type: 'string',
4292
4298
  },
4293
4299
  { enum: ['ios_phone', 'android_phone'], type: 'string' },
4300
+ { enum: ['visionline_encoder'], type: 'string' },
4294
4301
  ],
4295
4302
  },
4296
4303
  errors: {
@@ -10654,6 +10661,7 @@ export default {
10654
10661
  type: 'string',
10655
10662
  },
10656
10663
  { enum: ['ios_phone', 'android_phone'], type: 'string' },
10664
+ { enum: ['visionline_encoder'], type: 'string' },
10657
10665
  ],
10658
10666
  },
10659
10667
  device_types: {
@@ -10706,6 +10714,7 @@ export default {
10706
10714
  enum: ['ios_phone', 'android_phone'],
10707
10715
  type: 'string',
10708
10716
  },
10717
+ { enum: ['visionline_encoder'], type: 'string' },
10709
10718
  ],
10710
10719
  },
10711
10720
  type: 'array',
@@ -11136,6 +11145,7 @@ export default {
11136
11145
  type: 'string',
11137
11146
  },
11138
11147
  { enum: ['ios_phone', 'android_phone'], type: 'string' },
11148
+ { enum: ['visionline_encoder'], type: 'string' },
11139
11149
  ],
11140
11150
  },
11141
11151
  device_types: {
@@ -11188,6 +11198,7 @@ export default {
11188
11198
  enum: ['ios_phone', 'android_phone'],
11189
11199
  type: 'string',
11190
11200
  },
11201
+ { enum: ['visionline_encoder'], type: 'string' },
11191
11202
  ],
11192
11203
  },
11193
11204
  type: 'array',
@@ -11898,6 +11909,7 @@ export default {
11898
11909
  type: 'string',
11899
11910
  },
11900
11911
  { enum: ['ios_phone', 'android_phone'], type: 'string' },
11912
+ { enum: ['visionline_encoder'], type: 'string' },
11901
11913
  ],
11902
11914
  },
11903
11915
  device_types: {
@@ -11950,6 +11962,7 @@ export default {
11950
11962
  enum: ['ios_phone', 'android_phone'],
11951
11963
  type: 'string',
11952
11964
  },
11965
+ { enum: ['visionline_encoder'], type: 'string' },
11953
11966
  ],
11954
11967
  },
11955
11968
  type: 'array',
@@ -12343,6 +12356,7 @@ export default {
12343
12356
  type: 'string',
12344
12357
  },
12345
12358
  { enum: ['ios_phone', 'android_phone'], type: 'string' },
12359
+ { enum: ['visionline_encoder'], type: 'string' },
12346
12360
  ],
12347
12361
  },
12348
12362
  device_types: {
@@ -12395,6 +12409,7 @@ export default {
12395
12409
  enum: ['ios_phone', 'android_phone'],
12396
12410
  type: 'string',
12397
12411
  },
12412
+ { enum: ['visionline_encoder'], type: 'string' },
12398
12413
  ],
12399
12414
  },
12400
12415
  type: 'array',
@@ -13592,6 +13607,7 @@ export default {
13592
13607
  type: 'string',
13593
13608
  },
13594
13609
  { enum: ['ios_phone', 'android_phone'], type: 'string' },
13610
+ { enum: ['visionline_encoder'], type: 'string' },
13595
13611
  ],
13596
13612
  },
13597
13613
  device_types: {
@@ -13644,6 +13660,7 @@ export default {
13644
13660
  enum: ['ios_phone', 'android_phone'],
13645
13661
  type: 'string',
13646
13662
  },
13663
+ { enum: ['visionline_encoder'], type: 'string' },
13647
13664
  ],
13648
13665
  },
13649
13666
  type: 'array',