Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update via seamapi/seam-connect@8f6a0e13a0f128f07682274718bbccab5972c1b1 #328

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export default {
},
external_type_display_name: { type: 'string' },
full_name: { type: 'string' },
hid_acs_system_id: { format: 'uuid', type: 'string' },
is_suspended: { type: 'boolean' },
phone_number: { nullable: true, type: 'string' },
workspace_id: { format: 'uuid', type: 'string' },
Expand Down Expand Up @@ -698,12 +699,12 @@ export default {
},
supports_accessory_keypad: {
description:
'Deprecated: Use model.offline_access_codes_enabled.',
'Deprecated. Use model.accessory_keypad_supported.',
type: 'boolean',
},
supports_offline_access_codes: {
description:
'Deprecated: Use model.accessory_keypad_supported.',
'Deprecated. Use offline_access_codes_enabled.',
type: 'boolean',
},
},
Expand Down Expand Up @@ -4747,6 +4748,7 @@ export default {
},
email_address: { format: 'email', type: 'string' },
full_name: { type: 'string' },
hid_acs_system_id: { format: 'uuid', type: 'string' },
phone_number: { nullable: true, type: 'string' },
},
required: ['acs_user_id'],
Expand Down Expand Up @@ -4795,6 +4797,7 @@ export default {
},
email_address: { format: 'email', type: 'string' },
full_name: { type: 'string' },
hid_acs_system_id: { format: 'uuid', type: 'string' },
phone_number: { nullable: true, type: 'string' },
},
required: ['acs_user_id'],
Expand Down Expand Up @@ -7571,7 +7574,10 @@ export default {
content: {
'application/json': {
schema: {
properties: { device_id: { format: 'uuid', type: 'string' } },
properties: {
device_id: { format: 'uuid', type: 'string' },
is_programmed: { type: 'boolean' },
},
required: ['device_id'],
type: 'object',
},
Expand Down
43 changes: 25 additions & 18 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ export interface Routes {
acs_users: Array<{
acs_user_id: string
acs_system_id: string
hid_acs_system_id?: string | undefined
workspace_id: string
created_at: string
display_name: string
Expand Down Expand Up @@ -1103,6 +1104,7 @@ export interface Routes {
acs_user: {
acs_user_id: string
acs_system_id: string
hid_acs_system_id?: string | undefined
workspace_id: string
created_at: string
display_name: string
Expand Down Expand Up @@ -1141,6 +1143,7 @@ export interface Routes {
acs_user: {
acs_user_id: string
acs_system_id: string
hid_acs_system_id?: string | undefined
workspace_id: string
created_at: string
display_name: string
Expand Down Expand Up @@ -1168,6 +1171,7 @@ export interface Routes {
acs_users: Array<{
acs_user_id: string
acs_system_id: string
hid_acs_system_id?: string | undefined
workspace_id: string
created_at: string
display_name: string
Expand Down Expand Up @@ -1227,6 +1231,7 @@ export interface Routes {
email?: string | undefined
phone_number?: string | undefined
email_address?: string | undefined
hid_acs_system_id?: string | undefined
}
commonParams: {}
formData: {}
Expand Down Expand Up @@ -1800,9 +1805,9 @@ export interface Routes {
online_access_codes_enabled?: boolean | undefined
/** Indicates whether it is currently possible to use offline access codes for the device. */
offline_access_codes_enabled?: boolean | undefined
/** Deprecated: Use model.offline_access_codes_enabled. */
/** Deprecated. Use model.accessory_keypad_supported. */
supports_accessory_keypad?: boolean | undefined
/** Deprecated: Use model.accessory_keypad_supported. */
/** Deprecated. Use offline_access_codes_enabled. */
supports_offline_access_codes?: boolean | undefined
} & {
august_metadata?:
Expand Down Expand Up @@ -2534,9 +2539,9 @@ export interface Routes {
online_access_codes_enabled?: boolean | undefined
/** Indicates whether it is currently possible to use offline access codes for the device. */
offline_access_codes_enabled?: boolean | undefined
/** Deprecated: Use model.offline_access_codes_enabled. */
/** Deprecated. Use model.accessory_keypad_supported. */
supports_accessory_keypad?: boolean | undefined
/** Deprecated: Use model.accessory_keypad_supported. */
/** Deprecated. Use offline_access_codes_enabled. */
supports_offline_access_codes?: boolean | undefined
} & {
august_metadata?:
Expand Down Expand Up @@ -3701,9 +3706,9 @@ export interface Routes {
online_access_codes_enabled?: boolean | undefined
/** Indicates whether it is currently possible to use offline access codes for the device. */
offline_access_codes_enabled?: boolean | undefined
/** Deprecated: Use model.offline_access_codes_enabled. */
/** Deprecated. Use model.accessory_keypad_supported. */
supports_accessory_keypad?: boolean | undefined
/** Deprecated: Use model.accessory_keypad_supported. */
/** Deprecated. Use offline_access_codes_enabled. */
supports_offline_access_codes?: boolean | undefined
} & {
august_metadata?:
Expand Down Expand Up @@ -4314,9 +4319,9 @@ export interface Routes {
online_access_codes_enabled?: boolean | undefined
/** Indicates whether it is currently possible to use offline access codes for the device. */
offline_access_codes_enabled?: boolean | undefined
/** Deprecated: Use model.offline_access_codes_enabled. */
/** Deprecated. Use model.accessory_keypad_supported. */
supports_accessory_keypad?: boolean | undefined
/** Deprecated: Use model.accessory_keypad_supported. */
/** Deprecated. Use offline_access_codes_enabled. */
supports_offline_access_codes?: boolean | undefined
} & {
august_metadata?:
Expand Down Expand Up @@ -5048,9 +5053,9 @@ export interface Routes {
online_access_codes_enabled?: boolean | undefined
/** Indicates whether it is currently possible to use offline access codes for the device. */
offline_access_codes_enabled?: boolean | undefined
/** Deprecated: Use model.offline_access_codes_enabled. */
/** Deprecated. Use model.accessory_keypad_supported. */
supports_accessory_keypad?: boolean | undefined
/** Deprecated: Use model.accessory_keypad_supported. */
/** Deprecated. Use offline_access_codes_enabled. */
supports_offline_access_codes?: boolean | undefined
} & {
august_metadata?:
Expand Down Expand Up @@ -5661,9 +5666,9 @@ export interface Routes {
online_access_codes_enabled?: boolean | undefined
/** Indicates whether it is currently possible to use offline access codes for the device. */
offline_access_codes_enabled?: boolean | undefined
/** Deprecated: Use model.offline_access_codes_enabled. */
/** Deprecated. Use model.accessory_keypad_supported. */
supports_accessory_keypad?: boolean | undefined
/** Deprecated: Use model.accessory_keypad_supported. */
/** Deprecated. Use offline_access_codes_enabled. */
supports_offline_access_codes?: boolean | undefined
} & {
august_metadata?:
Expand Down Expand Up @@ -6383,6 +6388,7 @@ export interface Routes {
jsonBody: {}
commonParams: {
device_id: string
is_programmed?: boolean | undefined
}
formData: {}
jsonResponse: {
Expand Down Expand Up @@ -6709,9 +6715,9 @@ export interface Routes {
online_access_codes_enabled?: boolean | undefined
/** Indicates whether it is currently possible to use offline access codes for the device. */
offline_access_codes_enabled?: boolean | undefined
/** Deprecated: Use model.offline_access_codes_enabled. */
/** Deprecated. Use model.accessory_keypad_supported. */
supports_accessory_keypad?: boolean | undefined
/** Deprecated: Use model.accessory_keypad_supported. */
/** Deprecated. Use offline_access_codes_enabled. */
supports_offline_access_codes?: boolean | undefined
} & {
august_metadata?:
Expand Down Expand Up @@ -7473,9 +7479,9 @@ export interface Routes {
online_access_codes_enabled?: boolean | undefined
/** Indicates whether it is currently possible to use offline access codes for the device. */
offline_access_codes_enabled?: boolean | undefined
/** Deprecated: Use model.offline_access_codes_enabled. */
/** Deprecated. Use model.accessory_keypad_supported. */
supports_accessory_keypad?: boolean | undefined
/** Deprecated: Use model.accessory_keypad_supported. */
/** Deprecated. Use offline_access_codes_enabled. */
supports_offline_access_codes?: boolean | undefined
} & {
august_metadata?:
Expand Down Expand Up @@ -8237,9 +8243,9 @@ export interface Routes {
online_access_codes_enabled?: boolean | undefined
/** Indicates whether it is currently possible to use offline access codes for the device. */
offline_access_codes_enabled?: boolean | undefined
/** Deprecated: Use model.offline_access_codes_enabled. */
/** Deprecated. Use model.accessory_keypad_supported. */
supports_accessory_keypad?: boolean | undefined
/** Deprecated: Use model.accessory_keypad_supported. */
/** Deprecated. Use offline_access_codes_enabled. */
supports_offline_access_codes?: boolean | undefined
} & {
august_metadata?:
Expand Down Expand Up @@ -8786,6 +8792,7 @@ export interface Routes {
acs_users: Array<{
acs_user_id: string
acs_system_id: string
hid_acs_system_id?: string | undefined
workspace_id: string
created_at: string
display_name: string
Expand Down
1 change: 1 addition & 0 deletions src/lib/seam/connect/unstable/models/acs/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const acs_user = z
.object({
acs_user_id: z.string().uuid(),
acs_system_id: z.string().uuid(),
hid_acs_system_id: z.string().uuid().optional(),
workspace_id: z.string().uuid(),
created_at: z.string().datetime(),
display_name: z.string(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ export const common_device_properties = z.object({
// Deprecated legacy capability support props
supports_accessory_keypad: z
.boolean()
.describe('Deprecated: Use model.offline_access_codes_enabled.')
.describe('Deprecated. Use model.accessory_keypad_supported.')
.optional(),
supports_offline_access_codes: z
.boolean()
.describe('Deprecated: Use model.accessory_keypad_supported.')
.describe('Deprecated. Use offline_access_codes_enabled.')
.optional(),
})

Expand Down