# Device Configuration

TypeScript source: `models/device-configuration.ts`

## Types

### ConnectionType

Source: `models/device-configuration.ts:66`

```ts
z.infer<typeof ConnectionTypeSchema>
```

Device connection transport identifier.

### DeviceConfiguration

Source: `models/device-configuration.ts:71`

Normalized device capability and compatibility data used by Viewer UI surfaces.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `calibrated` | `boolean` | Whether the device calibration is available and valid. |
| `cameraSensors` | `Sensor[]` | Camera sensors present on the device. |
| `dynamicCalibration` | `boolean` | Whether dynamic calibration is supported. |
| `fullyCompatible` | `boolean` | Whether the device is fully compatible with the current application. |
| `imu` | `boolean` | Whether the device exposes an IMU. |
| `ir` | `Ir` | Infrared emitter capabilities. |
| `oldUsbGeneration` | `boolean` | Whether the device is connected over an older USB generation. |
| `platform` | `Platform` | DepthAI processing platform. |
| `productName` | `z.infer<typeof DeviceListSchema>` | Product identifier recognized by the shared UI device list schema. |
| `stereo` | `boolean` | Whether the device has stereo depth support. |
| `thermal` | `boolean` | Whether the device has thermal sensing support. |

### Ir

Source: `models/device-configuration.ts:29`

```ts
z.infer<typeof IrSchema>
```

Infrared emitter capabilities reported by a DepthAI device.

### Platform

Source: `models/device-configuration.ts:39`

```ts
z.infer<typeof PlatformSchema>
```

Supported DepthAI platform identifier.

### Sensor

Source: `models/device-configuration.ts:17`

```ts
z.infer<typeof SensorSchema>
```

Camera sensor metadata reported by a DepthAI device.

## Constants

### ConnectionTypeSchema

Source: `models/device-configuration.ts:61`

```ts
ZodEnum<{ ETH: "ETH"; UNKNOWN: "UNKNOWN"; USB: "USB" }>
```

Runtime validation schema for device connection transport identifiers.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `ETH` | `"ETH"` |  |
| `UNKNOWN` | `"UNKNOWN"` |  |
| `USB` | `"USB"` |  |

### DeviceConfigurationSchema

Source: `models/device-configuration.ts:121`

```ts
z.ZodType<DeviceConfiguration>
```

Runtime validation schema for normalized DepthAI device configuration.

### IrSchema

Source: `models/device-configuration.ts:22`

```ts
ZodObject<{ dotProjector: ZodBoolean; floodLight: ZodBoolean }, $strip>
```

Runtime validation schema for infrared emitter availability.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `dotProjector` | `ZodBoolean` |  |
| `floodLight` | `ZodBoolean` |  |

### PLATFORM_COLORS

Source: `models/device-configuration.ts:52`

```ts
{ RVC2: string; RVC4: string; UNKNOWN: string }
```

UI color intents associated with DepthAI platform identifiers.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `RVC2` | `string` |  |
| `RVC4` | `string` |  |
| `UNKNOWN` | `string` |  |

### PLATFORM_NAMES

Source: `models/device-configuration.ts:44`

```ts
{ RVC2: string; RVC4: string; UNKNOWN: string }
```

Human-readable labels for DepthAI platform identifiers.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `RVC2` | `string` |  |
| `RVC4` | `string` |  |
| `UNKNOWN` | `string` |  |

### PlatformSchema

Source: `models/device-configuration.ts:34`

```ts
ZodEnum<{ RVC2: "RVC2"; RVC4: "RVC4"; UNKNOWN: "UNKNOWN" }>
```

Runtime validation schema for supported DepthAI platform identifiers.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `RVC2` | `"RVC2"` |  |
| `RVC4` | `"RVC4"` |  |
| `UNKNOWN` | `"UNKNOWN"` |  |

### SensorSchema

Source: `models/device-configuration.ts:7`

```ts
ZodObject<{ boardSocket: ZodString; maxFps: ZodNumber; minFps: ZodNumber; supportedResolutions: ZodArray<ZodObject<{ height: ZodNumber; width: ZodNumber }, $strip>>; type: ZodString }, $strip>
```

Runtime validation schema for camera sensor metadata reported by a DepthAI device.

#### Members

| Name | Type | Description |
| --- | --- | --- |
| `boardSocket` | `ZodString` |  |
| `maxFps` | `ZodNumber` |  |
| `minFps` | `ZodNumber` |  |
| `supportedResolutions` | `ZodArray<ZodObject<{ height: ZodNumber; width: ZodNumber }, $strip>>` |  |
| `type` | `ZodString` |  |
