# This file defines the AccessDetail schema model for different network access types. # It includes Wi-Fi and Thread access details with various security modes. components: schemas: # Base security mode schemas (unchanged) WpaPersonalDetail: type: object description: WPA Personal security mode configuration for Wi-Fi networks. properties: password: type: string writeOnly: true minLength: 8 maxLength: 255 pattern: "^[\\x20-\\x7E]{8,63}$" description: The password for the WPA Personal Wi-Fi network example: &wpa-personal-password "my-password" securityModeType: type: string enum: - WPA2-Personal - WPA2-WPA3-Personal - WPA3-Personal description: | The security mode type for the WPA Personal Wi-Fi network. Leave blank to auto-select. example: &wpa-personal-security-mode-type "WPA3-Personal" additionalProperties: false required: - password example: &wpa-personal password: *wpa-personal-password securityModeType: *wpa-personal-security-mode-type WpaEnterpriseDetail: type: object description: WPA Enterprise security mode configuration for Wi-Fi networks. properties: authServer: type: string maxLength: 255 description: The authentication server for the WPA Enterprise Wi-Fi network example: &wpa-enterprise-auth-server "1.2.3.4" securityModeType: type: string enum: - WPA2-Enterprise - WPA3-Enterprise description: The security mode type for the WPA Enterprise Wi-Fi network example: &wpa-enterprise-security-mode-type "WPA3-Enterprise" additionalProperties: false required: - securityModeType example: &wpa-enterprise authServer: *wpa-enterprise-auth-server securityModeType: *wpa-enterprise-security-mode-type # Flattened concrete implementations for Wi-Fi WiFiWpaPersonalAccessDetail: type: object description: Complete access details for Wi-Fi networks using WPA Personal security mode. properties: accessType: type: string description: The type of network access. enum: - "Wi-Fi:WPA_PERSONAL" example: "Wi-Fi:WPA_PERSONAL" ssid: type: string minLength: 2 maxLength: 32 pattern: "^(?! )[\\x20-\\x7E]{2,32}(?