mirror of
https://github.com/langgenius/dify.git
synced 2026-06-03 08:16:37 +08:00
fix(contracts): include account avatar url in profile schema (#36924)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -173,7 +173,6 @@ class CheckEmailUniquePayload(BaseModel):
|
||||
|
||||
register_schema_models(
|
||||
console_ns,
|
||||
AccountResponse,
|
||||
AccountInitPayload,
|
||||
AccountNamePayload,
|
||||
AccountAvatarPayload,
|
||||
@@ -245,6 +244,7 @@ register_schema_models(
|
||||
)
|
||||
register_response_schema_models(
|
||||
console_ns,
|
||||
AccountResponse,
|
||||
AvatarUrlResponse,
|
||||
SimpleResultDataResponse,
|
||||
SimpleResultResponse,
|
||||
|
||||
@@ -10561,6 +10561,7 @@ Get banner list
|
||||
| Name | Type | Description | Required |
|
||||
| ---- | ---- | ----------- | -------- |
|
||||
| avatar | string | | No |
|
||||
| avatar_url | string | | Yes |
|
||||
| created_at | integer | | No |
|
||||
| email | string | | Yes |
|
||||
| id | string | | Yes |
|
||||
|
||||
@@ -14,6 +14,7 @@ export type AccountAvatarPayload = {
|
||||
|
||||
export type Account = {
|
||||
avatar?: string | null
|
||||
readonly avatar_url: string | null
|
||||
created_at?: number | null
|
||||
email: string
|
||||
id: string
|
||||
@@ -135,6 +136,20 @@ export type AccountIntegrateResponse = {
|
||||
provider: string
|
||||
}
|
||||
|
||||
export type AccountWritable = {
|
||||
avatar?: string | null
|
||||
created_at?: number | null
|
||||
email: string
|
||||
id: string
|
||||
interface_language?: string | null
|
||||
interface_theme?: string | null
|
||||
is_password_set: boolean
|
||||
last_login_at?: number | null
|
||||
last_login_ip?: string | null
|
||||
name: string
|
||||
timezone?: string | null
|
||||
}
|
||||
|
||||
export type GetAccountAvatarData = {
|
||||
body?: never
|
||||
path?: never
|
||||
|
||||
@@ -21,6 +21,7 @@ export const zAccountAvatarPayload = z.object({
|
||||
*/
|
||||
export const zAccount = z.object({
|
||||
avatar: z.string().nullish(),
|
||||
avatar_url: z.string().readonly().nullable(),
|
||||
created_at: z.int().nullish(),
|
||||
email: z.string(),
|
||||
id: z.string(),
|
||||
@@ -205,6 +206,23 @@ export const zAccountIntegrateListResponse = z.object({
|
||||
data: z.array(zAccountIntegrateResponse),
|
||||
})
|
||||
|
||||
/**
|
||||
* Account
|
||||
*/
|
||||
export const zAccountWritable = z.object({
|
||||
avatar: z.string().nullish(),
|
||||
created_at: z.int().nullish(),
|
||||
email: z.string(),
|
||||
id: z.string(),
|
||||
interface_language: z.string().nullish(),
|
||||
interface_theme: z.string().nullish(),
|
||||
is_password_set: z.boolean(),
|
||||
last_login_at: z.int().nullish(),
|
||||
last_login_ip: z.string().nullish(),
|
||||
name: z.string(),
|
||||
timezone: z.string().nullish(),
|
||||
})
|
||||
|
||||
export const zGetAccountAvatarQuery = z.object({
|
||||
avatar: z.string(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user