apexauthlib 0.1.8__py3-none-any.whl → 0.1.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ class User:
22
22
  @dataclass(frozen=True)
23
23
  class Service:
24
24
  service: str
25
- superuser: str
25
+ admins: list[str]
26
26
 
27
27
 
28
28
  @dataclass(frozen=True)
@@ -46,5 +46,5 @@ class Client:
46
46
  @dataclass(frozen=True)
47
47
  class ServiceUserInfo(Generic[ItemT]):
48
48
  user: User
49
- is_superuser: bool
49
+ is_service_admin: bool
50
50
  metadata: ItemT
@@ -91,7 +91,7 @@ class AuthApi(Generic[ItemT]):
91
91
 
92
92
  return ServiceUserInfo[ItemT](
93
93
  user=self.user_formatter.load(user),
94
- is_superuser=bool(result["is_superuser"]),
94
+ is_service_admin=bool(result["is_service_admin"]),
95
95
  metadata=self.formatter.load(result["metadata"]),
96
96
  )
97
97
 
@@ -114,7 +114,7 @@ class AuthApi(Generic[ItemT]):
114
114
 
115
115
  yield ServiceUserInfo[ItemT](
116
116
  user=self.user_formatter.load(user),
117
- is_superuser=bool(raw_user["is_superuser"]),
117
+ is_service_admin=bool(raw_user["is_service_admin"]),
118
118
  metadata=self.formatter.load(raw_user["metadata"]),
119
119
  )
120
120
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: apexauthlib
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Apex authorization library for services
5
5
  Author: Apex Dev
6
6
  Author-email: dev@apex.ge
@@ -1,11 +1,11 @@
1
1
  apexauthlib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  apexauthlib/entities/__init__.py,sha256=KghMo6a2QWdPzWlMqdGAKOaVvRmTCOIVhXtIHrX7A_M,149
3
- apexauthlib/entities/auth.py,sha256=TOs-3eNWodjrI8iFpozsNnn1KQTbPKCllbGzHSPYah8,836
3
+ apexauthlib/entities/auth.py,sha256=Zyme1bgQEW1SHLeHSjTaY8E4yd12EIZOEOE3cICZOAo,843
4
4
  apexauthlib/fastapi/__init__.py,sha256=G77C3ZIqjsXdh4fiH5FZyF_hyzVtS3waJJGa_TBGMWE,103
5
5
  apexauthlib/fastapi/auth.py,sha256=hkvG2BougydElkYbEpwsuSgRoLOLANe6DbVSoa-zBRM,3917
6
6
  apexauthlib/integration/__init__.py,sha256=f2lGbyoGct4kpZ2CUTExHhtQHs-1YR_xanvrj9Y4GiI,87
7
- apexauthlib/integration/api.py,sha256=5GfD0K0abUjrK74hGB9dsUhqGkt2SFsg_cS7He4GQnk,4356
8
- apexauthlib-0.1.8.dist-info/LICENSE,sha256=iai0ILQTDgUXV1cIXl0UzSeOdFpMFK3shn5aqnz_Uro,1065
9
- apexauthlib-0.1.8.dist-info/METADATA,sha256=8oZ1_Zjfpuk838nqy7gLI5DR2iDf2vVQB7A7pUhqNko,518
10
- apexauthlib-0.1.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
11
- apexauthlib-0.1.8.dist-info/RECORD,,
7
+ apexauthlib/integration/api.py,sha256=c94T9Z7IPM0K1zKDjex6fr9TNOtE3ZLHnjT2x8kOodY,4372
8
+ apexauthlib-0.1.9.dist-info/LICENSE,sha256=iai0ILQTDgUXV1cIXl0UzSeOdFpMFK3shn5aqnz_Uro,1065
9
+ apexauthlib-0.1.9.dist-info/METADATA,sha256=jTSqo4KFSZGv2Ew58Dm52xQq6myqcAp7vbfTS667C64,518
10
+ apexauthlib-0.1.9.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
11
+ apexauthlib-0.1.9.dist-info/RECORD,,