86 lines
1.5 KiB
Python
86 lines
1.5 KiB
Python
from pydantic import BaseModel
|
|
|
|
|
|
class InternalSystemItem(BaseModel):
|
|
id: str
|
|
system_key: str
|
|
name: str
|
|
status: str
|
|
|
|
|
|
class InternalSystemListResponse(BaseModel):
|
|
items: list[InternalSystemItem]
|
|
total: int
|
|
limit: int
|
|
offset: int
|
|
|
|
|
|
class InternalModuleItem(BaseModel):
|
|
id: str
|
|
module_key: str
|
|
system_key: str
|
|
name: str
|
|
status: str
|
|
|
|
|
|
class InternalModuleListResponse(BaseModel):
|
|
items: list[InternalModuleItem]
|
|
total: int
|
|
limit: int
|
|
offset: int
|
|
|
|
|
|
class InternalCompanyItem(BaseModel):
|
|
id: str
|
|
company_key: str
|
|
name: str
|
|
status: str
|
|
|
|
|
|
class InternalCompanyListResponse(BaseModel):
|
|
items: list[InternalCompanyItem]
|
|
total: int
|
|
limit: int
|
|
offset: int
|
|
|
|
|
|
class InternalSiteItem(BaseModel):
|
|
id: str
|
|
site_key: str
|
|
company_key: str | None = None
|
|
name: str
|
|
status: str
|
|
|
|
|
|
class InternalSiteListResponse(BaseModel):
|
|
items: list[InternalSiteItem]
|
|
total: int
|
|
limit: int
|
|
offset: int
|
|
|
|
|
|
class InternalMemberItem(BaseModel):
|
|
id: str
|
|
user_sub: str
|
|
username: str | None = None
|
|
email: str | None = None
|
|
display_name: str | None = None
|
|
is_active: bool
|
|
|
|
|
|
class InternalMemberListResponse(BaseModel):
|
|
items: list[InternalMemberItem]
|
|
total: int
|
|
limit: int
|
|
offset: int
|
|
|
|
|
|
class InternalUpsertUserBySubResponse(BaseModel):
|
|
id: str
|
|
user_sub: str
|
|
idp_user_id: str | None = None
|
|
username: str | None = None
|
|
email: str | None = None
|
|
display_name: str | None = None
|
|
is_active: bool
|