refactor: rebuild backend around role-site authorization model
This commit is contained in:
@@ -5,6 +5,7 @@ class InternalSystemItem(BaseModel):
|
||||
id: str
|
||||
system_key: str
|
||||
name: str
|
||||
idp_client_id: str
|
||||
status: str
|
||||
|
||||
|
||||
@@ -15,16 +16,19 @@ class InternalSystemListResponse(BaseModel):
|
||||
offset: int
|
||||
|
||||
|
||||
class InternalModuleItem(BaseModel):
|
||||
class InternalRoleItem(BaseModel):
|
||||
id: str
|
||||
module_key: str
|
||||
role_key: str
|
||||
system_key: str
|
||||
system_name: str
|
||||
name: str
|
||||
idp_role_name: str
|
||||
description: str | None = None
|
||||
status: str
|
||||
|
||||
|
||||
class InternalModuleListResponse(BaseModel):
|
||||
items: list[InternalModuleItem]
|
||||
class InternalRoleListResponse(BaseModel):
|
||||
items: list[InternalRoleItem]
|
||||
total: int
|
||||
limit: int
|
||||
offset: int
|
||||
@@ -33,7 +37,8 @@ class InternalModuleListResponse(BaseModel):
|
||||
class InternalCompanyItem(BaseModel):
|
||||
id: str
|
||||
company_key: str
|
||||
name: str
|
||||
display_name: str
|
||||
legal_name: str | None = None
|
||||
status: str
|
||||
|
||||
|
||||
@@ -47,8 +52,10 @@ class InternalCompanyListResponse(BaseModel):
|
||||
class InternalSiteItem(BaseModel):
|
||||
id: str
|
||||
site_key: str
|
||||
company_key: str | None = None
|
||||
name: str
|
||||
company_key: str
|
||||
company_display_name: str
|
||||
display_name: str
|
||||
domain: str | None = None
|
||||
status: str
|
||||
|
||||
|
||||
@@ -66,6 +73,7 @@ class InternalMemberItem(BaseModel):
|
||||
email: str | None = None
|
||||
display_name: str | None = None
|
||||
is_active: bool
|
||||
status: str
|
||||
|
||||
|
||||
class InternalMemberListResponse(BaseModel):
|
||||
@@ -83,3 +91,21 @@ class InternalUpsertUserBySubResponse(BaseModel):
|
||||
email: str | None = None
|
||||
display_name: str | None = None
|
||||
is_active: bool
|
||||
status: str
|
||||
|
||||
|
||||
class InternalUserRoleItem(BaseModel):
|
||||
site_key: str
|
||||
site_display_name: str
|
||||
company_key: str
|
||||
company_display_name: str
|
||||
system_key: str
|
||||
system_name: str
|
||||
role_key: str
|
||||
role_name: str
|
||||
idp_role_name: str
|
||||
|
||||
|
||||
class InternalUserRoleResponse(BaseModel):
|
||||
user_sub: str
|
||||
roles: list[InternalUserRoleItem]
|
||||
|
||||
Reference in New Issue
Block a user