add wati block (#1254)

This commit is contained in:
LawyZheng 2024-11-25 10:42:34 +08:00 committed by GitHub
parent 303153b305
commit 284fba0aba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 60 additions and 0 deletions

View file

@ -278,6 +278,11 @@ class LoginBlockYAML(BlockYAML):
cache_actions: bool = False
class WaitBlockYAML(BlockYAML):
block_type: Literal[BlockType.WAIT] = BlockType.WAIT # type: ignore
wait_sec: int = 0
PARAMETER_YAML_SUBCLASSES = (
AWSSecretParameterYAML
| BitwardenLoginCredentialParameterYAML
@ -303,6 +308,7 @@ BLOCK_YAML_SUBCLASSES = (
| NavigationBlockYAML
| ExtractionBlockYAML
| LoginBlockYAML
| WaitBlockYAML
)
BLOCK_YAML_TYPES = Annotated[BLOCK_YAML_SUBCLASSES, Field(discriminator="block_type")]