{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cephable/json-schema/cephable-device-type-model-schema.json",
  "title": "DeviceTypeModel",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cephable-openapi.yml#/components/schemas/DeviceTypeModel",
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdDate": {
      "type": "string",
      "format": "date-time"
    },
    "modifiedDate": {
      "type": "string",
      "format": "date-time"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "isSupported": {
      "type": "boolean"
    },
    "supportsVoiceInput": {
      "type": "boolean"
    },
    "supportsFaceInput": {
      "type": "boolean"
    },
    "supportsGestureInput": {
      "type": "boolean"
    },
    "supportsPhysicalInput": {
      "type": "boolean"
    },
    "supportsWifi": {
      "type": "boolean"
    },
    "supportsDigitalExtensions": {
      "type": "boolean"
    },
    "supportsPhysicalExtensions": {
      "type": "boolean"
    },
    "supportsKeyboardOutput": {
      "type": "boolean"
    },
    "supportsGenericControllerOutput": {
      "type": "boolean"
    },
    "supportsXboxControllerOutput": {
      "type": "boolean"
    },
    "supportsPlayStationControllerOutput": {
      "type": "boolean"
    },
    "supportsNintendoControllerOutput": {
      "type": "boolean"
    },
    "supportsTextGeneration": {
      "type": "boolean"
    },
    "supportsTextSummarization": {
      "type": "boolean"
    },
    "supportsNLUCommands": {
      "type": "boolean"
    },
    "supportsEnhancedDictation": {
      "type": "boolean"
    },
    "supportsAIWorkflows": {
      "type": "boolean"
    },
    "supportsAutoProfileSwitching": {
      "type": "boolean"
    },
    "canAutoStart": {
      "type": "boolean"
    },
    "maxConnections": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "organizationId": {
      "type": [
        "string",
        "null"
      ]
    },
    "defaultLocale": {
      "type": [
        "string",
        "null"
      ]
    },
    "supportsLocales": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "isVirtual": {
      "type": "boolean"
    },
    "isPrivate": {
      "type": "boolean"
    },
    "autoVerify": {
      "type": "boolean"
    },
    "isApplication": {
      "type": "boolean"
    },
    "useSimplifiedUserDevicePayloads": {
      "type": "boolean"
    },
    "commandThrottleRules": {
      "$ref": "#/$defs/DeviceTypeThrottleRules"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "DeviceTypeThrottleRules": {
      "type": "object",
      "properties": {
        "disableVoiceInput": {
          "type": "boolean"
        },
        "disableHotkeyInput": {
          "type": "boolean"
        },
        "disableCameraInput": {
          "type": "boolean"
        },
        "disableMultiInputs": {
          "type": "boolean"
        },
        "maximumCommandsPerSecond": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "maximumCommandsPerMinute": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "maximumMacroLength": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "holdTimeJitterMinMilliseconds": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "holdTimeJitterMaxMilliseconds": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "pauseTimeJitterMinMilliseconds": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "pauseTimeJitterMaxMilliseconds": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "incompatibleActionGroups": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/IncompatibleActionGroup"
          }
        },
        "requiredPauseBetweenRules": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/RequiredPauseBetweenRule"
          }
        },
        "macroStepRules": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/MacroStepRule"
          }
        }
      },
      "additionalProperties": false
    },
    "IncompatibleActionGroup": {
      "type": "object",
      "properties": {
        "actions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/MacroActionReference"
          }
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "MacroActionReference": {
      "type": "object",
      "properties": {
        "eventType": {
          "$ref": "#/$defs/MacroEventType"
        },
        "key": {
          "type": [
            "string",
            "null"
          ]
        },
        "deviceTypeCustomActionId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "MacroEventType": {
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9
      ],
      "type": "integer",
      "format": "int32"
    },
    "MacroStepRule": {
      "type": "object",
      "properties": {
        "eventType": {
          "$ref": "#/$defs/MacroEventType"
        },
        "key": {
          "type": [
            "string",
            "null"
          ]
        },
        "maximumUsePerMacro": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "deviceTypeCustomActionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "maximumHoldTimeMilliseconds": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "disableLatching": {
          "type": "boolean"
        },
        "holdTimeJitterMinMilliseconds": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "holdTimeJitterMaxMilliseconds": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "RequiredPauseBetweenRule": {
      "type": "object",
      "properties": {
        "actionA": {
          "$ref": "#/$defs/MacroActionReference"
        },
        "actionB": {
          "$ref": "#/$defs/MacroActionReference"
        },
        "minimumPauseMilliseconds": {
          "type": "integer",
          "format": "int32"
        },
        "bidirectional": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  }
}