From ed5e682236b77ceee45c7ccba9faa624680f6308 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 20 Aug 2026 23:34:40 +0000 Subject: [PATCH] feat: Sync with Seam API via f1cda81af173ec3edb37b6cc52cc041ec1a1e741 --- .../access-codes/managed-access-code.ts | 27 +- .../connect/models/events/access-codes.ts | 29 +- src/lib/seam/connect/openapi.ts | 343 +------------ src/lib/seam/connect/route-types.ts | 470 +----------------- 4 files changed, 44 insertions(+), 825 deletions(-) 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 367f2a6c..e5540bc7 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 @@ -134,16 +134,14 @@ const failed_to_issue = common_access_code_error.extend({ 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), +const failed_to_update = common_access_code_error.extend({ + error_code: z.literal('failed_to_update').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. + Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied. `) const failed_to_expire = common_access_code_error.extend({ @@ -189,7 +187,7 @@ const access_code_error = z access_code_inactive_error, code_constraints_violated, failed_to_issue, - failed_to_apply_mutations, + failed_to_update, failed_to_expire, ]) .describe( @@ -214,7 +212,7 @@ const _access_code_error_map = z.object({ 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_update: failed_to_update.optional().nullable(), failed_to_expire: failed_to_expire.optional().nullable(), }) @@ -309,17 +307,6 @@ const delay_in_issuing = common_access_code_warning.extend({ 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 @@ -378,7 +365,6 @@ const access_code_warning = z 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, @@ -404,9 +390,6 @@ const _access_code_warning_map = z.object({ .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 5da05347..c8af4acb 100644 --- a/src/lib/seam/connect/models/events/access-codes.ts +++ b/src/lib/seam/connect/models/events/access-codes.ts @@ -345,36 +345,20 @@ export type AccessCodeFailedToIssueEvent = z.infer< typeof access_code_failed_to_issue_event > -export const access_code_delay_in_applying_mutations_event = access_code_event +export const access_code_failed_to_update_event = access_code_event .extend({ - event_type: z.literal('access_code.delay_in_applying_mutations'), + event_type: z.literal('access_code.failed_to_update'), }) .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. + Seam was unable to apply this [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes)'s requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and the accompanying \`failed_to_update\` error clears automatically once the update is applied. `) -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 type AccessCodeFailedToUpdateEvent = z.infer< + typeof access_code_failed_to_update_event > export const access_code_failed_to_expire_event = access_code_event @@ -556,8 +540,7 @@ export const access_code_events = [ 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_update_event, access_code_failed_to_expire_event, access_code_deleted_event, access_code_delay_in_removing_from_device_event, diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 66788ad8..8b1468d5 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -434,7 +434,7 @@ const openapi: OpenAPISpec = { }, { 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.", + "Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.", properties: { created_at: { description: @@ -445,7 +445,7 @@ const openapi: OpenAPISpec = { error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', - enum: ['failed_to_apply_mutations'], + enum: ['failed_to_update'], type: 'string', }, is_access_code_error: { @@ -1589,32 +1589,6 @@ const openapi: OpenAPISpec = { 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.', @@ -20173,7 +20147,7 @@ const openapi: OpenAPISpec = { }, { description: - "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.", + "Seam was unable to apply this [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes)'s requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and the accompanying `failed_to_update` error clears automatically once the update is applied.", properties: { access_code_errors: { description: 'Errors associated with the access code.', @@ -20392,262 +20366,7 @@ const openapi: OpenAPISpec = { type: 'string', }, event_type: { - 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'], + enum: ['access_code.failed_to_update'], type: 'string', }, occurred_at: { @@ -32108,7 +31827,7 @@ const openapi: OpenAPISpec = { }, { 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.", + "Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.", properties: { created_at: { description: @@ -32119,7 +31838,7 @@ const openapi: OpenAPISpec = { error_code: { description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.', - enum: ['failed_to_apply_mutations'], + enum: ['failed_to_update'], type: 'string', }, is_access_code_error: { @@ -32952,32 +32671,6 @@ const openapi: OpenAPISpec = { 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.', @@ -61146,8 +60839,7 @@ const openapi: OpenAPISpec = { '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_update', 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', @@ -61272,8 +60964,7 @@ const openapi: OpenAPISpec = { '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_update', 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', @@ -61730,8 +61421,7 @@ const openapi: OpenAPISpec = { '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_update', 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', @@ -61852,8 +61542,7 @@ const openapi: OpenAPISpec = { '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_update', 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', @@ -74162,8 +73851,7 @@ const openapi: OpenAPISpec = { '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_update', 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', @@ -74289,8 +73977,7 @@ const openapi: OpenAPISpec = { '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_update', 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', @@ -74477,8 +74164,7 @@ const openapi: OpenAPISpec = { '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_update', 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', @@ -74599,8 +74285,7 @@ const openapi: OpenAPISpec = { '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_update', 'access_code.failed_to_expire', 'access_code.deleted', 'access_code.delay_in_removing_from_device', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 649fa536..d08efdab 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -2281,7 +2281,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -2507,14 +2507,6 @@ export type Routes = { /** 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 @@ -2872,7 +2864,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -3098,14 +3090,6 @@ export type Routes = { /** 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 @@ -5571,7 +5555,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -5797,14 +5781,6 @@ export type Routes = { /** 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 @@ -6263,7 +6239,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -6489,14 +6465,6 @@ export type Routes = { /** 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 @@ -6845,7 +6813,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -7071,14 +7039,6 @@ export type Routes = { /** 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 @@ -7404,7 +7364,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -7630,14 +7590,6 @@ export type Routes = { /** 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 @@ -7996,7 +7948,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -8222,14 +8174,6 @@ export type Routes = { /** 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 @@ -10597,7 +10541,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -10823,14 +10767,6 @@ export type Routes = { /** 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 @@ -11068,7 +11004,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -11294,14 +11230,6 @@ export type Routes = { /** 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 @@ -58555,92 +58483,7 @@ export type Routes = { [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' + event_type: 'access_code.failed_to_update' /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ @@ -61913,8 +61756,7 @@ export type Routes = { | '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_update' | 'access_code.failed_to_expire' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' @@ -62033,8 +61875,7 @@ export type Routes = { | '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_update' | 'access_code.failed_to_expire' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' @@ -62933,92 +62774,7 @@ export type Routes = { [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' + event_type: 'access_code.failed_to_update' /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ @@ -99748,8 +99504,7 @@ export type Routes = { | '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_update' | 'access_code.failed_to_expire' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' @@ -99868,8 +99623,7 @@ export type Routes = { | '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_update' | 'access_code.failed_to_expire' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' @@ -100738,92 +100492,7 @@ export type Routes = { [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' + event_type: 'access_code.failed_to_update' /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ @@ -148328,92 +147997,7 @@ export type Routes = { [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' + event_type: 'access_code.failed_to_update' /** Errors associated with the connected account. */ connected_account_errors: { /** Date and time at which Seam created the error. */ @@ -152182,7 +151766,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -152408,14 +151992,6 @@ export type Routes = { /** 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 @@ -152639,7 +152215,7 @@ export type Routes = { /** 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' + error_code: 'failed_to_update' } | { /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -152865,14 +152441,6 @@ export type Routes = { /** 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