export namespace Api{ /** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */ export interface paths { "/v1/users/{userId}": { get: operations["search"]; put: operations["update"]; }; "/v1/users/{userId}/groups/{groupingId}": { put: operations["associate"]; delete: operations["disassociate"]; }; "/v1/users/{userId}/cryptedPass": { put: operations["updateCryptedPass"]; }; "/v1/groups/{groupId}": { get: operations["search_1"]; put: operations["update_1"]; delete: operations["remove"]; }; "/v1/groups/{groupId}/permissions/{permissionId}": { put: operations["associate_1"]; delete: operations["disassociate_1"]; }; "/v1/users": { get: operations["list"]; post: operations["register"]; }; "/v1/groups": { get: operations["list_3"]; post: operations["add"]; }; "/v1/users/{userId}/groups": { get: operations["list_1"]; }; "/v1/permissions": { get: operations["list_2"]; }; "/v1/groups/{groupId}/permissions": { get: operations["list_4"]; }; } export interface components { schemas: { Problem: { /** * Format: int32 * @example 400 */ status?: number; /** @example https://www.myapk.com.br/dados-invalidos */ type?: string; /** @example Invalid data */ title?: string; /** @example One or more fields are invalid. Please fill in correctly and try again. */ detail?: string; /** @example One or more fields are invalid. Please fill in correctly and try again. */ userMessage?: string; /** * Format: date-time * @example 2022-08-01T18:09:02.70844Z */ timestamp?: string; /** @description List of objects or fields that generated the error (optional) */ objects?: { [key: string]: unknown }[]; }; UserInput: { /** @example João da Silva */ userName: string; /** @example joao.ger@myapk.com.br */ userEmail: string; }; Links: { [key: string]: components["schemas"]["Link"] }; UsersModel: { /** * Format: int64 * @example 1 */ id?: number; /** @example joaodasilva@email.com */ userEmail?: string; /** @example 1 */ status?: string; /** @example João */ userName?: string; /** @example image.jpg */ photo?: string; _links?: components["schemas"]["Links"]; }; CryptedPassInput: { /** @example 123 */ actualCryptedPass: string; /** @example 123 */ newCryptedPass: string; }; /** @description Representation of a new group */ GroupInput: { /** @example 1 */ name: string; }; GroupingModel: { /** * Format: int64 * @example 1 */ id?: number; /** @example Manager */ name?: string; _links?: components["schemas"]["Links"]; }; UserWithPasswordInput: { /** @example João da Silva */ userName: string; /** @example joao.ger@myapk.com.br */ userEmail: string; /** @example 123 */ cryptedPass: string; }; CollectionModelUsersModel: { _embedded?: { users?: components["schemas"]["UsersModel"][]; }; _links?: components["schemas"]["Links"]; }; CollectionModelGroupingModel: { _embedded?: { groups?: components["schemas"]["GroupingModel"][]; }; _links?: components["schemas"]["Links"]; }; CollectionModelPermissionModel: { _embedded?: { permissions?: components["schemas"]["PermissionModel"][]; }; _links?: components["schemas"]["Links"]; }; PermissionModel: { /** * Format: int64 * @example 1 */ id?: number; /** @example CONSULTAR_USUARIOS */ name?: string; /** @example Allows querying users */ description?: string; _links?: components["schemas"]["Links"]; }; Link: { href?: string; hreflang?: string; title?: string; type?: string; deprecation?: string; profile?: string; name?: string; templated?: boolean; }; }; responses: { /** Invalid requisition */ BadRequestResponse: { content: { "application/json": components["schemas"]["Problem"]; }; }; /** Resource has no representation that could be accepted by the consumer */ NotAcceptableResponse: { content: { "application/json": components["schemas"]["Problem"]; }; }; /** Internal server error */ InternalServerErrorResponse: { content: { "application/json": components["schemas"]["Problem"]; }; }; /** Resource not found */ NotFoundResponse: { content: { "application/json": components["schemas"]["Problem"]; }; }; }; } export interface operations { search: { parameters: { path: { /** User ID */ userId: number; }; }; responses: { /** OK */ 200: { content: { "application/json": components["schemas"]["UsersModel"]; }; }; /** Invalid User ID */ 400: { content: { "application/json": components["schemas"]["Problem"]; }; }; /** User not found */ 404: { content: { "application/json": components["schemas"]["UsersModel"]; }; }; 406: components["responses"]["NotAcceptableResponse"]; 500: components["responses"]["InternalServerErrorResponse"]; }; }; update: { parameters: { path: { /** User ID */ userId: number; }; }; responses: { /** Updated user */ 200: { content: { "application/json": components["schemas"]["UsersModel"]; }; }; 400: components["responses"]["BadRequestResponse"]; /** User not found */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 500: components["responses"]["InternalServerErrorResponse"]; }; /** Representation of a user with the new data */ requestBody: { content: { "application/json": components["schemas"]["UserInput"]; }; }; }; associate: { parameters: { path: { /** User ID */ userId: number; /** Group ID */ groupingId: number; }; }; responses: { /** Successful association */ 204: never; 400: components["responses"]["BadRequestResponse"]; /** User or group not found */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 500: components["responses"]["InternalServerErrorResponse"]; }; }; disassociate: { parameters: { path: { /** User ID */ userId: number; /** Group ID */ groupingId: number; }; }; responses: { /** Desassociação realizada com sucesso */ 204: never; /** Successfully disassociated */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 500: components["responses"]["InternalServerErrorResponse"]; }; }; updateCryptedPass: { parameters: { path: { /** User ID */ userId: number; }; }; responses: { /** Password changed successfully */ 204: never; 400: components["responses"]["BadRequestResponse"]; /** User not found */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 500: components["responses"]["InternalServerErrorResponse"]; }; /** User password update representation */ requestBody: { content: { "application/json": components["schemas"]["CryptedPassInput"]; }; }; }; search_1: { parameters: { path: { /** Group ID */ groupId: number; }; }; responses: { /** OK */ 200: { content: { "application/json": components["schemas"]["GroupingModel"]; }; }; /** Invalid group id */ 400: { content: { "application/json": components["schemas"]["Problem"]; }; }; /** Group not found */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 406: components["responses"]["NotAcceptableResponse"]; 500: components["responses"]["InternalServerErrorResponse"]; }; }; update_1: { parameters: { path: { /** ID of a group */ groupId: number; }; }; responses: { /** Updated group */ 200: { content: { "application/json": components["schemas"]["GroupingModel"]; }; }; 400: components["responses"]["BadRequestResponse"]; /** Group not found */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 500: components["responses"]["InternalServerErrorResponse"]; }; /** Representation of a group with the new data */ requestBody: { content: { "application/json": components["schemas"]["GroupInput"]; }; }; }; remove: { parameters: { path: { /** ID de um grupo */ groupId: number; }; }; responses: { /** Excluded group */ 204: never; /** Group not found */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 500: components["responses"]["InternalServerErrorResponse"]; }; }; associate_1: { parameters: { path: { /** Group id */ groupId: number; /** Permission id */ permissionId: number; }; }; responses: { /** Successful association */ 204: never; 400: components["responses"]["BadRequestResponse"]; /** Group or permission not found */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 500: components["responses"]["InternalServerErrorResponse"]; }; }; disassociate_1: { parameters: { path: { /** Group id */ groupId: number; /** Permission id */ permissionId: number; }; }; responses: { /** Successfully disassociated */ 204: never; /** Group or permission not found */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 500: components["responses"]["InternalServerErrorResponse"]; }; }; list: { responses: { /** OK */ 200: { content: { "application/json": components["schemas"]["CollectionModelUsersModel"]; }; }; 406: components["responses"]["NotAcceptableResponse"]; 500: components["responses"]["InternalServerErrorResponse"]; }; }; register: { responses: { /** Registered user */ 201: { content: { "application/json": components["schemas"]["UsersModel"]; }; }; 400: components["responses"]["BadRequestResponse"]; 500: components["responses"]["InternalServerErrorResponse"]; }; /** Representation of a new user */ requestBody: { content: { "application/json": components["schemas"]["UserWithPasswordInput"]; }; }; }; list_3: { responses: { /** OK */ 200: { content: { "application/json": components["schemas"]["CollectionModelGroupingModel"]; }; }; 406: components["responses"]["NotAcceptableResponse"]; 500: components["responses"]["InternalServerErrorResponse"]; }; }; add: { responses: { /** Registered group */ 201: { content: { "application/json": components["schemas"]["GroupingModel"]; }; }; 400: components["responses"]["BadRequestResponse"]; 500: components["responses"]["InternalServerErrorResponse"]; }; requestBody: { content: { "application/json": components["schemas"]["GroupInput"]; }; }; }; list_1: { parameters: { path: { /** User ID */ userId: number; }; }; responses: { /** OK */ 200: { content: { "application/json": components["schemas"]["CollectionModelGroupingModel"]; }; }; /** User not found */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 406: components["responses"]["NotAcceptableResponse"]; 500: components["responses"]["InternalServerErrorResponse"]; }; }; list_2: { responses: { /** OK */ 200: { content: { "application/json": components["schemas"]["CollectionModelPermissionModel"]; }; }; 406: components["responses"]["NotAcceptableResponse"]; 500: components["responses"]["InternalServerErrorResponse"]; }; }; list_4: { parameters: { path: { /** Group id */ groupId: number; }; }; responses: { /** OK */ 200: { content: { "application/json": components["schemas"]["CollectionModelPermissionModel"]; }; }; /** Invalid group id */ 400: { content: { "application/json": components["schemas"]["Problem"]; }; }; /** Group not found */ 404: { content: { "application/json": components["schemas"]["Problem"]; }; }; 406: components["responses"]["NotAcceptableResponse"]; 500: components["responses"]["InternalServerErrorResponse"]; }; }; } export interface external {} }