diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index fe7542ca..9a2019b1 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -14,6 +14,8 @@ export default { is_backup_access_code_available: { type: 'boolean' }, is_external_modification_allowed: { type: 'boolean' }, is_managed: { enum: [true], type: 'boolean' }, + is_offline_access_code: { type: 'boolean' }, + is_one_time_use: { type: 'boolean' }, is_scheduled_on_device: { type: 'boolean' }, is_waiting_for_code_assignment: { type: 'boolean' }, name: { nullable: true, type: 'string' }, @@ -42,6 +44,8 @@ export default { 'status', 'is_backup_access_code_available', 'is_external_modification_allowed', + 'is_one_time_use', + 'is_offline_access_code', ], type: 'object', }, @@ -444,6 +448,7 @@ export default { online: { type: 'boolean' }, serial_number: { type: 'string' }, supports_accessory_keypad: { type: 'boolean' }, + supports_offline_access_codes: { type: 'boolean' }, }, required: ['online', 'name', 'model'], type: 'object', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 5780a327..a7109d30 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -65,6 +65,8 @@ export interface Routes { is_backup?: boolean | undefined pulled_backup_access_code_id?: (string | null) | undefined is_external_modification_allowed: boolean + is_one_time_use: boolean + is_offline_access_code: boolean } } } @@ -108,6 +110,8 @@ export interface Routes { is_backup?: boolean | undefined pulled_backup_access_code_id?: (string | null) | undefined is_external_modification_allowed: boolean + is_one_time_use: boolean + is_offline_access_code: boolean }> } } @@ -198,6 +202,8 @@ export interface Routes { is_backup?: boolean | undefined pulled_backup_access_code_id?: (string | null) | undefined is_external_modification_allowed: boolean + is_one_time_use: boolean + is_offline_access_code: boolean } } } @@ -233,6 +239,8 @@ export interface Routes { is_backup?: boolean | undefined pulled_backup_access_code_id?: (string | null) | undefined is_external_modification_allowed: boolean + is_one_time_use: boolean + is_offline_access_code: boolean }> } } @@ -266,6 +274,8 @@ export interface Routes { is_backup?: boolean | undefined pulled_backup_access_code_id?: (string | null) | undefined is_external_modification_allowed: boolean + is_one_time_use: boolean + is_offline_access_code: boolean } } } @@ -1427,6 +1437,7 @@ export interface Routes { image_alt_text?: string | undefined serial_number?: string | undefined supports_accessory_keypad?: boolean | undefined + supports_offline_access_codes?: boolean | undefined } & { august_metadata?: | { @@ -2124,6 +2135,7 @@ export interface Routes { image_alt_text?: string | undefined serial_number?: string | undefined supports_accessory_keypad?: boolean | undefined + supports_offline_access_codes?: boolean | undefined } & { august_metadata?: | { @@ -3794,6 +3806,7 @@ export interface Routes { image_alt_text?: string | undefined serial_number?: string | undefined supports_accessory_keypad?: boolean | undefined + supports_offline_access_codes?: boolean | undefined } & { august_metadata?: | { @@ -4521,6 +4534,7 @@ export interface Routes { image_alt_text?: string | undefined serial_number?: string | undefined supports_accessory_keypad?: boolean | undefined + supports_offline_access_codes?: boolean | undefined } & { august_metadata?: | { @@ -5223,6 +5237,7 @@ export interface Routes { image_alt_text?: string | undefined serial_number?: string | undefined supports_accessory_keypad?: boolean | undefined + supports_offline_access_codes?: boolean | undefined } & { august_metadata?: | { diff --git a/src/lib/seam/connect/unstable/models/managed-device.ts b/src/lib/seam/connect/unstable/models/managed-device.ts index 746088ab..c6b65d0b 100644 --- a/src/lib/seam/connect/unstable/models/managed-device.ts +++ b/src/lib/seam/connect/unstable/models/managed-device.ts @@ -31,6 +31,7 @@ export const common_device_properties = z.object({ image_alt_text: z.string().optional(), serial_number: z.string().optional(), supports_accessory_keypad: z.boolean().optional(), + supports_offline_access_codes: z.boolean().optional(), }) export const managed_device = z.object({