Liking cljdoc? Tell your friends :D

boundary.user.schema


AuthUserclj

Schema for AuthUser entity (public.auth_users table).

Contains global authentication credentials shared across all tenants. Used for login verification, MFA, and account security.

Part of schema-per-tenant multi-tenancy architecture (ADR-004):

  • Authentication data lives in public.auth_users (shared)
  • Profile data lives in tenant_<slug>.users (isolated)
Schema for AuthUser entity (public.auth_users table).

Contains global authentication credentials shared across all tenants.
Used for login verification, MFA, and account security.

Part of schema-per-tenant multi-tenancy architecture (ADR-004):
- Authentication data lives in public.auth_users (shared)
- Profile data lives in tenant_<slug>.users (isolated)
sourceraw docstring

CreateUserRequestclj

Schema for create user API requests.

Schema for create user API requests.
sourceraw docstring

email-regexclj

Regular expression for basic email validation.

Regular expression for basic email validation.
sourceraw docstring

explain-userclj

(explain-user user-data)

Provides detailed validation errors for user data.

Provides detailed validation errors for user data.
sourceraw docstring

get-schemaclj

(get-schema category schema-name)

Retrieves a schema from the registry by category and name.

Retrieves a schema from the registry by category and name.
sourceraw docstring

LoginRequestclj

Schema for login API requests.

Schema for login API requests.
sourceraw docstring

LoginResponseclj

Schema for login response.

Schema for login response.
sourceraw docstring

MFADisableRequestclj

Schema for disabling MFA.

Schema for disabling MFA.
sourceraw docstring

MFAEnableRequestclj

Schema for enabling MFA with verification.

Schema for enabling MFA with verification.
sourceraw docstring

MFARequiredResponseclj

Response when MFA verification is required. Returned after successful password verification when user has MFA enabled.

Response when MFA verification is required.
Returned after successful password verification when user has MFA enabled.
sourceraw docstring

MFASetupRequestclj

Schema for MFA setup initiation.

Schema for MFA setup initiation.
sourceraw docstring

MFASetupResponseclj

Schema for MFA setup response.

Schema for MFA setup response.
sourceraw docstring

MFAStatusResponseclj

Schema for MFA status response.

Schema for MFA status response.
sourceraw docstring

MFAVerifyRequestclj

Schema for MFA code verification.

Schema for MFA code verification.
sourceraw docstring

schema-registryclj

Registry of all user module schemas for easy access.

Registry of all user module schemas for easy access.
sourceraw docstring

TenantUserclj

Schema for TenantUser entity (tenant_<slug>.users table).

Contains tenant-specific user profile and preferences. User can have different name/role/settings in different tenants.

Part of schema-per-tenant multi-tenancy architecture (ADR-004):

  • Same user (id) can exist in multiple tenant schemas
  • Each tenant schema has isolated user profile data

Note: Timestamps use :inst (java.time.Instant) internally.

Schema for TenantUser entity (tenant_<slug>.users table).

Contains tenant-specific user profile and preferences.
User can have different name/role/settings in different tenants.

Part of schema-per-tenant multi-tenancy architecture (ADR-004):
- Same user (id) can exist in multiple tenant schemas
- Each tenant schema has isolated user profile data

Note: Timestamps use :inst (java.time.Instant) internally.
sourceraw docstring

UpdateUserRequestclj

Schema for update user API requests.

Schema for update user API requests.
sourceraw docstring

Userclj

Schema for User entity (merged AuthUser + TenantUser).

This is the unified user entity used in business logic. Combines authentication data (from public.auth_users) with tenant-specific profile data (from tenant_<slug>.users).

Persistence layer is responsible for:

  • Querying both tables and merging results
  • Splitting updates to correct table based on field
  • Maintaining referential integrity (auth_users.id = users.id)

Note: Timestamps use :inst (java.time.Instant) internally. The infrastructure layer handles conversion to/from strings for database storage.

Schema for User entity (merged AuthUser + TenantUser).

This is the unified user entity used in business logic.
Combines authentication data (from public.auth_users) with 
tenant-specific profile data (from tenant_<slug>.users).

Persistence layer is responsible for:
- Querying both tables and merging results
- Splitting updates to correct table based on field
- Maintaining referential integrity (auth_users.id = users.id)

Note: Timestamps use :inst (java.time.Instant) internally. The infrastructure layer
handles conversion to/from strings for database storage.
sourceraw docstring

user-request-transformerclj

Transforms external API data to internal domain format.

NOTE: This transformer does NOT strip unknown keys. Request schemas should be :closed to strictly reject unknown keys.

Transforms external API data to internal domain format.

NOTE: This transformer does NOT strip unknown keys. Request schemas should
be :closed to strictly reject unknown keys.
sourceraw docstring

user-response-transformerclj

Transforms internal domain data to external API format.

Transforms internal domain data to external API format.
sourceraw docstring

user-specific-camel->kebabclj

(user-specific-camel->kebab value)

Transforms user-specific camelCase API keys to kebab-case internal keys.

Transforms user-specific camelCase API keys to kebab-case internal keys.
sourceraw docstring

user-specific-kebab->camelclj

(user-specific-kebab->camel value)

Transforms user-specific kebab-case internal keys to camelCase API keys. Also removes sensitive fields (password-hash, mfa-secret, mfa-backup-codes) and null values for cleaner API responses.

Transforms user-specific kebab-case internal keys to camelCase API keys.
Also removes sensitive fields (password-hash, mfa-secret, mfa-backup-codes)
and null values for cleaner API responses.
sourceraw docstring

UserAuditLogclj

Schema for User Audit Log entity - tracks all user-related actions for compliance and security.

Captures who did what, when, and what changed for full audit trail visibility.

Schema for User Audit Log entity - tracks all user-related actions for compliance and security.

Captures who did what, when, and what changed for full audit trail visibility.
sourceraw docstring

UserResponseclj

Schema for user responses (camelCase for API compatibility).

Schema for user responses (camelCase for API compatibility).
sourceraw docstring

UserSessionclj

Schema for UserSession entity.

Schema for UserSession entity.
sourceraw docstring

validate-userclj

(validate-user user-data)

Validates a user entity against the User schema.

Validates a user entity against the User schema.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close