cadrumo.application.user_profile.operations module

Canonical public registered operations for active user-profile maintenance.

class ProfileFieldMutationOperationRequest(**data)[source]

Bases: BaseModel

One manager-style scalar field replacement for the active profile.

Parameters:

data (Any)

profile_id: UUID
path: str
value: str
class ProfileRepeatableRowValue(**data)[source]

Bases: BaseModel

One submitted value keyed by its field within a schema-declared row.

Parameters:

data (Any)

field_key: str
value: str
class ProfileRepeatableRowMutationOperationRequest(**data)[source]

Bases: BaseModel

One atomic new-row request for a schema-declared repeatable section.

Parameters:

data (Any)

profile_id: UUID
section_key: str
values: tuple[ProfileRepeatableRowValue, ...]
class ProfileBundleExportOperationRequest(**data)[source]

Bases: BaseModel

One active-profile bundle publication request retained in encrypted custody.

Parameters:

data (Any)

profile_id: UUID
destination: Path
purpose: ProfileBundleExportPurpose
class ProfileMutationOperationResult(**data)[source]

Bases: BaseModel

Safe revision witness for a completed profile-fact mutation.

Parameters:

data (Any)

profile_id: UUID
record_revision: int
content_digest: ContentDigest
class ProfileRepeatableRowMutationOperationResult(**data)[source]

Bases: ProfileMutationOperationResult

Safe row identity and revision witness for a completed row mutation.

Parameters:
section_key: str
row_index: NonNegativeInt
class ProfileLogoutOperationResult(**data)[source]

Bases: BaseModel

Declared result shape for a strong-close operation.

The executor returns its profile subject reference instead of persisting this result after the strong close, because the active profile’s encrypted operand store is deliberately no longer available at that point.

Parameters:

data (Any)

profile_id: UUID
logged_out: bool
class ProfileLogoutOperationRequest(**data)[source]

Bases: BaseModel

One strong-close request for the exact active profile subject.

Parameters:

data (Any)

profile_id: UUID
build_profile_logout_operation_request(profile_id)[source]

Build the sole typed strong-close request for an active profile.

Return type:

OperationRequest[ProfileLogoutOperationRequest]

Parameters:

profile_id (UUID)

class ProfileFieldMutationOperationExecutor[source]

Bases: object

Delegate one scalar replacement to the canonical profile-fact write door.

async execute(request, context)[source]
Return type:

str

Parameters:
class ProfileRepeatableRowMutationOperationExecutor[source]

Bases: object

Delegate one whole repeatable row to the shared schema and fact-write authorities.

async execute(request, context)[source]
Return type:

str

Parameters:
class ProfileBundleExportOperationExecutor[source]

Bases: object

Publish through the existing crash-reconcilable bundle export authority.

async execute(request, context)[source]
Return type:

str

Parameters:
class ProfileLogoutOperationExecutor[source]

Bases: object

Strong-close through the one session-revocation authority.

async execute(request, context)[source]
Return type:

str

Parameters:
build_user_profile_operation_definitions()[source]

Return the one canonical profile-maintenance operation population.

Return type:

tuple[OperationDefinition, ...]

build_user_profile_operation_registrations(definitions)[source]

Bind profile-maintenance definitions to their stable public schemas.

Return type:

tuple[OperationPublicDefinitionRegistrationV1, ...]

Parameters:

definitions (tuple[OperationDefinition, ...])