@@ -8,10 +8,12 @@ class CreateCategories(BaseModel):
88 name : str
99 wallet : str | None = None
1010 paid : bool | None = False
11+ lnurlp : bool | None = False
1112 tips : bool | None = False
1213 chars : int | None = None
1314 price_chars : float | None = None
1415 denomination : str | None = "sat"
16+ claim_split : float | None = 0
1517 notify_telegram : str | None = None
1618 notify_nostr : str | None = None
1719 notify_email : str | None = None
@@ -23,10 +25,12 @@ class Categories(BaseModel):
2325 name : str
2426 wallet : str | None = None
2527 paid : bool | None = False
28+ lnurlp : bool | None = False
2629 tips : bool | None = False
2730 chars : int | None = None
2831 price_chars : float | None = None
2932 denomination : str | None = "sat"
33+ claim_split : float | None = 0
3034 notify_telegram : str | None = None
3135 notify_nostr : str | None = None
3236 notify_email : str | None = None
@@ -39,29 +43,35 @@ class PublicCategories(BaseModel):
3943 id : str
4044 name : str
4145 paid : bool | None = False
46+ lnurlp : bool | None = False
4247 tips : bool | None = False
4348 chars : int | None = None
4449 price_chars : float | None = None
4550 denomination : str | None = "sat"
51+ claim_split : float | None = 0
4652
4753
4854class CategoriesFilters (FilterModel ):
4955 __search_fields__ = [
5056 "name" ,
5157 "paid" ,
58+ "lnurlp" ,
5259 "tips" ,
5360 "chars" ,
5461 "price_chars" ,
5562 "denomination" ,
63+ "claim_split" ,
5664 ]
5765
5866 __sort_fields__ = [
5967 "name" ,
6068 "paid" ,
69+ "lnurlp" ,
6170 "tips" ,
6271 "chars" ,
6372 "price_chars" ,
6473 "denomination" ,
74+ "claim_split" ,
6575 "created_at" ,
6676 "updated_at" ,
6777 ]
@@ -98,6 +108,9 @@ class ChatSession(BaseModel):
98108 resolved : bool = False
99109 unread : bool = True
100110 public_url : str | None = None
111+ balance : int = 0
112+ claimed_by_id : str | None = None
113+ claimed_by_name : str | None = None
101114 participants : list [dict ] = Field (default_factory = list )
102115 messages : list [dict ] = Field (default_factory = list )
103116 last_message_at : datetime | None = None
0 commit comments