@seamapi/types 1.1035.0 → 1.1037.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/lib/seam/connect/models/access-codes/managed-access-code.d.ts +16 -74
- package/lib/seam/connect/models/access-codes/managed-access-code.js +5 -21
- 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 +5 -26
- package/lib/seam/connect/models/events/access-codes.d.ts +8 -364
- package/lib/seam/connect/models/events/access-codes.js +4 -16
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +4 -181
- package/lib/seam/connect/openapi.js +20 -297
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +22 -419
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +5 -22
- package/src/lib/seam/connect/models/events/access-codes.ts +6 -23
- package/src/lib/seam/connect/openapi.ts +20 -335
- package/src/lib/seam/connect/route-types.ts +22 -454
package/package.json
CHANGED
|
@@ -134,16 +134,14 @@ const failed_to_issue = common_access_code_error.extend({
|
|
|
134
134
|
Seam was unable to issue this access code before its start time, so the recipient may be unable to unlock the device. This usually points to a problem that needs attention, such as an offline or disconnected device. Seam keeps retrying, and this error clears automatically if the access code is eventually issued.
|
|
135
135
|
`)
|
|
136
136
|
|
|
137
|
-
const
|
|
138
|
-
error_code: z
|
|
139
|
-
.literal('failed_to_apply_mutations')
|
|
140
|
-
.describe(error_code_description),
|
|
137
|
+
const failed_to_update = common_access_code_error.extend({
|
|
138
|
+
error_code: z.literal('failed_to_update').describe(error_code_description),
|
|
141
139
|
}).describe(`
|
|
142
140
|
---
|
|
143
141
|
resource_type: access_code
|
|
144
142
|
undocumented: Unreleased.
|
|
145
143
|
---
|
|
146
|
-
Seam was unable to apply this access code's
|
|
144
|
+
Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.
|
|
147
145
|
`)
|
|
148
146
|
|
|
149
147
|
const failed_to_expire = common_access_code_error.extend({
|
|
@@ -189,7 +187,7 @@ const access_code_error = z
|
|
|
189
187
|
access_code_inactive_error,
|
|
190
188
|
code_constraints_violated,
|
|
191
189
|
failed_to_issue,
|
|
192
|
-
|
|
190
|
+
failed_to_update,
|
|
193
191
|
failed_to_expire,
|
|
194
192
|
])
|
|
195
193
|
.describe(
|
|
@@ -214,7 +212,7 @@ const _access_code_error_map = z.object({
|
|
|
214
212
|
access_code_inactive: access_code_inactive_error.optional().nullable(),
|
|
215
213
|
code_constraints_violated: code_constraints_violated.optional().nullable(),
|
|
216
214
|
failed_to_issue: failed_to_issue.optional().nullable(),
|
|
217
|
-
|
|
215
|
+
failed_to_update: failed_to_update.optional().nullable(),
|
|
218
216
|
failed_to_expire: failed_to_expire.optional().nullable(),
|
|
219
217
|
})
|
|
220
218
|
|
|
@@ -309,17 +307,6 @@ const delay_in_issuing = common_access_code_warning.extend({
|
|
|
309
307
|
Seam has not yet issued this access code, even though its start time is approaching, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.
|
|
310
308
|
`)
|
|
311
309
|
|
|
312
|
-
const delay_in_applying_mutations = common_access_code_warning.extend({
|
|
313
|
-
warning_code: z
|
|
314
|
-
.literal('delay_in_applying_mutations')
|
|
315
|
-
.describe(warning_code_description),
|
|
316
|
-
}).describe(`
|
|
317
|
-
---
|
|
318
|
-
undocumented: Unreleased.
|
|
319
|
-
---
|
|
320
|
-
Seam has not yet applied this access code's pending mutations to the device, so the code on the device does not yet match its requested state. Seam is still attempting to apply them, and this warning clears automatically once the mutations are applied.
|
|
321
|
-
`)
|
|
322
|
-
|
|
323
310
|
const third_party_integration_detected = common_access_code_warning
|
|
324
311
|
.extend({
|
|
325
312
|
warning_code: z
|
|
@@ -378,7 +365,6 @@ const access_code_warning = z
|
|
|
378
365
|
delay_in_setting_on_device,
|
|
379
366
|
delay_in_removing_from_device,
|
|
380
367
|
delay_in_issuing,
|
|
381
|
-
delay_in_applying_mutations,
|
|
382
368
|
third_party_integration_detected,
|
|
383
369
|
igloo_algopin_must_be_used_within_24_hours,
|
|
384
370
|
management_transferred,
|
|
@@ -404,9 +390,6 @@ const _access_code_warning_map = z.object({
|
|
|
404
390
|
.optional()
|
|
405
391
|
.nullable(),
|
|
406
392
|
delay_in_issuing: delay_in_issuing.optional().nullable(),
|
|
407
|
-
delay_in_applying_mutations: delay_in_applying_mutations
|
|
408
|
-
.optional()
|
|
409
|
-
.nullable(),
|
|
410
393
|
third_party_integration_detected: third_party_integration_detected
|
|
411
394
|
.optional()
|
|
412
395
|
.nullable(),
|
|
@@ -345,36 +345,20 @@ export type AccessCodeFailedToIssueEvent = z.infer<
|
|
|
345
345
|
typeof access_code_failed_to_issue_event
|
|
346
346
|
>
|
|
347
347
|
|
|
348
|
-
export const
|
|
348
|
+
export const access_code_failed_to_update_event = access_code_event
|
|
349
349
|
.extend({
|
|
350
|
-
event_type: z.literal('access_code.
|
|
350
|
+
event_type: z.literal('access_code.failed_to_update'),
|
|
351
351
|
})
|
|
352
352
|
.extend(access_code_event_issue_properties).describe(`
|
|
353
353
|
---
|
|
354
354
|
route_path: /access_codes
|
|
355
355
|
undocumented: Unreleased.
|
|
356
356
|
---
|
|
357
|
-
Seam
|
|
357
|
+
Seam was unable to apply this [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes)'s requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and the accompanying \`failed_to_update\` error clears automatically once the update is applied.
|
|
358
358
|
`)
|
|
359
359
|
|
|
360
|
-
export type
|
|
361
|
-
typeof
|
|
362
|
-
>
|
|
363
|
-
|
|
364
|
-
export const access_code_failed_to_apply_mutations_event = access_code_event
|
|
365
|
-
.extend({
|
|
366
|
-
event_type: z.literal('access_code.failed_to_apply_mutations'),
|
|
367
|
-
})
|
|
368
|
-
.extend(access_code_event_issue_properties).describe(`
|
|
369
|
-
---
|
|
370
|
-
route_path: /access_codes
|
|
371
|
-
undocumented: Unreleased.
|
|
372
|
-
---
|
|
373
|
-
Seam was unable to apply this [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes)'s pending mutations to the device, so the code on the device does not match its requested state. Seam keeps retrying, and the accompanying \`failed_to_apply_mutations\` error clears automatically once the mutations are applied.
|
|
374
|
-
`)
|
|
375
|
-
|
|
376
|
-
export type AccessCodeFailedToApplyMutationsEvent = z.infer<
|
|
377
|
-
typeof access_code_failed_to_apply_mutations_event
|
|
360
|
+
export type AccessCodeFailedToUpdateEvent = z.infer<
|
|
361
|
+
typeof access_code_failed_to_update_event
|
|
378
362
|
>
|
|
379
363
|
|
|
380
364
|
export const access_code_failed_to_expire_event = access_code_event
|
|
@@ -556,8 +540,7 @@ export const access_code_events = [
|
|
|
556
540
|
access_code_issued_event,
|
|
557
541
|
access_code_delay_in_issuing_event,
|
|
558
542
|
access_code_failed_to_issue_event,
|
|
559
|
-
|
|
560
|
-
access_code_failed_to_apply_mutations_event,
|
|
543
|
+
access_code_failed_to_update_event,
|
|
561
544
|
access_code_failed_to_expire_event,
|
|
562
545
|
access_code_deleted_event,
|
|
563
546
|
access_code_delay_in_removing_from_device_event,
|