mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-14 17:29:40 +00:00
Implement BitwardenSensitiveInformationParameter (#589)
This commit is contained in:
parent
87d6e71768
commit
6f88ae31a0
10 changed files with 422 additions and 41 deletions
|
@ -41,6 +41,28 @@ class BitwardenLoginCredentialParameterYAML(ParameterYAML):
|
|||
bitwarden_collection_id: str | None = None
|
||||
|
||||
|
||||
class BitwardenSensitiveInformationParameterYAML(ParameterYAML):
|
||||
# There is a mypy bug with Literal. Without the type: ignore, mypy will raise an error:
|
||||
# Parameter 1 of Literal[...] cannot be of type "Any"
|
||||
# This pattern already works in block.py but since the ParameterType is not defined in this file, mypy is not able
|
||||
# to infer the type of the parameter_type attribute.
|
||||
parameter_type: Literal[ParameterType.BITWARDEN_SENSITIVE_INFORMATION] = (
|
||||
ParameterType.BITWARDEN_SENSITIVE_INFORMATION
|
||||
) # type: ignore
|
||||
|
||||
# bitwarden cli required fields
|
||||
bitwarden_client_id_aws_secret_key: str
|
||||
bitwarden_client_secret_aws_secret_key: str
|
||||
bitwarden_master_password_aws_secret_key: str
|
||||
# bitwarden collection id to filter the Bitwarden Identity from
|
||||
bitwarden_collection_id: str
|
||||
# unique key to identify the Bitwarden Identity in the collection
|
||||
# this has to be in the identity's name
|
||||
bitwarden_identity_key: str
|
||||
# fields to extract from the Bitwarden Identity. Custom fields are prioritized over default identity fields
|
||||
bitwarden_identity_fields: list[str]
|
||||
|
||||
|
||||
class WorkflowParameterYAML(ParameterYAML):
|
||||
# There is a mypy bug with Literal. Without the type: ignore, mypy will raise an error:
|
||||
# Parameter 1 of Literal[...] cannot be of type "Any"
|
||||
|
@ -172,6 +194,7 @@ class FileParserBlockYAML(BlockYAML):
|
|||
PARAMETER_YAML_SUBCLASSES = (
|
||||
AWSSecretParameterYAML
|
||||
| BitwardenLoginCredentialParameterYAML
|
||||
| BitwardenSensitiveInformationParameterYAML
|
||||
| WorkflowParameterYAML
|
||||
| ContextParameterYAML
|
||||
| OutputParameterYAML
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue