Module: CommandTower
- Defined in:
- lib/command_tower.rb,
lib/command_tower/audit.rb,
lib/command_tower/error.rb,
lib/command_tower/engine.rb,
lib/command_tower/events.rb,
lib/command_tower/schema.rb,
lib/command_tower/current.rb,
lib/command_tower/testing.rb,
lib/command_tower/version.rb,
lib/command_tower/execution.rb,
lib/command_tower/audit/emit.rb,
lib/command_tower/admin_scope.rb,
lib/command_tower/spec_helper.rb,
lib/command_tower/audit/masking.rb,
lib/command_tower/audit/payload.rb,
lib/command_tower/authorization.rb,
lib/command_tower/install/doctor.rb,
lib/command_tower/admin_workspace.rb,
lib/command_tower/jwt/csrf_helper.rb,
lib/command_tower/install/baseline.rb,
lib/command_tower/redis_connection.rb,
lib/command_tower/audit/attribution.rb,
lib/command_tower/schema/error/base.rb,
app/models/command_tower/audit/event.rb,
app/services/command_tower/messaging.rb,
lib/command_tower/authorization/role.rb,
lib/command_tower/configuration/base.rb,
lib/command_tower/logging/projection.rb,
lib/command_tower/logging/subscriber.rb,
lib/command_tower/schema/shared/user.rb,
lib/command_tower/admin_scope/resolve.rb,
app/jobs/command_tower/application_job.rb,
app/services/command_tower/clients/url.rb,
lib/command_tower/authorization/entity.rb,
lib/command_tower/configuration/config.rb,
lib/command_tower/credential_resolution.rb,
app/auth/command_tower/auth/auth_context.rb,
lib/command_tower/principal_capabilities.rb,
app/workflows/command_tower/transactional.rb,
app/services/command_tower/messaging/inbox.rb,
lib/command_tower/admin_scope/scope_option.rb,
lib/command_tower/configuration/jwt/config.rb,
lib/command_tower/configuration/otp/config.rb,
lib/command_tower/jwt/authorization_helper.rb,
app/controllers/command_tower/me_controller.rb,
app/models/command_tower/application_record.rb,
app/models/command_tower/messaging/endpoint.rb,
lib/command_tower/admin_scope/scope_context.rb,
lib/command_tower/configuration/user/config.rb,
app/helpers/command_tower/application_helper.rb,
app/jobs/command_tower/messaging/handoff_job.rb,
app/mailers/command_tower/application_mailer.rb,
app/services/command_tower/messaging/planner.rb,
lib/command_tower/configuration/admin/config.rb,
lib/command_tower/configuration/email/config.rb,
lib/command_tower/configuration/login/config.rb,
app/jobs/command_tower/execution/job_boundary.rb,
app/models/command_tower/messaging/inbox_item.rb,
app/services/command_tower/clients/invocation.rb,
app/services/command_tower/messaging/channels.rb,
lib/command_tower/configuration/messaging/sms.rb,
lib/command_tower/impersonation/apply_overlay.rb,
lib/command_tower/signup/authorization_helper.rb,
app/errors/command_tower/errors/internal_error.rb,
app/models/command_tower/impersonation/session.rb,
app/services/command_tower/clients/client_base.rb,
app/services/command_tower/messaging/endpoints.rb,
lib/command_tower/audit/persistence/subscriber.rb,
lib/command_tower/configuration/username/check.rb,
app/errors/command_tower/errors/forbidden_error.rb,
app/errors/command_tower/errors/not_found_error.rb,
app/mailers/command_tower/password_reset_mailer.rb,
app/services/command_tower/auth/request_context.rb,
app/services/command_tower/services/admin/users.rb,
lib/command_tower/configuration/identity/config.rb,
lib/command_tower/configuration/registry/config.rb,
lib/command_tower/logging/lifecycle_declaration.rb,
lib/command_tower/schema/error/invalid_argument.rb,
app/controllers/command_tower/me/name_controller.rb,
app/controllers/command_tower/profile_controller.rb,
app/errors/command_tower/errors/validation_error.rb,
app/models/command_tower/messaging/communication.rb,
app/services/command_tower/clients/client_result.rb,
app/services/command_tower/clients/endpoint_base.rb,
app/services/command_tower/clients/scoped_client.rb,
app/services/command_tower/messaging/inbox/error.rb,
app/services/command_tower/messaging/inbox/scope.rb,
app/services/command_tower/messaging/preferences.rb,
app/services/command_tower/services/audit/events.rb,
lib/command_tower/authorization/assignable_roles.rb,
lib/command_tower/configuration/credentials/smtp.rb,
lib/command_tower/configuration/messaging/config.rb,
app/controllers/command_tower/me/inbox_controller.rb,
app/controllers/command_tower/me/phone_controller.rb,
app/errors/command_tower/errors/application_error.rb,
app/services/command_tower/clients/endpoint_input.rb,
app/services/command_tower/messaging/accept/error.rb,
app/services/command_tower/messaging/inbox/reader.rb,
app/services/command_tower/services/auth/register.rb,
lib/command_tower/admin_scope/apply_audit_scoping.rb,
lib/command_tower/admin_scope/manifest_projection.rb,
lib/command_tower/configuration/jwt/cookie/config.rb,
lib/command_tower/configuration/pagination/config.rb,
app/auth/command_tower/auth/signup_session_context.rb,
app/errors/command_tower/errors/unauthorized_error.rb,
app/mailers/command_tower/messaging/channel_mailer.rb,
app/services/command_tower/clients/namespace_proxy.rb,
app/services/command_tower/clients/transport/error.rb,
app/services/command_tower/messaging/accept/result.rb,
app/services/command_tower/messaging/inbox/mutator.rb,
app/services/command_tower/messaging/planner/error.rb,
app/services/command_tower/services/me/update_name.rb,
app/services/command_tower/services/service_result.rb,
lib/command_tower/configuration/admin_scope/config.rb,
lib/command_tower/configuration/application/config.rb,
lib/command_tower/configuration/credentials/config.rb,
lib/command_tower/configuration/credentials/twilio.rb,
lib/command_tower/configuration/messaging/pushover.rb,
lib/command_tower/impersonation/establish_identity.rb,
app/controllers/command_tower/me/account_controller.rb,
app/mailers/command_tower/email_verification_mailer.rb,
app/models/command_tower/messaging/channel_delivery.rb,
app/models/command_tower/messaging/delivery_attempt.rb,
app/models/command_tower/messaging/destination_plan.rb,
app/services/command_tower/clients/const_resolution.rb,
app/services/command_tower/clients/decoded_response.rb,
app/services/command_tower/messaging/channels/error.rb,
app/services/command_tower/messaging/contract/error.rb,
app/services/command_tower/services/me/capabilities.rb,
app/services/command_tower/services/messaging/inbox.rb,
lib/command_tower/admin_scope/apply_users_narrowing.rb,
lib/command_tower/credential_resolution/env_backend.rb,
app/controllers/command_tower/admin/users_controller.rb,
app/controllers/command_tower/application_controller.rb,
app/controllers/command_tower/auth/logout_controller.rb,
app/controllers/command_tower/me/password_controller.rb,
app/controllers/command_tower/me/pushover_controller.rb,
app/services/command_tower/clients/transport/request.rb,
app/services/command_tower/identity/phone/normalizer.rb,
app/services/command_tower/messaging/endpoints/error.rb,
app/services/command_tower/messaging/endpoints/query.rb,
app/services/command_tower/messaging/execution/claim.rb,
app/services/command_tower/messaging/planner/planner.rb,
app/services/command_tower/messaging/pushover/result.rb,
lib/command_tower/configuration/authorization/config.rb,
lib/command_tower/configuration/impersonation/config.rb,
lib/command_tower/impersonation/activity_declaration.rb,
app/controllers/command_tower/auth/session_controller.rb,
app/deserializers/command_tower/deserializers/failure.rb,
app/jobs/command_tower/messaging/handoff_recovery_job.rb,
app/serializers/command_tower/serializers/admin/users.rb,
app/services/command_tower/clients/serialized_request.rb,
app/services/command_tower/clients/transport/response.rb,
app/services/command_tower/messaging/accept/persister.rb,
app/services/command_tower/messaging/endpoints/create.rb,
app/services/command_tower/messaging/endpoints/revoke.rb,
app/services/command_tower/messaging/handoff/recovery.rb,
app/services/command_tower/services/impersonation/end.rb,
app/services/command_tower/services/me/delete_account.rb,
app/services/command_tower/services/rate_limits/check.rb,
app/workflows/command_tower/workflows/me/error_status.rb,
app/workflows/command_tower/workflows/messaging/inbox.rb,
app/workflows/command_tower/workflows/workflow_result.rb,
lib/command_tower/configuration/registry/audit/config.rb,
lib/command_tower/configuration/signup_session/config.rb,
app/controllers/command_tower/auth/register_controller.rb,
app/serializers/command_tower/serializers/audit/events.rb,
app/services/command_tower/messaging/channel_detectors.rb,
app/services/command_tower/messaging/endpoints/replace.rb,
app/services/command_tower/messaging/inbox/bulk_result.rb,
app/services/command_tower/messaging/inbox/item_result.rb,
app/services/command_tower/messaging/inbox/list_result.rb,
app/services/command_tower/messaging/preferences/error.rb,
app/services/command_tower/messaging/preferences/store.rb,
app/services/command_tower/services/me/change_password.rb,
app/workflows/command_tower/workflows/me/error_mapping.rb,
app/workflows/command_tower/workflows/me/show_workflow.rb,
lib/command_tower/configuration/jwt/cookie/csrf/config.rb,
app/controllers/command_tower/me/preferences_controller.rb,
app/errors/command_tower/errors/auth/csrf_missing_error.rb,
app/jobs/command_tower/messaging/execution_recovery_job.rb,
app/services/command_tower/messaging/accept/coordinator.rb,
app/services/command_tower/messaging/execution/recovery.rb,
app/services/command_tower/messaging/notification_types.rb,
app/services/command_tower/messaging/preferences/update.rb,
app/services/command_tower/messaging/pushover/transport.rb,
app/services/command_tower/services/account/clear_phone.rb,
app/services/command_tower/services/application_service.rb,
app/services/command_tower/services/auth/tombstone_user.rb,
app/services/command_tower/services/me/sms_product_gate.rb,
lib/command_tower/authorization/effective_entity_grants.rb,
lib/command_tower/configuration/account_deletion/config.rb,
lib/command_tower/impersonation/clear_overlay_for_audit.rb,
app/controllers/command_tower/admin/workspace_controller.rb,
app/controllers/command_tower/me/audit_events_controller.rb,
app/errors/command_tower/errors/auth/csrf_mismatch_error.rb,
app/services/command_tower/clients/errors/upstream_error.rb,
app/services/command_tower/messaging/channels/definition.rb,
app/services/command_tower/messaging/endpoints/lifecycle.rb,
app/services/command_tower/messaging/endpoints/safe_view.rb,
app/services/command_tower/messaging/execution/scheduler.rb,
app/services/command_tower/messaging/preferences/catalog.rb,
app/services/command_tower/messaging/preferences/resolve.rb,
app/services/command_tower/messaging/recipient_readiness.rb,
app/services/command_tower/services/account/update_phone.rb,
app/services/command_tower/services/auth/identity_policy.rb,
app/services/command_tower/services/impersonation/create.rb,
app/services/command_tower/services/messaging/recipients.rb,
lib/command_tower/credential_resolution/smtp_credentials.rb,
lib/command_tower/password_recovery/authorization_helper.rb,
lib/command_tower/schema/error/email_validation_required.rb,
lib/command_tower/schema/error/invalid_argument_response.rb,
app/deserializers/command_tower/deserializers/admin/users.rb,
app/serializers/command_tower/serializers/messaging/inbox.rb,
app/services/command_tower/clients/errors/discovery_error.rb,
app/services/command_tower/messaging/endpoints/secret_box.rb,
app/services/command_tower/messaging/endpoints/validators.rb,
app/services/command_tower/services/account/pushover/show.rb,
app/services/command_tower/services/auth/plain_text/login.rb,
app/workflows/command_tower/workflows/audit/error_mapping.rb,
app/controllers/command_tower/admin/application_controller.rb,
app/controllers/command_tower/admin/users/roles_controller.rb,
app/deserializers/command_tower/deserializers/audit/events.rb,
app/errors/command_tower/errors/auth/account_deleted_error.rb,
app/models/command_tower/messaging/notification_preference.rb,
app/services/command_tower/messaging/delivery_retry_policy.rb,
app/services/command_tower/messaging/endpoints/persistence.rb,
app/services/command_tower/messaging/inbox/invariant_error.rb,
app/services/command_tower/messaging/inbox/not_found_error.rb,
app/services/command_tower/messaging/preferences/evaluator.rb,
app/services/command_tower/services/auth/authorize_request.rb,
app/workflows/command_tower/workflows/application_workflow.rb,
app/workflows/command_tower/workflows/auth/logout_workflow.rb,
lib/command_tower/configuration/signup_session/rate_limits.rb,
lib/command_tower/credential_resolution/twilio_credentials.rb,
app/controllers/command_tower/admin/audit/events_controller.rb,
app/deserializers/command_tower/deserializers/clients/types.rb,
app/errors/command_tower/errors/account/phone_missing_error.rb,
app/services/command_tower/clients/transport/faraday_config.rb,
app/services/command_tower/messaging/accept/invariant_error.rb,
app/services/command_tower/messaging/endpoints/channel_gate.rb,
app/services/command_tower/messaging/endpoints/mark_invalid.rb,
app/services/command_tower/messaging/endpoints/verification.rb,
app/services/command_tower/messaging/inbox/operation_logger.rb,
app/services/command_tower/messaging/inbox/validation_error.rb,
app/services/command_tower/messaging/rendering/render_error.rb,
app/services/command_tower/services/account/pushover/create.rb,
app/services/command_tower/services/account/pushover/verify.rb,
app/services/command_tower/services/auth/client_ip_resolver.rb,
app/services/command_tower/services/auth/email_availability.rb,
app/workflows/command_tower/workflows/profile/show_workflow.rb,
lib/command_tower/configuration/identity/phone_verification.rb,
app/deserializers/command_tower/deserializers/clients/errors.rb,
app/deserializers/command_tower/deserializers/clients/result.rb,
app/errors/command_tower/errors/continuation_exhausted_error.rb,
app/services/command_tower/clients/transport/faraday_adapter.rb,
app/services/command_tower/messaging/accept/operation_logger.rb,
app/services/command_tower/messaging/accept/validation_error.rb,
app/services/command_tower/messaging/contract/communications.rb,
app/services/command_tower/messaging/endpoints/fingerprinter.rb,
app/services/command_tower/messaging/endpoints/mark_verified.rb,
app/services/command_tower/messaging/endpoints/secret_reader.rb,
app/services/command_tower/messaging/preferences/store_error.rb,
app/services/command_tower/services/account/pushover/destroy.rb,
app/services/command_tower/services/account/pushover/replace.rb,
app/services/command_tower/services/admin/workspace/manifest.rb,
app/services/command_tower/services/auth/password_reset/send.rb,
app/services/command_tower/services/me/pushover_product_gate.rb,
app/workflows/command_tower/workflows/admin/scope_resolution.rb,
app/workflows/command_tower/workflows/auth/register_workflow.rb,
app/auth/command_tower/auth/password_recovery_session_context.rb,
app/controllers/command_tower/auth/identity_policy_controller.rb,
app/deserializers/command_tower/deserializers/clients/missing.rb,
app/deserializers/command_tower/deserializers/clients/payload.rb,
app/deserializers/command_tower/deserializers/coercion_result.rb,
app/deserializers/command_tower/deserializers/messaging/inbox.rb,
app/errors/command_tower/errors/auth/self_impersonation_error.rb,
app/services/command_tower/clients/errors/configuration_error.rb,
app/services/command_tower/messaging/accept/handoff_scheduler.rb,
app/services/command_tower/messaging/accept/persistence_error.rb,
app/services/command_tower/messaging/contract/internal/finder.rb,
app/services/command_tower/messaging/contract/invariant_error.rb,
app/services/command_tower/messaging/contract/not_found_error.rb,
app/services/command_tower/messaging/endpoints/conflict_error.rb,
app/services/command_tower/messaging/execution/adapter_result.rb,
app/services/command_tower/messaging/execution/attempt_ledger.rb,
app/services/command_tower/messaging/execution/select_adapter.rb,
app/services/command_tower/messaging/handoff/operation_logger.rb,
app/services/command_tower/messaging/notification_types/error.rb,
app/services/command_tower/messaging/planner/destination_plan.rb,
app/services/command_tower/messaging/planner/operation_logger.rb,
app/services/command_tower/services/auth/authenticate_session.rb,
app/services/command_tower/services/auth/password_reset/reset.rb,
app/workflows/command_tower/workflows/me/clear_phone_workflow.rb,
app/workflows/command_tower/workflows/me/update_name_workflow.rb,
app/workflows/command_tower/workflows/messaging/error_mapping.rb,
lib/command_tower/configuration/admin_scope/tool_registration.rb,
app/controllers/command_tower/auth/plain_text/login_controller.rb,
app/controllers/concerns/command_tower/execution/http_boundary.rb,
app/errors/command_tower/errors/auth/invalid_credentials_error.rb,
app/serializers/command_tower/serializers/auth/user_serializer.rb,
app/services/command_tower/clients/errors/authentication_error.rb,
app/services/command_tower/messaging/accept/request_normalizer.rb,
app/services/command_tower/messaging/accept/unknown_type_error.rb,
app/services/command_tower/messaging/contract/validation_error.rb,
app/services/command_tower/messaging/endpoints/not_found_error.rb,
app/services/command_tower/messaging/endpoints/pushover/verify.rb,
app/services/command_tower/messaging/endpoints/validators/push.rb,
app/services/command_tower/messaging/execution/adapter_request.rb,
app/services/command_tower/messaging/inbox/unread_count_result.rb,
app/services/command_tower/messaging/planner/message_overrides.rb,
app/services/command_tower/messaging/recipient_readiness/error.rb,
app/services/command_tower/services/auth/signup_session/create.rb,
app/services/command_tower/services/auth/signup_session/decode.rb,
app/services/command_tower/services/auth/signup_session/encode.rb,
app/services/command_tower/services/auth/username_availability.rb,
app/services/command_tower/services/messaging/preferences/show.rb,
app/workflows/command_tower/workflows/auth/signup_error_status.rb,
app/workflows/command_tower/workflows/me/update_phone_workflow.rb,
app/controllers/command_tower/admin/users/identities_controller.rb,
app/errors/command_tower/errors/auth/nested_impersonation_error.rb,
app/errors/command_tower/errors/auth/signup_ip_rate_limit_error.rb,
app/errors/command_tower/errors/messaging/accept_rejected_error.rb,
app/jobs/command_tower/messaging/channel_delivery_execution_job.rb,
app/models/command_tower/messaging/endpoint_pushover_credential.rb,
app/serializers/command_tower/serializers/me/account_serializer.rb,
app/services/command_tower/clients/errors/deserialization_error.rb,
app/services/command_tower/messaging/endpoints/validation_error.rb,
app/services/command_tower/messaging/execution/operation_logger.rb,
app/services/command_tower/messaging/planner/unknown_type_error.rb,
app/services/command_tower/messaging/preferences/catalog_result.rb,
app/services/command_tower/messaging/preferences/reason_classes.rb,
app/services/command_tower/messaging/rendering/channel_renderer.rb,
app/services/command_tower/messaging/rendering/rendered_payload.rb,
app/services/command_tower/services/account/pushover/ct_support.rb,
app/services/command_tower/services/audit/events/filter_options.rb,
app/workflows/command_tower/workflows/admin/users/error_mapping.rb,
app/workflows/command_tower/workflows/admin/users/list_workflow.rb,
app/workflows/command_tower/workflows/admin/users/show_workflow.rb,
app/workflows/command_tower/workflows/auth/session_error_status.rb,
app/workflows/command_tower/workflows/me/pushover/show_workflow.rb,
lib/command_tower/configuration/registry/admin_workspace/config.rb,
lib/command_tower/configuration/registry/audit/event_definition.rb,
app/controllers/command_tower/auth/email/availability_controller.rb,
app/serializers/command_tower/serializers/application_serializer.rb,
app/serializers/command_tower/serializers/me/pushover_serializer.rb,
app/services/command_tower/messaging/accept/excluded_destination.rb,
app/services/command_tower/messaging/notification_types/registry.rb,
app/services/command_tower/services/auth/email_verification/send.rb,
app/services/command_tower/services/auth/password_reset/validate.rb,
app/services/command_tower/services/auth/signup_session/validate.rb,
app/services/command_tower/services/messaging/preferences/update.rb,
app/workflows/command_tower/workflows/auth/identity_error_status.rb,
app/workflows/command_tower/workflows/auth/session/show_workflow.rb,
app/workflows/command_tower/workflows/me/delete_account_workflow.rb,
lib/command_tower/configuration/login/strategy/plain_text/config.rb,
lib/command_tower/configuration/password_recovery_session/config.rb,
app/controllers/command_tower/auth/password_reset/send_controller.rb,
app/errors/command_tower/errors/auth/signup_session_expired_error.rb,
app/errors/command_tower/errors/auth/signup_session_invalid_error.rb,
app/errors/command_tower/errors/auth/signup_session_missing_error.rb,
app/services/command_tower/messaging/endpoints/begin_verification.rb,
app/services/command_tower/messaging/endpoints/reset_verification.rb,
app/services/command_tower/messaging/planner/excluded_destination.rb,
app/services/command_tower/messaging/preferences/preference_state.rb,
app/services/command_tower/messaging/recipient_readiness/evaluate.rb,
app/services/command_tower/services/impersonation/record_activity.rb,
app/workflows/command_tower/workflows/impersonation/error_mapping.rb,
app/workflows/command_tower/workflows/impersonation/stop_workflow.rb,
app/workflows/command_tower/workflows/me/change_password_workflow.rb,
app/workflows/command_tower/workflows/me/pushover/create_workflow.rb,
app/workflows/command_tower/workflows/me/pushover/verify_workflow.rb,
lib/command_tower/configuration/signup_session/email_availability.rb,
lib/command_tower/credential_resolution/smtp_action_mailer_bridge.rb,
app/controllers/command_tower/auth/password_reset/reset_controller.rb,
app/controllers/command_tower/me/pushover/verifications_controller.rb,
app/controllers/concerns/command_tower/auth/authorization_boundary.rb,
app/services/command_tower/messaging/accept/illegal_override_error.rb,
app/services/command_tower/messaging/endpoints/validators/pushover.rb,
app/services/command_tower/messaging/handoff/advance_communication.rb,
app/services/command_tower/messaging/preferences/evaluation_result.rb,
app/services/command_tower/messaging/pushover/adapters/log_adapter.rb,
app/services/command_tower/services/auth/email_verification/verify.rb,
app/workflows/command_tower/workflows/impersonation/start_workflow.rb,
app/workflows/command_tower/workflows/me/pushover/destroy_workflow.rb,
app/workflows/command_tower/workflows/me/pushover/replace_workflow.rb,
app/workflows/command_tower/workflows/me/pushover/workflow_support.rb,
lib/command_tower/configuration/login/strategy/plain_text/lockable.rb,
app/controllers/command_tower/auth/impersonation_session_controller.rb,
app/controllers/command_tower/auth/signup_session/create_controller.rb,
app/controllers/command_tower/auth/username/availability_controller.rb,
app/controllers/concerns/command_tower/auth/authentication_boundary.rb,
app/controllers/concerns/command_tower/auth/signup_session_boundary.rb,
app/deserializers/command_tower/deserializers/admin/scope_parameter.rb,
app/errors/command_tower/errors/auth/email_already_registered_error.rb,
app/errors/command_tower/errors/auth/verification_send_failed_error.rb,
app/services/command_tower/messaging/accept/channel_delivery_result.rb,
app/services/command_tower/messaging/channels/unknown_channel_error.rb,
app/services/command_tower/messaging/execution/adapters/sms/adapter.rb,
app/services/command_tower/messaging/execution/revalidate_readiness.rb,
app/services/command_tower/messaging/inbox/invalid_bulk_items_error.rb,
app/services/command_tower/messaging/notification_types/declaration.rb,
app/services/command_tower/messaging/planner/illegal_override_error.rb,
app/services/command_tower/messaging/preferences/unknown_type_error.rb,
app/services/command_tower/messaging/pushover/adapters/fake_adapter.rb,
app/services/command_tower/messaging/pushover/adapters/http_adapter.rb,
app/services/command_tower/messaging/rendering/rendered_sms_payload.rb,
app/services/command_tower/services/account/phone_verification/send.rb,
app/services/command_tower/services/auth/purge_user_associated_data.rb,
app/workflows/command_tower/workflows/admin/users/identity_mutation.rb,
app/workflows/command_tower/workflows/auth/identity_policy_workflow.rb,
app/controllers/command_tower/auth/principal_capabilities_controller.rb,
app/errors/command_tower/errors/account/phone_already_verified_error.rb,
app/errors/command_tower/errors/auth/signup_session_rate_limit_error.rb,
app/errors/command_tower/errors/auth/verification_code_invalid_error.rb,
app/errors/command_tower/errors/messaging/idempotency_conflict_error.rb,
app/errors/command_tower/errors/messaging/recipient_unresolved_error.rb,
app/serializers/command_tower/serializers/profile/profile_serializer.rb,
app/services/command_tower/identity/phone_verification/sms_transport.rb,
app/services/command_tower/messaging/accept/invalid_preference_error.rb,
app/services/command_tower/messaging/execution/adapters/fake_adapter.rb,
app/services/command_tower/services/messaging/communications/produce.rb,
app/workflows/command_tower/workflows/auth/plain_text/login_workflow.rb,
app/controllers/command_tower/auth/email_verification/send_controller.rb,
app/controllers/command_tower/auth/password_reset/validate_controller.rb,
app/controllers/command_tower/me/phone_verification/verify_controller.rb,
app/errors/command_tower/errors/account/pushover_not_configured_error.rb,
app/errors/command_tower/errors/auth/password_reset_unavailable_error.rb,
app/jobs/command_tower/messaging/communications/produce_recipient_job.rb,
app/services/command_tower/messaging/contract/observability/publisher.rb,
app/services/command_tower/messaging/execution/adapters/email/adapter.rb,
app/services/command_tower/messaging/planner/invalid_evaluation_error.rb,
app/services/command_tower/messaging/recipient_readiness/reason_codes.rb,
app/services/command_tower/services/account/phone_verification/verify.rb,
app/workflows/command_tower/workflows/auth/authorize_request_workflow.rb,
lib/command_tower/configuration/password_recovery_session/rate_limits.rb,
app/controllers/command_tower/admin/messaging/announcements_controller.rb,
app/deserializers/command_tower/deserializers/application_deserializer.rb,
app/errors/command_tower/errors/account/phone_verification_stale_error.rb,
app/errors/command_tower/errors/auth/email_verification_required_error.rb,
app/services/command_tower/messaging/accept/idempotency_conflict_error.rb,
app/services/command_tower/messaging/endpoints/verification_transition.rb,
app/workflows/command_tower/workflows/admin/users/update_name_workflow.rb,
app/workflows/command_tower/workflows/auth/email_availability_workflow.rb,
lib/command_tower/configuration/login/strategy/plain_text/email_verify.rb,
lib/command_tower/configuration/registry/principal_capabilities/config.rb,
app/controllers/command_tower/auth/email_verification/verify_controller.rb,
app/controllers/concerns/command_tower/api/deserializer_failure_details.rb,
app/errors/command_tower/errors/auth/password_reset_invalid_token_error.rb,
app/services/command_tower/messaging/contract/mappers/inbox_item_mapper.rb,
app/services/command_tower/messaging/contract/observability/correlation.rb,
app/services/command_tower/messaging/contract/results/inbox_item_result.rb,
app/services/command_tower/messaging/endpoints/invalid_transition_error.rb,
app/services/command_tower/messaging/endpoints/mark_verification_failed.rb,
app/services/command_tower/messaging/execution/adapters/sms/log_adapter.rb,
app/services/command_tower/messaging/notification_types/not_found_error.rb,
app/services/command_tower/messaging/preferences/suppressed_destination.rb,
app/services/command_tower/messaging/pushover/adapters/disabled_adapter.rb,
app/services/command_tower/messaging/recipient_readiness/channel_result.rb,
app/services/command_tower/messaging/recipient_readiness/identity_facts.rb,
app/services/command_tower/services/auth/assign_default_membership_role.rb,
app/services/command_tower/services/auth/principal_capabilities/project.rb,
app/services/command_tower/services/auth/signup_rate_limits/enforcement.rb,
app/workflows/command_tower/workflows/admin/users/update_email_workflow.rb,
app/workflows/command_tower/workflows/admin/users/update_roles_workflow.rb,
app/workflows/command_tower/workflows/admin/workspace/manifest_workflow.rb,
app/workflows/command_tower/workflows/auth/password_reset/send_workflow.rb,
app/controllers/concerns/command_tower/api/application_response_renderer.rb,
app/deserializers/command_tower/deserializers/auth/register_deserializer.rb,
app/errors/command_tower/errors/account/phone_verification_expired_error.rb,
app/errors/command_tower/errors/account/sms_capability_unavailable_error.rb,
app/errors/command_tower/errors/auth/default_membership_assignment_error.rb,
app/errors/command_tower/errors/auth/impersonation_session_expired_error.rb,
app/errors/command_tower/errors/auth/impersonation_session_missing_error.rb,
app/serializers/command_tower/serializers/auth/login_response_serializer.rb,
app/services/command_tower/identity/phone_verification/sms_configuration.rb,
app/services/command_tower/messaging/endpoints/verification_failed_error.rb,
app/services/command_tower/messaging/execution/adapters/pushover/adapter.rb,
app/services/command_tower/messaging/execution/resolve_recipient_address.rb,
app/services/command_tower/messaging/notification_types/catalog_category.rb,
app/services/command_tower/messaging/preferences/catalog_category_result.rb,
app/services/command_tower/messaging/rendering/rendered_pushover_payload.rb,
app/workflows/command_tower/workflows/auth/authenticate_request_workflow.rb,
app/workflows/command_tower/workflows/auth/password_reset/reset_workflow.rb,
app/workflows/command_tower/workflows/messaging/handoff/process_workflow.rb,
lib/command_tower/configuration/login/strategy/plain_text/password_reset.rb,
lib/command_tower/configuration/registry/admin_workspace/tool_definition.rb,
app/deserializers/command_tower/deserializers/me/update_name_deserializer.rb,
app/errors/command_tower/errors/account/pushover_already_configured_error.rb,
app/serializers/command_tower/serializers/application/envelope_serializer.rb,
app/serializers/command_tower/serializers/auth/identity_policy_serializer.rb,
app/serializers/command_tower/serializers/auth/logout_response_serializer.rb,
app/serializers/command_tower/serializers/intervention/blocker_serializer.rb,
app/services/command_tower/messaging/contract/requests/find_communication.rb,
app/services/command_tower/messaging/execution/adapters/sms/configuration.rb,
app/services/command_tower/messaging/execution/readiness_terminal_mapping.rb,
app/services/command_tower/messaging/recipient_readiness/recipient_result.rb,
app/services/command_tower/services/auth/password_recovery_session/create.rb,
app/services/command_tower/services/auth/password_recovery_session/decode.rb,
app/services/command_tower/services/auth/password_recovery_session/encode.rb,
app/services/command_tower/services/impersonation/terminate_open_sessions.rb,
app/services/command_tower/services/messaging/communications/produce_many.rb,
app/workflows/command_tower/workflows/audit/events/list_for_user_workflow.rb,
app/workflows/command_tower/workflows/audit/events/show_for_user_workflow.rb,
app/workflows/command_tower/workflows/auth/signup_session/create_workflow.rb,
app/workflows/command_tower/workflows/auth/username_availability_workflow.rb,
app/workflows/command_tower/workflows/me/phone_verification/send_workflow.rb,
app/workflows/command_tower/workflows/messaging/preferences/show_workflow.rb,
app/deserializers/command_tower/deserializers/me/update_phone_deserializer.rb,
app/errors/command_tower/errors/account/phone_verification_throttled_error.rb,
app/errors/command_tower/errors/account/pushover_verification_failed_error.rb,
app/errors/command_tower/errors/auth/password_recovery_ip_rate_limit_error.rb,
app/serializers/command_tower/serializers/auth/session_response_serializer.rb,
app/serializers/command_tower/serializers/impersonation/session_serializer.rb,
app/serializers/command_tower/serializers/intervention/envelope_serializer.rb,
app/services/command_tower/messaging/contract/mappers/communication_mapper.rb,
app/services/command_tower/messaging/contract/results/communication_result.rb,
app/services/command_tower/services/auth/password_reset/token_verification.rb,
app/services/command_tower/services/auth/signup_rate_limits/check_register.rb,
app/workflows/command_tower/workflows/admin/users/update_username_workflow.rb,
app/workflows/command_tower/workflows/audit/events/list_for_admin_workflow.rb,
app/workflows/command_tower/workflows/audit/events/show_for_admin_workflow.rb,
app/workflows/command_tower/workflows/auth/authentication_response_effects.rb,
app/workflows/command_tower/workflows/messaging/execution/deliver_workflow.rb,
app/controllers/command_tower/admin/users/impersonation_sessions_controller.rb,
app/errors/command_tower/errors/account/pushover_provider_unavailable_error.rb,
app/serializers/command_tower/serializers/auth/register_response_serializer.rb,
app/services/command_tower/messaging/accept/impossible_mandatory_plan_error.rb,
app/services/command_tower/messaging/execution/adapters/email/configuration.rb,
app/services/command_tower/messaging/preferences/not_settings_visible_error.rb,
app/services/command_tower/services/auth/password_recovery_session/validate.rb,
app/workflows/command_tower/workflows/auth/email_verification/send_workflow.rb,
app/workflows/command_tower/workflows/auth/password_reset/validate_workflow.rb,
app/workflows/command_tower/workflows/me/phone_verification/verify_workflow.rb,
app/workflows/command_tower/workflows/messaging/preferences/update_workflow.rb,
app/controllers/command_tower/me/phone_verification/verifications_controller.rb,
app/deserializers/command_tower/deserializers/me/delete_account_deserializer.rb,
app/errors/command_tower/errors/account/phone_verification_send_failed_error.rb,
app/errors/command_tower/errors/auth/password_recovery_session_expired_error.rb,
app/errors/command_tower/errors/auth/password_recovery_session_invalid_error.rb,
app/errors/command_tower/errors/auth/password_recovery_session_missing_error.rb,
app/serializers/command_tower/serializers/application/error_entry_serializer.rb,
app/serializers/command_tower/serializers/auth/email_availability_serializer.rb,
app/services/command_tower/messaging/contract/observability/operation_logger.rb,
app/services/command_tower/messaging/execution/adapters/unconfigured_adapter.rb,
app/services/command_tower/messaging/notification_types/duplicate_type_error.rb,
app/services/command_tower/messaging/planner/impossible_mandatory_plan_error.rb,
app/services/command_tower/messaging/preferences/catalog_notification_result.rb,
app/deserializers/command_tower/deserializers/me/change_password_deserializer.rb,
app/errors/command_tower/errors/account/phone_verification_code_invalid_error.rb,
app/errors/command_tower/errors/account/pushover_capability_unavailable_error.rb,
app/serializers/command_tower/serializers/admin/workspace/manifest_serializer.rb,
app/serializers/command_tower/serializers/intervention/remediation_serializer.rb,
app/services/command_tower/messaging/contract/mappers/channel_delivery_mapper.rb,
app/services/command_tower/messaging/contract/mappers/delivery_attempt_mapper.rb,
app/services/command_tower/messaging/contract/mappers/destination_plan_mapper.rb,
app/services/command_tower/messaging/contract/results/channel_delivery_result.rb,
app/services/command_tower/messaging/contract/results/delivery_attempt_result.rb,
app/services/command_tower/messaging/contract/results/destination_plan_result.rb,
app/services/command_tower/messaging/execution/invalid_adapter_contract_error.rb,
app/services/command_tower/messaging/notification_types/declaration_validator.rb,
app/services/command_tower/messaging/notification_types/sealed_registry_error.rb,
app/services/command_tower/services/auth/signup_rate_limits/check_token_issue.rb,
app/workflows/command_tower/workflows/auth/email_verification/verify_workflow.rb,
app/controllers/command_tower/auth/password_recovery_session/create_controller.rb,
app/controllers/concerns/command_tower/auth/password_recovery_session_boundary.rb,
app/services/command_tower/messaging/execution/adapters/pushover/configuration.rb,
app/services/command_tower/messaging/execution/adapters/sms/twilio_http_client.rb,
app/services/command_tower/messaging/recipient_readiness/unknown_channel_error.rb,
app/services/command_tower/services/auth/signup_rate_limits/check_availability.rb,
app/workflows/command_tower/workflows/admin/users/set_email_validated_workflow.rb,
app/errors/command_tower/errors/auth/password_recovery_session_rate_limit_error.rb,
app/serializers/command_tower/serializers/auth/username_availability_serializer.rb,
app/serializers/command_tower/serializers/me/delete_account_response_serializer.rb,
app/services/command_tower/messaging/preferences/invalid_preference_state_error.rb,
app/services/command_tower/messaging/preferences/invalid_preference_write_error.rb,
app/workflows/command_tower/workflows/auth/principal_capabilities/show_workflow.rb,
app/workflows/command_tower/workflows/auth/signup_session/authenticate_workflow.rb,
app/deserializers/command_tower/deserializers/auth/plain_text/login_deserializer.rb,
app/deserializers/command_tower/deserializers/intervention/envelope_deserializer.rb,
app/serializers/command_tower/serializers/audit/events/filter_options_serializer.rb,
app/serializers/command_tower/serializers/auth/principal_capabilities_serializer.rb,
app/serializers/command_tower/serializers/me/change_password_response_serializer.rb,
app/workflows/command_tower/workflows/admin/users/list_assignable_roles_workflow.rb,
app/errors/command_tower/errors/auth/admin_unavailable_during_impersonation_error.rb,
app/serializers/command_tower/serializers/auth/signup_session_response_serializer.rb,
app/services/command_tower/messaging/notification_types/invalid_declaration_error.rb,
app/services/command_tower/services/auth/password_recovery/rate_limits/check_send.rb,
app/deserializers/command_tower/deserializers/auth/email_availability_deserializer.rb,
app/deserializers/command_tower/deserializers/me/pushover/credentials_deserializer.rb,
app/serializers/command_tower/serializers/messaging/preferences/catalog_serializer.rb,
app/services/command_tower/messaging/recipient_readiness/recipient_not_found_error.rb,
app/services/command_tower/services/auth/password_recovery/rate_limits/enforcement.rb,
app/workflows/command_tower/workflows/admin/messaging/create_announcement_workflow.rb,
app/deserializers/command_tower/deserializers/auth/password_reset/send_deserializer.rb,
app/serializers/command_tower/serializers/messaging/preferences/category_serializer.rb,
app/services/command_tower/services/messaging/preferences/platform_enabled_channels.rb,
app/shared_sequences/command_tower/shared_sequences/admin/users/resolve_scoped_user.rb,
app/workflows/command_tower/workflows/audit/events/filter_options_for_user_workflow.rb,
app/deserializers/command_tower/deserializers/auth/password_reset/reset_deserializer.rb,
app/workflows/command_tower/workflows/audit/events/filter_options_for_admin_workflow.rb,
app/workflows/command_tower/workflows/auth/password_recovery_session/create_workflow.rb,
app/controllers/concerns/command_tower/auth/invalid_credentials_deserializer_renderer.rb,
app/deserializers/command_tower/deserializers/auth/username_availability_deserializer.rb,
app/deserializers/command_tower/deserializers/messaging/preferences/show_deserializer.rb,
lib/command_tower/configuration/registry/principal_capabilities/capability_definition.rb,
app/deserializers/command_tower/deserializers/auth/password_reset/validate_deserializer.rb,
app/deserializers/command_tower/deserializers/me/phone_verification/verify_deserializer.rb,
app/deserializers/command_tower/deserializers/messaging/preferences/update_deserializer.rb,
app/serializers/command_tower/serializers/messaging/preferences/notification_serializer.rb,
app/services/command_tower/services/auth/password_recovery/rate_limits/check_token_issue.rb,
app/deserializers/command_tower/deserializers/auth/email_verification/verify_deserializer.rb,
app/serializers/command_tower/serializers/auth/password_reset/message_response_serializer.rb,
app/services/command_tower/identity/phone_verification/sms_transport/adapters/log_adapter.rb,
app/workflows/command_tower/workflows/messaging/communications/produce_recipient_workflow.rb,
app/serializers/command_tower/serializers/admin/messaging/announcement_response_serializer.rb,
app/serializers/command_tower/serializers/auth/password_reset/validate_response_serializer.rb,
app/services/command_tower/identity/phone_verification/sms_transport/adapters/fake_adapter.rb,
app/workflows/command_tower/workflows/auth/password_recovery_session/authenticate_workflow.rb,
app/serializers/command_tower/serializers/auth/password_recovery_session_response_serializer.rb,
app/services/command_tower/identity/phone_verification/sms_transport/adapters/twilio_adapter.rb,
app/serializers/command_tower/serializers/auth/email_verification/message_response_serializer.rb,
app/deserializers/command_tower/deserializers/admin/messaging/create_announcement_deserializer.rb
Defined Under Namespace
Modules: Admin, AdminScope, AdminWorkspace, Api, ApplicationHelper, ArgumentValidation, Audit, Auth, Authorization, Authorize, Clients, Configuration, CredentialResolution, Deserializers, Errors, Events, Execution, Identity, Impersonation, Install, Jwt, Logging, Me, Messaging, PasswordRecovery, PrincipalCapabilities, RedisConnection, Schema, Secrets, Serializers, ServiceLogging, Services, SharedSequences, Signup, SpecHelper, Testing, Transactional, UserAttributes, Username, Workflows
Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, ConfigureGenerator, Current, EmailVerificationMailer, Engine, Error, MeController, PasswordResetMailer, ProfileController, ServiceBase
Constant Summary
collapse
- VERSION =
"0.13.0"
Class Method Summary
collapse
Class Method Details
.app_name ⇒ Object
54
55
56
|
# File 'lib/command_tower.rb', line 54
def self.app_name
Proc === config.app.app_name ? config.app.app_name.() : config.app.app_name
end
|
.app_name_for_comms ⇒ Object
58
59
60
|
# File 'lib/command_tower.rb', line 58
def self.app_name_for_comms
Proc === config.app.communication_name ? config.app.communication_name.() : config.app.communication_name
end
|
.config ⇒ Object
29
30
31
|
# File 'lib/command_tower.rb', line 29
def self.config
@config ||= Configuration::Config.new
end
|
.config=(configuration) ⇒ Object
38
39
40
41
42
|
# File 'lib/command_tower.rb', line 38
def self.config=(configuration)
raise ArgumentError, "Expected Configuration::Config. Given #{configuration.class}" unless Configuration::Config === configuration
@config = configuration
end
|
.credential_resolver ⇒ Object
Optional custom credential resolver (#resolve(provider) → typed credentials).
Precedence: config.credentials.* → credential_resolver → ENV.
46
47
48
|
# File 'lib/command_tower.rb', line 46
def self.credential_resolver
@credential_resolver
end
|
.credential_resolver=(resolver) ⇒ Object
50
51
52
|
# File 'lib/command_tower.rb', line 50
def self.credential_resolver=(resolver)
@credential_resolver = resolver
end
|
.default_app_name ⇒ Object
62
63
64
|
# File 'lib/command_tower.rb', line 62
def self.default_app_name
::Rails.application.class.module_parent_name
end
|
.execution_wrapper_idle? ⇒ Boolean
106
107
108
109
110
|
# File 'lib/command_tower/execution.rb', line 106
def self.execution_wrapper_idle?
return true unless defined?(Rails) && Rails.respond_to?(:application) && Rails.application
!Rails.application.executor.active?
end
|
.with_execution(source:, **attrs, &block) ⇒ Object
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# File 'lib/command_tower/execution.rb', line 70
def self.with_execution(source:, **attrs, &block)
raise ArgumentError, "block required" unless block
source = source.to_sym
unless Execution::SOURCES.include?(source)
raise ArgumentError, "invalid execution source #{source.inspect} (allowed: #{Execution::SOURCES.join(", ")})"
end
return yield if Current.execution_uuid.present?
execution_uuid = attrs[:execution_uuid].presence || SecureRandom.uuid
assigned = {
execution_uuid:,
correlation_id: attrs[:correlation_id].presence || execution_uuid,
source:,
request_id: attrs[:request_id],
causation_id: attrs[:causation_id],
user_id: attrs[:user_id],
originating_administrator_id: attrs[:originating_administrator_id],
effective_user_id: attrs[:effective_user_id],
impersonation_active: attrs.key?(:impersonation_active) ? attrs[:impersonation_active] : false,
impersonation_session_id: attrs[:impersonation_session_id],
impersonation_activity_recorded: attrs.key?(:impersonation_activity_recorded) ? attrs[:impersonation_activity_recorded] : false,
remote_ip: attrs[:remote_ip],
user_agent: attrs[:user_agent]
}
run = -> { Current.set(assigned, &block) }
if execution_wrapper_idle?
Rails.application.executor.wrap { run.call }
else
run.call
end
end
|