iOS/Sources/App/WebView/WebViewExternalBusMessage.swift
Bruno Pantaleão Gonçalves 00f311b6f0
Add thread credentials management screen (#2606)
<!-- Thank you for submitting a Pull Request and helping to improve Home
Assistant. Please complete the following sections to help the processing
and review of your changes. Please do not delete anything from this
template. -->

## Summary
<!-- Provide a brief summary of the changes you have made and most
importantly what they aim to achieve -->
Add screen to list all thread credentials in keychain + transfer to HA.
This screen will also work as a way to visually validate when we start
transferring HA thread credentials in Apple keychain.

## Screenshots
<!-- If this is a user-facing change not in the frontend, please include
screenshots in light and dark mode. -->
<img width="2126" alt="Screenshot 2024-02-29 at 11 17 12"
src="https://github.com/home-assistant/iOS/assets/5808343/033ec96d-e8f0-4f91-b1e8-53dd207873e2">


## Link to pull request in Documentation repository
<!-- Pull requests that add, change or remove functionality must have a
corresponding pull request in the Companion App Documentation repository
(https://github.com/home-assistant/companion.home-assistant). Please add
the number of this pull request after the "#" -->
Documentation: home-assistant/companion.home-assistant#

## Any other notes
<!-- If there is any other information of note, like if this Pull
Request is part of a bigger change, please include it here. -->
2024-03-04 14:07:47 +01:00

24 lines
882 B
Swift

import Foundation
enum WebViewExternalBusMessage: String, CaseIterable {
case configGet = "config/get"
case configScreenShow = "config_screen/show"
case haptic
case connectionStatus = "connection-status"
case tagRead = "tag/read"
case tagWrite = "tag/write"
case themeUpdate = "theme-update"
case matterCommission = "matter/commission"
case threadImportCredentials = "thread/import_credentials"
case threadStoreCredentialInAppleKeychain = "thread/store_in_platform_keychain"
case barCodeScanner = "bar_code/scan"
case barCodeScannerClose = "bar_code/close"
case barCodeScannerNotify = "bar_code/notify"
}
enum WebViewExternalBusOutgoingMessage: String, CaseIterable {
case showAutomationEditor = "automation/editor/show"
case barCodeScanResult = "bar_code/scan_result"
case barCodeScanAborted = "bar_code/aborted"
}