Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Nov 29, 2023
1 parent dd97240 commit 2332682
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
16 changes: 14 additions & 2 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 Down Expand Up @@ -5520,6 +5531,7 @@ export default {
'wyze',
'seam_passport',
'visionline',
'assaabloy_credential_service',
'yale_access',
'hid_cm',
],
Expand Down Expand Up @@ -9717,14 +9729,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
15 changes: 14 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,8 @@ 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
}
}
}
Expand Down Expand Up @@ -3357,6 +3368,8 @@ 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
}
}>
}
Expand Down Expand Up @@ -8900,7 +8913,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
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ 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.',
),
}),
})

Expand Down

0 comments on commit 2332682

Please sign in to comment.