2024-12-26 22:25:54 +00:00
|
|
|
from pydantic import BaseModel, Field
|
2022-12-17 13:34:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Secret(BaseModel):
|
2024-12-26 22:25:54 +00:00
|
|
|
data: str = Field(title="Secret", description="Some secret data")
|
2022-12-17 13:34:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SecretSaveResult(BaseModel):
|
2024-12-26 22:25:54 +00:00
|
|
|
key: str = Field(
|
|
|
|
title="Retrieval key",
|
|
|
|
description="Key that should be used for retrieval of submitted secret",
|
|
|
|
)
|