@seamapi/types 1.331.0 → 1.332.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 +731 -98
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1643 -71
- package/lib/seam/connect/models/devices/device.d.ts +380 -16
- package/lib/seam/connect/models/devices/device.js +125 -5
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.d.ts +235 -11
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +235 -11
- package/lib/seam/connect/openapi.d.ts +42 -27
- package/lib/seam/connect/openapi.js +668 -95
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1025 -56
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device.ts +143 -6
- package/src/lib/seam/connect/openapi.ts +706 -76
- package/src/lib/seam/connect/route-types.ts +1318 -77
package/package.json
CHANGED
|
@@ -29,10 +29,6 @@ const common_device_error = z.object({
|
|
|
29
29
|
const error_code_description =
|
|
30
30
|
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'
|
|
31
31
|
|
|
32
|
-
const common_device_warning = z.object({
|
|
33
|
-
message: z.string(),
|
|
34
|
-
})
|
|
35
|
-
|
|
36
32
|
const device_offline = common_device_error
|
|
37
33
|
.extend({
|
|
38
34
|
error_code: z.literal('device_offline').describe(error_code_description),
|
|
@@ -151,10 +147,151 @@ export const device_error = z
|
|
|
151
147
|
|
|
152
148
|
export type DeviceError = z.infer<typeof device_error>
|
|
153
149
|
|
|
154
|
-
const
|
|
155
|
-
|
|
150
|
+
const warning_code_description =
|
|
151
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'
|
|
152
|
+
|
|
153
|
+
const common_device_warning = z.object({
|
|
154
|
+
message: z.string(),
|
|
156
155
|
})
|
|
157
156
|
|
|
157
|
+
const partial_backup_access_code_pool = common_device_warning
|
|
158
|
+
.extend({
|
|
159
|
+
warning_code: z
|
|
160
|
+
.literal('partial_backup_access_code_pool')
|
|
161
|
+
.describe(warning_code_description),
|
|
162
|
+
})
|
|
163
|
+
.describe('Backup access code unhealthy.')
|
|
164
|
+
|
|
165
|
+
const many_active_backup_codes = common_device_warning
|
|
166
|
+
.extend({
|
|
167
|
+
warning_code: z
|
|
168
|
+
.literal('many_active_backup_codes')
|
|
169
|
+
.describe(warning_code_description),
|
|
170
|
+
})
|
|
171
|
+
.describe('Too many backup codes.')
|
|
172
|
+
|
|
173
|
+
const salto_unknown_device_type = common_device_warning
|
|
174
|
+
.extend({
|
|
175
|
+
warning_code: z
|
|
176
|
+
.literal('salto_unknown_device_type')
|
|
177
|
+
.describe(warning_code_description),
|
|
178
|
+
})
|
|
179
|
+
.describe('A Salto Lock displaying an unknown device type.')
|
|
180
|
+
|
|
181
|
+
const salto_office_mode = common_device_warning
|
|
182
|
+
.extend({
|
|
183
|
+
warning_code: z
|
|
184
|
+
.literal('salto_office_mode')
|
|
185
|
+
.describe(warning_code_description),
|
|
186
|
+
})
|
|
187
|
+
.describe('Lock is in Office Mode. Access Codes will not unlock doors.')
|
|
188
|
+
|
|
189
|
+
const salto_privacy_mode = common_device_warning
|
|
190
|
+
.extend({
|
|
191
|
+
warning_code: z
|
|
192
|
+
.literal('salto_privacy_mode')
|
|
193
|
+
.describe(warning_code_description),
|
|
194
|
+
})
|
|
195
|
+
.describe('Lock is in Privacy Mode. Access Codes will not unlock doors.')
|
|
196
|
+
|
|
197
|
+
const wyze_device_missing_gateway = common_device_warning
|
|
198
|
+
.extend({
|
|
199
|
+
warning_code: z
|
|
200
|
+
.literal('wyze_device_missing_gateway')
|
|
201
|
+
.describe(warning_code_description),
|
|
202
|
+
})
|
|
203
|
+
.describe('Wyze Lock is not connected to a gateway.')
|
|
204
|
+
|
|
205
|
+
const functional_offline_device = common_device_warning
|
|
206
|
+
.extend({
|
|
207
|
+
warning_code: z
|
|
208
|
+
.literal('functional_offline_device')
|
|
209
|
+
.describe(warning_code_description),
|
|
210
|
+
})
|
|
211
|
+
.describe('Device is offline, but has some functionality available.')
|
|
212
|
+
|
|
213
|
+
const third_party_integration_detected = common_device_warning
|
|
214
|
+
.extend({
|
|
215
|
+
warning_code: z
|
|
216
|
+
.literal('third_party_integration_detected')
|
|
217
|
+
.describe(warning_code_description),
|
|
218
|
+
})
|
|
219
|
+
.describe('Third-party integration detected.')
|
|
220
|
+
|
|
221
|
+
const nest_thermostat_in_manual_eco_mode = common_device_warning
|
|
222
|
+
.extend({
|
|
223
|
+
warning_code: z
|
|
224
|
+
.literal('nest_thermostat_in_manual_eco_mode')
|
|
225
|
+
.describe(warning_code_description),
|
|
226
|
+
})
|
|
227
|
+
.describe('Nest thermostat in manual eco mode.')
|
|
228
|
+
|
|
229
|
+
const ttlock_lock_gateway_unlocking_not_enabled = common_device_warning
|
|
230
|
+
.extend({
|
|
231
|
+
warning_code: z
|
|
232
|
+
.literal('ttlock_lock_gateway_unlocking_not_enabled')
|
|
233
|
+
.describe(warning_code_description),
|
|
234
|
+
})
|
|
235
|
+
.describe('Remote Unlock feature not enabled in settings.')
|
|
236
|
+
|
|
237
|
+
const ttlock_weak_gateway_signal = common_device_warning
|
|
238
|
+
.extend({
|
|
239
|
+
warning_code: z
|
|
240
|
+
.literal('ttlock_weak_gateway_signal')
|
|
241
|
+
.describe(warning_code_description),
|
|
242
|
+
})
|
|
243
|
+
.describe('Gateway signal is weak.')
|
|
244
|
+
|
|
245
|
+
const temperature_threshold_exceeded = common_device_warning
|
|
246
|
+
.extend({
|
|
247
|
+
warning_code: z
|
|
248
|
+
.literal('temperature_threshold_exceeded')
|
|
249
|
+
.describe(warning_code_description),
|
|
250
|
+
})
|
|
251
|
+
.describe('Temperature threshold exceeded.')
|
|
252
|
+
|
|
253
|
+
const device_communication_degraded = common_device_warning
|
|
254
|
+
.extend({
|
|
255
|
+
warning_code: z
|
|
256
|
+
.literal('device_communication_degraded')
|
|
257
|
+
.describe(warning_code_description),
|
|
258
|
+
})
|
|
259
|
+
.describe('Device appears to be unresponsive.')
|
|
260
|
+
|
|
261
|
+
const scheduled_maintenance_window = common_device_warning
|
|
262
|
+
.extend({
|
|
263
|
+
warning_code: z
|
|
264
|
+
.literal('scheduled_maintenance_window')
|
|
265
|
+
.describe(warning_code_description),
|
|
266
|
+
})
|
|
267
|
+
.describe('Scheduled maintenance window detected.')
|
|
268
|
+
|
|
269
|
+
const device_has_flaky_connection = common_device_warning
|
|
270
|
+
.extend({
|
|
271
|
+
warning_code: z
|
|
272
|
+
.literal('device_has_flaky_connection')
|
|
273
|
+
.describe(warning_code_description),
|
|
274
|
+
})
|
|
275
|
+
.describe('Device has flaky connection.')
|
|
276
|
+
|
|
277
|
+
const device_warning = z.union([
|
|
278
|
+
partial_backup_access_code_pool,
|
|
279
|
+
many_active_backup_codes,
|
|
280
|
+
salto_unknown_device_type,
|
|
281
|
+
wyze_device_missing_gateway,
|
|
282
|
+
functional_offline_device,
|
|
283
|
+
third_party_integration_detected,
|
|
284
|
+
nest_thermostat_in_manual_eco_mode,
|
|
285
|
+
ttlock_lock_gateway_unlocking_not_enabled,
|
|
286
|
+
ttlock_weak_gateway_signal,
|
|
287
|
+
temperature_threshold_exceeded,
|
|
288
|
+
device_communication_degraded,
|
|
289
|
+
scheduled_maintenance_window,
|
|
290
|
+
device_has_flaky_connection,
|
|
291
|
+
salto_office_mode,
|
|
292
|
+
salto_privacy_mode,
|
|
293
|
+
])
|
|
294
|
+
|
|
158
295
|
export type DeviceWarning = z.infer<typeof device_warning>
|
|
159
296
|
|
|
160
297
|
export const common_device_properties = z.object({
|