|
3 | 3 | from pydantic import Field, RootModel |
4 | 4 | from typing_extensions import override |
5 | 5 |
|
| 6 | +from horde_sdk.ai_horde_api.apimodels._styles import ResponseModelStylesUser |
6 | 7 | from horde_sdk.ai_horde_api.apimodels.base import BaseAIHordeRequest |
7 | 8 | from horde_sdk.ai_horde_api.endpoints import AI_HORDE_API_ENDPOINT_SUBPATH |
8 | 9 | from horde_sdk.ai_horde_api.fields import UUID_Identifier |
@@ -52,6 +53,9 @@ class UserKudosDetails(HordeAPIDataObject): |
52 | 53 | recurring: float | None = Field(0) |
53 | 54 | """The amount of Kudos this user has received from recurring rewards.""" |
54 | 55 |
|
| 56 | + styled: float | None = Field(0) |
| 57 | + """The amount of Kudos this user has received from styling images.""" |
| 58 | + |
55 | 59 |
|
56 | 60 | class MonthlyKudos(HordeAPIDataObject): |
57 | 61 | amount: int | None = Field(default=None) |
@@ -85,6 +89,7 @@ class UserRecords(HordeAPIDataObject): |
85 | 89 | fulfillment: UserAmountRecords | None = None |
86 | 90 | request: UserAmountRecords | None = None |
87 | 91 | usage: UserThingRecords | None = None |
| 92 | + style: UserAmountRecords | None = None |
88 | 93 |
|
89 | 94 |
|
90 | 95 | class UsageDetails(HordeAPIDataObject): |
@@ -264,6 +269,9 @@ def get_api_model_name(cls) -> str | None: |
264 | 269 | """Whether this user has been invited to join a worker to the horde and how many of them. |
265 | 270 | When 0, this user cannot add (new) workers to the horde.""" |
266 | 271 |
|
| 272 | + styles: list[ResponseModelStylesUser] | None = None |
| 273 | + """The styles this user has created.""" |
| 274 | + |
267 | 275 |
|
268 | 276 | @Unhashable |
269 | 277 | @Unequatable |
|
0 commit comments