Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Nov 30, 2023
1 parent dd97240 commit b0c2d22
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 5 deletions.
25 changes: 21 additions & 4 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ export default {
'salto_site',
'brivo_system',
'hid_cm_org',
'visionline_system',
'assa_abloy_cs_system_user',
],
type: 'string',
},
Expand All @@ -207,6 +209,8 @@ export default {
'salto_site',
'brivo_system',
'hid_cm_org',
'visionline_system',
'assa_abloy_cs_system_user',
],
type: 'string',
},
Expand Down Expand Up @@ -1787,6 +1791,13 @@ export default {
is_managed: { enum: [false], type: 'boolean' },
properties: {
properties: {
battery_level: {
description:
'Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.',
maximum: 1,
minimum: 0,
type: 'number',
},
image_alt_text: { type: 'string' },
image_url: { type: 'string' },
manufacturer: { type: 'string' },
Expand All @@ -1800,6 +1811,11 @@ export default {
},
name: { type: 'string' },
online: { type: 'boolean' },
online_access_codes_enabled: {
description:
'Indicates whether it is currently possible to use online access codes for the device.',
type: 'boolean',
},
},
required: ['name', 'online', 'model'],
type: 'object',
Expand Down Expand Up @@ -4262,9 +4278,9 @@ export default {
},
security: [
{ api_key: [] },
{ access_token: [] },
{ user_session: [] },
{ client_session: [] },
{ pat_with_workspace: [] },
{ console_session: [] },
],
summary: '/acs/entrances/list',
tags: [],
Expand Down Expand Up @@ -5520,6 +5536,7 @@ export default {
'wyze',
'seam_passport',
'visionline',
'assaabloy_credential_service',
'yale_access',
'hid_cm',
],
Expand Down Expand Up @@ -9717,14 +9734,14 @@ export default {
type: 'string',
},
is_sandbox: { default: false, type: 'boolean' },
name: { type: 'string' },
webview_logo_shape: {
enum: ['circle', 'square'],
type: 'string',
},
webview_primary_button_color: { type: 'string' },
workspace_name: { type: 'string' },
},
required: ['workspace_name', 'connect_partner_name'],
required: ['name', 'connect_partner_name'],
type: 'object',
},
},
Expand Down
19 changes: 18 additions & 1 deletion src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,8 @@ export interface Routes {
| 'salto_site'
| 'brivo_system'
| 'hid_cm_org'
| 'visionline_system'
| 'assa_abloy_cs_system_user'
external_type_display_name: string
/** deprecated: use external_type */
system_type:
Expand All @@ -1029,6 +1031,8 @@ export interface Routes {
| 'salto_site'
| 'brivo_system'
| 'hid_cm_org'
| 'visionline_system'
| 'assa_abloy_cs_system_user'
/** deprecated: use external_type_display_name */
system_type_display_name: string
name: string
Expand Down Expand Up @@ -1056,6 +1060,8 @@ export interface Routes {
| 'salto_site'
| 'brivo_system'
| 'hid_cm_org'
| 'visionline_system'
| 'assa_abloy_cs_system_user'
external_type_display_name: string
/** deprecated: use external_type */
system_type:
Expand All @@ -1064,6 +1070,8 @@ export interface Routes {
| 'salto_site'
| 'brivo_system'
| 'hid_cm_org'
| 'visionline_system'
| 'assa_abloy_cs_system_user'
/** deprecated: use external_type_display_name */
system_type_display_name: string
name: string
Expand Down Expand Up @@ -1498,6 +1506,7 @@ export interface Routes {
| 'wyze'
| 'seam_passport'
| 'visionline'
| 'assaabloy_credential_service'
| 'yale_access'
| 'hid_cm'
>
Expand Down Expand Up @@ -3169,6 +3178,10 @@ export interface Routes {
display_name: string
manufacturer_display_name: string
}
/** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */
battery_level?: number | undefined
/** Indicates whether it is currently possible to use online access codes for the device. */
online_access_codes_enabled?: boolean | undefined
}
}
}
Expand Down Expand Up @@ -3357,6 +3370,10 @@ export interface Routes {
display_name: string
manufacturer_display_name: string
}
/** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */
battery_level?: number | undefined
/** Indicates whether it is currently possible to use online access codes for the device. */
online_access_codes_enabled?: boolean | undefined
}
}>
}
Expand Down Expand Up @@ -8900,7 +8917,7 @@ export interface Routes {
method: 'POST'
queryParams: {}
jsonBody: {
workspace_name: string
name: string
/** The name shown inside the connect webview */
connect_partner_name: string
is_sandbox?: boolean
Expand Down
2 changes: 2 additions & 0 deletions src/lib/seam/connect/unstable/models/acs/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export const acs_system_external_type = z.enum([
'salto_site',
'brivo_system',
'hid_cm_org',
'visionline_system',
'assa_abloy_cs_system_user',
])

export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>
Expand Down
14 changes: 14 additions & 0 deletions src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ export const unmanaged_device = managed_device
display_name: z.string(),
manufacturer_display_name: z.string(),
}),
battery_level: z
.number()
.min(0)
.max(1)
.optional()
.describe(
'Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.',
),
online_access_codes_enabled: z
.boolean()
.describe(
'Indicates whether it is currently possible to use online access codes for the device.',
)
.optional(),
}),
})

Expand Down

0 comments on commit b0c2d22

Please sign in to comment.