Module: CommandTower::Messaging

Defined in:
app/services/command_tower/messaging.rb,
app/services/command_tower/messaging/inbox.rb,
app/models/command_tower/messaging/endpoint.rb,
app/jobs/command_tower/messaging/handoff_job.rb,
app/services/command_tower/messaging/planner.rb,
app/models/command_tower/messaging/inbox_item.rb,
app/services/command_tower/messaging/channels.rb,
app/services/command_tower/messaging/endpoints.rb,
app/models/command_tower/messaging/communication.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/messaging/accept/error.rb,
app/services/command_tower/messaging/inbox/reader.rb,
app/mailers/command_tower/messaging/channel_mailer.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/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/messaging/channels/error.rb,
app/services/command_tower/messaging/contract/error.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,
app/jobs/command_tower/messaging/handoff_recovery_job.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/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/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/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/messaging/endpoints/secret_box.rb,
app/services/command_tower/messaging/endpoints/validators.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/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/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/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/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/jobs/command_tower/messaging/channel_delivery_execution_job.rb,
app/models/command_tower/messaging/endpoint_pushover_credential.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/messaging/accept/excluded_destination.rb,
app/services/command_tower/messaging/notification_types/registry.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/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/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/messaging/accept/invalid_preference_error.rb,
app/services/command_tower/messaging/execution/adapters/fake_adapter.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/messaging/accept/idempotency_conflict_error.rb,
app/services/command_tower/messaging/endpoints/verification_transition.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/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/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/messaging/contract/mappers/communication_mapper.rb,
app/services/command_tower/messaging/contract/results/communication_result.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/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/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/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/messaging/preferences/invalid_preference_state_error.rb,
app/services/command_tower/messaging/preferences/invalid_preference_write_error.rb,
app/services/command_tower/messaging/notification_types/invalid_declaration_error.rb,
app/services/command_tower/messaging/recipient_readiness/recipient_not_found_error.rb

Defined Under Namespace

Modules: Accept, ChannelDetectors, Channels, Communications, Contract, Endpoints, Execution, Handoff, Inbox, NotificationTypes, Planner, Preferences, Pushover, RecipientReadiness, Rendering Classes: ChannelDelivery, ChannelDeliveryExecutionJob, ChannelMailer, Communication, DeliveryAttempt, DeliveryRetryPolicy, DestinationPlan, Endpoint, EndpointPushoverCredential, ExecutionRecoveryJob, HandoffJob, HandoffRecoveryJob, InboxItem, NotificationPreference

Class Method Summary collapse

Class Method Details

.accept(recipient_id:, notification_type_key:, host_event_identity:, title:, body:, metadata: nil, preference_state: nil, platform_enabled_channels:, message_overrides: nil) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'app/services/command_tower/messaging.rb', line 7

def accept(
  recipient_id:,
  notification_type_key:,
  host_event_identity:,
  title:,
  body:,
  metadata: nil,
  preference_state: nil,
  platform_enabled_channels:,
  message_overrides: nil
)
  Accept::Coordinator.call(
    recipient_id:,
    notification_type_key:,
    host_event_identity:,
    title:,
    body:,
    metadata:,
    preference_state:,
    platform_enabled_channels:,
    message_overrides:,
  )
end

.inboxObject



31
32
33
# File 'app/services/command_tower/messaging.rb', line 31

def inbox
  Inbox
end