aeat.application.setup._service module

Backend service for workspace initialization.

initialize_workspace() transforms an InitializeWorkspaceCommand into persisted UserProfileFact records, creates a UUID ProfileId, provisions the matching storage BucketId, and returns an InitializeWorkspaceResult for the newly created profile/bucket pair.

initialize_workspace(command)[source]

Initialize a new active workspace profile and bucket.

The service records UserProfileFact values, registers the active profile inside the create-storage span, provisions the corresponding storage bucket, and returns an InitializeWorkspaceResult. Reserved authentication providers are logged and reported as auth_configured=False without rolling back the profile/bucket creation.

Return type:

InitializeWorkspaceResult

Parameters:

command (InitializeWorkspaceCommand)