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
UserProfileFactvalues, registers the active profile inside the create-storage span, provisions the corresponding storage bucket, and returns anInitializeWorkspaceResult. Reserved authentication providers are logged and reported asauth_configured=Falsewithout rolling back the profile/bucket creation.- Return type:
- Parameters:
command (InitializeWorkspaceCommand)