@seamapi/types 1.363.0 → 1.364.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 +312 -38
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1410 -102
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +1486 -34
- package/lib/seam/connect/models/access-codes/managed-access-code.js +135 -11
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +306 -21
- package/lib/seam/connect/models/acs/acs-user.d.ts +8 -8
- package/lib/seam/connect/openapi.d.ts +18 -2
- package/lib/seam/connect/openapi.js +240 -28
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +594 -45
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +152 -12
- package/src/lib/seam/connect/openapi.ts +252 -32
- package/src/lib/seam/connect/route-types.ts +648 -54
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import { device_and_connected_account_error_options } from '../devices/index.js'
|
|
|
5
5
|
const common_access_code_error = z.object({
|
|
6
6
|
message: z.string(),
|
|
7
7
|
is_access_code_error: z.literal(true),
|
|
8
|
+
created_at: z.string().datetime().optional(),
|
|
8
9
|
})
|
|
9
10
|
|
|
10
11
|
const error_code_description =
|
|
@@ -136,6 +137,14 @@ const august_device_slots_full = common_access_code_error
|
|
|
136
137
|
})
|
|
137
138
|
.describe('All access code slots on the device are full.')
|
|
138
139
|
|
|
140
|
+
const august_lock_temporarily_offline_error = common_access_code_error
|
|
141
|
+
.extend({
|
|
142
|
+
error_code: z
|
|
143
|
+
.literal('august_lock_temporarily_offline')
|
|
144
|
+
.describe(error_code_description),
|
|
145
|
+
})
|
|
146
|
+
.describe('August lock is temporarily offline.')
|
|
147
|
+
|
|
139
148
|
const august_lock_missing_keypad = common_access_code_error
|
|
140
149
|
.extend({
|
|
141
150
|
error_code: z
|
|
@@ -144,10 +153,10 @@ const august_lock_missing_keypad = common_access_code_error
|
|
|
144
153
|
})
|
|
145
154
|
.describe('August lock is missing a keypad.')
|
|
146
155
|
|
|
147
|
-
const
|
|
156
|
+
const salto_ks_user_not_subscribed = common_access_code_error
|
|
148
157
|
.extend({
|
|
149
158
|
error_code: z
|
|
150
|
-
.literal('
|
|
159
|
+
.literal('salto_ks_user_not_subscribed')
|
|
151
160
|
.describe(error_code_description),
|
|
152
161
|
})
|
|
153
162
|
.describe('Salto site user is not subscribed.')
|
|
@@ -168,9 +177,42 @@ const hubitat_no_free_positions_available = common_access_code_error
|
|
|
168
177
|
})
|
|
169
178
|
.describe('No free positions available on the device.')
|
|
170
179
|
|
|
180
|
+
const smartthings_no_free_slots_available = common_access_code_error
|
|
181
|
+
.extend({
|
|
182
|
+
error_code: z
|
|
183
|
+
.literal('smartthings_no_free_slots_available')
|
|
184
|
+
.describe(error_code_description),
|
|
185
|
+
})
|
|
186
|
+
.describe('No free slots available on the device.')
|
|
187
|
+
|
|
188
|
+
const wyze_duplicate_code_name = common_access_code_error
|
|
189
|
+
.extend({
|
|
190
|
+
error_code: z
|
|
191
|
+
.literal('wyze_duplicate_code_name')
|
|
192
|
+
.describe(error_code_description),
|
|
193
|
+
})
|
|
194
|
+
.describe('Duplicate access code name detected.')
|
|
195
|
+
|
|
196
|
+
const wyze_potential_duplicate_code = common_access_code_error
|
|
197
|
+
.extend({
|
|
198
|
+
error_code: z
|
|
199
|
+
.literal('wyze_potential_duplicate_code')
|
|
200
|
+
.describe(error_code_description),
|
|
201
|
+
})
|
|
202
|
+
.describe('Potential duplicate access code detected.')
|
|
203
|
+
|
|
204
|
+
const dormakaba_oracode_no_valid_user_level = common_access_code_error
|
|
205
|
+
.extend({
|
|
206
|
+
error_code: z
|
|
207
|
+
.literal('dormakaba_oracode_no_valid_user_level')
|
|
208
|
+
.describe(error_code_description),
|
|
209
|
+
})
|
|
210
|
+
.describe('No valid user level for Oracode.')
|
|
211
|
+
|
|
171
212
|
const access_code_error = z.discriminatedUnion('error_code', [
|
|
172
213
|
smartthings_failed_to_set_access_code_error,
|
|
173
214
|
smartthings_failed_to_set_after_multiple_retries,
|
|
215
|
+
smartthings_no_free_slots_available,
|
|
174
216
|
failed_to_set_on_device,
|
|
175
217
|
failed_to_remove_from_device,
|
|
176
218
|
duplicate_code_on_device,
|
|
@@ -185,15 +227,82 @@ const access_code_error = z.discriminatedUnion('error_code', [
|
|
|
185
227
|
august_device_programming_delay_error,
|
|
186
228
|
august_device_slots_full,
|
|
187
229
|
august_lock_missing_keypad,
|
|
188
|
-
|
|
230
|
+
august_lock_temporarily_offline_error,
|
|
231
|
+
salto_ks_user_not_subscribed,
|
|
189
232
|
hubitat_device_programming_delay,
|
|
190
233
|
hubitat_no_free_positions_available,
|
|
234
|
+
wyze_duplicate_code_name,
|
|
235
|
+
wyze_potential_duplicate_code,
|
|
236
|
+
dormakaba_oracode_no_valid_user_level,
|
|
191
237
|
])
|
|
192
238
|
|
|
193
239
|
export type AccessCodeError = z.infer<typeof access_code_error>
|
|
194
240
|
|
|
241
|
+
const access_code_error_map = z.object({
|
|
242
|
+
smartthings_failed_to_set_access_code:
|
|
243
|
+
smartthings_failed_to_set_access_code_error.optional().nullable(),
|
|
244
|
+
smartthings_failed_to_set_after_multiple_retries:
|
|
245
|
+
smartthings_failed_to_set_after_multiple_retries.optional().nullable(),
|
|
246
|
+
smartthings_no_free_slots_available: smartthings_no_free_slots_available
|
|
247
|
+
.optional()
|
|
248
|
+
.nullable(),
|
|
249
|
+
failed_to_set_on_device: failed_to_set_on_device.optional().nullable(),
|
|
250
|
+
failed_to_remove_from_device: failed_to_remove_from_device
|
|
251
|
+
.optional()
|
|
252
|
+
.nullable(),
|
|
253
|
+
duplicate_code_on_device: duplicate_code_on_device.optional().nullable(),
|
|
254
|
+
duplicate_code_attempt_prevented: duplicate_code_attempt_prevented
|
|
255
|
+
.optional()
|
|
256
|
+
.nullable(),
|
|
257
|
+
igloohome_bridge_too_many_pending_jobs: igloohome_bridge_too_many_pending_jobs
|
|
258
|
+
.optional()
|
|
259
|
+
.nullable(),
|
|
260
|
+
igloohome_bridge_offline: igloohome_bridge_offline.optional().nullable(),
|
|
261
|
+
igloohome_offline_access_code_no_variance_available:
|
|
262
|
+
igloohome_offline_access_code_no_variance_available.optional().nullable(),
|
|
263
|
+
kwikset_unable_to_confirm_code: kwikset_unable_to_confirm_code
|
|
264
|
+
.optional()
|
|
265
|
+
.nullable(),
|
|
266
|
+
kwikset_unable_to_confirm_deletion: kwikset_unable_to_confirm_deletion
|
|
267
|
+
.optional()
|
|
268
|
+
.nullable(),
|
|
269
|
+
code_modified_external_to_seam_error: code_modified_external_to_seam_error
|
|
270
|
+
.optional()
|
|
271
|
+
.nullable(),
|
|
272
|
+
august_lock_invalid_code_length: august_lock_invalid_code_length
|
|
273
|
+
.optional()
|
|
274
|
+
.nullable(),
|
|
275
|
+
august_device_programming_delay: august_device_programming_delay_error
|
|
276
|
+
.optional()
|
|
277
|
+
.nullable(),
|
|
278
|
+
august_lock_temporarily_offline: august_lock_temporarily_offline_error
|
|
279
|
+
.optional()
|
|
280
|
+
.nullable(),
|
|
281
|
+
august_device_slots_full: august_device_slots_full.optional().nullable(),
|
|
282
|
+
august_lock_missing_keypad: august_lock_missing_keypad.optional().nullable(),
|
|
283
|
+
salto_ks_user_not_subscribed: salto_ks_user_not_subscribed
|
|
284
|
+
.optional()
|
|
285
|
+
.nullable(),
|
|
286
|
+
hubitat_device_programming_delay: hubitat_device_programming_delay
|
|
287
|
+
.optional()
|
|
288
|
+
.nullable(),
|
|
289
|
+
hubitat_no_free_positions_available: hubitat_no_free_positions_available
|
|
290
|
+
.optional()
|
|
291
|
+
.nullable(),
|
|
292
|
+
wyze_duplicate_code_name: wyze_duplicate_code_name.optional().nullable(),
|
|
293
|
+
wyze_potential_duplicate_code: wyze_potential_duplicate_code
|
|
294
|
+
.optional()
|
|
295
|
+
.nullable(),
|
|
296
|
+
dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level
|
|
297
|
+
.optional()
|
|
298
|
+
.nullable(),
|
|
299
|
+
})
|
|
300
|
+
|
|
301
|
+
export type AccessCodeErrorMap = z.infer<typeof access_code_error_map>
|
|
302
|
+
|
|
195
303
|
const common_access_code_warning = z.object({
|
|
196
304
|
message: z.string(),
|
|
305
|
+
created_at: z.string().datetime().optional(),
|
|
197
306
|
})
|
|
198
307
|
|
|
199
308
|
const warning_code_description =
|
|
@@ -215,6 +324,14 @@ const august_device_programming_delay_warning = common_access_code_warning
|
|
|
215
324
|
})
|
|
216
325
|
.describe('Access code has not yet been fully moved to the device.')
|
|
217
326
|
|
|
327
|
+
const august_lock_temporarily_offline_warning = common_access_code_warning
|
|
328
|
+
.extend({
|
|
329
|
+
warning_code: z
|
|
330
|
+
.literal('august_lock_temporarily_offline')
|
|
331
|
+
.describe(error_code_description),
|
|
332
|
+
})
|
|
333
|
+
.describe('August lock is temporarily offline.')
|
|
334
|
+
|
|
218
335
|
const code_modified_external_to_seam_warning = common_access_code_warning
|
|
219
336
|
.extend({
|
|
220
337
|
warning_code: z
|
|
@@ -241,14 +358,6 @@ const schlage_creation_outage = common_access_code_warning
|
|
|
241
358
|
})
|
|
242
359
|
.describe('Received an error when attempting to create this code.')
|
|
243
360
|
|
|
244
|
-
const salto_office_mode = common_access_code_warning
|
|
245
|
-
.extend({
|
|
246
|
-
warning_code: z
|
|
247
|
-
.literal('salto_office_mode')
|
|
248
|
-
.describe(warning_code_description),
|
|
249
|
-
})
|
|
250
|
-
.describe('Lock is in Office Mode. Access Codes will not unlock doors.')
|
|
251
|
-
|
|
252
361
|
const delay_in_setting_on_device = common_access_code_warning
|
|
253
362
|
.extend({
|
|
254
363
|
warning_code: z
|
|
@@ -303,12 +412,12 @@ const access_code_warning = z.discriminatedUnion('warning_code', [
|
|
|
303
412
|
smartthings_failed_to_set_access_code_warning,
|
|
304
413
|
schlage_detected_duplicate,
|
|
305
414
|
schlage_creation_outage,
|
|
306
|
-
salto_office_mode,
|
|
307
415
|
code_modified_external_to_seam_warning,
|
|
308
416
|
delay_in_setting_on_device,
|
|
309
417
|
delay_in_removing_from_device,
|
|
310
418
|
third_party_integration_detected,
|
|
311
419
|
august_device_programming_delay_warning,
|
|
420
|
+
august_lock_temporarily_offline_warning,
|
|
312
421
|
igloo_algopin_must_be_used_within_24_hours,
|
|
313
422
|
management_transferred,
|
|
314
423
|
kwikset_unable_to_confirm_code_warning,
|
|
@@ -316,6 +425,37 @@ const access_code_warning = z.discriminatedUnion('warning_code', [
|
|
|
316
425
|
|
|
317
426
|
export type AccessCodeWarning = z.infer<typeof access_code_warning>
|
|
318
427
|
|
|
428
|
+
const access_code_warning_map = z.object({
|
|
429
|
+
smartthings_failed_to_set_access_code:
|
|
430
|
+
smartthings_failed_to_set_access_code_warning.optional().nullable(),
|
|
431
|
+
schlage_detected_duplicate: schlage_detected_duplicate.optional().nullable(),
|
|
432
|
+
schlage_creation_outage: schlage_creation_outage.optional().nullable(),
|
|
433
|
+
code_modified_external_to_seam_warning: code_modified_external_to_seam_warning
|
|
434
|
+
.optional()
|
|
435
|
+
.nullable(),
|
|
436
|
+
delay_in_setting_on_device: delay_in_setting_on_device.optional().nullable(),
|
|
437
|
+
delay_in_removing_from_device: delay_in_removing_from_device
|
|
438
|
+
.optional()
|
|
439
|
+
.nullable(),
|
|
440
|
+
third_party_integration_detected: third_party_integration_detected
|
|
441
|
+
.optional()
|
|
442
|
+
.nullable(),
|
|
443
|
+
august_device_programming_delay: august_device_programming_delay_warning
|
|
444
|
+
.optional()
|
|
445
|
+
.nullable(),
|
|
446
|
+
august_lock_temporarily_offline: august_lock_temporarily_offline_warning
|
|
447
|
+
.optional()
|
|
448
|
+
.nullable(),
|
|
449
|
+
igloo_algopin_must_be_used_within_24_hours:
|
|
450
|
+
igloo_algopin_must_be_used_within_24_hours.optional().nullable(),
|
|
451
|
+
management_transferred: management_transferred.optional().nullable(),
|
|
452
|
+
kwikset_unable_to_confirm_code_warning: kwikset_unable_to_confirm_code_warning
|
|
453
|
+
.optional()
|
|
454
|
+
.nullable(),
|
|
455
|
+
})
|
|
456
|
+
|
|
457
|
+
export type AccessCodeWarningMap = z.infer<typeof access_code_warning_map>
|
|
458
|
+
|
|
319
459
|
export const access_code = z.object({
|
|
320
460
|
common_code_key: z
|
|
321
461
|
.string()
|