Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ const failed_to_update = common_access_code_error.extend({
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.
`)

const failed_to_remove = common_access_code_error.extend({
error_code: z.literal('failed_to_remove').describe(error_code_description),
const failed_to_delete = common_access_code_error.extend({
error_code: z.literal('failed_to_delete').describe(error_code_description),
}).describe(`
---
resource_type: access_code
undocumented: Unreleased.
---
This access code is still active on the device even though its \`ends_at\` has passed, so the recipient may still be able to unlock the device after their access window ended. Seam is attempting to remove it, and this error clears automatically once the access code is no longer active.
This access code is still active on the device even though its \`ends_at\` has passed, so the recipient may still be able to unlock the device after their access window ended. Seam is attempting to delete it, and this error clears automatically once the access code is no longer active.
`)

const access_code_inactive_error = common_access_code_error.extend({
Expand Down Expand Up @@ -187,7 +187,7 @@ const access_code_error = z
code_constraints_violated,
failed_to_issue,
failed_to_update,
failed_to_remove,
failed_to_delete,
])
.describe(
'Errors associated with the [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes).',
Expand All @@ -212,7 +212,7 @@ const _access_code_error_map = z.object({
code_constraints_violated: code_constraints_violated.optional().nullable(),
failed_to_issue: failed_to_issue.optional().nullable(),
failed_to_update: failed_to_update.optional().nullable(),
failed_to_remove: failed_to_remove.optional().nullable(),
failed_to_delete: failed_to_delete.optional().nullable(),
})

export type AccessCodeErrorMap = z.infer<typeof _access_code_error_map>
Expand Down
12 changes: 6 additions & 6 deletions src/lib/seam/connect/models/events/access-codes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,20 +361,20 @@ export type AccessCodeFailedToUpdateEvent = z.infer<
typeof access_code_failed_to_update_event
>

export const access_code_failed_to_remove_event = access_code_event
export const access_code_failed_to_delete_event = access_code_event
.extend({
event_type: z.literal('access_code.failed_to_remove'),
event_type: z.literal('access_code.failed_to_delete'),
})
.extend(access_code_event_issue_properties).describe(`
---
route_path: /access_codes
undocumented: Unreleased.
---
An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) is still active on the device even though its \`ends_at\` has passed, so the recipient may still be able to unlock the device after their access window ended. Seam is attempting to remove it, and the accompanying \`failed_to_remove\` error clears automatically once the access code is no longer active.
An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) is still active on the device even though its \`ends_at\` has passed, so the recipient may still be able to unlock the device after their access window ended. Seam is attempting to delete it, and the accompanying \`failed_to_delete\` error clears automatically once the access code is no longer active.
`)

export type AccessCodeFailedToRemoveEvent = z.infer<
typeof access_code_failed_to_remove_event
export type AccessCodeFailedToDeleteEvent = z.infer<
typeof access_code_failed_to_delete_event
>

export const access_code_deleted_event = access_code_event.extend({
Expand Down Expand Up @@ -541,7 +541,7 @@ export const access_code_events = [
access_code_delay_in_issuing_event,
access_code_failed_to_issue_event,
access_code_failed_to_update_event,
access_code_failed_to_remove_event,
access_code_failed_to_delete_event,
access_code_deleted_event,
access_code_delay_in_removing_from_device_event,
access_code_failed_to_remove_from_device_event,
Expand Down
28 changes: 14 additions & 14 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ const openapi: OpenAPISpec = {
},
{
description:
'This access code is still active on the device even though its `ends_at` has passed, so the recipient may still be able to unlock the device after their access window ended. Seam is attempting to remove it, and this error clears automatically once the access code is no longer active.',
'This access code is still active on the device even though its `ends_at` has passed, so the recipient may still be able to unlock the device after their access window ended. Seam is attempting to delete it, and this error clears automatically once the access code is no longer active.',
properties: {
created_at: {
description:
Expand All @@ -478,7 +478,7 @@ const openapi: OpenAPISpec = {
error_code: {
description:
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
enum: ['failed_to_remove'],
enum: ['failed_to_delete'],
type: 'string',
},
is_access_code_error: {
Expand Down Expand Up @@ -20556,7 +20556,7 @@ const openapi: OpenAPISpec = {
},
{
description:
'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) is still active on the device even though its `ends_at` has passed, so the recipient may still be able to unlock the device after their access window ended. Seam is attempting to remove it, and the accompanying `failed_to_remove` error clears automatically once the access code is no longer active.',
'An [access code](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes) is still active on the device even though its `ends_at` has passed, so the recipient may still be able to unlock the device after their access window ended. Seam is attempting to delete it, and the accompanying `failed_to_delete` error clears automatically once the access code is no longer active.',
properties: {
access_code_errors: {
description: 'Errors associated with the access code.',
Expand Down Expand Up @@ -20775,7 +20775,7 @@ const openapi: OpenAPISpec = {
type: 'string',
},
event_type: {
enum: ['access_code.failed_to_remove'],
enum: ['access_code.failed_to_delete'],
type: 'string',
},
occurred_at: {
Expand Down Expand Up @@ -32034,7 +32034,7 @@ const openapi: OpenAPISpec = {
},
{
description:
'This access code is still active on the device even though its `ends_at` has passed, so the recipient may still be able to unlock the device after their access window ended. Seam is attempting to remove it, and this error clears automatically once the access code is no longer active.',
'This access code is still active on the device even though its `ends_at` has passed, so the recipient may still be able to unlock the device after their access window ended. Seam is attempting to delete it, and this error clears automatically once the access code is no longer active.',
properties: {
created_at: {
description:
Expand All @@ -32045,7 +32045,7 @@ const openapi: OpenAPISpec = {
error_code: {
description:
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
enum: ['failed_to_remove'],
enum: ['failed_to_delete'],
type: 'string',
},
is_access_code_error: {
Expand Down Expand Up @@ -39039,7 +39039,7 @@ const openapi: OpenAPISpec = {
'access_code.delay_in_issuing',
'access_code.failed_to_issue',
'access_code.failed_to_update',
'access_code.failed_to_remove',
'access_code.failed_to_delete',
'access_code.scheduled_on_device',
'access_code.set_on_device',
'access_code.removed_from_device',
Expand Down Expand Up @@ -39140,7 +39140,7 @@ const openapi: OpenAPISpec = {
'access_code.delay_in_issuing',
'access_code.failed_to_issue',
'access_code.failed_to_update',
'access_code.failed_to_remove',
'access_code.failed_to_delete',
'access_code.scheduled_on_device',
'access_code.set_on_device',
'access_code.removed_from_device',
Expand Down Expand Up @@ -53781,7 +53781,7 @@ const openapi: OpenAPISpec = {
'access_code.delay_in_issuing',
'access_code.failed_to_issue',
'access_code.failed_to_update',
'access_code.failed_to_remove',
'access_code.failed_to_delete',
'access_code.deleted',
'access_code.delay_in_removing_from_device',
'access_code.failed_to_remove_from_device',
Expand Down Expand Up @@ -53906,7 +53906,7 @@ const openapi: OpenAPISpec = {
'access_code.delay_in_issuing',
'access_code.failed_to_issue',
'access_code.failed_to_update',
'access_code.failed_to_remove',
'access_code.failed_to_delete',
'access_code.deleted',
'access_code.delay_in_removing_from_device',
'access_code.failed_to_remove_from_device',
Expand Down Expand Up @@ -61719,7 +61719,7 @@ const openapi: OpenAPISpec = {
'access_code.delay_in_issuing',
'access_code.failed_to_issue',
'access_code.failed_to_update',
'access_code.failed_to_remove',
'access_code.failed_to_delete',
'access_code.deleted',
'access_code.delay_in_removing_from_device',
'access_code.failed_to_remove_from_device',
Expand Down Expand Up @@ -61845,7 +61845,7 @@ const openapi: OpenAPISpec = {
'access_code.delay_in_issuing',
'access_code.failed_to_issue',
'access_code.failed_to_update',
'access_code.failed_to_remove',
'access_code.failed_to_delete',
'access_code.deleted',
'access_code.delay_in_removing_from_device',
'access_code.failed_to_remove_from_device',
Expand Down Expand Up @@ -65282,7 +65282,7 @@ const openapi: OpenAPISpec = {
'access_code.delay_in_issuing',
'access_code.failed_to_issue',
'access_code.failed_to_update',
'access_code.failed_to_remove',
'access_code.failed_to_delete',
'access_code.deleted',
'access_code.delay_in_removing_from_device',
'access_code.failed_to_remove_from_device',
Expand Down Expand Up @@ -65493,7 +65493,7 @@ const openapi: OpenAPISpec = {
'access_code.delay_in_issuing',
'access_code.failed_to_issue',
'access_code.failed_to_update',
'access_code.failed_to_remove',
'access_code.failed_to_delete',
'access_code.deleted',
'access_code.delay_in_removing_from_device',
'access_code.failed_to_remove_from_device',
Expand Down
Loading
Loading