Coverage for src/kwai/api/v1/auth/schemas/resources.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2024-01-01 00:00 +0000

1"""Module that defines all JSON:API resource identifiers for the auth API.""" 

2 

3from typing import Literal 

4 

5from kwai.core.json_api import ResourceIdentifier 

6 

7 

8class UserAccountResourceIdentifier(ResourceIdentifier): 

9 """A JSON:API resource identifier for a user account.""" 

10 

11 type: Literal["user_accounts"] = "user_accounts" 

12 

13 

14class RevokedUserResourceIdentifier(ResourceIdentifier): 

15 """A JSON:API resource identifier for a revoked user account.""" 

16 

17 type: Literal["revoked_users"] = "revoked_users"