From 4e4f1c60ef3729201fff23edc1c0d06ef7ce9da2 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Wed, 4 Oct 2023 09:57:40 -0700 Subject: [PATCH] Update via seamapi/seam-connect@567bd6007e98df79afccd2be0d9fa2c28d20de8e (#211) --- src/lib/seam/connect/openapi.ts | 19 ++++++++- src/lib/seam/connect/route-types.ts | 40 ++++++++++++++++--- .../unstable/models/acs/access_group.ts | 7 +++- .../unstable/models/device-metadata.ts | 1 + 4 files changed, 58 insertions(+), 9 deletions(-) diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 4f065e49..9538de97 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -49,7 +49,12 @@ export default { properties: { access_group_type: { description: 'deprecated: use external_type', - enum: ['pti_unit'], + enum: [ + 'pti_unit', + 'pti_access_level', + 'salto_access_group', + 'brivo_group', + ], type: 'string', }, access_group_type_display_name: { @@ -59,7 +64,15 @@ export default { acs_access_group_id: { format: 'uuid', type: 'string' }, acs_system_id: { format: 'uuid', type: 'string' }, created_at: { format: 'date-time', type: 'string' }, - external_type: { enum: ['pti_unit'], type: 'string' }, + external_type: { + enum: [ + 'pti_unit', + 'pti_access_level', + 'salto_access_group', + 'brivo_group', + ], + type: 'string', + }, external_type_display_name: { type: 'string' }, name: { type: 'string' }, workspace_id: { format: 'uuid', type: 'string' }, @@ -763,11 +776,13 @@ export default { device_info_model: { type: 'string' }, device_name: { type: 'string' }, product_model: { type: 'string' }, + product_name: { type: 'string' }, product_type: { type: 'string' }, }, required: [ 'device_id', 'device_name', + 'product_name', 'product_type', 'product_model', 'device_info_model', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index faa9e79d..d4086227 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -501,10 +501,18 @@ export interface Routes { workspace_id: string name: string /** deprecated: use external_type */ - access_group_type: 'pti_unit' + access_group_type: + | 'pti_unit' + | 'pti_access_level' + | 'salto_access_group' + | 'brivo_group' /** deprecated: use external_type_display_name */ access_group_type_display_name: string - external_type: 'pti_unit' + external_type: + | 'pti_unit' + | 'pti_access_level' + | 'salto_access_group' + | 'brivo_group' external_type_display_name: string created_at: string } @@ -537,10 +545,18 @@ export interface Routes { workspace_id: string name: string /** deprecated: use external_type */ - access_group_type: 'pti_unit' + access_group_type: + | 'pti_unit' + | 'pti_access_level' + | 'salto_access_group' + | 'brivo_group' /** deprecated: use external_type_display_name */ access_group_type_display_name: string - external_type: 'pti_unit' + external_type: + | 'pti_unit' + | 'pti_access_level' + | 'salto_access_group' + | 'brivo_group' external_type_display_name: string created_at: string } @@ -563,10 +579,18 @@ export interface Routes { workspace_id: string name: string /** deprecated: use external_type */ - access_group_type: 'pti_unit' + access_group_type: + | 'pti_unit' + | 'pti_access_level' + | 'salto_access_group' + | 'brivo_group' /** deprecated: use external_type_display_name */ access_group_type_display_name: string - external_type: 'pti_unit' + external_type: + | 'pti_unit' + | 'pti_access_level' + | 'salto_access_group' + | 'brivo_group' external_type_display_name: string created_at: string }> @@ -1572,6 +1596,7 @@ export interface Routes { | { device_id: string device_name: string + product_name: string product_type: string product_model: string device_info_model: string @@ -2266,6 +2291,7 @@ export interface Routes { | { device_id: string device_name: string + product_name: string product_type: string product_model: string device_info_model: string @@ -3932,6 +3958,7 @@ export interface Routes { | { device_id: string device_name: string + product_name: string product_type: string product_model: string device_info_model: string @@ -4656,6 +4683,7 @@ export interface Routes { | { device_id: string device_name: string + product_name: string product_type: string product_model: string device_info_model: string diff --git a/src/lib/seam/connect/unstable/models/acs/access_group.ts b/src/lib/seam/connect/unstable/models/acs/access_group.ts index 54dd4c98..e36b7e39 100644 --- a/src/lib/seam/connect/unstable/models/acs/access_group.ts +++ b/src/lib/seam/connect/unstable/models/acs/access_group.ts @@ -1,7 +1,12 @@ import { z } from 'zod' // If changed, update seam.acs_access_group.access_group_type check constraint -export const acs_access_group_external_type = z.enum(['pti_unit']) +export const acs_access_group_external_type = z.enum([ + 'pti_unit', + 'pti_access_level', + 'salto_access_group', + 'brivo_group', +]) export type AcsAccessGroupExternalType = z.infer< typeof acs_access_group_external_type diff --git a/src/lib/seam/connect/unstable/models/device-metadata.ts b/src/lib/seam/connect/unstable/models/device-metadata.ts index 390b4344..77a01049 100644 --- a/src/lib/seam/connect/unstable/models/device-metadata.ts +++ b/src/lib/seam/connect/unstable/models/device-metadata.ts @@ -174,6 +174,7 @@ export const device_metadata = z wyze_metadata: z.object({ device_id: z.string(), device_name: z.string(), + product_name: z.string(), product_type: z.string(), product_model: z.string(), device_info_model: z.string(),