components: schemas: {} info: contact: email: info@anarchitects.dev name: Anarchitects Team url: https://github.com/anarchitects/anarchitecture-bricks-3tier description: Implementation-derived OpenAPI generated from Nest presentation controllers and RouteSchema metadata. title: Anarchitecture Bricks API version: 1.0.0 openapi: 3.1.0 paths: /auth/activate: patch: operationId: activateUser requestBody: content: application/json: schema: properties: token: minLength: 1 type: string required: - token type: object required: true responses: '200': content: application/json: schema: properties: success: type: boolean required: - success type: object description: Default Response tags: - Auth /auth/change-password/{userId}: patch: operationId: changePassword parameters: - in: path name: userId required: true schema: type: string requestBody: content: application/json: schema: properties: confirmPassword: minLength: 6 type: string currentPassword: minLength: 6 type: string newPassword: minLength: 6 type: string required: - currentPassword - newPassword - confirmPassword type: object required: true responses: '200': content: application/json: schema: properties: success: type: boolean required: - success type: object description: Default Response tags: - Auth /auth/forgot-password: post: operationId: forgotPassword requestBody: content: application/json: schema: properties: email: format: email type: string required: - email type: object required: true responses: '200': content: application/json: schema: properties: success: type: boolean required: - success type: object description: Default Response tags: - Auth /auth/jwt/login: post: operationId: loginWithJwt requestBody: content: application/json: schema: properties: credential: maxLength: 100 minLength: 2 type: string password: minLength: 6 type: string required: - credential - password type: object required: true responses: '200': content: application/json: schema: properties: accessToken: minLength: 1 type: string refreshToken: minLength: 1 type: string required: - accessToken - refreshToken type: object description: Default Response tags: - Auth /auth/jwt/logout: post: operationId: logoutWithJwt requestBody: content: application/json: schema: properties: accessToken: minLength: 1 type: string refreshToken: minLength: 1 type: string required: - refreshToken type: object required: true responses: '200': content: application/json: schema: properties: success: type: boolean required: - success type: object description: Default Response tags: - Auth /auth/jwt/refresh: post: operationId: refreshJwtTokens requestBody: content: application/json: schema: properties: refreshToken: minLength: 1 type: string required: - refreshToken type: object required: true responses: '200': content: application/json: schema: properties: accessToken: minLength: 1 type: string refreshToken: minLength: 1 type: string required: - accessToken - refreshToken type: object description: Default Response tags: - Auth /auth/login: post: operationId: login requestBody: content: application/json: schema: properties: credential: maxLength: 100 minLength: 2 type: string password: minLength: 6 type: string required: - credential - password type: object required: true responses: '200': content: application/json: schema: properties: rbac: items: additionalProperties: false properties: action: minLength: 1 type: string conditions: additionalProperties: {} type: object fields: items: minLength: 1 type: string type: array inverted: type: boolean reason: minLength: 1 type: string subject: minLength: 1 type: string required: - action - subject type: object type: array user: {} required: - user - rbac type: object description: Default Response tags: - Auth /auth/logout: post: operationId: logout requestBody: content: application/json: schema: additionalProperties: false properties: {} type: object required: true responses: '200': content: application/json: schema: properties: success: type: boolean required: - success type: object description: Default Response tags: - Auth /auth/me: get: operationId: getLoggedInUserInfo responses: '200': content: application/json: schema: properties: rbac: items: additionalProperties: false properties: action: minLength: 1 type: string conditions: additionalProperties: {} type: object fields: items: minLength: 1 type: string type: array inverted: type: boolean reason: minLength: 1 type: string subject: minLength: 1 type: string required: - action - subject type: object type: array user: {} required: - user - rbac type: object description: Default Response tags: - Auth /auth/passkeys/authentication/begin: post: operationId: beginAuthentication requestBody: content: application/json: schema: additionalProperties: false properties: {} type: object required: true responses: '200': content: application/json: schema: additionalProperties: false properties: allowCredentials: items: additionalProperties: false properties: id: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string transports: items: minLength: 1 type: string type: array type: enum: - public-key type: string required: - id - type type: object type: array challenge: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string extensions: additionalProperties: {} type: object hints: items: minLength: 1 type: string type: array rpId: minLength: 1 type: string timeout: minimum: 0 type: integer userVerification: anyOf: - enum: - required type: string - enum: - preferred type: string - enum: - discouraged type: string required: - challenge type: object description: Default Response tags: - Auth /auth/passkeys/authentication/finish: post: operationId: finishAuthentication requestBody: content: application/json: schema: additionalProperties: false properties: response: additionalProperties: false properties: authenticatorAttachment: anyOf: - enum: - platform type: string - enum: - cross-platform type: string clientExtensionResults: additionalProperties: {} type: object id: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string rawId: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string response: additionalProperties: false properties: authenticatorData: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string clientDataJSON: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string signature: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string userHandle: anyOf: - minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string - type: 'null' required: - clientDataJSON - authenticatorData - signature type: object type: enum: - public-key type: string required: - id - rawId - type - clientExtensionResults - response type: object required: - response type: object required: true responses: '200': content: application/json: schema: properties: rbac: items: additionalProperties: false properties: action: minLength: 1 type: string conditions: additionalProperties: {} type: object fields: items: minLength: 1 type: string type: array inverted: type: boolean reason: minLength: 1 type: string subject: minLength: 1 type: string required: - action - subject type: object type: array user: {} required: - user - rbac type: object description: Default Response tags: - Auth /auth/passkeys/registration/begin: post: operationId: beginRegistration requestBody: content: application/json: schema: additionalProperties: false properties: authenticatorAttachment: anyOf: - enum: - platform type: string - enum: - cross-platform type: string type: object required: true responses: '200': content: application/json: schema: additionalProperties: false properties: attestation: anyOf: - enum: - none type: string - enum: - indirect type: string - enum: - direct type: string - enum: - enterprise type: string attestationFormats: items: minLength: 1 type: string type: array authenticatorSelection: additionalProperties: false properties: authenticatorAttachment: anyOf: - enum: - platform type: string - enum: - cross-platform type: string requireResidentKey: type: boolean residentKey: anyOf: - enum: - required type: string - enum: - preferred type: string - enum: - discouraged type: string userVerification: anyOf: - enum: - required type: string - enum: - preferred type: string - enum: - discouraged type: string type: object challenge: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string excludeCredentials: items: additionalProperties: false properties: id: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string transports: items: minLength: 1 type: string type: array type: enum: - public-key type: string required: - id - type type: object type: array extensions: additionalProperties: {} type: object hints: items: minLength: 1 type: string type: array pubKeyCredParams: items: additionalProperties: false properties: alg: type: integer type: enum: - public-key type: string required: - type - alg type: object minItems: 1 type: array rp: additionalProperties: false properties: id: minLength: 1 type: string name: minLength: 1 type: string required: - name type: object timeout: minimum: 0 type: integer user: additionalProperties: false properties: displayName: type: string id: maxLength: 86 minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string name: type: string required: - id - name - displayName type: object required: - rp - user - challenge - pubKeyCredParams type: object description: Default Response tags: - Auth /auth/passkeys/registration/finish: post: operationId: finishRegistration requestBody: content: application/json: schema: additionalProperties: false properties: name: maxLength: 255 minLength: 1 pattern: \S type: string response: additionalProperties: false properties: authenticatorAttachment: anyOf: - enum: - platform type: string - enum: - cross-platform type: string clientExtensionResults: additionalProperties: {} type: object id: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string rawId: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string response: additionalProperties: false properties: attestationObject: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string authenticatorData: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string clientDataJSON: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string publicKey: minLength: 1 pattern: ^[A-Za-z0-9_-]+$ type: string publicKeyAlgorithm: type: integer transports: items: minLength: 1 type: string type: array required: - clientDataJSON - attestationObject type: object type: enum: - public-key type: string required: - id - rawId - type - clientExtensionResults - response type: object required: - response type: object required: true responses: '200': content: application/json: schema: properties: success: type: boolean required: - success type: object description: Default Response tags: - Auth /auth/register: post: operationId: registerUser requestBody: content: application/json: schema: properties: confirmPassword: minLength: 6 type: string email: format: email type: string name: maxLength: 100 minLength: 2 type: string password: minLength: 6 type: string required: - email - password - confirmPassword type: object required: true responses: '200': content: application/json: schema: properties: success: type: boolean required: - success type: object description: Default Response tags: - Auth /auth/reset-password: post: operationId: resetPassword requestBody: content: application/json: schema: properties: confirmPassword: minLength: 6 type: string password: minLength: 6 type: string token: minLength: 1 type: string required: - token - password - confirmPassword type: object required: true responses: '200': content: application/json: schema: properties: success: type: boolean required: - success type: object description: Default Response tags: - Auth /auth/update-email/{userId}: patch: operationId: updateEmail parameters: - in: path name: userId required: true schema: type: string requestBody: content: application/json: schema: properties: newEmail: format: email type: string password: minLength: 6 type: string required: - newEmail type: object required: true responses: '200': content: application/json: schema: properties: success: type: boolean required: - success type: object description: Default Response tags: - Auth /auth/verify-email: post: operationId: verifyEmail requestBody: content: application/json: schema: properties: token: minLength: 1 type: string required: - token type: object required: true responses: '200': content: application/json: schema: properties: success: type: boolean required: - success type: object description: Default Response tags: - Auth /forms/{formId}: get: operationId: getFormDefinition parameters: - in: query name: formVersion required: false schema: minimum: 1 type: integer - in: path name: formId required: true schema: type: string responses: '200': content: application/json: schema: additionalProperties: false properties: config: additionalProperties: false properties: fields: items: additionalProperties: false properties: kind: anyOf: - enum: - string type: string - enum: - password type: string - enum: - email type: string - enum: - textarea type: string - enum: - boolean type: string - enum: - select type: string - enum: - file type: string maxLength: minimum: 0 type: integer minLength: minimum: 0 type: integer name: type: string options: items: additionalProperties: false properties: label: type: string value: type: string required: - value - label type: object type: array pattern: type: string required: type: boolean ui: additionalProperties: false properties: help: type: string label: type: string placeholder: type: string rows: minimum: 1 type: integer type: object required: - name - kind type: object type: array id: type: string security: additionalProperties: false properties: captcha: anyOf: - enum: - turnstile type: string - enum: - hcaptcha type: string - enum: - none type: string honeypot: type: string required: - captcha type: object validationRules: items: additionalProperties: false properties: kind: enum: - matchFields type: string message: type: string sourceField: type: string targetField: type: string required: - kind - sourceField - targetField type: object type: array version: minimum: 1 type: integer required: - id - version - fields type: object schema: {} required: - config - schema type: object description: Default Response tags: - Forms /forms/submissions: get: operationId: getSubmissions parameters: - in: query name: formId required: false schema: minLength: 1 type: string - in: query name: formVersion required: false schema: minimum: 1 type: integer responses: '200': content: application/json: schema: items: properties: createdAt: format: date-time type: string formId: type: string formVersion: minimum: 1 type: integer id: type: string payload: additionalProperties: {} type: object updatedAt: format: date-time type: string required: - id - formId - formVersion - payload - createdAt - updatedAt type: object type: array description: Default Response tags: - Forms /forms/submissions/{submissionId}: get: operationId: getSubmission parameters: - in: path name: submissionId required: true schema: format: uuid type: string responses: '200': content: application/json: schema: properties: createdAt: format: date-time type: string formId: type: string formVersion: minimum: 1 type: integer id: type: string payload: additionalProperties: {} type: object updatedAt: format: date-time type: string required: - id - formId - formVersion - payload - createdAt - updatedAt type: object description: Default Response tags: - Forms /forms/submit: post: operationId: submitForm requestBody: content: application/json: schema: properties: formId: type: string formVersion: minimum: 1 type: integer payload: additionalProperties: {} type: object required: - formId - formVersion - payload type: object required: true responses: '200': content: application/json: schema: properties: createdAt: format: date-time type: string formId: type: string formVersion: minimum: 1 type: integer id: type: string payload: additionalProperties: {} type: object updatedAt: format: date-time type: string required: - id - formId - formVersion - payload - createdAt - updatedAt type: object description: Default Response tags: - Forms /identity/profiles: post: operationId: createUserProfile requestBody: content: application/json: schema: properties: authUserId: type: string avatarUrl: anyOf: - type: string - type: 'null' displayName: anyOf: - type: string - type: 'null' familyName: anyOf: - type: string - type: 'null' givenName: anyOf: - type: string - type: 'null' locale: anyOf: - type: string - type: 'null' timeZone: anyOf: - type: string - type: 'null' required: - authUserId type: object required: true responses: '200': content: application/json: schema: properties: authUserId: type: string avatarUrl: anyOf: - type: string - type: 'null' createdAt: format: date-time type: string displayName: anyOf: - type: string - type: 'null' familyName: anyOf: - type: string - type: 'null' givenName: anyOf: - type: string - type: 'null' id: type: string locale: anyOf: - type: string - type: 'null' timeZone: anyOf: - type: string - type: 'null' updatedAt: format: date-time type: string required: - id - authUserId - displayName - givenName - familyName - avatarUrl - locale - timeZone - createdAt - updatedAt type: object description: Default Response tags: - Identity /identity/profiles/{profileId}: get: operationId: getUserProfileById parameters: - in: path name: profileId required: true schema: minLength: 1 pattern: ^\S+$ type: string responses: '200': content: application/json: schema: properties: authUserId: type: string avatarUrl: anyOf: - type: string - type: 'null' createdAt: format: date-time type: string displayName: anyOf: - type: string - type: 'null' familyName: anyOf: - type: string - type: 'null' givenName: anyOf: - type: string - type: 'null' id: type: string locale: anyOf: - type: string - type: 'null' timeZone: anyOf: - type: string - type: 'null' updatedAt: format: date-time type: string required: - id - authUserId - displayName - givenName - familyName - avatarUrl - locale - timeZone - createdAt - updatedAt type: object description: Default Response tags: - Identity patch: operationId: updateUserProfile parameters: - in: path name: profileId required: true schema: minLength: 1 pattern: ^\S+$ type: string requestBody: content: application/json: schema: properties: avatarUrl: anyOf: - type: string - type: 'null' displayName: anyOf: - type: string - type: 'null' familyName: anyOf: - type: string - type: 'null' givenName: anyOf: - type: string - type: 'null' locale: anyOf: - type: string - type: 'null' timeZone: anyOf: - type: string - type: 'null' type: object required: true responses: '200': content: application/json: schema: properties: authUserId: type: string avatarUrl: anyOf: - type: string - type: 'null' createdAt: format: date-time type: string displayName: anyOf: - type: string - type: 'null' familyName: anyOf: - type: string - type: 'null' givenName: anyOf: - type: string - type: 'null' id: type: string locale: anyOf: - type: string - type: 'null' timeZone: anyOf: - type: string - type: 'null' updatedAt: format: date-time type: string required: - id - authUserId - displayName - givenName - familyName - avatarUrl - locale - timeZone - createdAt - updatedAt type: object description: Default Response tags: - Identity /identity/profiles/by-auth-user/{authUserId}: get: operationId: getUserProfileByAuthUserId parameters: - in: path name: authUserId required: true schema: minLength: 1 pattern: ^\S+$ type: string responses: '200': content: application/json: schema: properties: authUserId: type: string avatarUrl: anyOf: - type: string - type: 'null' createdAt: format: date-time type: string displayName: anyOf: - type: string - type: 'null' familyName: anyOf: - type: string - type: 'null' givenName: anyOf: - type: string - type: 'null' id: type: string locale: anyOf: - type: string - type: 'null' timeZone: anyOf: - type: string - type: 'null' updatedAt: format: date-time type: string required: - id - authUserId - displayName - givenName - familyName - avatarUrl - locale - timeZone - createdAt - updatedAt type: object description: Default Response tags: - Identity /newsletter/confirm: post: operationId: confirmNewsletterSubscription requestBody: content: application/json: schema: additionalProperties: false properties: token: maxLength: 128 type: string required: - token type: object required: true responses: '202': content: application/json: schema: additionalProperties: false properties: accepted: enum: - true type: boolean required: - accepted type: object description: Default Response tags: - Newsletter /newsletter/subscribe: post: operationId: subscribeToNewsletter requestBody: content: application/json: schema: additionalProperties: false properties: consent: enum: - true type: boolean consentVersion: minLength: 1 pattern: \S type: string email: maxLength: 254 pattern: ^[^\s@]+@[^\s@]+\.[^\s@]+(?![\s\S]) type: string source: maxLength: 2048 type: string website: maxLength: 2048 type: string required: - email - consent - consentVersion type: object required: true responses: '202': content: application/json: schema: additionalProperties: false properties: accepted: enum: - true type: boolean required: - accepted type: object description: Default Response tags: - Newsletter /newsletter/unsubscribe: post: operationId: unsubscribeFromNewsletter requestBody: content: application/json: schema: additionalProperties: false properties: token: maxLength: 128 type: string required: - token type: object required: true responses: '202': content: application/json: schema: additionalProperties: false properties: accepted: enum: - true type: boolean required: - accepted type: object description: Default Response tags: - Newsletter /newsletter/webhook: post: operationId: receiveNewsletterWebhook responses: '200': content: application/json: schema: additionalProperties: false properties: duplicates: minimum: 0 type: integer recorded: minimum: 0 type: integer required: - recorded - duplicates type: object description: Default Response tags: - Newsletter servers: - description: Local url: http://localhost:3000 tags: - name: Auth - name: Forms - name: Identity - name: Newsletter