Skip to content

Commit

Permalink
fix: add missing admin_comment + service field for FindUserResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jan 13, 2024
1 parent f2aed7d commit 7343d60
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/response_field_names_and_descriptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@
]
],
"FindUserResponse": [
[
"admin_comment",
"(Privileged) Comments from the horde admins about this user."
],
[
"account_age",
"How many seconds since this account was created."
Expand Down Expand Up @@ -198,6 +202,10 @@
"sharedkey_ids",
null
],
[
"service",
"This user is a Horde service account and can provide the `proxied_user` field."
],
[
"special",
"(Privileged) This user has been given the Special role."
Expand Down
9 changes: 9 additions & 0 deletions horde_sdk/ai_horde_api/apimodels/_find_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ class FindUserResponse(HordeResponseBaseModel):
def get_api_model_name(cls) -> str | None:
return "UserDetails"

admin_comment: str | None = Field(
default=None,
description="(Privileged) Comments from the horde admins about this user.",
)
account_age: int | None = Field(
default=None,
description="How many seconds since this account was created.",
Expand Down Expand Up @@ -126,6 +130,11 @@ def get_api_model_name(cls) -> str | None:
"""How many images, texts, megapixelsteps and tokens this user has generated or requested."""
sharedkey_ids: list[str] | None = None
"""The IDs of the shared keys this user has access to."""
service: bool | None = Field(
default=None,
description="This user is a Horde service account and can provide the `proxied_user` field.",
examples=[False],
)
special: bool | None = Field(
default=None,
description="(Privileged) This user has been given the Special role.",
Expand Down

0 comments on commit 7343d60

Please sign in to comment.