Skip to content

Commit

Permalink
feat: add offline access code properties (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Oct 31, 2023
1 parent 6e3ab20 commit f06f153
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down Expand Up @@ -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',
},
Expand Down Expand Up @@ -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',
Expand Down
15 changes: 15 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down Expand Up @@ -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
}>
}
}
Expand Down Expand Up @@ -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
}
}
}
Expand Down Expand Up @@ -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
}>
}
}
Expand Down Expand Up @@ -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
}
}
}
Expand Down Expand Up @@ -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?:
| {
Expand Down Expand Up @@ -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?:
| {
Expand Down Expand Up @@ -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?:
| {
Expand Down Expand Up @@ -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?:
| {
Expand Down Expand Up @@ -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?:
| {
Expand Down
1 change: 1 addition & 0 deletions src/lib/seam/connect/unstable/models/managed-device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f06f153

Please sign in to comment.