@seamapi/types 1.1198.0 → 1.1199.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1198.0",
3
+ "version": "1.1199.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1443,6 +1443,42 @@ export const device_metadata = z
1443
1443
  .partial()
1444
1444
  .describe(`Metadata for an Aqara device.`),
1445
1445
 
1446
+ tuya_metadata: z
1447
+ .object({
1448
+ device_id: z
1449
+ .string()
1450
+ .optional()
1451
+ .describe(`Device ID for a Tuya device.`),
1452
+ device_name: z
1453
+ .string()
1454
+ .optional()
1455
+ .describe(`Device name for a Tuya device.`),
1456
+ category: z
1457
+ .string()
1458
+ .optional()
1459
+ .describe(`Tuya product category code for the device (e.g. ms).`),
1460
+ product_id: z
1461
+ .string()
1462
+ .optional()
1463
+ .describe(`Tuya product ID for the device.`),
1464
+ product_name: z
1465
+ .string()
1466
+ .optional()
1467
+ .describe(`Tuya product name for the device.`),
1468
+ model: z
1469
+ .string()
1470
+ .nullable()
1471
+ .optional()
1472
+ .describe(`Model reported for a Tuya device.`),
1473
+ time_zone: z
1474
+ .string()
1475
+ .nullable()
1476
+ .optional()
1477
+ .describe(`Time zone reported for a Tuya device (e.g. +08:00).`),
1478
+ })
1479
+ .partial()
1480
+ .describe(`Metadata for a Tuya device.`),
1481
+
1446
1482
  eufy_metadata: z
