@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.
- package/dist/connect.cjs +42 -14
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +197 -120
- package/lib/seam/connect/models/acs/acs-credential.d.ts +36 -36
- package/lib/seam/connect/models/acs/acs-system.d.ts +4 -4
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +5 -5
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +5 -5
- package/lib/seam/connect/models/devices/device-metadata.d.ts +13 -0
- package/lib/seam/connect/models/devices/device-metadata.js +3 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +8 -1
- package/lib/seam/connect/models/devices/device-type.js +7 -0
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +28 -9
- package/lib/seam/connect/models/devices/phone.d.ts +19 -6
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -8
- package/lib/seam/connect/models/events/devices.d.ts +1 -1
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +3 -3
- package/lib/seam/connect/models/thermostats/climate-preset.js +1 -1
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +9 -0
- package/lib/seam/connect/openapi.js +17 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +99 -63
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-metadata.ts +4 -0
- package/src/lib/seam/connect/models/devices/device-type.ts +17 -0
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +17 -0
- package/src/lib/seam/connect/route-types.ts +123 -39
package/dist/connect.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var climate_preset = zod.z.object({
|
|
|
144
144
|
climate_preset_key: zod.z.string(),
|
|
145
145
|
can_edit: zod.z.boolean(),
|
|
146
146
|
can_delete: zod.z.boolean(),
|
|
147
|
-
name: zod.z.string().nullable().default(null),
|
|
147
|
+
name: zod.z.string().nullable().default(null).optional(),
|
|
148
148
|
display_name: zod.z.string(),
|
|
149
149
|
fan_mode_setting: fan_mode_setting.optional(),
|
|
150
150
|
hvac_mode_setting: hvac_mode_setting.optional(),
|
|
@@ -639,6 +639,9 @@ var device_metadata = zod.z.object({
|
|
|
639
639
|
bridge_id: zod.z.number(),
|
|
640
640
|
bridge_name: zod.z.string(),
|
|
641
641
|
keypad_id: zod.z.number().optional()
|
|
642
|
+
}),
|
|
643
|
+
visionline_metadata: zod.z.object({
|
|
644
|
+
encoder_id: zod.z.string()
|
|
642
645
|
})
|
|
643
646
|
}).partial();
|
|
644
647
|
var LOCK_DEVICE_TYPE = {
|
|
@@ -697,11 +700,19 @@ var PHONE_DEVICE_TYPE_LIST = Object.values(
|
|
|
697
700
|
var phone_device_type = zod.z.enum(
|
|
698
701
|
Object.values(PHONE_DEVICE_TYPE_LIST)
|
|
699
702
|
);
|
|
703
|
+
var ENCODER_DEVICE_TYPE = {
|
|
704
|
+
VISIONLINE_ENCODER: "visionline_encoder"
|
|
705
|
+
};
|
|
706
|
+
var ENCODER_DEVICE_TYPE_LIST = Object.values(ENCODER_DEVICE_TYPE);
|
|
707
|
+
var encoder_device_type = zod.z.enum(
|
|
708
|
+
Object.values(ENCODER_DEVICE_TYPE_LIST)
|
|
709
|
+
);
|
|
700
710
|
var any_device_type = zod.z.union([
|
|
701
711
|
lock_device_type,
|
|
702
712
|
noise_sensor_device_type,
|
|
703
713
|
thermostat_device_type,
|
|
704
|
-
phone_device_type
|
|
714
|
+
phone_device_type,
|
|
715
|
+
encoder_device_type
|
|
705
716
|
]);
|
|
706
717
|
var phone_specific_properties = zod.z.object({
|
|
707
718
|
assa_abloy_credential_service_metadata: zod.z.object({
|
|
@@ -4946,7 +4957,8 @@ var openapi_default = {
|
|
|
4946
4957
|
],
|
|
4947
4958
|
type: "string"
|
|
4948
4959
|
},
|
|
4949
|
-
{ enum: ["ios_phone", "android_phone"], type: "string" }
|
|
4960
|
+
{ enum: ["ios_phone", "android_phone"], type: "string" },
|
|
4961
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
4950
4962
|
]
|
|
4951
4963
|
},
|
|
4952
4964
|
display_name: {
|
|
@@ -5660,6 +5672,11 @@ var openapi_default = {
|
|
|
5660
5672
|
required: ["device_id", "device_name"],
|
|
5661
5673
|
type: "object"
|
|
5662
5674
|
},
|
|
5675
|
+
visionline_metadata: {
|
|
5676
|
+
properties: { encoder_id: { type: "string" } },
|
|
5677
|
+
required: ["encoder_id"],
|
|
5678
|
+
type: "object"
|
|
5679
|
+
},
|
|
5663
5680
|
wyze_metadata: {
|
|
5664
5681
|
properties: {
|
|
5665
5682
|
device_id: { type: "string" },
|
|
@@ -6604,7 +6621,8 @@ var openapi_default = {
|
|
|
6604
6621
|
],
|
|
6605
6622
|
type: "string"
|
|
6606
6623
|
},
|
|
6607
|
-
{ enum: ["ios_phone", "android_phone"], type: "string" }
|
|
6624
|
+
{ enum: ["ios_phone", "android_phone"], type: "string" },
|
|
6625
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
6608
6626
|
]
|
|
6609
6627
|
},
|
|
6610
6628
|
errors: {
|
|
@@ -12851,7 +12869,8 @@ var openapi_default = {
|
|
|
12851
12869
|
],
|
|
12852
12870
|
type: "string"
|
|
12853
12871
|
},
|
|
12854
|
-
{ enum: ["ios_phone", "android_phone"], type: "string" }
|
|
12872
|
+
{ enum: ["ios_phone", "android_phone"], type: "string" },
|
|
12873
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
12855
12874
|
]
|
|
12856
12875
|
},
|
|
12857
12876
|
device_types: {
|
|
@@ -12903,7 +12922,8 @@ var openapi_default = {
|
|
|
12903
12922
|
{
|
|
12904
12923
|
enum: ["ios_phone", "android_phone"],
|
|
12905
12924
|
type: "string"
|
|
12906
|
-
}
|
|
12925
|
+
},
|
|
12926
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
12907
12927
|
]
|
|
12908
12928
|
},
|
|
12909
12929
|
type: "array"
|
|
@@ -13332,7 +13352,8 @@ var openapi_default = {
|
|
|
13332
13352
|
],
|
|
13333
13353
|
type: "string"
|
|
13334
13354
|
},
|
|
13335
|
-
{ enum: ["ios_phone", "android_phone"], type: "string" }
|
|
13355
|
+
{ enum: ["ios_phone", "android_phone"], type: "string" },
|
|
13356
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
13336
13357
|
]
|
|
13337
13358
|
},
|
|
13338
13359
|
device_types: {
|
|
@@ -13384,7 +13405,8 @@ var openapi_default = {
|
|
|
13384
13405
|
{
|
|
13385
13406
|
enum: ["ios_phone", "android_phone"],
|
|
13386
13407
|
type: "string"
|
|
13387
|
-
}
|
|
13408
|
+
},
|
|
13409
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
13388
13410
|
]
|
|
13389
13411
|
},
|
|
13390
13412
|
type: "array"
|
|
@@ -14093,7 +14115,8 @@ var openapi_default = {
|
|
|
14093
14115
|
],
|
|
14094
14116
|
type: "string"
|
|
14095
14117
|
},
|
|
14096
|
-
{ enum: ["ios_phone", "android_phone"], type: "string" }
|
|
14118
|
+
{ enum: ["ios_phone", "android_phone"], type: "string" },
|
|
14119
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
14097
14120
|
]
|
|
14098
14121
|
},
|
|
14099
14122
|
device_types: {
|
|
@@ -14145,7 +14168,8 @@ var openapi_default = {
|
|
|
14145
14168
|
{
|
|
14146
14169
|
enum: ["ios_phone", "android_phone"],
|
|
14147
14170
|
type: "string"
|
|
14148
|
-
}
|
|
14171
|
+
},
|
|
14172
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
14149
14173
|
]
|
|
14150
14174
|
},
|
|
14151
14175
|
type: "array"
|
|
@@ -14537,7 +14561,8 @@ var openapi_default = {
|
|
|
14537
14561
|
],
|
|
14538
14562
|
type: "string"
|
|
14539
14563
|
},
|
|
14540
|
-
{ enum: ["ios_phone", "android_phone"], type: "string" }
|
|
14564
|
+
{ enum: ["ios_phone", "android_phone"], type: "string" },
|
|
14565
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
14541
14566
|
]
|
|
14542
14567
|
},
|
|
14543
14568
|
device_types: {
|
|
@@ -14589,7 +14614,8 @@ var openapi_default = {
|
|
|
14589
14614
|
{
|
|
14590
14615
|
enum: ["ios_phone", "android_phone"],
|
|
14591
14616
|
type: "string"
|
|
14592
|
-
}
|
|
14617
|
+
},
|
|
14618
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
14593
14619
|
]
|
|
14594
14620
|
},
|
|
14595
14621
|
type: "array"
|
|
@@ -15785,7 +15811,8 @@ var openapi_default = {
|
|
|
15785
15811
|
],
|
|
15786
15812
|
type: "string"
|
|
15787
15813
|
},
|
|
15788
|
-
{ enum: ["ios_phone", "android_phone"], type: "string" }
|
|
15814
|
+
{ enum: ["ios_phone", "android_phone"], type: "string" },
|
|
15815
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
15789
15816
|
]
|
|
15790
15817
|
},
|
|
15791
15818
|
device_types: {
|
|
@@ -15837,7 +15864,8 @@ var openapi_default = {
|
|
|
15837
15864
|
{
|
|
15838
15865
|
enum: ["ios_phone", "android_phone"],
|
|
15839
15866
|
type: "string"
|
|
15840
|
-
}
|
|
15867
|
+
},
|
|
15868
|
+
{ enum: ["visionline_encoder"], type: "string" }
|
|
15841
15869
|
]
|
|
15842
15870
|
},
|
|
15843
15871
|
type: "array"
|