@seamapi/types 1.53.0 → 1.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/devicedb.cjs +5 -5
- package/dist/devicedb.cjs.map +1 -1
- package/dist/devicedb.d.cts +80 -80
- package/lib/seam/devicedb/public-models/device-model-v1.d.ts +30 -30
- package/lib/seam/devicedb/public-models/device-model-v1.js +5 -5
- package/lib/seam/devicedb/public-models/device-model-v1.js.map +1 -1
- package/lib/seam/devicedb/route-specs.d.ts +40 -40
- package/lib/seam/devicedb/route-types.d.ts +10 -10
- package/package.json +1 -1
- package/src/lib/seam/devicedb/public-models/device-model-v1.ts +5 -5
- package/src/lib/seam/devicedb/route-types.ts +10 -10
package/dist/devicedb.cjs
CHANGED
|
@@ -123,15 +123,15 @@ var intercom = zod.z.object({
|
|
|
123
123
|
main_category: zod.z.literal(device_category.enum.intercom),
|
|
124
124
|
physical_properties: zod.z.object({
|
|
125
125
|
has_camera: zod.z.boolean(),
|
|
126
|
-
has_rfid_reader: zod.z.boolean(),
|
|
127
|
-
has_nfc_reader: zod.z.boolean(),
|
|
128
|
-
has_wiegand_interface: zod.z.boolean()
|
|
126
|
+
has_rfid_reader: zod.z.boolean().default(false),
|
|
127
|
+
has_nfc_reader: zod.z.boolean().default(false),
|
|
128
|
+
has_wiegand_interface: zod.z.boolean().default(false)
|
|
129
129
|
}),
|
|
130
130
|
software_features: zod.z.object({
|
|
131
131
|
can_remotely_unlock: zod.z.boolean(),
|
|
132
132
|
can_program_access_codes: zod.z.boolean(),
|
|
133
|
-
can_unlock_with_face_recognition: zod.z.boolean(),
|
|
134
|
-
supports_onvif: zod.z.boolean()
|
|
133
|
+
can_unlock_with_face_recognition: zod.z.boolean().default(false),
|
|
134
|
+
supports_onvif: zod.z.boolean().default(false)
|
|
135
135
|
})
|
|
136
136
|
});
|
|
137
137
|
var accessory = zod.z.object({
|
package/dist/devicedb.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/seam/devicedb/public-models/index.ts","../src/lib/seam/devicedb/public-models/device-model-v0.ts","../src/lib/seam/devicedb/public-models/device-model-v1.ts","../src/lib/seam/devicedb/public-models/image-reference.ts","../src/lib/seam/devicedb/public-models/manufacturer.ts","../src/lib/seam/devicedb/route-specs.ts"],"names":["z"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,SAAS,SAAS;AAEX,IAAM,kBAAkB,EAAE,OAAO;AAAA,EACtC,eAAe,EAAE,OAAO;AAAA,EACxB,YAAY,EAAE,OAAO;AAAA,EACrB,uBAAuB,EAAE,OAAO;AAAA,EAChC,iBAAiB,EAAE,KAAK,CAAC,QAAQ,SAAS,UAAU,SAAS,CAAC;AAAA,EAC9D,eAAe,EAAE,KAAK,CAAC,QAAQ,QAAQ,aAAa,CAAC;AAAA,EACrD,OAAO,EAAE,OAAO;AAAA,EAChB,UAAU,EAAE,OAAO;AAAA,EACnB,4BAA4B,EAAE,OAAO;AACvC,CAAC;;;ACXD,SAAS,KAAAA,UAAS;;;ACAlB,SAAS,KAAAA,UAAS;AAEX,IAAM,kBAAkBA,GAAE,OAAO;AAAA,EACtC,KAAKA,GAAE,OAAO,EAAE,IAAI;AAAA,EACpB,OAAOA,GAAE,OAAO;AAAA,EAChB,QAAQA,GAAE,OAAO;AACnB,CAAC;;;ACND,SAAS,KAAAA,UAAS;AAIX,IAAM,yCAAyCA,GAAE,KAAK;AAAA,EAC3D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAMM,IAAM,eAAeA,GAAE,OAAO;AAAA,EACnC,iBAAiBA,GAAE,OAAO,EAAE,KAAK;AAAA,EACjC,cAAcA,GAAE,OAAO;AAAA,EACvB,MAAM,gBAAgB,SAAS;AAAA,EAC/B,aAAa;AAAA,EACb,8BAA8BA,GAAE,QAAQ;A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K,EAAE,SAAS;AAAA,MAC5C,kBAAkBA,GAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS;AAAA,MACrD,oBAA4B,aAAa,MAAM,YAAY,SAAS;AAAA,MACpE,aAAaA,GAAE,OAAO,EAAE,SAAS;AAAA,IACnC,CAAC;AAAA,IACD,cAAcA,GAAE,OAAO;AAAA,MACrB,eAAuB,gBAAgB,MAAM;AAAA,IAC/C,CAAC;AAAA,EACH;AAAA,EACA,6BAA6B;AAAA,IAC3B,MAAM;AAAA,IACN,SAAS,CAAC,OAAO,SAAS;AAAA,IAC1B,aAAaA,GAAE,OAAO;AAAA,MACpB,iBAAiBA,GAAE,OAAO,EAAE,KAAK;AAAA,IACnC,CAAC;AAAA,IACD,cAAcA,GAAE,OAAO;AAAA,MACrB;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,8BAA8B;AAAA,IAC5B,MAAM;AAAA,IACN,SAAS,CAAC,OAAO,SAAS;AAAA,IAC1B,aAAaA,GAAE,OAAO;AAAA,MACpB,oBAA4B,aAAa,MAAM,YAAY,SAAS;AAAA,MACpE,YAAYA,GAAE,OAAO,EAAE,SAAS;AAAA,IAClC,CAAC;AAAA,IACD,cAAcA,GAAE,OAAO;AAAA,MACrB,eAAuB,aAAa,MAAM;AAAA,IAC5C,CAAC;AAAA,EACH;AACF","sourcesContent":["export * from './device-model-v0.js'\nexport * from './device-model-v1.js'\nexport * from './image-reference.js'\nexport * from './manufacturer.js'\n","import { z } from 'zod'\n\nexport const device_model_v0 = z.object({\n main_category: z.string(),\n model_name: z.string(),\n manufacturer_model_id: z.string(),\n connection_type: z.enum(['wifi', 'zwave', 'zigbee', 'unknown']),\n support_level: z.enum(['live', 'beta', 'unsupported']),\n brand: z.string(),\n icon_url: z.string(),\n seam_device_model_page_url: z.string(),\n})\n\nexport type DeviceModelV0 = z.infer<typeof device_model_v0>\n","import { z } from 'zod'\n\nimport { image_reference } from './image-reference.js'\nimport { manufacturer } from './manufacturer.js'\n\nexport const device_category = z.enum([\n 'smartlock',\n 'sensor',\n 'thermostat',\n 'relay',\n 'intercom',\n 'accessory',\n])\n\nexport type DeviceCategory = z.infer<typeof device_category>\n\nexport const device_connection_type = z.enum([\n 'wifi',\n 'zwave',\n 'zigbee',\n 'unknown',\n])\n\nexport type DeviceConnectionType = z.infer<typeof device_connection_type>\n\nconst smartlock = z.object({\n main_category: z.literal(device_category.enum.smartlock),\n physical_properties: z.object({\n lock_type: z.enum([\n 'deadbolt',\n 'lever',\n 'mortise',\n 'lockbox',\n 'cylinder',\n 'padlock',\n 'locker',\n 'unknown',\n ]),\n has_physical_key: z.boolean(),\n has_camera: z.boolean(),\n }),\n software_features: z.object({\n can_remotely_unlock: z.boolean(),\n can_program_access_codes: z.boolean(),\n can_program_access_schedules: z.boolean(),\n can_program_access_codes_offline: z.boolean(),\n }),\n})\n\nconst sensor = z.object({\n main_category: z.literal(device_category.enum.sensor),\n physical_properties: z.object({\n has_noise_sensor: z.boolean(),\n has_humidity_sensor: z.boolean(),\n has_temperature_sensor: z.boolean(),\n has_occupancy_detection: z.boolean(),\n }),\n})\n\nexport const thermostat = z.object({\n main_category: z.literal(device_category.enum.thermostat),\n physical_properties: z.object({\n available_modes: z.enum(['heat', 'cool', 'fan', 'eco']).array(),\n is_heat_pump_compatible: z.boolean(),\n has_occupancy_detection: z.boolean(),\n supports_demand_response: z.boolean(),\n has_humidity_sensor: z.boolean(),\n has_temperature_sensor: z.boolean(),\n supports_emergency_heating_mode: z.boolean(),\n }),\n software_features: z.object({\n can_program_climate_schedules: z.boolean(),\n }),\n})\n\nexport type ThermostatPropertiesV1 = z.infer<typeof thermostat>\n\nconst relay = z.object({\n main_category: z.literal(device_category.enum.relay),\n})\n\nconst intercom = z.object({\n main_category: z.literal(device_category.enum.intercom),\n physical_properties: z.object({\n has_camera: z.boolean(),\n has_rfid_reader: z.boolean(),\n has_nfc_reader: z.boolean(),\n has_wiegand_interface: z.boolean(),\n }),\n software_features: z.object({\n can_remotely_unlock: z.boolean(),\n can_program_access_codes: z.boolean(),\n can_unlock_with_face_recognition: z.boolean(),\n supports_onvif: z.boolean(),\n }),\n})\n\nconst accessory = z.object({\n main_category: z.literal(device_category.enum.accessory),\n})\n\nexport const device_model_category_specific_properties = z.discriminatedUnion(\n 'main_category',\n [smartlock, sensor, thermostat, relay, intercom, accessory],\n)\n\nexport const base_device_model_v1 = z.object({\n device_model_id: z.string().uuid(),\n manufacturer: manufacturer.omit({\n device_model_count: true,\n }),\n is_device_supported: z.boolean(),\n display_name: z.string(),\n description: z.string(),\n product_url: z.string().optional(),\n main_connection_type: device_connection_type,\n aesthetic_variants: z\n .object({\n slug: z.string(),\n display_name: z.string(),\n primary_color_hex: z.string().optional(),\n manufacturer_sku: z.string().optional(),\n front_image: image_reference.optional(),\n back_image: image_reference.optional(),\n images: image_reference.array(),\n })\n .array(),\n power_sources: z\n .enum([\n 'battery',\n 'hardwired',\n 'mechanical_harvesting',\n 'wireless',\n 'ethernet',\n ])\n .array(),\n})\n\nexport type BaseDeviceModelV1 = z.infer<typeof base_device_model_v1>\n\nexport const device_model_v1 = base_device_model_v1.and(\n device_model_category_specific_properties,\n)\n\nexport type DeviceModelV1 = z.infer<typeof device_model_v1>\n","import { z } from 'zod'\n\nexport const image_reference = z.object({\n url: z.string().url(),\n width: z.number(),\n height: z.number(),\n})\n\nexport type ImageReference = z.infer<typeof image_reference>\n","import { z } from 'zod'\n\nimport { image_reference } from './image-reference.js'\n\nexport const manufacturer_integration_support_level = z.enum([\n 'stable',\n 'beta',\n 'planned',\n 'unsupported',\n 'inquire',\n])\n\nexport type ManufacturerIntegrationSupportLevel = z.infer<\n typeof manufacturer_integration_support_level\n>\n\nexport const manufacturer = z.object({\n manufacturer_id: z.string().uuid(),\n display_name: z.string(),\n logo: image_reference.optional(),\n integration: manufacturer_integration_support_level,\n is_connect_webview_supported: z.boolean(),\n requires_seam_support_to_add_account: z.boolean(),\n device_model_count: z.number(),\n})\n\nexport type Manufacturer = z.infer<typeof manufacturer>\n","import { z } from 'zod'\n\nimport * as schemas from './public-models/index.js'\n\nexport const routes = {\n '/api/v1/device_models/get': {\n auth: 'publishable_key',\n methods: ['GET', 'OPTIONS'],\n queryParams: z.object({\n device_model_id: z.string().uuid(),\n }),\n jsonResponse: z.object({\n device_model: schemas.device_model_v1,\n }),\n },\n '/api/v1/device_models/list': {\n auth: 'publishable_key',\n methods: ['GET', 'OPTIONS'],\n queryParams: z.object({\n main_category: schemas.device_category.optional(),\n manufacturer_id: z.string().uuid().optional(),\n manufacturer_ids: z.string().uuid().array().optional(),\n integration_status: schemas.manufacturer.shape.integration.optional(),\n text_search: z.string().optional(),\n }),\n jsonResponse: z.object({\n device_models: schemas.device_model_v1.array(),\n }),\n },\n '/api/v1/manufacturers/get': {\n auth: 'publishable_key',\n methods: ['GET', 'OPTIONS'],\n queryParams: z.object({\n manufacturer_id: z.string().uuid(),\n }),\n jsonResponse: z.object({\n manufacturer: schemas.manufacturer,\n }),\n },\n '/api/v1/manufacturers/list': {\n auth: 'publishable_key',\n methods: ['GET', 'OPTIONS'],\n queryParams: z.object({\n integration_status: schemas.manufacturer.shape.integration.optional(),\n liqe_query: z.string().optional(),\n }),\n jsonResponse: z.object({\n manufacturers: schemas.manufacturer.array(),\n }),\n },\n} as const\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/lib/seam/devicedb/public-models/index.ts","../src/lib/seam/devicedb/public-models/device-model-v0.ts","../src/lib/seam/devicedb/public-models/device-model-v1.ts","../src/lib/seam/devicedb/public-models/image-reference.ts","../src/lib/seam/devicedb/public-models/manufacturer.ts","../src/lib/seam/devicedb/route-specs.ts"],"names":["z"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,SAAS,SAAS;AAEX,IAAM,kBAAkB,EAAE,OAAO;AAAA,EACtC,eAAe,EAAE,OAAO;AAAA,EACxB,YAAY,EAAE,OAAO;AA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S,CAAC,OAAO,SAAS;AAAA,IAC1B,aAAaA,GAAE,OAAO;AAAA,MACpB,iBAAiBA,GAAE,OAAO,EAAE,KAAK;AAAA,IACnC,CAAC;AAAA,IACD,cAAcA,GAAE,OAAO;AAAA,MACrB;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,8BAA8B;AAAA,IAC5B,MAAM;AAAA,IACN,SAAS,CAAC,OAAO,SAAS;AAAA,IAC1B,aAAaA,GAAE,OAAO;AAAA,MACpB,oBAA4B,aAAa,MAAM,YAAY,SAAS;AAAA,MACpE,YAAYA,GAAE,OAAO,EAAE,SAAS;AAAA,IAClC,CAAC;AAAA,IACD,cAAcA,GAAE,OAAO;AAAA,MACrB,eAAuB,aAAa,MAAM;AAAA,IAC5C,CAAC;AAAA,EACH;AACF","sourcesContent":["export * from './device-model-v0.js'\nexport * from './device-model-v1.js'\nexport * from './image-reference.js'\nexport * from './manufacturer.js'\n","import { z } from 'zod'\n\nexport const device_model_v0 = z.object({\n main_category: z.string(),\n model_name: z.string(),\n manufacturer_model_id: z.string(),\n connection_type: z.enum(['wifi', 'zwave', 'zigbee', 'unknown']),\n support_level: z.enum(['live', 'beta', 'unsupported']),\n brand: z.string(),\n icon_url: z.string(),\n seam_device_model_page_url: z.string(),\n})\n\nexport type DeviceModelV0 = z.infer<typeof device_model_v0>\n","import { z } from 'zod'\n\nimport { image_reference } from './image-reference.js'\nimport { manufacturer } from './manufacturer.js'\n\nexport const device_category = z.enum([\n 'smartlock',\n 'sensor',\n 'thermostat',\n 'relay',\n 'intercom',\n 'accessory',\n])\n\nexport type DeviceCategory = z.infer<typeof device_category>\n\nexport const device_connection_type = z.enum([\n 'wifi',\n 'zwave',\n 'zigbee',\n 'unknown',\n])\n\nexport type DeviceConnectionType = z.infer<typeof device_connection_type>\n\nconst smartlock = z.object({\n main_category: z.literal(device_category.enum.smartlock),\n physical_properties: z.object({\n lock_type: z.enum([\n 'deadbolt',\n 'lever',\n 'mortise',\n 'lockbox',\n 'cylinder',\n 'padlock',\n 'locker',\n 'unknown',\n ]),\n has_physical_key: z.boolean(),\n has_camera: z.boolean(),\n }),\n software_features: z.object({\n can_remotely_unlock: z.boolean(),\n can_program_access_codes: z.boolean(),\n can_program_access_schedules: z.boolean(),\n can_program_access_codes_offline: z.boolean(),\n }),\n})\n\nconst sensor = z.object({\n main_category: z.literal(device_category.enum.sensor),\n physical_properties: z.object({\n has_noise_sensor: z.boolean(),\n has_humidity_sensor: z.boolean(),\n has_temperature_sensor: z.boolean(),\n has_occupancy_detection: z.boolean(),\n }),\n})\n\nexport const thermostat = z.object({\n main_category: z.literal(device_category.enum.thermostat),\n physical_properties: z.object({\n available_modes: z.enum(['heat', 'cool', 'fan', 'eco']).array(),\n is_heat_pump_compatible: z.boolean(),\n has_occupancy_detection: z.boolean(),\n supports_demand_response: z.boolean(),\n has_humidity_sensor: z.boolean(),\n has_temperature_sensor: z.boolean(),\n supports_emergency_heating_mode: z.boolean(),\n }),\n software_features: z.object({\n can_program_climate_schedules: z.boolean(),\n }),\n})\n\nexport type ThermostatPropertiesV1 = z.infer<typeof thermostat>\n\nconst relay = z.object({\n main_category: z.literal(device_category.enum.relay),\n})\n\nconst intercom = z.object({\n main_category: z.literal(device_category.enum.intercom),\n physical_properties: z.object({\n has_camera: z.boolean(),\n has_rfid_reader: z.boolean().default(false),\n has_nfc_reader: z.boolean().default(false),\n has_wiegand_interface: z.boolean().default(false),\n }),\n software_features: z.object({\n can_remotely_unlock: z.boolean(),\n can_program_access_codes: z.boolean(),\n can_unlock_with_face_recognition: z.boolean().default(false),\n supports_onvif: z.boolean().default(false),\n }),\n})\n\nconst accessory = z.object({\n main_category: z.literal(device_category.enum.accessory),\n})\n\nexport const device_model_category_specific_properties = z.discriminatedUnion(\n 'main_category',\n [smartlock, sensor, thermostat, relay, intercom, accessory],\n)\n\nexport const base_device_model_v1 = z.object({\n device_model_id: z.string().uuid(),\n manufacturer: manufacturer.omit({\n device_model_count: true,\n }),\n is_device_supported: z.boolean(),\n display_name: z.string(),\n description: z.string(),\n product_url: z.string().optional(),\n main_connection_type: device_connection_type,\n aesthetic_variants: z\n .object({\n slug: z.string(),\n display_name: z.string(),\n primary_color_hex: z.string().optional(),\n manufacturer_sku: z.string().optional(),\n front_image: image_reference.optional(),\n back_image: image_reference.optional(),\n images: image_reference.array(),\n })\n .array(),\n power_sources: z\n .enum([\n 'battery',\n 'hardwired',\n 'mechanical_harvesting',\n 'wireless',\n 'ethernet',\n ])\n .array(),\n})\n\nexport type BaseDeviceModelV1 = z.infer<typeof base_device_model_v1>\n\nexport const device_model_v1 = base_device_model_v1.and(\n device_model_category_specific_properties,\n)\n\nexport type DeviceModelV1 = z.infer<typeof device_model_v1>\n","import { z } from 'zod'\n\nexport const image_reference = z.object({\n url: z.string().url(),\n width: z.number(),\n height: z.number(),\n})\n\nexport type ImageReference = z.infer<typeof image_reference>\n","import { z } from 'zod'\n\nimport { image_reference } from './image-reference.js'\n\nexport const manufacturer_integration_support_level = z.enum([\n 'stable',\n 'beta',\n 'planned',\n 'unsupported',\n 'inquire',\n])\n\nexport type ManufacturerIntegrationSupportLevel = z.infer<\n typeof manufacturer_integration_support_level\n>\n\nexport const manufacturer = z.object({\n manufacturer_id: z.string().uuid(),\n display_name: z.string(),\n logo: image_reference.optional(),\n integration: manufacturer_integration_support_level,\n is_connect_webview_supported: z.boolean(),\n requires_seam_support_to_add_account: z.boolean(),\n device_model_count: z.number(),\n})\n\nexport type Manufacturer = z.infer<typeof manufacturer>\n","import { z } from 'zod'\n\nimport * as schemas from './public-models/index.js'\n\nexport const routes = {\n '/api/v1/device_models/get': {\n auth: 'publishable_key',\n methods: ['GET', 'OPTIONS'],\n queryParams: z.object({\n device_model_id: z.string().uuid(),\n }),\n jsonResponse: z.object({\n device_model: schemas.device_model_v1,\n }),\n },\n '/api/v1/device_models/list': {\n auth: 'publishable_key',\n methods: ['GET', 'OPTIONS'],\n queryParams: z.object({\n main_category: schemas.device_category.optional(),\n manufacturer_id: z.string().uuid().optional(),\n manufacturer_ids: z.string().uuid().array().optional(),\n integration_status: schemas.manufacturer.shape.integration.optional(),\n text_search: z.string().optional(),\n }),\n jsonResponse: z.object({\n device_models: schemas.device_model_v1.array(),\n }),\n },\n '/api/v1/manufacturers/get': {\n auth: 'publishable_key',\n methods: ['GET', 'OPTIONS'],\n queryParams: z.object({\n manufacturer_id: z.string().uuid(),\n }),\n jsonResponse: z.object({\n manufacturer: schemas.manufacturer,\n }),\n },\n '/api/v1/manufacturers/list': {\n auth: 'publishable_key',\n methods: ['GET', 'OPTIONS'],\n queryParams: z.object({\n integration_status: schemas.manufacturer.shape.integration.optional(),\n liqe_query: z.string().optional(),\n }),\n jsonResponse: z.object({\n manufacturers: schemas.manufacturer.array(),\n }),\n },\n} as const\n"]}
|
package/dist/devicedb.d.cts
CHANGED
|
@@ -261,9 +261,9 @@ declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion
|
|
|
261
261
|
main_category: z.ZodLiteral<"intercom">;
|
|
262
262
|
physical_properties: z.ZodObject<{
|
|
263
263
|
has_camera: z.ZodBoolean;
|
|
264
|
-
has_rfid_reader: z.ZodBoolean
|
|
265
|
-
has_nfc_reader: z.ZodBoolean
|
|
266
|
-
has_wiegand_interface: z.ZodBoolean
|
|
264
|
+
has_rfid_reader: z.ZodDefault<z.ZodBoolean>;
|
|
265
|
+
has_nfc_reader: z.ZodDefault<z.ZodBoolean>;
|
|
266
|
+
has_wiegand_interface: z.ZodDefault<z.ZodBoolean>;
|
|
267
267
|
}, "strip", z.ZodTypeAny, {
|
|
268
268
|
has_camera: boolean;
|
|
269
269
|
has_rfid_reader: boolean;
|
|
@@ -271,15 +271,15 @@ declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion
|
|
|
271
271
|
has_wiegand_interface: boolean;
|
|
272
272
|
}, {
|
|
273
273
|
has_camera: boolean;
|
|
274
|
-
has_rfid_reader
|
|
275
|
-
has_nfc_reader
|
|
276
|
-
has_wiegand_interface
|
|
274
|
+
has_rfid_reader?: boolean | undefined;
|
|
275
|
+
has_nfc_reader?: boolean | undefined;
|
|
276
|
+
has_wiegand_interface?: boolean | undefined;
|
|
277
277
|
}>;
|
|
278
278
|
software_features: z.ZodObject<{
|
|
279
279
|
can_remotely_unlock: z.ZodBoolean;
|
|
280
280
|
can_program_access_codes: z.ZodBoolean;
|
|
281
|
-
can_unlock_with_face_recognition: z.ZodBoolean
|
|
282
|
-
supports_onvif: z.ZodBoolean
|
|
281
|
+
can_unlock_with_face_recognition: z.ZodDefault<z.ZodBoolean>;
|
|
282
|
+
supports_onvif: z.ZodDefault<z.ZodBoolean>;
|
|
283
283
|
}, "strip", z.ZodTypeAny, {
|
|
284
284
|
can_remotely_unlock: boolean;
|
|
285
285
|
can_program_access_codes: boolean;
|
|
@@ -288,8 +288,8 @@ declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion
|
|
|
288
288
|
}, {
|
|
289
289
|
can_remotely_unlock: boolean;
|
|
290
290
|
can_program_access_codes: boolean;
|
|
291
|
-
can_unlock_with_face_recognition
|
|
292
|
-
supports_onvif
|
|
291
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
292
|
+
supports_onvif?: boolean | undefined;
|
|
293
293
|
}>;
|
|
294
294
|
}, "strip", z.ZodTypeAny, {
|
|
295
295
|
main_category: "intercom";
|
|
@@ -309,15 +309,15 @@ declare const device_model_category_specific_properties: z.ZodDiscriminatedUnion
|
|
|
309
309
|
main_category: "intercom";
|
|
310
310
|
physical_properties: {
|
|
311
311
|
has_camera: boolean;
|
|
312
|
-
has_rfid_reader
|
|
313
|
-
has_nfc_reader
|
|
314
|
-
has_wiegand_interface
|
|
312
|
+
has_rfid_reader?: boolean | undefined;
|
|
313
|
+
has_nfc_reader?: boolean | undefined;
|
|
314
|
+
has_wiegand_interface?: boolean | undefined;
|
|
315
315
|
};
|
|
316
316
|
software_features: {
|
|
317
317
|
can_remotely_unlock: boolean;
|
|
318
318
|
can_program_access_codes: boolean;
|
|
319
|
-
can_unlock_with_face_recognition
|
|
320
|
-
supports_onvif
|
|
319
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
320
|
+
supports_onvif?: boolean | undefined;
|
|
321
321
|
};
|
|
322
322
|
}>, z.ZodObject<{
|
|
323
323
|
main_category: z.ZodLiteral<"accessory">;
|
|
@@ -927,9 +927,9 @@ declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
927
927
|
main_category: z.ZodLiteral<"intercom">;
|
|
928
928
|
physical_properties: z.ZodObject<{
|
|
929
929
|
has_camera: z.ZodBoolean;
|
|
930
|
-
has_rfid_reader: z.ZodBoolean
|
|
931
|
-
has_nfc_reader: z.ZodBoolean
|
|
932
|
-
has_wiegand_interface: z.ZodBoolean
|
|
930
|
+
has_rfid_reader: z.ZodDefault<z.ZodBoolean>;
|
|
931
|
+
has_nfc_reader: z.ZodDefault<z.ZodBoolean>;
|
|
932
|
+
has_wiegand_interface: z.ZodDefault<z.ZodBoolean>;
|
|
933
933
|
}, "strip", z.ZodTypeAny, {
|
|
934
934
|
has_camera: boolean;
|
|
935
935
|
has_rfid_reader: boolean;
|
|
@@ -937,15 +937,15 @@ declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
937
937
|
has_wiegand_interface: boolean;
|
|
938
938
|
}, {
|
|
939
939
|
has_camera: boolean;
|
|
940
|
-
has_rfid_reader
|
|
941
|
-
has_nfc_reader
|
|
942
|
-
has_wiegand_interface
|
|
940
|
+
has_rfid_reader?: boolean | undefined;
|
|
941
|
+
has_nfc_reader?: boolean | undefined;
|
|
942
|
+
has_wiegand_interface?: boolean | undefined;
|
|
943
943
|
}>;
|
|
944
944
|
software_features: z.ZodObject<{
|
|
945
945
|
can_remotely_unlock: z.ZodBoolean;
|
|
946
946
|
can_program_access_codes: z.ZodBoolean;
|
|
947
|
-
can_unlock_with_face_recognition: z.ZodBoolean
|
|
948
|
-
supports_onvif: z.ZodBoolean
|
|
947
|
+
can_unlock_with_face_recognition: z.ZodDefault<z.ZodBoolean>;
|
|
948
|
+
supports_onvif: z.ZodDefault<z.ZodBoolean>;
|
|
949
949
|
}, "strip", z.ZodTypeAny, {
|
|
950
950
|
can_remotely_unlock: boolean;
|
|
951
951
|
can_program_access_codes: boolean;
|
|
@@ -954,8 +954,8 @@ declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
954
954
|
}, {
|
|
955
955
|
can_remotely_unlock: boolean;
|
|
956
956
|
can_program_access_codes: boolean;
|
|
957
|
-
can_unlock_with_face_recognition
|
|
958
|
-
supports_onvif
|
|
957
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
958
|
+
supports_onvif?: boolean | undefined;
|
|
959
959
|
}>;
|
|
960
960
|
}, "strip", z.ZodTypeAny, {
|
|
961
961
|
main_category: "intercom";
|
|
@@ -975,15 +975,15 @@ declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
975
975
|
main_category: "intercom";
|
|
976
976
|
physical_properties: {
|
|
977
977
|
has_camera: boolean;
|
|
978
|
-
has_rfid_reader
|
|
979
|
-
has_nfc_reader
|
|
980
|
-
has_wiegand_interface
|
|
978
|
+
has_rfid_reader?: boolean | undefined;
|
|
979
|
+
has_nfc_reader?: boolean | undefined;
|
|
980
|
+
has_wiegand_interface?: boolean | undefined;
|
|
981
981
|
};
|
|
982
982
|
software_features: {
|
|
983
983
|
can_remotely_unlock: boolean;
|
|
984
984
|
can_program_access_codes: boolean;
|
|
985
|
-
can_unlock_with_face_recognition
|
|
986
|
-
supports_onvif
|
|
985
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
986
|
+
supports_onvif?: boolean | undefined;
|
|
987
987
|
};
|
|
988
988
|
}>, z.ZodObject<{
|
|
989
989
|
main_category: z.ZodLiteral<"accessory">;
|
|
@@ -1494,9 +1494,9 @@ declare const routes: {
|
|
|
1494
1494
|
main_category: z.ZodLiteral<"intercom">;
|
|
1495
1495
|
physical_properties: z.ZodObject<{
|
|
1496
1496
|
has_camera: z.ZodBoolean;
|
|
1497
|
-
has_rfid_reader: z.ZodBoolean
|
|
1498
|
-
has_nfc_reader: z.ZodBoolean
|
|
1499
|
-
has_wiegand_interface: z.ZodBoolean
|
|
1497
|
+
has_rfid_reader: z.ZodDefault<z.ZodBoolean>;
|
|
1498
|
+
has_nfc_reader: z.ZodDefault<z.ZodBoolean>;
|
|
1499
|
+
has_wiegand_interface: z.ZodDefault<z.ZodBoolean>;
|
|
1500
1500
|
}, "strip", z.ZodTypeAny, {
|
|
1501
1501
|
has_camera: boolean;
|
|
1502
1502
|
has_rfid_reader: boolean;
|
|
@@ -1504,15 +1504,15 @@ declare const routes: {
|
|
|
1504
1504
|
has_wiegand_interface: boolean;
|
|
1505
1505
|
}, {
|
|
1506
1506
|
has_camera: boolean;
|
|
1507
|
-
has_rfid_reader
|
|
1508
|
-
has_nfc_reader
|
|
1509
|
-
has_wiegand_interface
|
|
1507
|
+
has_rfid_reader?: boolean | undefined;
|
|
1508
|
+
has_nfc_reader?: boolean | undefined;
|
|
1509
|
+
has_wiegand_interface?: boolean | undefined;
|
|
1510
1510
|
}>;
|
|
1511
1511
|
software_features: z.ZodObject<{
|
|
1512
1512
|
can_remotely_unlock: z.ZodBoolean;
|
|
1513
1513
|
can_program_access_codes: z.ZodBoolean;
|
|
1514
|
-
can_unlock_with_face_recognition: z.ZodBoolean
|
|
1515
|
-
supports_onvif: z.ZodBoolean
|
|
1514
|
+
can_unlock_with_face_recognition: z.ZodDefault<z.ZodBoolean>;
|
|
1515
|
+
supports_onvif: z.ZodDefault<z.ZodBoolean>;
|
|
1516
1516
|
}, "strip", z.ZodTypeAny, {
|
|
1517
1517
|
can_remotely_unlock: boolean;
|
|
1518
1518
|
can_program_access_codes: boolean;
|
|
@@ -1521,8 +1521,8 @@ declare const routes: {
|
|
|
1521
1521
|
}, {
|
|
1522
1522
|
can_remotely_unlock: boolean;
|
|
1523
1523
|
can_program_access_codes: boolean;
|
|
1524
|
-
can_unlock_with_face_recognition
|
|
1525
|
-
supports_onvif
|
|
1524
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
1525
|
+
supports_onvif?: boolean | undefined;
|
|
1526
1526
|
}>;
|
|
1527
1527
|
}, "strip", z.ZodTypeAny, {
|
|
1528
1528
|
main_category: "intercom";
|
|
@@ -1542,15 +1542,15 @@ declare const routes: {
|
|
|
1542
1542
|
main_category: "intercom";
|
|
1543
1543
|
physical_properties: {
|
|
1544
1544
|
has_camera: boolean;
|
|
1545
|
-
has_rfid_reader
|
|
1546
|
-
has_nfc_reader
|
|
1547
|
-
has_wiegand_interface
|
|
1545
|
+
has_rfid_reader?: boolean | undefined;
|
|
1546
|
+
has_nfc_reader?: boolean | undefined;
|
|
1547
|
+
has_wiegand_interface?: boolean | undefined;
|
|
1548
1548
|
};
|
|
1549
1549
|
software_features: {
|
|
1550
1550
|
can_remotely_unlock: boolean;
|
|
1551
1551
|
can_program_access_codes: boolean;
|
|
1552
|
-
can_unlock_with_face_recognition
|
|
1553
|
-
supports_onvif
|
|
1552
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
1553
|
+
supports_onvif?: boolean | undefined;
|
|
1554
1554
|
};
|
|
1555
1555
|
}>, z.ZodObject<{
|
|
1556
1556
|
main_category: z.ZodLiteral<"accessory">;
|
|
@@ -2107,15 +2107,15 @@ declare const routes: {
|
|
|
2107
2107
|
main_category: "intercom";
|
|
2108
2108
|
physical_properties: {
|
|
2109
2109
|
has_camera: boolean;
|
|
2110
|
-
has_rfid_reader
|
|
2111
|
-
has_nfc_reader
|
|
2112
|
-
has_wiegand_interface
|
|
2110
|
+
has_rfid_reader?: boolean | undefined;
|
|
2111
|
+
has_nfc_reader?: boolean | undefined;
|
|
2112
|
+
has_wiegand_interface?: boolean | undefined;
|
|
2113
2113
|
};
|
|
2114
2114
|
software_features: {
|
|
2115
2115
|
can_remotely_unlock: boolean;
|
|
2116
2116
|
can_program_access_codes: boolean;
|
|
2117
|
-
can_unlock_with_face_recognition
|
|
2118
|
-
supports_onvif
|
|
2117
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
2118
|
+
supports_onvif?: boolean | undefined;
|
|
2119
2119
|
};
|
|
2120
2120
|
}) | ({
|
|
2121
2121
|
display_name: string;
|
|
@@ -2567,9 +2567,9 @@ declare const routes: {
|
|
|
2567
2567
|
main_category: z.ZodLiteral<"intercom">;
|
|
2568
2568
|
physical_properties: z.ZodObject<{
|
|
2569
2569
|
has_camera: z.ZodBoolean;
|
|
2570
|
-
has_rfid_reader: z.ZodBoolean
|
|
2571
|
-
has_nfc_reader: z.ZodBoolean
|
|
2572
|
-
has_wiegand_interface: z.ZodBoolean
|
|
2570
|
+
has_rfid_reader: z.ZodDefault<z.ZodBoolean>;
|
|
2571
|
+
has_nfc_reader: z.ZodDefault<z.ZodBoolean>;
|
|
2572
|
+
has_wiegand_interface: z.ZodDefault<z.ZodBoolean>;
|
|
2573
2573
|
}, "strip", z.ZodTypeAny, {
|
|
2574
2574
|
has_camera: boolean;
|
|
2575
2575
|
has_rfid_reader: boolean;
|
|
@@ -2577,15 +2577,15 @@ declare const routes: {
|
|
|
2577
2577
|
has_wiegand_interface: boolean;
|
|
2578
2578
|
}, {
|
|
2579
2579
|
has_camera: boolean;
|
|
2580
|
-
has_rfid_reader
|
|
2581
|
-
has_nfc_reader
|
|
2582
|
-
has_wiegand_interface
|
|
2580
|
+
has_rfid_reader?: boolean | undefined;
|
|
2581
|
+
has_nfc_reader?: boolean | undefined;
|
|
2582
|
+
has_wiegand_interface?: boolean | undefined;
|
|
2583
2583
|
}>;
|
|
2584
2584
|
software_features: z.ZodObject<{
|
|
2585
2585
|
can_remotely_unlock: z.ZodBoolean;
|
|
2586
2586
|
can_program_access_codes: z.ZodBoolean;
|
|
2587
|
-
can_unlock_with_face_recognition: z.ZodBoolean
|
|
2588
|
-
supports_onvif: z.ZodBoolean
|
|
2587
|
+
can_unlock_with_face_recognition: z.ZodDefault<z.ZodBoolean>;
|
|
2588
|
+
supports_onvif: z.ZodDefault<z.ZodBoolean>;
|
|
2589
2589
|
}, "strip", z.ZodTypeAny, {
|
|
2590
2590
|
can_remotely_unlock: boolean;
|
|
2591
2591
|
can_program_access_codes: boolean;
|
|
@@ -2594,8 +2594,8 @@ declare const routes: {
|
|
|
2594
2594
|
}, {
|
|
2595
2595
|
can_remotely_unlock: boolean;
|
|
2596
2596
|
can_program_access_codes: boolean;
|
|
2597
|
-
can_unlock_with_face_recognition
|
|
2598
|
-
supports_onvif
|
|
2597
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
2598
|
+
supports_onvif?: boolean | undefined;
|
|
2599
2599
|
}>;
|
|
2600
2600
|
}, "strip", z.ZodTypeAny, {
|
|
2601
2601
|
main_category: "intercom";
|
|
@@ -2615,15 +2615,15 @@ declare const routes: {
|
|
|
2615
2615
|
main_category: "intercom";
|
|
2616
2616
|
physical_properties: {
|
|
2617
2617
|
has_camera: boolean;
|
|
2618
|
-
has_rfid_reader
|
|
2619
|
-
has_nfc_reader
|
|
2620
|
-
has_wiegand_interface
|
|
2618
|
+
has_rfid_reader?: boolean | undefined;
|
|
2619
|
+
has_nfc_reader?: boolean | undefined;
|
|
2620
|
+
has_wiegand_interface?: boolean | undefined;
|
|
2621
2621
|
};
|
|
2622
2622
|
software_features: {
|
|
2623
2623
|
can_remotely_unlock: boolean;
|
|
2624
2624
|
can_program_access_codes: boolean;
|
|
2625
|
-
can_unlock_with_face_recognition
|
|
2626
|
-
supports_onvif
|
|
2625
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
2626
|
+
supports_onvif?: boolean | undefined;
|
|
2627
2627
|
};
|
|
2628
2628
|
}>, z.ZodObject<{
|
|
2629
2629
|
main_category: z.ZodLiteral<"accessory">;
|
|
@@ -2811,15 +2811,15 @@ declare const routes: {
|
|
|
2811
2811
|
main_category: "intercom";
|
|
2812
2812
|
physical_properties: {
|
|
2813
2813
|
has_camera: boolean;
|
|
2814
|
-
has_rfid_reader
|
|
2815
|
-
has_nfc_reader
|
|
2816
|
-
has_wiegand_interface
|
|
2814
|
+
has_rfid_reader?: boolean | undefined;
|
|
2815
|
+
has_nfc_reader?: boolean | undefined;
|
|
2816
|
+
has_wiegand_interface?: boolean | undefined;
|
|
2817
2817
|
};
|
|
2818
2818
|
software_features: {
|
|
2819
2819
|
can_remotely_unlock: boolean;
|
|
2820
2820
|
can_program_access_codes: boolean;
|
|
2821
|
-
can_unlock_with_face_recognition
|
|
2822
|
-
supports_onvif
|
|
2821
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
2822
|
+
supports_onvif?: boolean | undefined;
|
|
2823
2823
|
};
|
|
2824
2824
|
} | {
|
|
2825
2825
|
main_category: "accessory";
|
|
@@ -3096,15 +3096,15 @@ interface Routes {
|
|
|
3096
3096
|
main_category: 'intercom';
|
|
3097
3097
|
physical_properties: {
|
|
3098
3098
|
has_camera: boolean;
|
|
3099
|
-
has_rfid_reader
|
|
3100
|
-
has_nfc_reader
|
|
3101
|
-
has_wiegand_interface
|
|
3099
|
+
has_rfid_reader?: boolean;
|
|
3100
|
+
has_nfc_reader?: boolean;
|
|
3101
|
+
has_wiegand_interface?: boolean;
|
|
3102
3102
|
};
|
|
3103
3103
|
software_features: {
|
|
3104
3104
|
can_remotely_unlock: boolean;
|
|
3105
3105
|
can_program_access_codes: boolean;
|
|
3106
|
-
can_unlock_with_face_recognition
|
|
3107
|
-
supports_onvif
|
|
3106
|
+
can_unlock_with_face_recognition?: boolean;
|
|
3107
|
+
supports_onvif?: boolean;
|
|
3108
3108
|
};
|
|
3109
3109
|
} | {
|
|
3110
3110
|
main_category: 'accessory';
|
|
@@ -3207,15 +3207,15 @@ interface Routes {
|
|
|
3207
3207
|
main_category: 'intercom';
|
|
3208
3208
|
physical_properties: {
|
|
3209
3209
|
has_camera: boolean;
|
|
3210
|
-
has_rfid_reader
|
|
3211
|
-
has_nfc_reader
|
|
3212
|
-
has_wiegand_interface
|
|
3210
|
+
has_rfid_reader?: boolean;
|
|
3211
|
+
has_nfc_reader?: boolean;
|
|
3212
|
+
has_wiegand_interface?: boolean;
|
|
3213
3213
|
};
|
|
3214
3214
|
software_features: {
|
|
3215
3215
|
can_remotely_unlock: boolean;
|
|
3216
3216
|
can_program_access_codes: boolean;
|
|
3217
|
-
can_unlock_with_face_recognition
|
|
3218
|
-
supports_onvif
|
|
3217
|
+
can_unlock_with_face_recognition?: boolean;
|
|
3218
|
+
supports_onvif?: boolean;
|
|
3219
3219
|
};
|
|
3220
3220
|
} | {
|
|
3221
3221
|
main_category: 'accessory';
|
|
@@ -230,9 +230,9 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
230
230
|
main_category: z.ZodLiteral<"intercom">;
|
|
231
231
|
physical_properties: z.ZodObject<{
|
|
232
232
|
has_camera: z.ZodBoolean;
|
|
233
|
-
has_rfid_reader: z.ZodBoolean
|
|
234
|
-
has_nfc_reader: z.ZodBoolean
|
|
235
|
-
has_wiegand_interface: z.ZodBoolean
|
|
233
|
+
has_rfid_reader: z.ZodDefault<z.ZodBoolean>;
|
|
234
|
+
has_nfc_reader: z.ZodDefault<z.ZodBoolean>;
|
|
235
|
+
has_wiegand_interface: z.ZodDefault<z.ZodBoolean>;
|
|
236
236
|
}, "strip", z.ZodTypeAny, {
|
|
237
237
|
has_camera: boolean;
|
|
238
238
|
has_rfid_reader: boolean;
|
|
@@ -240,15 +240,15 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
240
240
|
has_wiegand_interface: boolean;
|
|
241
241
|
}, {
|
|
242
242
|
has_camera: boolean;
|
|
243
|
-
has_rfid_reader
|
|
244
|
-
has_nfc_reader
|
|
245
|
-
has_wiegand_interface
|
|
243
|
+
has_rfid_reader?: boolean | undefined;
|
|
244
|
+
has_nfc_reader?: boolean | undefined;
|
|
245
|
+
has_wiegand_interface?: boolean | undefined;
|
|
246
246
|
}>;
|
|
247
247
|
software_features: z.ZodObject<{
|
|
248
248
|
can_remotely_unlock: z.ZodBoolean;
|
|
249
249
|
can_program_access_codes: z.ZodBoolean;
|
|
250
|
-
can_unlock_with_face_recognition: z.ZodBoolean
|
|
251
|
-
supports_onvif: z.ZodBoolean
|
|
250
|
+
can_unlock_with_face_recognition: z.ZodDefault<z.ZodBoolean>;
|
|
251
|
+
supports_onvif: z.ZodDefault<z.ZodBoolean>;
|
|
252
252
|
}, "strip", z.ZodTypeAny, {
|
|
253
253
|
can_remotely_unlock: boolean;
|
|
254
254
|
can_program_access_codes: boolean;
|
|
@@ -257,8 +257,8 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
257
257
|
}, {
|
|
258
258
|
can_remotely_unlock: boolean;
|
|
259
259
|
can_program_access_codes: boolean;
|
|
260
|
-
can_unlock_with_face_recognition
|
|
261
|
-
supports_onvif
|
|
260
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
261
|
+
supports_onvif?: boolean | undefined;
|
|
262
262
|
}>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
264
|
main_category: "intercom";
|
|
@@ -278,15 +278,15 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
278
278
|
main_category: "intercom";
|
|
279
279
|
physical_properties: {
|
|
280
280
|
has_camera: boolean;
|
|
281
|
-
has_rfid_reader
|
|
282
|
-
has_nfc_reader
|
|
283
|
-
has_wiegand_interface
|
|
281
|
+
has_rfid_reader?: boolean | undefined;
|
|
282
|
+
has_nfc_reader?: boolean | undefined;
|
|
283
|
+
has_wiegand_interface?: boolean | undefined;
|
|
284
284
|
};
|
|
285
285
|
software_features: {
|
|
286
286
|
can_remotely_unlock: boolean;
|
|
287
287
|
can_program_access_codes: boolean;
|
|
288
|
-
can_unlock_with_face_recognition
|
|
289
|
-
supports_onvif
|
|
288
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
289
|
+
supports_onvif?: boolean | undefined;
|
|
290
290
|
};
|
|
291
291
|
}>, z.ZodObject<{
|
|
292
292
|
main_category: z.ZodLiteral<"accessory">;
|
|
@@ -896,9 +896,9 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
896
896
|
main_category: z.ZodLiteral<"intercom">;
|
|
897
897
|
physical_properties: z.ZodObject<{
|
|
898
898
|
has_camera: z.ZodBoolean;
|
|
899
|
-
has_rfid_reader: z.ZodBoolean
|
|
900
|
-
has_nfc_reader: z.ZodBoolean
|
|
901
|
-
has_wiegand_interface: z.ZodBoolean
|
|
899
|
+
has_rfid_reader: z.ZodDefault<z.ZodBoolean>;
|
|
900
|
+
has_nfc_reader: z.ZodDefault<z.ZodBoolean>;
|
|
901
|
+
has_wiegand_interface: z.ZodDefault<z.ZodBoolean>;
|
|
902
902
|
}, "strip", z.ZodTypeAny, {
|
|
903
903
|
has_camera: boolean;
|
|
904
904
|
has_rfid_reader: boolean;
|
|
@@ -906,15 +906,15 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
906
906
|
has_wiegand_interface: boolean;
|
|
907
907
|
}, {
|
|
908
908
|
has_camera: boolean;
|
|
909
|
-
has_rfid_reader
|
|
910
|
-
has_nfc_reader
|
|
911
|
-
has_wiegand_interface
|
|
909
|
+
has_rfid_reader?: boolean | undefined;
|
|
910
|
+
has_nfc_reader?: boolean | undefined;
|
|
911
|
+
has_wiegand_interface?: boolean | undefined;
|
|
912
912
|
}>;
|
|
913
913
|
software_features: z.ZodObject<{
|
|
914
914
|
can_remotely_unlock: z.ZodBoolean;
|
|
915
915
|
can_program_access_codes: z.ZodBoolean;
|
|
916
|
-
can_unlock_with_face_recognition: z.ZodBoolean
|
|
917
|
-
supports_onvif: z.ZodBoolean
|
|
916
|
+
can_unlock_with_face_recognition: z.ZodDefault<z.ZodBoolean>;
|
|
917
|
+
supports_onvif: z.ZodDefault<z.ZodBoolean>;
|
|
918
918
|
}, "strip", z.ZodTypeAny, {
|
|
919
919
|
can_remotely_unlock: boolean;
|
|
920
920
|
can_program_access_codes: boolean;
|
|
@@ -923,8 +923,8 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
923
923
|
}, {
|
|
924
924
|
can_remotely_unlock: boolean;
|
|
925
925
|
can_program_access_codes: boolean;
|
|
926
|
-
can_unlock_with_face_recognition
|
|
927
|
-
supports_onvif
|
|
926
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
927
|
+
supports_onvif?: boolean | undefined;
|
|
928
928
|
}>;
|
|
929
929
|
}, "strip", z.ZodTypeAny, {
|
|
930
930
|
main_category: "intercom";
|
|
@@ -944,15 +944,15 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
944
944
|
main_category: "intercom";
|
|
945
945
|
physical_properties: {
|
|
946
946
|
has_camera: boolean;
|
|
947
|
-
has_rfid_reader
|
|
948
|
-
has_nfc_reader
|
|
949
|
-
has_wiegand_interface
|
|
947
|
+
has_rfid_reader?: boolean | undefined;
|
|
948
|
+
has_nfc_reader?: boolean | undefined;
|
|
949
|
+
has_wiegand_interface?: boolean | undefined;
|
|
950
950
|
};
|
|
951
951
|
software_features: {
|
|
952
952
|
can_remotely_unlock: boolean;
|
|
953
953
|
can_program_access_codes: boolean;
|
|
954
|
-
can_unlock_with_face_recognition
|
|
955
|
-
supports_onvif
|
|
954
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
955
|
+
supports_onvif?: boolean | undefined;
|
|
956
956
|
};
|
|
957
957
|
}>, z.ZodObject<{
|
|
958
958
|
main_category: z.ZodLiteral<"accessory">;
|
|
@@ -69,15 +69,15 @@ const intercom = z.object({
|
|
|
69
69
|
main_category: z.literal(device_category.enum.intercom),
|
|
70
70
|
physical_properties: z.object({
|
|
71
71
|
has_camera: z.boolean(),
|
|
72
|
-
has_rfid_reader: z.boolean(),
|
|
73
|
-
has_nfc_reader: z.boolean(),
|
|
74
|
-
has_wiegand_interface: z.boolean(),
|
|
72
|
+
has_rfid_reader: z.boolean().default(false),
|
|
73
|
+
has_nfc_reader: z.boolean().default(false),
|
|
74
|
+
has_wiegand_interface: z.boolean().default(false),
|
|
75
75
|
}),
|
|
76
76
|
software_features: z.object({
|
|
77
77
|
can_remotely_unlock: z.boolean(),
|
|
78
78
|
can_program_access_codes: z.boolean(),
|
|
79
|
-
can_unlock_with_face_recognition: z.boolean(),
|
|
80
|
-
supports_onvif: z.boolean(),
|
|
79
|
+
can_unlock_with_face_recognition: z.boolean().default(false),
|
|
80
|
+
supports_onvif: z.boolean().default(false),
|
|
81
81
|
}),
|
|
82
82
|
});
|
|
83
83
|
const accessory = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-model-v1.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/public-models/device-model-v1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,OAAO;IACP,UAAU;IACV,WAAW;CACZ,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,MAAM;IACN,OAAO;IACP,QAAQ;IACR,SAAS;CACV,CAAC,CAAA;AAIF,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IACzB,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC;IACxD,mBAAmB,EAAE,CAAC,CAAC,MAAM,CAAC;QAC5B,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC;YAChB,UAAU;YACV,OAAO;YACP,SAAS;YACT,SAAS;YACT,UAAU;YACV,SAAS;YACT,QAAQ;YACR,SAAS;SACV,CAAC;QACF,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;QAC7B,UAAU,EAAE,CAA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QACT,WAAW;QACX,uBAAuB;QACvB,UAAU;QACV,UAAU;KACX,CAAC;SACD,KAAK,EAAE;CACX,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAAC,GAAG,CACrD,yCAAyC,CAC1C,CAAA"}
|
|
@@ -392,9 +392,9 @@ export declare const routes: {
|
|
|
392
392
|
main_category: z.ZodLiteral<"intercom">;
|
|
393
393
|
physical_properties: z.ZodObject<{
|
|
394
394
|
has_camera: z.ZodBoolean;
|
|
395
|
-
has_rfid_reader: z.ZodBoolean
|
|
396
|
-
has_nfc_reader: z.ZodBoolean
|
|
397
|
-
has_wiegand_interface: z.ZodBoolean
|
|
395
|
+
has_rfid_reader: z.ZodDefault<z.ZodBoolean>;
|
|
396
|
+
has_nfc_reader: z.ZodDefault<z.ZodBoolean>;
|
|
397
|
+
has_wiegand_interface: z.ZodDefault<z.ZodBoolean>;
|
|
398
398
|
}, "strip", z.ZodTypeAny, {
|
|
399
399
|
has_camera: boolean;
|
|
400
400
|
has_rfid_reader: boolean;
|
|
@@ -402,15 +402,15 @@ export declare const routes: {
|
|
|
402
402
|
has_wiegand_interface: boolean;
|
|
403
403
|
}, {
|
|
404
404
|
has_camera: boolean;
|
|
405
|
-
has_rfid_reader
|
|
406
|
-
has_nfc_reader
|
|
407
|
-
has_wiegand_interface
|
|
405
|
+
has_rfid_reader?: boolean | undefined;
|
|
406
|
+
has_nfc_reader?: boolean | undefined;
|
|
407
|
+
has_wiegand_interface?: boolean | undefined;
|
|
408
408
|
}>;
|
|
409
409
|
software_features: z.ZodObject<{
|
|
410
410
|
can_remotely_unlock: z.ZodBoolean;
|
|
411
411
|
can_program_access_codes: z.ZodBoolean;
|
|
412
|
-
can_unlock_with_face_recognition: z.ZodBoolean
|
|
413
|
-
supports_onvif: z.ZodBoolean
|
|
412
|
+
can_unlock_with_face_recognition: z.ZodDefault<z.ZodBoolean>;
|
|
413
|
+
supports_onvif: z.ZodDefault<z.ZodBoolean>;
|
|
414
414
|
}, "strip", z.ZodTypeAny, {
|
|
415
415
|
can_remotely_unlock: boolean;
|
|
416
416
|
can_program_access_codes: boolean;
|
|
@@ -419,8 +419,8 @@ export declare const routes: {
|
|
|
419
419
|
}, {
|
|
420
420
|
can_remotely_unlock: boolean;
|
|
421
421
|
can_program_access_codes: boolean;
|
|
422
|
-
can_unlock_with_face_recognition
|
|
423
|
-
supports_onvif
|
|
422
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
423
|
+
supports_onvif?: boolean | undefined;
|
|
424
424
|
}>;
|
|
425
425
|
}, "strip", z.ZodTypeAny, {
|
|
426
426
|
main_category: "intercom";
|
|
@@ -440,15 +440,15 @@ export declare const routes: {
|
|
|
440
440
|
main_category: "intercom";
|
|
441
441
|
physical_properties: {
|
|
442
442
|
has_camera: boolean;
|
|
443
|
-
has_rfid_reader
|
|
444
|
-
has_nfc_reader
|
|
445
|
-
has_wiegand_interface
|
|
443
|
+
has_rfid_reader?: boolean | undefined;
|
|
444
|
+
has_nfc_reader?: boolean | undefined;
|
|
445
|
+
has_wiegand_interface?: boolean | undefined;
|
|
446
446
|
};
|
|
447
447
|
software_features: {
|
|
448
448
|
can_remotely_unlock: boolean;
|
|
449
449
|
can_program_access_codes: boolean;
|
|
450
|
-
can_unlock_with_face_recognition
|
|
451
|
-
supports_onvif
|
|
450
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
451
|
+
supports_onvif?: boolean | undefined;
|
|
452
452
|
};
|
|
453
453
|
}>, z.ZodObject<{
|
|
454
454
|
main_category: z.ZodLiteral<"accessory">;
|
|
@@ -1005,15 +1005,15 @@ export declare const routes: {
|
|
|
1005
1005
|
main_category: "intercom";
|
|
1006
1006
|
physical_properties: {
|
|
1007
1007
|
has_camera: boolean;
|
|
1008
|
-
has_rfid_reader
|
|
1009
|
-
has_nfc_reader
|
|
1010
|
-
has_wiegand_interface
|
|
1008
|
+
has_rfid_reader?: boolean | undefined;
|
|
1009
|
+
has_nfc_reader?: boolean | undefined;
|
|
1010
|
+
has_wiegand_interface?: boolean | undefined;
|
|
1011
1011
|
};
|
|
1012
1012
|
software_features: {
|
|
1013
1013
|
can_remotely_unlock: boolean;
|
|
1014
1014
|
can_program_access_codes: boolean;
|
|
1015
|
-
can_unlock_with_face_recognition
|
|
1016
|
-
supports_onvif
|
|
1015
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
1016
|
+
supports_onvif?: boolean | undefined;
|
|
1017
1017
|
};
|
|
1018
1018
|
}) | ({
|
|
1019
1019
|
description: string;
|
|
@@ -1465,9 +1465,9 @@ export declare const routes: {
|
|
|
1465
1465
|
main_category: z.ZodLiteral<"intercom">;
|
|
1466
1466
|
physical_properties: z.ZodObject<{
|
|
1467
1467
|
has_camera: z.ZodBoolean;
|
|
1468
|
-
has_rfid_reader: z.ZodBoolean
|
|
1469
|
-
has_nfc_reader: z.ZodBoolean
|
|
1470
|
-
has_wiegand_interface: z.ZodBoolean
|
|
1468
|
+
has_rfid_reader: z.ZodDefault<z.ZodBoolean>;
|
|
1469
|
+
has_nfc_reader: z.ZodDefault<z.ZodBoolean>;
|
|
1470
|
+
has_wiegand_interface: z.ZodDefault<z.ZodBoolean>;
|
|
1471
1471
|
}, "strip", z.ZodTypeAny, {
|
|
1472
1472
|
has_camera: boolean;
|
|
1473
1473
|
has_rfid_reader: boolean;
|
|
@@ -1475,15 +1475,15 @@ export declare const routes: {
|
|
|
1475
1475
|
has_wiegand_interface: boolean;
|
|
1476
1476
|
}, {
|
|
1477
1477
|
has_camera: boolean;
|
|
1478
|
-
has_rfid_reader
|
|
1479
|
-
has_nfc_reader
|
|
1480
|
-
has_wiegand_interface
|
|
1478
|
+
has_rfid_reader?: boolean | undefined;
|
|
1479
|
+
has_nfc_reader?: boolean | undefined;
|
|
1480
|
+
has_wiegand_interface?: boolean | undefined;
|
|
1481
1481
|
}>;
|
|
1482
1482
|
software_features: z.ZodObject<{
|
|
1483
1483
|
can_remotely_unlock: z.ZodBoolean;
|
|
1484
1484
|
can_program_access_codes: z.ZodBoolean;
|
|
1485
|
-
can_unlock_with_face_recognition: z.ZodBoolean
|
|
1486
|
-
supports_onvif: z.ZodBoolean
|
|
1485
|
+
can_unlock_with_face_recognition: z.ZodDefault<z.ZodBoolean>;
|
|
1486
|
+
supports_onvif: z.ZodDefault<z.ZodBoolean>;
|
|
1487
1487
|
}, "strip", z.ZodTypeAny, {
|
|
1488
1488
|
can_remotely_unlock: boolean;
|
|
1489
1489
|
can_program_access_codes: boolean;
|
|
@@ -1492,8 +1492,8 @@ export declare const routes: {
|
|
|
1492
1492
|
}, {
|
|
1493
1493
|
can_remotely_unlock: boolean;
|
|
1494
1494
|
can_program_access_codes: boolean;
|
|
1495
|
-
can_unlock_with_face_recognition
|
|
1496
|
-
supports_onvif
|
|
1495
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
1496
|
+
supports_onvif?: boolean | undefined;
|
|
1497
1497
|
}>;
|
|
1498
1498
|
}, "strip", z.ZodTypeAny, {
|
|
1499
1499
|
main_category: "intercom";
|
|
@@ -1513,15 +1513,15 @@ export declare const routes: {
|
|
|
1513
1513
|
main_category: "intercom";
|
|
1514
1514
|
physical_properties: {
|
|
1515
1515
|
has_camera: boolean;
|
|
1516
|
-
has_rfid_reader
|
|
1517
|
-
has_nfc_reader
|
|
1518
|
-
has_wiegand_interface
|
|
1516
|
+
has_rfid_reader?: boolean | undefined;
|
|
1517
|
+
has_nfc_reader?: boolean | undefined;
|
|
1518
|
+
has_wiegand_interface?: boolean | undefined;
|
|
1519
1519
|
};
|
|
1520
1520
|
software_features: {
|
|
1521
1521
|
can_remotely_unlock: boolean;
|
|
1522
1522
|
can_program_access_codes: boolean;
|
|
1523
|
-
can_unlock_with_face_recognition
|
|
1524
|
-
supports_onvif
|
|
1523
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
1524
|
+
supports_onvif?: boolean | undefined;
|
|
1525
1525
|
};
|
|
1526
1526
|
}>, z.ZodObject<{
|
|
1527
1527
|
main_category: z.ZodLiteral<"accessory">;
|
|
@@ -1709,15 +1709,15 @@ export declare const routes: {
|
|
|
1709
1709
|
main_category: "intercom";
|
|
1710
1710
|
physical_properties: {
|
|
1711
1711
|
has_camera: boolean;
|
|
1712
|
-
has_rfid_reader
|
|
1713
|
-
has_nfc_reader
|
|
1714
|
-
has_wiegand_interface
|
|
1712
|
+
has_rfid_reader?: boolean | undefined;
|
|
1713
|
+
has_nfc_reader?: boolean | undefined;
|
|
1714
|
+
has_wiegand_interface?: boolean | undefined;
|
|
1715
1715
|
};
|
|
1716
1716
|
software_features: {
|
|
1717
1717
|
can_remotely_unlock: boolean;
|
|
1718
1718
|
can_program_access_codes: boolean;
|
|
1719
|
-
can_unlock_with_face_recognition
|
|
1720
|
-
supports_onvif
|
|
1719
|
+
can_unlock_with_face_recognition?: boolean | undefined;
|
|
1720
|
+
supports_onvif?: boolean | undefined;
|
|
1721
1721
|
};
|
|
1722
1722
|
} | {
|
|
1723
1723
|
main_category: "accessory";
|
|
@@ -91,15 +91,15 @@ export interface Routes {
|
|
|
91
91
|
main_category: 'intercom';
|
|
92
92
|
physical_properties: {
|
|
93
93
|
has_camera: boolean;
|
|
94
|
-
has_rfid_reader
|
|
95
|
-
has_nfc_reader
|
|
96
|
-
has_wiegand_interface
|
|
94
|
+
has_rfid_reader?: boolean;
|
|
95
|
+
has_nfc_reader?: boolean;
|
|
96
|
+
has_wiegand_interface?: boolean;
|
|
97
97
|
};
|
|
98
98
|
software_features: {
|
|
99
99
|
can_remotely_unlock: boolean;
|
|
100
100
|
can_program_access_codes: boolean;
|
|
101
|
-
can_unlock_with_face_recognition
|
|
102
|
-
supports_onvif
|
|
101
|
+
can_unlock_with_face_recognition?: boolean;
|
|
102
|
+
supports_onvif?: boolean;
|
|
103
103
|
};
|
|
104
104
|
} | {
|
|
105
105
|
main_category: 'accessory';
|
|
@@ -202,15 +202,15 @@ export interface Routes {
|
|
|
202
202
|
main_category: 'intercom';
|
|
203
203
|
physical_properties: {
|
|
204
204
|
has_camera: boolean;
|
|
205
|
-
has_rfid_reader
|
|
206
|
-
has_nfc_reader
|
|
207
|
-
has_wiegand_interface
|
|
205
|
+
has_rfid_reader?: boolean;
|
|
206
|
+
has_nfc_reader?: boolean;
|
|
207
|
+
has_wiegand_interface?: boolean;
|
|
208
208
|
};
|
|
209
209
|
software_features: {
|
|
210
210
|
can_remotely_unlock: boolean;
|
|
211
211
|
can_program_access_codes: boolean;
|
|
212
|
-
can_unlock_with_face_recognition
|
|
213
|
-
supports_onvif
|
|
212
|
+
can_unlock_with_face_recognition?: boolean;
|
|
213
|
+
supports_onvif?: boolean;
|
|
214
214
|
};
|
|
215
215
|
} | {
|
|
216
216
|
main_category: 'accessory';
|
package/package.json
CHANGED
|
@@ -83,15 +83,15 @@ const intercom = z.object({
|
|
|
83
83
|
main_category: z.literal(device_category.enum.intercom),
|
|
84
84
|
physical_properties: z.object({
|
|
85
85
|
has_camera: z.boolean(),
|
|
86
|
-
has_rfid_reader: z.boolean(),
|
|
87
|
-
has_nfc_reader: z.boolean(),
|
|
88
|
-
has_wiegand_interface: z.boolean(),
|
|
86
|
+
has_rfid_reader: z.boolean().default(false),
|
|
87
|
+
has_nfc_reader: z.boolean().default(false),
|
|
88
|
+
has_wiegand_interface: z.boolean().default(false),
|
|
89
89
|
}),
|
|
90
90
|
software_features: z.object({
|
|
91
91
|
can_remotely_unlock: z.boolean(),
|
|
92
92
|
can_program_access_codes: z.boolean(),
|
|
93
|
-
can_unlock_with_face_recognition: z.boolean(),
|
|
94
|
-
supports_onvif: z.boolean(),
|
|
93
|
+
can_unlock_with_face_recognition: z.boolean().default(false),
|
|
94
|
+
supports_onvif: z.boolean().default(false),
|
|
95
95
|
}),
|
|
96
96
|
})
|
|
97
97
|
|
|
@@ -116,15 +116,15 @@ export interface Routes {
|
|
|
116
116
|
main_category: 'intercom'
|
|
117
117
|
physical_properties: {
|
|
118
118
|
has_camera: boolean
|
|
119
|
-
has_rfid_reader
|
|
120
|
-
has_nfc_reader
|
|
121
|
-
has_wiegand_interface
|
|
119
|
+
has_rfid_reader?: boolean
|
|
120
|
+
has_nfc_reader?: boolean
|
|
121
|
+
has_wiegand_interface?: boolean
|
|
122
122
|
}
|
|
123
123
|
software_features: {
|
|
124
124
|
can_remotely_unlock: boolean
|
|
125
125
|
can_program_access_codes: boolean
|
|
126
|
-
can_unlock_with_face_recognition
|
|
127
|
-
supports_onvif
|
|
126
|
+
can_unlock_with_face_recognition?: boolean
|
|
127
|
+
supports_onvif?: boolean
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
| {
|
|
@@ -271,15 +271,15 @@ export interface Routes {
|
|
|
271
271
|
main_category: 'intercom'
|
|
272
272
|
physical_properties: {
|
|
273
273
|
has_camera: boolean
|
|
274
|
-
has_rfid_reader
|
|
275
|
-
has_nfc_reader
|
|
276
|
-
has_wiegand_interface
|
|
274
|
+
has_rfid_reader?: boolean
|
|
275
|
+
has_nfc_reader?: boolean
|
|
276
|
+
has_wiegand_interface?: boolean
|
|
277
277
|
}
|
|
278
278
|
software_features: {
|
|
279
279
|
can_remotely_unlock: boolean
|
|
280
280
|
can_program_access_codes: boolean
|
|
281
|
-
can_unlock_with_face_recognition
|
|
282
|
-
supports_onvif
|
|
281
|
+
can_unlock_with_face_recognition?: boolean
|
|
282
|
+
supports_onvif?: boolean
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
| {
|