@seamapi/types 1.242.0 → 1.243.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/dist/connect.cjs +134 -45
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +484 -62
- package/dist/devicedb.cjs +9 -6
- package/dist/devicedb.cjs.map +1 -1
- package/dist/devicedb.d.cts +123 -70
- package/lib/seam/connect/models/acs/acs-system.d.ts +86 -42
- package/lib/seam/connect/models/acs/acs-system.js +23 -20
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-user.d.ts +8 -8
- 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 +78 -0
- package/lib/seam/connect/models/devices/device-metadata.js +14 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +108 -6
- package/lib/seam/connect/models/devices/phone.d.ts +83 -5
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +83 -5
- 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/models/thermostats/index.d.ts +1 -1
- package/lib/seam/connect/models/thermostats/index.js +1 -1
- package/lib/seam/connect/models/thermostats/index.js.map +1 -1
- package/lib/seam/connect/models/thermostats/{climate-setting-schedule.js → thermostat-schedule.js} +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +49 -0
- package/lib/seam/connect/openapi.js +87 -22
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +208 -36
- package/lib/seam/devicedb/models/device-model.d.ts +59 -24
- package/lib/seam/devicedb/models/device-model.js +9 -6
- package/lib/seam/devicedb/models/device-model.js.map +1 -1
- package/lib/seam/devicedb/route-specs.d.ts +56 -38
- package/lib/seam/devicedb/route-types.d.ts +8 -8
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +32 -24
- package/src/lib/seam/connect/models/devices/device-metadata.ts +16 -0
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +1 -1
- package/src/lib/seam/connect/models/thermostats/index.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +90 -22
- package/src/lib/seam/connect/route-types.ts +236 -36
- package/src/lib/seam/devicedb/models/device-model.ts +24 -19
- package/src/lib/seam/devicedb/route-types.ts +8 -8
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.js.map +0 -1
- /package/lib/seam/connect/models/thermostats/{climate-setting-schedule.d.ts → thermostat-schedule.d.ts} +0 -0
- /package/src/lib/seam/connect/models/thermostats/{climate-setting-schedule.ts → thermostat-schedule.ts} +0 -0
|
@@ -3,7 +3,7 @@ export declare const device_category: z.ZodEnum<["smartlock", "sensor", "thermos
|
|
|
3
3
|
export type DeviceCategory = z.infer<typeof device_category>;
|
|
4
4
|
export declare const device_connection_type: z.ZodEnum<["wifi", "zwave", "zigbee", "unknown"]>;
|
|
5
5
|
export type DeviceConnectionType = z.infer<typeof device_connection_type>;
|
|
6
|
-
export declare const thermostat: z.ZodObject<{
|
|
6
|
+
export declare const thermostat: z.ZodObject<z.objectUtil.extendShape<{
|
|
7
7
|
main_category: z.ZodLiteral<"thermostat">;
|
|
8
8
|
physical_properties: z.ZodObject<{
|
|
9
9
|
available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
|
|
@@ -37,7 +37,16 @@ export declare const thermostat: z.ZodObject<{
|
|
|
37
37
|
}, {
|
|
38
38
|
can_program_climate_schedules: boolean;
|
|
39
39
|
}>;
|
|
40
|
-
},
|
|
40
|
+
}, Pick<{
|
|
41
|
+
can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
42
|
+
can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
43
|
+
can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
44
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
45
|
+
can_hvac_heat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
46
|
+
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
47
|
+
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
48
|
+
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
49
|
+
}, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
|
|
41
50
|
main_category: "thermostat";
|
|
42
51
|
physical_properties: {
|
|
43
52
|
has_humidity_sensor: boolean;
|
|
@@ -51,6 +60,10 @@ export declare const thermostat: z.ZodObject<{
|
|
|
51
60
|
software_features: {
|
|
52
61
|
can_program_climate_schedules: boolean;
|
|
53
62
|
};
|
|
63
|
+
can_hvac_heat?: true | undefined;
|
|
64
|
+
can_hvac_cool?: true | undefined;
|
|
65
|
+
can_hvac_heat_cool?: true | undefined;
|
|
66
|
+
can_turn_off_hvac?: true | undefined;
|
|
54
67
|
}, {
|
|
55
68
|
main_category: "thermostat";
|
|
56
69
|
physical_properties: {
|
|
@@ -65,6 +78,10 @@ export declare const thermostat: z.ZodObject<{
|
|
|
65
78
|
software_features: {
|
|
66
79
|
can_program_climate_schedules: boolean;
|
|
67
80
|
};
|
|
81
|
+
can_hvac_heat?: true | undefined;
|
|
82
|
+
can_hvac_cool?: true | undefined;
|
|
83
|
+
can_hvac_heat_cool?: true | undefined;
|
|
84
|
+
can_turn_off_hvac?: true | undefined;
|
|
68
85
|
}>;
|
|
69
86
|
export type ThermostatProperties = z.infer<typeof thermostat>;
|
|
70
87
|
export declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion<"main_category", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -107,7 +124,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
107
124
|
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
108
125
|
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
109
126
|
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
110
|
-
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes"
|
|
127
|
+
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
|
|
111
128
|
main_category: "smartlock";
|
|
112
129
|
physical_properties: {
|
|
113
130
|
has_physical_key: boolean;
|
|
@@ -124,10 +141,6 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
124
141
|
can_remotely_lock?: true | undefined;
|
|
125
142
|
can_program_offline_access_codes?: true | undefined;
|
|
126
143
|
can_program_online_access_codes?: true | undefined;
|
|
127
|
-
can_hvac_heat?: true | undefined;
|
|
128
|
-
can_hvac_cool?: true | undefined;
|
|
129
|
-
can_hvac_heat_cool?: true | undefined;
|
|
130
|
-
can_turn_off_hvac?: true | undefined;
|
|
131
144
|
}, {
|
|
132
145
|
main_category: "smartlock";
|
|
133
146
|
physical_properties: {
|
|
@@ -145,10 +158,6 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
145
158
|
can_remotely_lock?: true | undefined;
|
|
146
159
|
can_program_offline_access_codes?: true | undefined;
|
|
147
160
|
can_program_online_access_codes?: true | undefined;
|
|
148
|
-
can_hvac_heat?: true | undefined;
|
|
149
|
-
can_hvac_cool?: true | undefined;
|
|
150
|
-
can_hvac_heat_cool?: true | undefined;
|
|
151
|
-
can_turn_off_hvac?: true | undefined;
|
|
152
161
|
}>, z.ZodObject<{
|
|
153
162
|
main_category: z.ZodLiteral<"sensor">;
|
|
154
163
|
physical_properties: z.ZodObject<{
|
|
@@ -183,7 +192,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
183
192
|
has_temperature_sensor: boolean;
|
|
184
193
|
has_occupancy_detection: boolean;
|
|
185
194
|
};
|
|
186
|
-
}>, z.ZodObject<{
|
|
195
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
187
196
|
main_category: z.ZodLiteral<"thermostat">;
|
|
188
197
|
physical_properties: z.ZodObject<{
|
|
189
198
|
available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
|
|
@@ -217,7 +226,16 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
217
226
|
}, {
|
|
218
227
|
can_program_climate_schedules: boolean;
|
|
219
228
|
}>;
|
|
220
|
-
},
|
|
229
|
+
}, Pick<{
|
|
230
|
+
can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
231
|
+
can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
232
|
+
can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
233
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
234
|
+
can_hvac_heat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
235
|
+
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
236
|
+
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
237
|
+
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
238
|
+
}, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
|
|
221
239
|
main_category: "thermostat";
|
|
222
240
|
physical_properties: {
|
|
223
241
|
has_humidity_sensor: boolean;
|
|
@@ -231,6 +249,10 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
231
249
|
software_features: {
|
|
232
250
|
can_program_climate_schedules: boolean;
|
|
233
251
|
};
|
|
252
|
+
can_hvac_heat?: true | undefined;
|
|
253
|
+
can_hvac_cool?: true | undefined;
|
|
254
|
+
can_hvac_heat_cool?: true | undefined;
|
|
255
|
+
can_turn_off_hvac?: true | undefined;
|
|
234
256
|
}, {
|
|
235
257
|
main_category: "thermostat";
|
|
236
258
|
physical_properties: {
|
|
@@ -245,6 +267,10 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
245
267
|
software_features: {
|
|
246
268
|
can_program_climate_schedules: boolean;
|
|
247
269
|
};
|
|
270
|
+
can_hvac_heat?: true | undefined;
|
|
271
|
+
can_hvac_cool?: true | undefined;
|
|
272
|
+
can_hvac_heat_cool?: true | undefined;
|
|
273
|
+
can_turn_off_hvac?: true | undefined;
|
|
248
274
|
}>, z.ZodObject<{
|
|
249
275
|
main_category: z.ZodLiteral<"relay">;
|
|
250
276
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -996,7 +1022,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
996
1022
|
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
997
1023
|
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
998
1024
|
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
999
|
-
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes"
|
|
1025
|
+
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
|
|
1000
1026
|
main_category: "smartlock";
|
|
1001
1027
|
physical_properties: {
|
|
1002
1028
|
has_physical_key: boolean;
|
|
@@ -1013,10 +1039,6 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1013
1039
|
can_remotely_lock?: true | undefined;
|
|
1014
1040
|
can_program_offline_access_codes?: true | undefined;
|
|
1015
1041
|
can_program_online_access_codes?: true | undefined;
|
|
1016
|
-
can_hvac_heat?: true | undefined;
|
|
1017
|
-
can_hvac_cool?: true | undefined;
|
|
1018
|
-
can_hvac_heat_cool?: true | undefined;
|
|
1019
|
-
can_turn_off_hvac?: true | undefined;
|
|
1020
1042
|
}, {
|
|
1021
1043
|
main_category: "smartlock";
|
|
1022
1044
|
physical_properties: {
|
|
@@ -1034,10 +1056,6 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1034
1056
|
can_remotely_lock?: true | undefined;
|
|
1035
1057
|
can_program_offline_access_codes?: true | undefined;
|
|
1036
1058
|
can_program_online_access_codes?: true | undefined;
|
|
1037
|
-
can_hvac_heat?: true | undefined;
|
|
1038
|
-
can_hvac_cool?: true | undefined;
|
|
1039
|
-
can_hvac_heat_cool?: true | undefined;
|
|
1040
|
-
can_turn_off_hvac?: true | undefined;
|
|
1041
1059
|
}>, z.ZodObject<{
|
|
1042
1060
|
main_category: z.ZodLiteral<"sensor">;
|
|
1043
1061
|
physical_properties: z.ZodObject<{
|
|
@@ -1072,7 +1090,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1072
1090
|
has_temperature_sensor: boolean;
|
|
1073
1091
|
has_occupancy_detection: boolean;
|
|
1074
1092
|
};
|
|
1075
|
-
}>, z.ZodObject<{
|
|
1093
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1076
1094
|
main_category: z.ZodLiteral<"thermostat">;
|
|
1077
1095
|
physical_properties: z.ZodObject<{
|
|
1078
1096
|
available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
|
|
@@ -1106,7 +1124,16 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1106
1124
|
}, {
|
|
1107
1125
|
can_program_climate_schedules: boolean;
|
|
1108
1126
|
}>;
|
|
1109
|
-
},
|
|
1127
|
+
}, Pick<{
|
|
1128
|
+
can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1129
|
+
can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1130
|
+
can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1131
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1132
|
+
can_hvac_heat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1133
|
+
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1134
|
+
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1135
|
+
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1136
|
+
}, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
|
|
1110
1137
|
main_category: "thermostat";
|
|
1111
1138
|
physical_properties: {
|
|
1112
1139
|
has_humidity_sensor: boolean;
|
|
@@ -1120,6 +1147,10 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1120
1147
|
software_features: {
|
|
1121
1148
|
can_program_climate_schedules: boolean;
|
|
1122
1149
|
};
|
|
1150
|
+
can_hvac_heat?: true | undefined;
|
|
1151
|
+
can_hvac_cool?: true | undefined;
|
|
1152
|
+
can_hvac_heat_cool?: true | undefined;
|
|
1153
|
+
can_turn_off_hvac?: true | undefined;
|
|
1123
1154
|
}, {
|
|
1124
1155
|
main_category: "thermostat";
|
|
1125
1156
|
physical_properties: {
|
|
@@ -1134,6 +1165,10 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
1134
1165
|
software_features: {
|
|
1135
1166
|
can_program_climate_schedules: boolean;
|
|
1136
1167
|
};
|
|
1168
|
+
can_hvac_heat?: true | undefined;
|
|
1169
|
+
can_hvac_cool?: true | undefined;
|
|
1170
|
+
can_hvac_heat_cool?: true | undefined;
|
|
1171
|
+
can_turn_off_hvac?: true | undefined;
|
|
1137
1172
|
}>, z.ZodObject<{
|
|
1138
1173
|
main_category: z.ZodLiteral<"relay">;
|
|
1139
1174
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -46,10 +46,6 @@ const smartlock = z
|
|
|
46
46
|
can_remotely_unlock: true,
|
|
47
47
|
can_program_offline_access_codes: true,
|
|
48
48
|
can_program_online_access_codes: true,
|
|
49
|
-
can_hvac_heat: true,
|
|
50
|
-
can_hvac_cool: true,
|
|
51
|
-
can_hvac_heat_cool: true,
|
|
52
|
-
can_turn_off_hvac: true,
|
|
53
49
|
}));
|
|
54
50
|
const sensor = z.object({
|
|
55
51
|
main_category: z.literal(device_category.enum.sensor),
|
|
@@ -60,7 +56,8 @@ const sensor = z.object({
|
|
|
60
56
|
has_occupancy_detection: z.boolean(),
|
|
61
57
|
}),
|
|
62
58
|
});
|
|
63
|
-
export const thermostat = z
|
|
59
|
+
export const thermostat = z
|
|
60
|
+
.object({
|
|
64
61
|
main_category: z.literal(device_category.enum.thermostat),
|
|
65
62
|
physical_properties: z.object({
|
|
66
63
|
available_modes: z.enum(['heat', 'cool', 'fan', 'eco']).array(),
|
|
@@ -74,7 +71,13 @@ export const thermostat = z.object({
|
|
|
74
71
|
software_features: z.object({
|
|
75
72
|
can_program_climate_schedules: z.boolean(),
|
|
76
73
|
}),
|
|
77
|
-
})
|
|
74
|
+
})
|
|
75
|
+
.merge(device_model_capability_flags.pick({
|
|
76
|
+
can_hvac_heat: true,
|
|
77
|
+
can_hvac_cool: true,
|
|
78
|
+
can_hvac_heat_cool: true,
|
|
79
|
+
can_turn_off_hvac: true,
|
|
80
|
+
}));
|
|
78
81
|
const relay = z.object({
|
|
79
82
|
main_category: z.literal(device_category.enum.relay),
|
|
80
83
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-model.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/models/device-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,6BAA6B,EA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tC,+BAA+B,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"device-model.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/models/device-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,OAAO;IACP,UAAU;IACV,WAAW;CACZ,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,MAAM;IACN,OAAO;IACP,QAAQ;IACR,SAAS;CACV,CAAC,CAAA;AAIF,MAAM,SAAS,GAAG,CAAC;KAChB,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC;IACxD,mBAAmB,EAAE,CAAC,CAAC,MAAM,CAAC;QAC5B,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC;YAChB,UAAU;YACV,OAAO;YACP,SAAS;YACT,SAAS;YACT,UAAU;YACV,SAAS;YACT,QAAQ;YACR,SAAS;SACV,CAAC;QACF,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;QAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;KACxB,CAAC;IACF,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC;QAC1B,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE;QAChC,wBAAwB,EAAE,CAAC,CAAC,OAAO,EAAE;QACrC,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAA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AA;AAIF,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAAC,GAAG,CACrD,yCAAyC,CAC1C,CAAA"}
|
|
@@ -369,7 +369,7 @@ export declare const routes: {
|
|
|
369
369
|
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
370
370
|
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
371
371
|
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
372
|
-
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes"
|
|
372
|
+
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
|
|
373
373
|
main_category: "smartlock";
|
|
374
374
|
physical_properties: {
|
|
375
375
|
has_physical_key: boolean;
|
|
@@ -386,10 +386,6 @@ export declare const routes: {
|
|
|
386
386
|
can_remotely_lock?: true | undefined;
|
|
387
387
|
can_program_offline_access_codes?: true | undefined;
|
|
388
388
|
can_program_online_access_codes?: true | undefined;
|
|
389
|
-
can_hvac_heat?: true | undefined;
|
|
390
|
-
can_hvac_cool?: true | undefined;
|
|
391
|
-
can_hvac_heat_cool?: true | undefined;
|
|
392
|
-
can_turn_off_hvac?: true | undefined;
|
|
393
389
|
}, {
|
|
394
390
|
main_category: "smartlock";
|
|
395
391
|
physical_properties: {
|
|
@@ -407,10 +403,6 @@ export declare const routes: {
|
|
|
407
403
|
can_remotely_lock?: true | undefined;
|
|
408
404
|
can_program_offline_access_codes?: true | undefined;
|
|
409
405
|
can_program_online_access_codes?: true | undefined;
|
|
410
|
-
can_hvac_heat?: true | undefined;
|
|
411
|
-
can_hvac_cool?: true | undefined;
|
|
412
|
-
can_hvac_heat_cool?: true | undefined;
|
|
413
|
-
can_turn_off_hvac?: true | undefined;
|
|
414
406
|
}>, z.ZodObject<{
|
|
415
407
|
main_category: z.ZodLiteral<"sensor">;
|
|
416
408
|
physical_properties: z.ZodObject<{
|
|
@@ -445,7 +437,7 @@ export declare const routes: {
|
|
|
445
437
|
has_temperature_sensor: boolean;
|
|
446
438
|
has_occupancy_detection: boolean;
|
|
447
439
|
};
|
|
448
|
-
}>, z.ZodObject<{
|
|
440
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
449
441
|
main_category: z.ZodLiteral<"thermostat">;
|
|
450
442
|
physical_properties: z.ZodObject<{
|
|
451
443
|
available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
|
|
@@ -479,7 +471,16 @@ export declare const routes: {
|
|
|
479
471
|
}, {
|
|
480
472
|
can_program_climate_schedules: boolean;
|
|
481
473
|
}>;
|
|
482
|
-
},
|
|
474
|
+
}, Pick<{
|
|
475
|
+
can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
476
|
+
can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
477
|
+
can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
478
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
479
|
+
can_hvac_heat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
480
|
+
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
481
|
+
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
482
|
+
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
483
|
+
}, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
|
|
483
484
|
main_category: "thermostat";
|
|
484
485
|
physical_properties: {
|
|
485
486
|
has_humidity_sensor: boolean;
|
|
@@ -493,6 +494,10 @@ export declare const routes: {
|
|
|
493
494
|
software_features: {
|
|
494
495
|
can_program_climate_schedules: boolean;
|
|
495
496
|
};
|
|
497
|
+
can_hvac_heat?: true | undefined;
|
|
498
|
+
can_hvac_cool?: true | undefined;
|
|
499
|
+
can_hvac_heat_cool?: true | undefined;
|
|
500
|
+
can_turn_off_hvac?: true | undefined;
|
|
496
501
|
}, {
|
|
497
502
|
main_category: "thermostat";
|
|
498
503
|
physical_properties: {
|
|
@@ -507,6 +512,10 @@ export declare const routes: {
|
|
|
507
512
|
software_features: {
|
|
508
513
|
can_program_climate_schedules: boolean;
|
|
509
514
|
};
|
|
515
|
+
can_hvac_heat?: true | undefined;
|
|
516
|
+
can_hvac_cool?: true | undefined;
|
|
517
|
+
can_hvac_heat_cool?: true | undefined;
|
|
518
|
+
can_turn_off_hvac?: true | undefined;
|
|
510
519
|
}>, z.ZodObject<{
|
|
511
520
|
main_category: z.ZodLiteral<"relay">;
|
|
512
521
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -660,10 +669,6 @@ export declare const routes: {
|
|
|
660
669
|
can_remotely_lock?: true | undefined;
|
|
661
670
|
can_program_offline_access_codes?: true | undefined;
|
|
662
671
|
can_program_online_access_codes?: true | undefined;
|
|
663
|
-
can_hvac_heat?: true | undefined;
|
|
664
|
-
can_hvac_cool?: true | undefined;
|
|
665
|
-
can_hvac_heat_cool?: true | undefined;
|
|
666
|
-
can_turn_off_hvac?: true | undefined;
|
|
667
672
|
} | {
|
|
668
673
|
main_category: "sensor";
|
|
669
674
|
physical_properties: {
|
|
@@ -686,6 +691,10 @@ export declare const routes: {
|
|
|
686
691
|
software_features: {
|
|
687
692
|
can_program_climate_schedules: boolean;
|
|
688
693
|
};
|
|
694
|
+
can_hvac_heat?: true | undefined;
|
|
695
|
+
can_hvac_cool?: true | undefined;
|
|
696
|
+
can_hvac_heat_cool?: true | undefined;
|
|
697
|
+
can_turn_off_hvac?: true | undefined;
|
|
689
698
|
} | {
|
|
690
699
|
main_category: "relay";
|
|
691
700
|
} | {
|
|
@@ -783,10 +792,6 @@ export declare const routes: {
|
|
|
783
792
|
can_remotely_lock?: true | undefined;
|
|
784
793
|
can_program_offline_access_codes?: true | undefined;
|
|
785
794
|
can_program_online_access_codes?: true | undefined;
|
|
786
|
-
can_hvac_heat?: true | undefined;
|
|
787
|
-
can_hvac_cool?: true | undefined;
|
|
788
|
-
can_hvac_heat_cool?: true | undefined;
|
|
789
|
-
can_turn_off_hvac?: true | undefined;
|
|
790
795
|
} | {
|
|
791
796
|
main_category: "sensor";
|
|
792
797
|
physical_properties: {
|
|
@@ -809,6 +814,10 @@ export declare const routes: {
|
|
|
809
814
|
software_features: {
|
|
810
815
|
can_program_climate_schedules: boolean;
|
|
811
816
|
};
|
|
817
|
+
can_hvac_heat?: true | undefined;
|
|
818
|
+
can_hvac_cool?: true | undefined;
|
|
819
|
+
can_hvac_heat_cool?: true | undefined;
|
|
820
|
+
can_turn_off_hvac?: true | undefined;
|
|
812
821
|
} | {
|
|
813
822
|
main_category: "relay";
|
|
814
823
|
} | {
|
|
@@ -1221,7 +1230,7 @@ export declare const routes: {
|
|
|
1221
1230
|
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1222
1231
|
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1223
1232
|
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1224
|
-
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes"
|
|
1233
|
+
}, "can_remotely_unlock" | "can_remotely_lock" | "can_program_offline_access_codes" | "can_program_online_access_codes">>, "strip", z.ZodTypeAny, {
|
|
1225
1234
|
main_category: "smartlock";
|
|
1226
1235
|
physical_properties: {
|
|
1227
1236
|
has_physical_key: boolean;
|
|
@@ -1238,10 +1247,6 @@ export declare const routes: {
|
|
|
1238
1247
|
can_remotely_lock?: true | undefined;
|
|
1239
1248
|
can_program_offline_access_codes?: true | undefined;
|
|
1240
1249
|
can_program_online_access_codes?: true | undefined;
|
|
1241
|
-
can_hvac_heat?: true | undefined;
|
|
1242
|
-
can_hvac_cool?: true | undefined;
|
|
1243
|
-
can_hvac_heat_cool?: true | undefined;
|
|
1244
|
-
can_turn_off_hvac?: true | undefined;
|
|
1245
1250
|
}, {
|
|
1246
1251
|
main_category: "smartlock";
|
|
1247
1252
|
physical_properties: {
|
|
@@ -1259,10 +1264,6 @@ export declare const routes: {
|
|
|
1259
1264
|
can_remotely_lock?: true | undefined;
|
|
1260
1265
|
can_program_offline_access_codes?: true | undefined;
|
|
1261
1266
|
can_program_online_access_codes?: true | undefined;
|
|
1262
|
-
can_hvac_heat?: true | undefined;
|
|
1263
|
-
can_hvac_cool?: true | undefined;
|
|
1264
|
-
can_hvac_heat_cool?: true | undefined;
|
|
1265
|
-
can_turn_off_hvac?: true | undefined;
|
|
1266
1267
|
}>, z.ZodObject<{
|
|
1267
1268
|
main_category: z.ZodLiteral<"sensor">;
|
|
1268
1269
|
physical_properties: z.ZodObject<{
|
|
@@ -1297,7 +1298,7 @@ export declare const routes: {
|
|
|
1297
1298
|
has_temperature_sensor: boolean;
|
|
1298
1299
|
has_occupancy_detection: boolean;
|
|
1299
1300
|
};
|
|
1300
|
-
}>, z.ZodObject<{
|
|
1301
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1301
1302
|
main_category: z.ZodLiteral<"thermostat">;
|
|
1302
1303
|
physical_properties: z.ZodObject<{
|
|
1303
1304
|
available_modes: z.ZodArray<z.ZodEnum<["heat", "cool", "fan", "eco"]>, "many">;
|
|
@@ -1331,7 +1332,16 @@ export declare const routes: {
|
|
|
1331
1332
|
}, {
|
|
1332
1333
|
can_program_climate_schedules: boolean;
|
|
1333
1334
|
}>;
|
|
1334
|
-
},
|
|
1335
|
+
}, Pick<{
|
|
1336
|
+
can_remotely_unlock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1337
|
+
can_remotely_lock: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1338
|
+
can_program_offline_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1339
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1340
|
+
can_hvac_heat: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1341
|
+
can_hvac_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1342
|
+
can_hvac_heat_cool: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1343
|
+
can_turn_off_hvac: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1344
|
+
}, "can_hvac_heat" | "can_hvac_cool" | "can_hvac_heat_cool" | "can_turn_off_hvac">>, "strip", z.ZodTypeAny, {
|
|
1335
1345
|
main_category: "thermostat";
|
|
1336
1346
|
physical_properties: {
|
|
1337
1347
|
has_humidity_sensor: boolean;
|
|
@@ -1345,6 +1355,10 @@ export declare const routes: {
|
|
|
1345
1355
|
software_features: {
|
|
1346
1356
|
can_program_climate_schedules: boolean;
|
|
1347
1357
|
};
|
|
1358
|
+
can_hvac_heat?: true | undefined;
|
|
1359
|
+
can_hvac_cool?: true | undefined;
|
|
1360
|
+
can_hvac_heat_cool?: true | undefined;
|
|
1361
|
+
can_turn_off_hvac?: true | undefined;
|
|
1348
1362
|
}, {
|
|
1349
1363
|
main_category: "thermostat";
|
|
1350
1364
|
physical_properties: {
|
|
@@ -1359,6 +1373,10 @@ export declare const routes: {
|
|
|
1359
1373
|
software_features: {
|
|
1360
1374
|
can_program_climate_schedules: boolean;
|
|
1361
1375
|
};
|
|
1376
|
+
can_hvac_heat?: true | undefined;
|
|
1377
|
+
can_hvac_cool?: true | undefined;
|
|
1378
|
+
can_hvac_heat_cool?: true | undefined;
|
|
1379
|
+
can_turn_off_hvac?: true | undefined;
|
|
1362
1380
|
}>, z.ZodObject<{
|
|
1363
1381
|
main_category: z.ZodLiteral<"relay">;
|
|
1364
1382
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1512,10 +1530,6 @@ export declare const routes: {
|
|
|
1512
1530
|
can_remotely_lock?: true | undefined;
|
|
1513
1531
|
can_program_offline_access_codes?: true | undefined;
|
|
1514
1532
|
can_program_online_access_codes?: true | undefined;
|
|
1515
|
-
can_hvac_heat?: true | undefined;
|
|
1516
|
-
can_hvac_cool?: true | undefined;
|
|
1517
|
-
can_hvac_heat_cool?: true | undefined;
|
|
1518
|
-
can_turn_off_hvac?: true | undefined;
|
|
1519
1533
|
} | {
|
|
1520
1534
|
main_category: "sensor";
|
|
1521
1535
|
physical_properties: {
|
|
@@ -1538,6 +1552,10 @@ export declare const routes: {
|
|
|
1538
1552
|
software_features: {
|
|
1539
1553
|
can_program_climate_schedules: boolean;
|
|
1540
1554
|
};
|
|
1555
|
+
can_hvac_heat?: true | undefined;
|
|
1556
|
+
can_hvac_cool?: true | undefined;
|
|
1557
|
+
can_hvac_heat_cool?: true | undefined;
|
|
1558
|
+
can_turn_off_hvac?: true | undefined;
|
|
1541
1559
|
} | {
|
|
1542
1560
|
main_category: "relay";
|
|
1543
1561
|
} | {
|
|
@@ -1635,10 +1653,6 @@ export declare const routes: {
|
|
|
1635
1653
|
can_remotely_lock?: true | undefined;
|
|
1636
1654
|
can_program_offline_access_codes?: true | undefined;
|
|
1637
1655
|
can_program_online_access_codes?: true | undefined;
|
|
1638
|
-
can_hvac_heat?: true | undefined;
|
|
1639
|
-
can_hvac_cool?: true | undefined;
|
|
1640
|
-
can_hvac_heat_cool?: true | undefined;
|
|
1641
|
-
can_turn_off_hvac?: true | undefined;
|
|
1642
1656
|
} | {
|
|
1643
1657
|
main_category: "sensor";
|
|
1644
1658
|
physical_properties: {
|
|
@@ -1661,6 +1675,10 @@ export declare const routes: {
|
|
|
1661
1675
|
software_features: {
|
|
1662
1676
|
can_program_climate_schedules: boolean;
|
|
1663
1677
|
};
|
|
1678
|
+
can_hvac_heat?: true | undefined;
|
|
1679
|
+
can_hvac_cool?: true | undefined;
|
|
1680
|
+
can_hvac_heat_cool?: true | undefined;
|
|
1681
|
+
can_turn_off_hvac?: true | undefined;
|
|
1664
1682
|
} | {
|
|
1665
1683
|
main_category: "relay";
|
|
1666
1684
|
} | {
|
|
@@ -86,10 +86,6 @@ export interface Routes {
|
|
|
86
86
|
can_remotely_unlock?: true | undefined;
|
|
87
87
|
can_program_offline_access_codes?: true | undefined;
|
|
88
88
|
can_program_online_access_codes?: true | undefined;
|
|
89
|
-
can_hvac_heat?: true | undefined;
|
|
90
|
-
can_hvac_cool?: true | undefined;
|
|
91
|
-
can_hvac_heat_cool?: true | undefined;
|
|
92
|
-
can_turn_off_hvac?: true | undefined;
|
|
93
89
|
} | {
|
|
94
90
|
main_category: 'sensor';
|
|
95
91
|
physical_properties: {
|
|
@@ -112,6 +108,10 @@ export interface Routes {
|
|
|
112
108
|
software_features: {
|
|
113
109
|
can_program_climate_schedules: boolean;
|
|
114
110
|
};
|
|
111
|
+
can_hvac_heat?: true | undefined;
|
|
112
|
+
can_hvac_cool?: true | undefined;
|
|
113
|
+
can_hvac_heat_cool?: true | undefined;
|
|
114
|
+
can_turn_off_hvac?: true | undefined;
|
|
115
115
|
} | {
|
|
116
116
|
main_category: 'relay';
|
|
117
117
|
} | {
|
|
@@ -227,10 +227,6 @@ export interface Routes {
|
|
|
227
227
|
can_remotely_unlock?: true | undefined;
|
|
228
228
|
can_program_offline_access_codes?: true | undefined;
|
|
229
229
|
can_program_online_access_codes?: true | undefined;
|
|
230
|
-
can_hvac_heat?: true | undefined;
|
|
231
|
-
can_hvac_cool?: true | undefined;
|
|
232
|
-
can_hvac_heat_cool?: true | undefined;
|
|
233
|
-
can_turn_off_hvac?: true | undefined;
|
|
234
230
|
} | {
|
|
235
231
|
main_category: 'sensor';
|
|
236
232
|
physical_properties: {
|
|
@@ -253,6 +249,10 @@ export interface Routes {
|
|
|
253
249
|
software_features: {
|
|
254
250
|
can_program_climate_schedules: boolean;
|
|
255
251
|
};
|
|
252
|
+
can_hvac_heat?: true | undefined;
|
|
253
|
+
can_hvac_cool?: true | undefined;
|
|
254
|
+
can_hvac_heat_cool?: true | undefined;
|
|
255
|
+
can_turn_off_hvac?: true | undefined;
|
|
256
256
|
} | {
|
|
257
257
|
main_category: 'relay';
|
|
258
258
|
} | {
|
package/package.json
CHANGED
|
@@ -73,41 +73,49 @@ const visionline_instance_unreachable = common_acs_system_error.extend({
|
|
|
73
73
|
For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
|
|
74
74
|
See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).`)
|
|
75
75
|
|
|
76
|
-
const
|
|
76
|
+
const salto_ks_subscription_limit_exceeded = common_acs_system_error.extend({
|
|
77
77
|
error_code: z
|
|
78
|
-
.literal('
|
|
78
|
+
.literal('salto_ks_subscription_limit_exceeded')
|
|
79
79
|
.describe(
|
|
80
80
|
'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
|
|
81
81
|
),
|
|
82
82
|
})
|
|
83
83
|
|
|
84
|
-
const
|
|
84
|
+
const acs_system_disconnected = common_acs_system_error.extend({
|
|
85
85
|
error_code: z
|
|
86
|
-
.literal('
|
|
86
|
+
.literal('acs_system_disconnected')
|
|
87
87
|
.describe(
|
|
88
|
-
|
|
88
|
+
'Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.',
|
|
89
|
+
),
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
const account_disconnected = common_acs_system_error.extend({
|
|
93
|
+
error_code: z
|
|
94
|
+
.literal('account_disconnected')
|
|
95
|
+
.describe(
|
|
96
|
+
'Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access.',
|
|
89
97
|
),
|
|
90
98
|
})
|
|
91
99
|
const acs_system_error = z
|
|
92
100
|
.union([
|
|
93
101
|
seam_bridge_disconnected,
|
|
94
102
|
visionline_instance_unreachable,
|
|
95
|
-
|
|
96
|
-
|
|
103
|
+
salto_ks_subscription_limit_exceeded,
|
|
104
|
+
acs_system_disconnected,
|
|
105
|
+
account_disconnected,
|
|
97
106
|
])
|
|
98
107
|
.describe('Error associated with the `acs_system`.')
|
|
99
108
|
|
|
100
|
-
const acs_system_error_map = z.object({
|
|
109
|
+
export const acs_system_error_map = z.object({
|
|
101
110
|
seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
|
|
102
111
|
visionline_instance_unreachable: visionline_instance_unreachable
|
|
103
112
|
.optional()
|
|
104
113
|
.nullable(),
|
|
105
|
-
|
|
106
|
-
.optional()
|
|
107
|
-
.nullable(),
|
|
108
|
-
salto_seam_integration_blocked: salto_seam_integration_blocked
|
|
114
|
+
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
|
|
109
115
|
.optional()
|
|
110
116
|
.nullable(),
|
|
117
|
+
acs_system_disconnected: acs_system_disconnected.optional().nullable(),
|
|
118
|
+
account_disconnected: account_disconnected.optional().nullable(),
|
|
111
119
|
})
|
|
112
120
|
|
|
113
121
|
export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>
|
|
@@ -124,24 +132,24 @@ const common_acs_system_warning = z.object({
|
|
|
124
132
|
),
|
|
125
133
|
})
|
|
126
134
|
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
const salto_ks_subscription_limit_almost_reached =
|
|
136
|
+
common_acs_system_warning.extend({
|
|
137
|
+
warning_code: z
|
|
138
|
+
.literal('salto_ks_subscription_limit_almost_reached')
|
|
139
|
+
.describe(
|
|
140
|
+
'Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this.',
|
|
141
|
+
),
|
|
142
|
+
})
|
|
134
143
|
|
|
135
144
|
const acs_system_warning =
|
|
136
145
|
// z.union([
|
|
137
|
-
|
|
146
|
+
salto_ks_subscription_limit_almost_reached
|
|
138
147
|
// ])
|
|
139
148
|
.describe('Warning associated with the `acs_system`.')
|
|
140
149
|
|
|
141
|
-
const acs_system_warning_map = z.object({
|
|
142
|
-
|
|
143
|
-
.optional()
|
|
144
|
-
.nullable(),
|
|
150
|
+
export const acs_system_warning_map = z.object({
|
|
151
|
+
salto_ks_subscription_limit_almost_reached:
|
|
152
|
+
salto_ks_subscription_limit_almost_reached.optional().nullable(),
|
|
145
153
|
})
|
|
146
154
|
|
|
147
155
|
export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>
|