2024-04-03 16:40:33 -05:00
|
|
|
export const $Body_login_login_access_token = {
|
|
|
|
properties: {
|
|
|
|
grant_type: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
pattern: 'password',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
username: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
password: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
scope: {
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
client_id: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
client_secret: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $HTTPValidationError = {
|
|
|
|
properties: {
|
|
|
|
detail: {
|
|
|
|
type: 'array',
|
|
|
|
contains: {
|
|
|
|
type: 'ValidationError',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $ItemCreate = {
|
|
|
|
properties: {
|
|
|
|
title: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
2024-04-06 18:26:12 -05:00
|
|
|
export const $ItemPublic = {
|
2024-04-03 16:40:33 -05:00
|
|
|
properties: {
|
|
|
|
title: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
id: {
|
|
|
|
type: 'number',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
owner_id: {
|
|
|
|
type: 'number',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $ItemUpdate = {
|
|
|
|
properties: {
|
|
|
|
title: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
2024-04-06 18:26:12 -05:00
|
|
|
export const $ItemsPublic = {
|
2024-04-03 16:40:33 -05:00
|
|
|
properties: {
|
|
|
|
data: {
|
|
|
|
type: 'array',
|
|
|
|
contains: {
|
2024-04-06 18:26:12 -05:00
|
|
|
type: 'ItemPublic',
|
2024-04-03 16:40:33 -05:00
|
|
|
},
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
count: {
|
|
|
|
type: 'number',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $Message = {
|
|
|
|
properties: {
|
|
|
|
message: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $NewPassword = {
|
|
|
|
properties: {
|
|
|
|
token: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
new_password: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $Token = {
|
|
|
|
properties: {
|
|
|
|
access_token: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
token_type: {
|
|
|
|
type: 'string',
|
|
|
|
default: 'bearer',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $UpdatePassword = {
|
|
|
|
properties: {
|
|
|
|
current_password: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
new_password: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $UserCreate = {
|
|
|
|
properties: {
|
|
|
|
email: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
is_active: {
|
|
|
|
type: 'boolean',
|
|
|
|
default: true,
|
|
|
|
},
|
|
|
|
is_superuser: {
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
full_name: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
password: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
2024-04-06 18:26:12 -05:00
|
|
|
export const $UserPublic = {
|
2024-04-03 16:40:33 -05:00
|
|
|
properties: {
|
|
|
|
email: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
is_active: {
|
|
|
|
type: 'boolean',
|
|
|
|
default: true,
|
|
|
|
},
|
|
|
|
is_superuser: {
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
full_name: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
id: {
|
|
|
|
type: 'number',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $UserRegister = {
|
|
|
|
properties: {
|
|
|
|
email: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
password: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
full_name: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $UserUpdate = {
|
|
|
|
properties: {
|
|
|
|
email: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
is_active: {
|
|
|
|
type: 'boolean',
|
|
|
|
default: true,
|
|
|
|
},
|
|
|
|
is_superuser: {
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
full_name: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
password: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $UserUpdateMe = {
|
|
|
|
properties: {
|
|
|
|
full_name: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
email: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'null',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
2024-04-06 18:26:12 -05:00
|
|
|
export const $UsersPublic = {
|
2024-04-03 16:40:33 -05:00
|
|
|
properties: {
|
|
|
|
data: {
|
|
|
|
type: 'array',
|
|
|
|
contains: {
|
2024-04-06 18:26:12 -05:00
|
|
|
type: 'UserPublic',
|
2024-04-03 16:40:33 -05:00
|
|
|
},
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
count: {
|
|
|
|
type: 'number',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const $ValidationError = {
|
|
|
|
properties: {
|
|
|
|
loc: {
|
|
|
|
type: 'array',
|
|
|
|
contains: {
|
|
|
|
type: 'any-of',
|
|
|
|
contains: [{
|
|
|
|
type: 'string',
|
|
|
|
}, {
|
|
|
|
type: 'number',
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
msg: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
type: {
|
|
|
|
type: 'string',
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|