1447
1483
  .object({
1448
1484
  device_id: z.string().optional(),
@@ -80,6 +80,7 @@ export const DEVICE_PROVIDERS = {
80
80
  EUFY: 'eufy',
81
81
  SONOS: 'sonos',
82
82
  HAYWARD_OMNILOGIC: 'hayward_omnilogic',
83
+ TUYA: 'tuya',
83
84
  } as const
84
85
 
85
86
  export type DeviceProviderName =
@@ -173,6 +174,7 @@ export const PROVIDER_CATEGORY_MAP = {
173
174
  'unifi_protect',
174
175
  'yale_connect',
175
176
  'alertify',
177
+ 'tuya',
176
178
  ],
177
179
 
178
180
  thermostats: [
@@ -37,6 +37,7 @@ export const LOCK_DEVICE_TYPE = {
37
37
  OMNITEC_LOCK: 'omnitec_lock',
38
38
  KISI_LOCK: 'kisi_lock',
39
39
  AQARA_LOCK: 'aqara_lock',
40
+ TUYA_LOCK: 'tuya_lock',
40
41
  EUFY_LOCK: 'eufy_lock',
41
42
  } as const
42
43
 
@@ -16182,6 +16182,7 @@ const openapi: OpenAPISpec = {
16182
16182
  'omnitec_lock',
16183
16183
  'kisi_lock',
16184
16184
  'aqara_lock',
16185
+ 'tuya_lock',
16185
16186
  'eufy_lock',
16186
16187
  ],
16187
16188
  type: 'string',
@@ -18790,6 +18791,44 @@ const openapi: OpenAPISpec = {
18790
18791
  },
18791
18792
  type: 'object',
18792
18793
  },
18794
+ tuya_metadata: {
18795
+ description: 'Metadata for a Tuya device.',
18796
+ properties: {
18797
+ category: {
18798
+ description:
18799
+ 'Tuya product category code for the device (e.g. ms).',
18800
+ type: 'string',
18801
+ },
18802
+ device_id: {
18803
+ description: 'Device ID for a Tuya device.',
18804
+ type: 'string',
18805
+ },
18806
+ device_name: {
18807
+ description: 'Device name for a Tuya device.',
18808
+ type: 'string',
18809
+ },
18810
+ model: {
18811
+ description: 'Model reported for a Tuya device.',
18812
+ nullable: true,
18813
+ type: 'string',
18814
+ },
18815
+ product_id: {
18816
+ description: 'Tuya product ID for the device.',
18817
+ type: 'string',
18818
+ },
18819
+ product_name: {
18820
+ description: 'Tuya product name for the device.',
18821
+ type: 'string',
18822
+ },
18823
+ time_zone: {
18824
+ description:
18825
+ 'Time zone reported for a Tuya device (e.g. +08:00).',
18826
+ nullable: true,
18827
+ type: 'string',
18828
+ },
18829
+ },
18830
+ type: 'object',
18831
+ },
18793
18832
  two_n_metadata: {
18794
18833
  description: 'Metadata for a 2N device.',
18795
18834
  properties: {
@@ -21469,6 +21508,7 @@ const openapi: OpenAPISpec = {
21469
21508
  'eufy',
21470
21509
  'sonos',
21471
21510
  'hayward_omnilogic',
21511
+ 'tuya',
21472
21512
  ],
21473
21513
  type: 'string',
21474
21514
  },
@@ -41952,6 +41992,7 @@ const openapi: OpenAPISpec = {
41952
41992
  'omnitec_lock',
41953
41993
  'kisi_lock',
41954
41994
  'aqara_lock',
41995
+ 'tuya_lock',
41955
41996
  'eufy_lock',
41956
41997
  ],
41957
41998
  type: 'string',
@@ -52975,6 +53016,7 @@ const openapi: OpenAPISpec = {
52975
53016
  'eufy',
52976
53017
  'sonos',
52977
53018
  'hayward_omnilogic',
53019
+ 'tuya',
52978
53020
  'hid_cm',
52979
53021
  'google_nest',
52980
53022
  'slack',
@@ -56901,6 +56943,7 @@ const openapi: OpenAPISpec = {
56901
56943
  'omnitec_lock',
56902
56944
  'kisi_lock',
56903
56945
  'aqara_lock',
56946
+ 'tuya_lock',
56904
56947
  'eufy_lock',
56905
56948
  ],
56906
56949
  type: 'string',
@@ -57008,6 +57051,7 @@ const openapi: OpenAPISpec = {
57008
57051
  'omnitec_lock',
57009
57052
  'kisi_lock',
57010
57053
  'aqara_lock',
57054
+ 'tuya_lock',
57011
57055
  'eufy_lock',
57012
57056
  ],
57013
57057
  type: 'string',
@@ -57141,6 +57185,7 @@ const openapi: OpenAPISpec = {
57141
57185
  'yacan',
57142
57186
  'sonos',
57143
57187
  'hayward_omnilogic',
57188
+ 'tuya',
57144
57189
  ],
57145
57190
  type: 'string',
57146
57191
  },
@@ -59298,6 +59343,7 @@ const openapi: OpenAPISpec = {
59298
59343
  'omnitec_lock',
59299
59344
  'kisi_lock',
59300
59345
  'aqara_lock',
59346
+ 'tuya_lock',
59301
59347
  'eufy_lock',
59302
59348
  ],
59303
59349
  type: 'string',
@@ -59405,6 +59451,7 @@ const openapi: OpenAPISpec = {
59405
59451
  'omnitec_lock',
59406
59452
  'kisi_lock',
59407
59453
  'aqara_lock',
59454
+ 'tuya_lock',
59408
59455
  'eufy_lock',
59409
59456
  ],
59410
59457
  type: 'string',
@@ -59538,6 +59585,7 @@ const openapi: OpenAPISpec = {
59538
59585
  'yacan',
59539
59586
  'sonos',
59540
59587
  'hayward_omnilogic',
59588
+ 'tuya',
59541
59589
  ],
59542
59590
  type: 'string',
59543
59591
  },
@@ -60906,6 +60954,7 @@ const openapi: OpenAPISpec = {
60906
60954
  'omnitec_lock',
60907
60955
  'kisi_lock',
60908
60956
  'aqara_lock',
60957
+ 'tuya_lock',
60909
60958
  'eufy_lock',
60910
60959
  ],
60911
60960
  type: 'string',
@@ -60953,6 +61002,7 @@ const openapi: OpenAPISpec = {
60953
61002
  'omnitec_lock',
60954
61003
  'kisi_lock',
60955
61004
  'aqara_lock',
61005
+ 'tuya_lock',
60956
61006
  'eufy_lock',
60957
61007
  ],
60958
61008
  type: 'string',
@@ -61002,6 +61052,7 @@ const openapi: OpenAPISpec = {
61002
61052
  'omnitec',
61003
61053
  'kisi',
61004
61054
  'yacan',
61055
+ 'tuya',
61005
61056
  ],
61006
61057
  type: 'string',
61007
61058
  },