2024-04-03 16:40:33 -05:00
|
|
|
export const $Body_login_login_access_token = {
|
2024-06-27 22:53:51 +03:00
|
|
|
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
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $HTTPValidationError = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
detail: {
|
|
|
|
type: "array",
|
|
|
|
contains: {
|
|
|
|
type: "ValidationError",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $ItemCreate = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
title: {
|
|
|
|
type: "string",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: "any-of",
|
|
|
|
contains: [
|
|
|
|
{
|
|
|
|
type: "string",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "null",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
2024-04-06 18:26:12 -05:00
|
|
|
export const $ItemPublic = {
|
2024-06-27 22:53:51 +03: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
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $ItemUpdate = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
title: {
|
|
|
|
type: "any-of",
|
|
|
|
contains: [
|
|
|
|
{
|
|
|
|
type: "string",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "null",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: "any-of",
|
|
|
|
contains: [
|
|
|
|
{
|
|
|
|
type: "string",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "null",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
2024-04-06 18:26:12 -05:00
|
|
|
export const $ItemsPublic = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
data: {
|
|
|
|
type: "array",
|
|
|
|
contains: {
|
|
|
|
type: "ItemPublic",
|
|
|
|
},
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
count: {
|
|
|
|
type: "number",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $Message = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
message: {
|
|
|
|
type: "string",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $NewPassword = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
token: {
|
|
|
|
type: "string",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
new_password: {
|
|
|
|
type: "string",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $Token = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
access_token: {
|
|
|
|
type: "string",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
token_type: {
|
|
|
|
type: "string",
|
|
|
|
default: "bearer",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $UpdatePassword = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
current_password: {
|
|
|
|
type: "string",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
new_password: {
|
|
|
|
type: "string",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $UserCreate = {
|
2024-06-27 22:53:51 +03: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",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
password: {
|
|
|
|
type: "string",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
2024-04-06 18:26:12 -05:00
|
|
|
export const $UserPublic = {
|
2024-06-27 22:53:51 +03: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
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $UserRegister = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
email: {
|
|
|
|
type: "string",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
password: {
|
|
|
|
type: "string",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
full_name: {
|
|
|
|
type: "any-of",
|
|
|
|
contains: [
|
|
|
|
{
|
|
|
|
type: "string",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "null",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $UserUpdate = {
|
2024-06-27 22:53:51 +03:00
|
|
|
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
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $UserUpdateMe = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
full_name: {
|
|
|
|
type: "any-of",
|
|
|
|
contains: [
|
|
|
|
{
|
|
|
|
type: "string",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "null",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
email: {
|
|
|
|
type: "any-of",
|
|
|
|
contains: [
|
|
|
|
{
|
|
|
|
type: "string",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "null",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
2024-04-06 18:26:12 -05:00
|
|
|
export const $UsersPublic = {
|
2024-06-27 22:53:51 +03:00
|
|
|
properties: {
|
|
|
|
data: {
|
|
|
|
type: "array",
|
|
|
|
contains: {
|
|
|
|
type: "UserPublic",
|
|
|
|
},
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
count: {
|
|
|
|
type: "number",
|
|
|
|
isRequired: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export const $ValidationError = {
|
2024-06-27 22:53:51 +03:00
|
|
|
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
|