diff --git a/src/lib/seam/connect/models/access-codes/managed-access-code.ts b/src/lib/seam/connect/models/access-codes/managed-access-code.ts index dc014bcc..367f2a6c 100644 --- a/src/lib/seam/connect/models/access-codes/managed-access-code.ts +++ b/src/lib/seam/connect/models/access-codes/managed-access-code.ts @@ -124,6 +124,38 @@ const no_space_for_access_code_on_device = common_access_code_error.extend({ No space for access code on device. `) +const failed_to_issue = common_access_code_error.extend({ + error_code: z.literal('failed_to_issue').describe(error_code_description), +}).describe(` + --- + resource_type: access_code + undocumented: Unreleased. + --- + 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. + `) + +const failed_to_apply_mutations = common_access_code_error.extend({ + error_code: z + .literal('failed_to_apply_mutations') + .describe(error_code_description), +}).describe(` + --- + resource_type: access_code + undocumented: Unreleased. + --- + Seam was unable to apply this access code's pending mutations 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 mutations are applied. + `) + +const failed_to_expire = common_access_code_error.extend({ + error_code: z.literal('failed_to_expire').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. + `) + const access_code_inactive_error = common_access_code_error.extend({ error_code: z .literal('access_code_inactive') @@ -156,6 +188,9 @@ const access_code_error = z conflicting_external_modification_error, access_code_inactive_error, code_constraints_violated, + failed_to_issue, + failed_to_apply_mutations, + failed_to_expire, ]) .describe( 'Errors associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).', @@ -178,6 +213,9 @@ const _access_code_error_map = z.object({ .nullable(), access_code_inactive: access_code_inactive_error.optional().nullable(), code_constraints_violated: code_constraints_violated.optional().nullable(), + failed_to_issue: failed_to_issue.optional().nullable(), + failed_to_apply_mutations: failed_to_apply_mutations.optional().nullable(), + failed_to_expire: failed_to_expire.optional().nullable(), }) export type AccessCodeErrorMap = z.infer @@ -260,6 +298,28 @@ const delay_in_removing_from_device = common_access_code_warning.extend({ Delay in removing code from device. `) +const delay_in_issuing = common_access_code_warning.extend({ + warning_code: z + .literal('delay_in_issuing') + .describe(warning_code_description), +}).describe(` + --- + undocumented: Unreleased. + --- + 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. + `) + +const delay_in_applying_mutations = common_access_code_warning.extend({ + warning_code: z + .literal('delay_in_applying_mutations') + .describe(warning_code_description), +}).describe(` + --- + undocumented: Unreleased. + --- + 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. + `) + const third_party_integration_detected = common_access_code_warning .extend({ warning_code: z @@ -317,6 +377,8 @@ const access_code_warning = z external_modification_in_effect_warning, delay_in_setting_on_device, delay_in_removing_from_device, + delay_in_issuing, + delay_in_applying_mutations, third_party_integration_detected, igloo_algopin_must_be_used_within_24_hours, management_transferred, @@ -341,6 +403,10 @@ const _access_code_warning_map = z.object({ delay_in_removing_from_device: delay_in_removing_from_device .optional() .nullable(), + delay_in_issuing: delay_in_issuing.optional().nullable(), + delay_in_applying_mutations: delay_in_applying_mutations + .optional() + .nullable(), third_party_integration_detected: third_party_integration_detected .optional() .nullable(), diff --git a/src/lib/seam/connect/models/events/access-codes.ts b/src/lib/seam/connect/models/events/access-codes.ts index d09ff070..5da05347 100644 --- a/src/lib/seam/connect/models/events/access-codes.ts +++ b/src/lib/seam/connect/models/events/access-codes.ts @@ -300,6 +300,99 @@ export type AccessCodeFailedToSetOnDeviceEvent = z.infer< typeof access_code_failed_to_set_on_device_event > +export const access_code_issued_event = access_code_event.extend({ + event_type: z.literal('access_code.issued'), + code, +}).describe(` + --- + route_path: /access_codes + undocumented: Unreleased. + --- + An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was issued. + `) + +export type AccessCodeIssuedEvent = z.infer + +export const access_code_delay_in_issuing_event = access_code_event + .extend({ + event_type: z.literal('access_code.delay_in_issuing'), + }) + .extend(access_code_event_issue_properties).describe(` + --- + route_path: /access_codes + undocumented: Unreleased. + --- + Seam has not yet issued this [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes), 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 the accompanying \`delay_in_issuing\` warning clears automatically once issuance succeeds. + `) + +export type AccessCodeDelayInIssuingEvent = z.infer< + typeof access_code_delay_in_issuing_event +> + +export const access_code_failed_to_issue_event = access_code_event + .extend({ + event_type: z.literal('access_code.failed_to_issue'), + }) + .extend(access_code_event_issue_properties).describe(` + --- + route_path: /access_codes + undocumented: Unreleased. + --- + Seam was unable to issue this [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) 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 the accompanying \`failed_to_issue\` error clears automatically if the access code is eventually issued. + `) + +export type AccessCodeFailedToIssueEvent = z.infer< + typeof access_code_failed_to_issue_event +> + +export const access_code_delay_in_applying_mutations_event = access_code_event + .extend({ + event_type: z.literal('access_code.delay_in_applying_mutations'), + }) + .extend(access_code_event_issue_properties).describe(` + --- + route_path: /access_codes + undocumented: Unreleased. + --- + Seam has not yet applied 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 yet match its requested state. Seam is still attempting to apply them, and the accompanying \`delay_in_applying_mutations\` warning clears automatically once the mutations are applied. + `) + +export type AccessCodeDelayInApplyingMutationsEvent = z.infer< + typeof access_code_delay_in_applying_mutations_event +> + +export const access_code_failed_to_apply_mutations_event = access_code_event + .extend({ + event_type: z.literal('access_code.failed_to_apply_mutations'), + }) + .extend(access_code_event_issue_properties).describe(` + --- + route_path: /access_codes + undocumented: Unreleased. + --- + 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. + `) + +export type AccessCodeFailedToApplyMutationsEvent = z.infer< + typeof access_code_failed_to_apply_mutations_event +> + +export const access_code_failed_to_expire_event = access_code_event + .extend({ + event_type: z.literal('access_code.failed_to_expire'), + }) + .extend(access_code_event_issue_properties).describe(` + --- + route_path: /access_codes + undocumented: Unreleased. + --- + An [access code](https://docs.seam.co/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_expire\` error clears automatically once the access code is no longer active. + `) + +export type AccessCodeFailedToExpireEvent = z.infer< + typeof access_code_failed_to_expire_event +> + export const access_code_deleted_event = access_code_event.extend({ event_type: z.literal('access_code.deleted'), code: code.nullable(), @@ -460,6 +553,12 @@ export const access_code_events = [ access_code_removed_from_device_event, access_code_delay_in_setting_on_device_event, access_code_failed_to_set_on_device_event, + access_code_issued_event, + access_code_delay_in_issuing_event, + access_code_failed_to_issue_event, + access_code_delay_in_applying_mutations_event, + access_code_failed_to_apply_mutations_event, + access_code_failed_to_expire_event, access_code_deleted_event, access_code_delay_in_removing_from_device_event, access_code_failed_to_remove_from_device_event, diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index e3730b38..b9b60c54 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -399,6 +399,105 @@ const openapi: OpenAPISpec = { type: 'object', 'x-resource-type': 'access_code', }, + { + description: + '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.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['failed_to_issue'], + type: 'string', + }, + is_access_code_error: { + description: + 'Indicates that this is an access code error.', + enum: [true], + type: 'boolean', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + 'x-resource-type': 'access_code', + 'x-undocumented': 'Unreleased.', + }, + { + description: + "Seam was unable to apply this access code's pending mutations 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 mutations are applied.", + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['failed_to_apply_mutations'], + type: 'string', + }, + is_access_code_error: { + description: + 'Indicates that this is an access code error.', + enum: [true], + type: 'boolean', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + 'x-resource-type': 'access_code', + 'x-undocumented': 'Unreleased.', + }, + { + 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.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['failed_to_expire'], + type: 'string', + }, + is_access_code_error: { + description: + 'Indicates that this is an access code error.', + enum: [true], + type: 'boolean', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + 'x-resource-type': 'access_code', + 'x-undocumented': 'Unreleased.', + }, { description: 'Indicates that the account is disconnected.', properties: { @@ -1464,6 +1563,58 @@ const openapi: OpenAPISpec = { 'x-deprecated': 'Seam no longer sets this warning. Use the `failed_to_remove_from_device` error instead.', }, + { + description: + '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.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['delay_in_issuing'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + 'x-undocumented': 'Unreleased.', + }, + { + description: + "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.", + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['delay_in_applying_mutations'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + 'x-undocumented': 'Unreleased.', + }, { description: 'Third-party integration detected that may cause access codes to fail.', @@ -19427,7 +19578,7 @@ const openapi: OpenAPISpec = { }, { description: - 'An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was deleted.', + 'An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was issued.', properties: { access_code_id: { description: 'ID of the affected access code.', @@ -19436,7 +19587,6 @@ const openapi: OpenAPISpec = { }, code: { description: 'Code for the affected access code.', - nullable: true, type: 'string', }, connected_account_custom_metadata: { @@ -19482,7 +19632,7 @@ const openapi: OpenAPISpec = { format: 'uuid', type: 'string', }, - event_type: { enum: ['access_code.deleted'], type: 'string' }, + event_type: { enum: ['access_code.issued'], type: 'string' }, occurred_at: { description: 'Date and time at which the event occurred.', format: 'date-time', @@ -19507,11 +19657,11 @@ const openapi: OpenAPISpec = { ], type: 'object', 'x-route-path': '/access_codes', + 'x-undocumented': 'Unreleased.', }, { - deprecated: true, description: - 'There was an unusually long delay in removing an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) from a device.', + 'Seam has not yet issued this [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes), 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 the accompanying `delay_in_issuing` warning clears automatically once issuance succeeds.', properties: { access_code_errors: { description: 'Errors associated with the access code.', @@ -19730,7 +19880,7 @@ const openapi: OpenAPISpec = { type: 'string', }, event_type: { - enum: ['access_code.delay_in_removing_from_device'], + enum: ['access_code.delay_in_issuing'], type: 'string', }, occurred_at: { @@ -19761,13 +19911,12 @@ const openapi: OpenAPISpec = { 'access_code_warnings', ], type: 'object', - 'x-deprecated': - 'Seam no longer emits this event. Use `access_code.failed_to_remove_from_device` instead.', 'x-route-path': '/access_codes', + 'x-undocumented': 'Unreleased.', }, { description: - 'An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) failed to be removed from a device.', + 'Seam was unable to issue this [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) 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 the accompanying `failed_to_issue` error clears automatically if the access code is eventually issued.', properties: { access_code_errors: { description: 'Errors associated with the access code.', @@ -19986,7 +20135,7 @@ const openapi: OpenAPISpec = { type: 'string', }, event_type: { - enum: ['access_code.failed_to_remove_from_device'], + enum: ['access_code.failed_to_issue'], type: 'string', }, occurred_at: { @@ -20018,16 +20167,73 @@ const openapi: OpenAPISpec = { ], type: 'object', 'x-route-path': '/access_codes', + 'x-undocumented': 'Unreleased.', }, { description: - 'An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was modified outside of Seam.', + "Seam has not yet applied 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 yet match its requested state. Seam is still attempting to apply them, and the accompanying `delay_in_applying_mutations` warning clears automatically once the mutations are applied.", properties: { + access_code_errors: { + description: 'Errors associated with the access code.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, access_code_id: { description: 'ID of the affected access code.', format: 'uuid', type: 'string', }, + access_code_warnings: { + description: 'Warnings associated with the access code.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, connected_account_custom_metadata: { additionalProperties: { oneOf: [{ type: 'string' }, { type: 'boolean' }], @@ -20036,12 +20242,68 @@ const openapi: OpenAPISpec = { 'Custom metadata of the connected account, present when connected_account_id is provided.', type: 'object', }, + connected_account_errors: { + description: 'Errors associated with the connected account.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, connected_account_id: { description: 'ID of the connected account associated with the affected access code.', format: 'uuid', type: 'string', }, + connected_account_warnings: { + description: 'Warnings associated with the connected account.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, created_at: { description: 'Date and time at which the event was created.', format: 'date-time', @@ -20055,12 +20317,68 @@ const openapi: OpenAPISpec = { 'Custom metadata of the device, present when device_id is provided.', type: 'object', }, + device_errors: { + description: 'Errors associated with the device.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, device_id: { description: 'ID of the device associated with the affected access code.', format: 'uuid', type: 'string', }, + device_warnings: { + description: 'Warnings associated with the device.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, event_description: { description: 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', @@ -20072,7 +20390,1198 @@ const openapi: OpenAPISpec = { type: 'string', }, event_type: { - enum: ['access_code.modified_external_to_seam'], + enum: ['access_code.delay_in_applying_mutations'], + type: 'string', + }, + occurred_at: { + description: 'Date and time at which the event occurred.', + format: 'date-time', + type: 'string', + }, + workspace_id: { + description: 'ID of the workspace associated with the event.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'event_id', + 'workspace_id', + 'created_at', + 'occurred_at', + 'access_code_id', + 'device_id', + 'connected_account_id', + 'event_type', + 'connected_account_errors', + 'connected_account_warnings', + 'device_errors', + 'device_warnings', + 'access_code_errors', + 'access_code_warnings', + ], + type: 'object', + 'x-route-path': '/access_codes', + 'x-undocumented': 'Unreleased.', + }, + { + description: + "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.", + properties: { + access_code_errors: { + description: 'Errors associated with the access code.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + access_code_id: { + description: 'ID of the affected access code.', + format: 'uuid', + type: 'string', + }, + access_code_warnings: { + description: 'Warnings associated with the access code.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + connected_account_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the connected account, present when connected_account_id is provided.', + type: 'object', + }, + connected_account_errors: { + description: 'Errors associated with the connected account.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + connected_account_id: { + description: + 'ID of the connected account associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + connected_account_warnings: { + description: 'Warnings associated with the connected account.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + created_at: { + description: 'Date and time at which the event was created.', + format: 'date-time', + type: 'string', + }, + device_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the device, present when device_id is provided.', + type: 'object', + }, + device_errors: { + description: 'Errors associated with the device.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + device_id: { + description: + 'ID of the device associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + device_warnings: { + description: 'Warnings associated with the device.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + event_description: { + description: + 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', + type: 'string', + }, + event_id: { + description: 'ID of the event.', + format: 'uuid', + type: 'string', + }, + event_type: { + enum: ['access_code.failed_to_apply_mutations'], + type: 'string', + }, + occurred_at: { + description: 'Date and time at which the event occurred.', + format: 'date-time', + type: 'string', + }, + workspace_id: { + description: 'ID of the workspace associated with the event.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'event_id', + 'workspace_id', + 'created_at', + 'occurred_at', + 'access_code_id', + 'device_id', + 'connected_account_id', + 'event_type', + 'connected_account_errors', + 'connected_account_warnings', + 'device_errors', + 'device_warnings', + 'access_code_errors', + 'access_code_warnings', + ], + type: 'object', + 'x-route-path': '/access_codes', + 'x-undocumented': 'Unreleased.', + }, + { + description: + 'An [access code](https://docs.seam.co/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_expire` error clears automatically once the access code is no longer active.', + properties: { + access_code_errors: { + description: 'Errors associated with the access code.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + access_code_id: { + description: 'ID of the affected access code.', + format: 'uuid', + type: 'string', + }, + access_code_warnings: { + description: 'Warnings associated with the access code.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + connected_account_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the connected account, present when connected_account_id is provided.', + type: 'object', + }, + connected_account_errors: { + description: 'Errors associated with the connected account.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + connected_account_id: { + description: + 'ID of the connected account associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + connected_account_warnings: { + description: 'Warnings associated with the connected account.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + created_at: { + description: 'Date and time at which the event was created.', + format: 'date-time', + type: 'string', + }, + device_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the device, present when device_id is provided.', + type: 'object', + }, + device_errors: { + description: 'Errors associated with the device.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + device_id: { + description: + 'ID of the device associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + device_warnings: { + description: 'Warnings associated with the device.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + event_description: { + description: + 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', + type: 'string', + }, + event_id: { + description: 'ID of the event.', + format: 'uuid', + type: 'string', + }, + event_type: { + enum: ['access_code.failed_to_expire'], + type: 'string', + }, + occurred_at: { + description: 'Date and time at which the event occurred.', + format: 'date-time', + type: 'string', + }, + workspace_id: { + description: 'ID of the workspace associated with the event.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'event_id', + 'workspace_id', + 'created_at', + 'occurred_at', + 'access_code_id', + 'device_id', + 'connected_account_id', + 'event_type', + 'connected_account_errors', + 'connected_account_warnings', + 'device_errors', + 'device_warnings', + 'access_code_errors', + 'access_code_warnings', + ], + type: 'object', + 'x-route-path': '/access_codes', + 'x-undocumented': 'Unreleased.', + }, + { + description: + 'An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was deleted.', + properties: { + access_code_id: { + description: 'ID of the affected access code.', + format: 'uuid', + type: 'string', + }, + code: { + description: 'Code for the affected access code.', + nullable: true, + type: 'string', + }, + connected_account_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the connected account, present when connected_account_id is provided.', + type: 'object', + }, + connected_account_id: { + description: + 'ID of the connected account associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + created_at: { + description: 'Date and time at which the event was created.', + format: 'date-time', + type: 'string', + }, + device_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the device, present when device_id is provided.', + type: 'object', + }, + device_id: { + description: + 'ID of the device associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + event_description: { + description: + 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', + type: 'string', + }, + event_id: { + description: 'ID of the event.', + format: 'uuid', + type: 'string', + }, + event_type: { enum: ['access_code.deleted'], type: 'string' }, + occurred_at: { + description: 'Date and time at which the event occurred.', + format: 'date-time', + type: 'string', + }, + workspace_id: { + description: 'ID of the workspace associated with the event.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'event_id', + 'workspace_id', + 'created_at', + 'occurred_at', + 'access_code_id', + 'device_id', + 'connected_account_id', + 'event_type', + 'code', + ], + type: 'object', + 'x-route-path': '/access_codes', + }, + { + deprecated: true, + description: + 'There was an unusually long delay in removing an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) from a device.', + properties: { + access_code_errors: { + description: 'Errors associated with the access code.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + access_code_id: { + description: 'ID of the affected access code.', + format: 'uuid', + type: 'string', + }, + access_code_warnings: { + description: 'Warnings associated with the access code.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + connected_account_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the connected account, present when connected_account_id is provided.', + type: 'object', + }, + connected_account_errors: { + description: 'Errors associated with the connected account.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + connected_account_id: { + description: + 'ID of the connected account associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + connected_account_warnings: { + description: 'Warnings associated with the connected account.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + created_at: { + description: 'Date and time at which the event was created.', + format: 'date-time', + type: 'string', + }, + device_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the device, present when device_id is provided.', + type: 'object', + }, + device_errors: { + description: 'Errors associated with the device.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + device_id: { + description: + 'ID of the device associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + device_warnings: { + description: 'Warnings associated with the device.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + event_description: { + description: + 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', + type: 'string', + }, + event_id: { + description: 'ID of the event.', + format: 'uuid', + type: 'string', + }, + event_type: { + enum: ['access_code.delay_in_removing_from_device'], + type: 'string', + }, + occurred_at: { + description: 'Date and time at which the event occurred.', + format: 'date-time', + type: 'string', + }, + workspace_id: { + description: 'ID of the workspace associated with the event.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'event_id', + 'workspace_id', + 'created_at', + 'occurred_at', + 'access_code_id', + 'device_id', + 'connected_account_id', + 'event_type', + 'connected_account_errors', + 'connected_account_warnings', + 'device_errors', + 'device_warnings', + 'access_code_errors', + 'access_code_warnings', + ], + type: 'object', + 'x-deprecated': + 'Seam no longer emits this event. Use `access_code.failed_to_remove_from_device` instead.', + 'x-route-path': '/access_codes', + }, + { + description: + 'An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) failed to be removed from a device.', + properties: { + access_code_errors: { + description: 'Errors associated with the access code.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + access_code_id: { + description: 'ID of the affected access code.', + format: 'uuid', + type: 'string', + }, + access_code_warnings: { + description: 'Warnings associated with the access code.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + connected_account_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the connected account, present when connected_account_id is provided.', + type: 'object', + }, + connected_account_errors: { + description: 'Errors associated with the connected account.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + connected_account_id: { + description: + 'ID of the connected account associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + connected_account_warnings: { + description: 'Warnings associated with the connected account.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + created_at: { + description: 'Date and time at which the event was created.', + format: 'date-time', + type: 'string', + }, + device_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the device, present when device_id is provided.', + type: 'object', + }, + device_errors: { + description: 'Errors associated with the device.', + items: { + description: + 'Error associated with the resource, including the error code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'error_code'], + type: 'object', + }, + type: 'array', + }, + device_id: { + description: + 'ID of the device associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + device_warnings: { + description: 'Warnings associated with the device.', + items: { + description: + 'Warning associated with the resource, including the warning code, message, and creation timestamp.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', + }, + type: 'array', + }, + event_description: { + description: + 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', + type: 'string', + }, + event_id: { + description: 'ID of the event.', + format: 'uuid', + type: 'string', + }, + event_type: { + enum: ['access_code.failed_to_remove_from_device'], + type: 'string', + }, + occurred_at: { + description: 'Date and time at which the event occurred.', + format: 'date-time', + type: 'string', + }, + workspace_id: { + description: 'ID of the workspace associated with the event.', + format: 'uuid', + type: 'string', + }, + }, + required: [ + 'event_id', + 'workspace_id', + 'created_at', + 'occurred_at', + 'access_code_id', + 'device_id', + 'connected_account_id', + 'event_type', + 'connected_account_errors', + 'connected_account_warnings', + 'device_errors', + 'device_warnings', + 'access_code_errors', + 'access_code_warnings', + ], + type: 'object', + 'x-route-path': '/access_codes', + }, + { + description: + 'An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was modified outside of Seam.', + properties: { + access_code_id: { + description: 'ID of the affected access code.', + format: 'uuid', + type: 'string', + }, + connected_account_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the connected account, present when connected_account_id is provided.', + type: 'object', + }, + connected_account_id: { + description: + 'ID of the connected account associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + created_at: { + description: 'Date and time at which the event was created.', + format: 'date-time', + type: 'string', + }, + device_custom_metadata: { + additionalProperties: { + oneOf: [{ type: 'string' }, { type: 'boolean' }], + }, + description: + 'Custom metadata of the device, present when device_id is provided.', + type: 'object', + }, + device_id: { + description: + 'ID of the device associated with the affected access code.', + format: 'uuid', + type: 'string', + }, + event_description: { + description: + 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.', + type: 'string', + }, + event_id: { + description: 'ID of the event.', + format: 'uuid', + type: 'string', + }, + event_type: { + enum: ['access_code.modified_external_to_seam'], type: 'string', }, occurred_at: { @@ -30556,6 +32065,105 @@ const openapi: OpenAPISpec = { type: 'object', 'x-resource-type': 'access_code', }, + { + description: + '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.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['failed_to_issue'], + type: 'string', + }, + is_access_code_error: { + description: + 'Indicates that this is an access code error.', + enum: [true], + type: 'boolean', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + 'x-resource-type': 'access_code', + 'x-undocumented': 'Unreleased.', + }, + { + description: + "Seam was unable to apply this access code's pending mutations 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 mutations are applied.", + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['failed_to_apply_mutations'], + type: 'string', + }, + is_access_code_error: { + description: + 'Indicates that this is an access code error.', + enum: [true], + type: 'boolean', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + 'x-resource-type': 'access_code', + 'x-undocumented': 'Unreleased.', + }, + { + 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.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the error.', + format: 'date-time', + type: 'string', + }, + error_code: { + description: + 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', + enum: ['failed_to_expire'], + type: 'string', + }, + is_access_code_error: { + description: + 'Indicates that this is an access code error.', + enum: [true], + type: 'boolean', + }, + message: { + description: + 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + }, + required: ['message', 'is_access_code_error', 'error_code'], + type: 'object', + 'x-resource-type': 'access_code', + 'x-undocumented': 'Unreleased.', + }, { description: 'Indicates that the account is disconnected.', properties: { @@ -31310,6 +32918,58 @@ const openapi: OpenAPISpec = { 'x-deprecated': 'Seam no longer sets this warning. Use the `failed_to_remove_from_device` error instead.', }, + { + description: + '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.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['delay_in_issuing'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + 'x-undocumented': 'Unreleased.', + }, + { + description: + "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.", + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['delay_in_applying_mutations'], + type: 'string', + }, + }, + required: ['message', 'warning_code'], + type: 'object', + 'x-undocumented': 'Unreleased.', + }, { description: 'Third-party integration detected that may cause access codes to fail.', @@ -59448,6 +61108,12 @@ const openapi: OpenAPISpec = { 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', + 'access_code.issued', + 'access_code.delay_in_issuing', + 'access_code.failed_to_issue', + 'access_code.delay_in_applying_mutations', + 'access_code.failed_to_apply_mutations', + 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', @@ -59568,6 +61234,12 @@ const openapi: OpenAPISpec = { 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', + 'access_code.issued', + 'access_code.delay_in_issuing', + 'access_code.failed_to_issue', + 'access_code.delay_in_applying_mutations', + 'access_code.failed_to_apply_mutations', + 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', @@ -60020,6 +61692,12 @@ const openapi: OpenAPISpec = { 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', + 'access_code.issued', + 'access_code.delay_in_issuing', + 'access_code.failed_to_issue', + 'access_code.delay_in_applying_mutations', + 'access_code.failed_to_apply_mutations', + 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', @@ -60136,6 +61814,12 @@ const openapi: OpenAPISpec = { 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', + 'access_code.issued', + 'access_code.delay_in_issuing', + 'access_code.failed_to_issue', + 'access_code.delay_in_applying_mutations', + 'access_code.failed_to_apply_mutations', + 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', @@ -72450,6 +74134,12 @@ const openapi: OpenAPISpec = { 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', + 'access_code.issued', + 'access_code.delay_in_issuing', + 'access_code.failed_to_issue', + 'access_code.delay_in_applying_mutations', + 'access_code.failed_to_apply_mutations', + 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', @@ -72571,6 +74261,12 @@ const openapi: OpenAPISpec = { 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', + 'access_code.issued', + 'access_code.delay_in_issuing', + 'access_code.failed_to_issue', + 'access_code.delay_in_applying_mutations', + 'access_code.failed_to_apply_mutations', + 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', @@ -72753,6 +74449,12 @@ const openapi: OpenAPISpec = { 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', + 'access_code.issued', + 'access_code.delay_in_issuing', + 'access_code.failed_to_issue', + 'access_code.delay_in_applying_mutations', + 'access_code.failed_to_apply_mutations', + 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', @@ -72869,6 +74571,12 @@ const openapi: OpenAPISpec = { 'access_code.removed_from_device', 'access_code.delay_in_setting_on_device', 'access_code.failed_to_set_on_device', + 'access_code.issued', + 'access_code.delay_in_issuing', + 'access_code.failed_to_issue', + 'access_code.delay_in_applying_mutations', + 'access_code.failed_to_apply_mutations', + 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', 'access_code.failed_to_remove_from_device', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 7901996d..f79ef6a5 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -2263,6 +2263,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -2469,6 +2499,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -2808,6 +2854,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -3014,6 +3090,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -5461,6 +5553,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -5667,6 +5789,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -6107,6 +6245,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -6313,6 +6481,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -6643,6 +6827,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -6849,6 +7063,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7156,6 +7386,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7362,6 +7622,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7702,6 +7978,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -7908,6 +8214,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10257,6 +10579,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10463,6 +10815,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10682,6 +11050,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -10888,6 +11286,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -57926,9 +58340,9 @@ export type Routes = { [x: string]: string | boolean } | undefined - event_type: 'access_code.deleted' + event_type: 'access_code.issued' /** Code for the affected access code. */ - code: string | null + code: string } | { /** ID of the event. */ @@ -57959,7 +58373,7 @@ export type Routes = { [x: string]: string | boolean } | undefined - event_type: 'access_code.delay_in_removing_from_device' + event_type: 'access_code.delay_in_issuing' /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ @@ -58044,7 +58458,7 @@ export type Routes = { [x: string]: string | boolean } | undefined - event_type: 'access_code.failed_to_remove_from_device' + event_type: 'access_code.failed_to_issue' /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ @@ -58129,7 +58543,61 @@ export type Routes = { [x: string]: string | boolean } | undefined - event_type: 'access_code.modified_external_to_seam' + event_type: 'access_code.delay_in_applying_mutations' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] } | { /** ID of the event. */ @@ -58160,7 +58628,61 @@ export type Routes = { [x: string]: string | boolean } | undefined - event_type: 'access_code.deleted_external_to_seam' + event_type: 'access_code.failed_to_apply_mutations' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] } | { /** ID of the event. */ @@ -58191,9 +58713,359 @@ export type Routes = { [x: string]: string | boolean } | undefined - event_type: 'access_code.backup_access_code_pulled' - /** ID of the backup access code that was pulled from the pool. */ - backup_access_code_id: string + event_type: 'access_code.failed_to_expire' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.deleted' + /** Code for the affected access code. */ + code: string | null + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.delay_in_removing_from_device' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.failed_to_remove_from_device' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.modified_external_to_seam' + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.deleted_external_to_seam' + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.backup_access_code_pulled' + /** ID of the backup access code that was pulled from the pool. */ + backup_access_code_id: string } | { /** ID of the event. */ @@ -61024,6 +61896,12 @@ export type Routes = { | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' + | 'access_code.issued' + | 'access_code.delay_in_issuing' + | 'access_code.failed_to_issue' + | 'access_code.delay_in_applying_mutations' + | 'access_code.failed_to_apply_mutations' + | 'access_code.failed_to_expire' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' @@ -61138,6 +62016,12 @@ export type Routes = { | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' + | 'access_code.issued' + | 'access_code.delay_in_issuing' + | 'access_code.failed_to_issue' + | 'access_code.delay_in_applying_mutations' + | 'access_code.failed_to_apply_mutations' + | 'access_code.failed_to_expire' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' @@ -61803,6 +62687,464 @@ export type Routes = { warning_code: string }[] } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.issued' + /** Code for the affected access code. */ + code: string + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.delay_in_issuing' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.failed_to_issue' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.delay_in_applying_mutations' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.failed_to_apply_mutations' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.failed_to_expire' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } | { /** ID of the event. */ event_id: string @@ -98393,6 +99735,12 @@ export type Routes = { | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' + | 'access_code.issued' + | 'access_code.delay_in_issuing' + | 'access_code.failed_to_issue' + | 'access_code.delay_in_applying_mutations' + | 'access_code.failed_to_apply_mutations' + | 'access_code.failed_to_expire' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' @@ -98507,6 +99855,12 @@ export type Routes = { | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' + | 'access_code.issued' + | 'access_code.delay_in_issuing' + | 'access_code.failed_to_issue' + | 'access_code.delay_in_applying_mutations' + | 'access_code.failed_to_apply_mutations' + | 'access_code.failed_to_expire' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' @@ -99142,6 +100496,464 @@ export type Routes = { warning_code: string }[] } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.issued' + /** Code for the affected access code. */ + code: string + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.delay_in_issuing' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.failed_to_issue' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.delay_in_applying_mutations' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.failed_to_apply_mutations' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.failed_to_expire' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } | { /** ID of the event. */ event_id: string @@ -145979,29 +147791,584 @@ export type Routes = { [x: string]: string | boolean } | undefined - event_type: 'access_code.mutations_requested' - /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */ - requested_mutations: { - /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */ - mutation_code: - | 'updating_name' - | 'updating_code' - | 'updating_time_frame' - | 'deleting' - | 'creating' - | 'deferring_creation' - /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ - from?: - | { - [x: string]: unknown - } - | undefined - /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ - to?: - | { - [x: string]: unknown - } - | undefined + event_type: 'access_code.mutations_requested' + /** Array of mutations requested on the access code, each containing the mutation type and from/to values. */ + requested_mutations: { + /** Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`. */ + mutation_code: + | 'updating_name' + | 'updating_code' + | 'updating_time_frame' + | 'deleting' + | 'creating' + | 'deferring_creation' + /** Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ + from?: + | { + [x: string]: unknown + } + | undefined + /** New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`. */ + to?: + | { + [x: string]: unknown + } + | undefined + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.scheduled_on_device' + /** Code for the affected access code. */ + code: string + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.set_on_device' + /** Code for the affected access code. */ + code: string + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.removed_from_device' + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.delay_in_setting_on_device' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.failed_to_set_on_device' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.issued' + /** Code for the affected access code. */ + code: string + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.delay_in_issuing' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.failed_to_issue' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + } + | { + /** ID of the event. */ + event_id: string + /** ID of the workspace associated with the event. */ + workspace_id: string + /** Date and time at which the event was created. */ + created_at: string + /** Date and time at which the event occurred. */ + occurred_at: string + /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ + event_description?: string | undefined + /** ID of the affected access code. */ + access_code_id: string + /** ID of the device associated with the affected access code. */ + device_id: string + /** ID of the connected account associated with the affected access code. */ + connected_account_id: string + /** Custom metadata of the device, present when device_id is provided. */ + device_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + /** Custom metadata of the connected account, present when connected_account_id is provided. */ + connected_account_custom_metadata?: + | { + [x: string]: string | boolean + } + | undefined + event_type: 'access_code.delay_in_applying_mutations' + /** Errors associated with the connected account. */ + connected_account_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the connected account. */ + connected_account_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the device. */ + device_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the device. */ + device_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string + }[] + /** Errors associated with the access code. */ + access_code_errors: { + /** Date and time at which Seam created the error. */ + created_at: string + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: string + }[] + /** Warnings associated with the access code. */ + access_code_warnings: { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: string }[] } | { @@ -146033,104 +148400,7 @@ export type Routes = { [x: string]: string | boolean } | undefined - event_type: 'access_code.scheduled_on_device' - /** Code for the affected access code. */ - code: string - } - | { - /** ID of the event. */ - event_id: string - /** ID of the workspace associated with the event. */ - workspace_id: string - /** Date and time at which the event was created. */ - created_at: string - /** Date and time at which the event occurred. */ - occurred_at: string - /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined - /** ID of the affected access code. */ - access_code_id: string - /** ID of the device associated with the affected access code. */ - device_id: string - /** ID of the connected account associated with the affected access code. */ - connected_account_id: string - /** Custom metadata of the device, present when device_id is provided. */ - device_custom_metadata?: - | { - [x: string]: string | boolean - } - | undefined - /** Custom metadata of the connected account, present when connected_account_id is provided. */ - connected_account_custom_metadata?: - | { - [x: string]: string | boolean - } - | undefined - event_type: 'access_code.set_on_device' - /** Code for the affected access code. */ - code: string - } - | { - /** ID of the event. */ - event_id: string - /** ID of the workspace associated with the event. */ - workspace_id: string - /** Date and time at which the event was created. */ - created_at: string - /** Date and time at which the event occurred. */ - occurred_at: string - /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined - /** ID of the affected access code. */ - access_code_id: string - /** ID of the device associated with the affected access code. */ - device_id: string - /** ID of the connected account associated with the affected access code. */ - connected_account_id: string - /** Custom metadata of the device, present when device_id is provided. */ - device_custom_metadata?: - | { - [x: string]: string | boolean - } - | undefined - /** Custom metadata of the connected account, present when connected_account_id is provided. */ - connected_account_custom_metadata?: - | { - [x: string]: string | boolean - } - | undefined - event_type: 'access_code.removed_from_device' - } - | { - /** ID of the event. */ - event_id: string - /** ID of the workspace associated with the event. */ - workspace_id: string - /** Date and time at which the event was created. */ - created_at: string - /** Date and time at which the event occurred. */ - occurred_at: string - /** Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event. */ - event_description?: string | undefined - /** ID of the affected access code. */ - access_code_id: string - /** ID of the device associated with the affected access code. */ - device_id: string - /** ID of the connected account associated with the affected access code. */ - connected_account_id: string - /** Custom metadata of the device, present when device_id is provided. */ - device_custom_metadata?: - | { - [x: string]: string | boolean - } - | undefined - /** Custom metadata of the connected account, present when connected_account_id is provided. */ - connected_account_custom_metadata?: - | { - [x: string]: string | boolean - } - | undefined - event_type: 'access_code.delay_in_setting_on_device' + event_type: 'access_code.failed_to_apply_mutations' /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ @@ -146215,7 +148485,7 @@ export type Routes = { [x: string]: string | boolean } | undefined - event_type: 'access_code.failed_to_set_on_device' + event_type: 'access_code.failed_to_expire' /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ @@ -149879,6 +152149,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -150085,6 +152385,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -150290,6 +152606,36 @@ export type Routes = { /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ error_code: 'code_constraints_violated' } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_issue' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_apply_mutations' + } + | { + /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Indicates that this is an access code error. */ + is_access_code_error: true + /** Date and time at which Seam created the error. */ + created_at?: string | undefined + /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ + error_code: 'failed_to_expire' + } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string @@ -150496,6 +152842,22 @@ export type Routes = { /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'delay_in_removing_from_device' } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_issuing' + } + | { + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Date and time at which Seam created the warning. */ + created_at?: string | undefined + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'delay_in_applying_mutations' + } | { /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ message: string