Archived
Simplify DDNS flow and polish UI
This commit is contained in:
1 parent
5beee0e5c6
commit
5a90bd9d87
42 files changed
+587
-1418
No files matched your search
@@ -33,41 +33,6 @@ class ManagedRecord(BaseModel):
|
||||
updated_at: str | None = None
|
||||
|
||||
|
||||
class DomainChallengeRequest(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid")
|
||||
|
||||
domain: str = Field(examples=["example.net"])
|
||||
|
||||
|
||||
class DomainChallengeResponse(BaseModel):
|
||||
domain: str
|
||||
txt_name: str
|
||||
txt_value: str
|
||||
claim_secret: str = Field(description="Secret value used to return to and verify this domain claim.")
|
||||
|
||||
|
||||
class VerifyDomainRequest(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid")
|
||||
|
||||
domain: str = Field(examples=["example.net"])
|
||||
claim_secret: str
|
||||
|
||||
|
||||
class VerifyDomainResponse(BaseModel):
|
||||
domain: str
|
||||
verified: bool
|
||||
message: str
|
||||
claim_secret: str = Field(description="Secret value used to continue this domain claim flow.")
|
||||
|
||||
|
||||
class CustomHostnameRequest(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid")
|
||||
|
||||
hostname: str = Field(examples=["home.example.net"])
|
||||
claim_secret: str
|
||||
username: str | None = Field(default=None, max_length=128, examples=["home-router"])
|
||||
|
||||
|
||||
class RouterUpdateResponse(BaseModel):
|
||||
status: str = Field(examples=["good"])
|
||||
hostname: str
|
||||
|
||||
Reference in new issue
Block a user