command_tower 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/command_tower/admin/home_notices_controller.rb +39 -0
  3. data/app/controllers/command_tower/me/home_notices_controller.rb +79 -0
  4. data/app/deserializers/command_tower/deserializers/admin/home_notices/control_deserializer.rb +40 -0
  5. data/app/deserializers/command_tower/deserializers/home_notices/notice_id_deserializer.rb +42 -0
  6. data/app/errors/command_tower/errors/home_notices/linked_message_unavailable_error.rb +23 -0
  7. data/app/errors/command_tower/errors/home_notices/rate_limit_error.rb +25 -0
  8. data/app/errors/command_tower/errors/home_notices/unavailable_error.rb +22 -0
  9. data/app/jobs/command_tower/home_notices/prune_ended_job.rb +14 -0
  10. data/app/models/command_tower/home_notice.rb +41 -0
  11. data/app/models/command_tower/home_notice_control.rb +12 -0
  12. data/app/serializers/command_tower/serializers/home_notices/control_serializer.rb +14 -0
  13. data/app/serializers/command_tower/serializers/home_notices/dismissal_serializer.rb +19 -0
  14. data/app/serializers/command_tower/serializers/home_notices/mutation_serializer.rb +16 -0
  15. data/app/serializers/command_tower/serializers/home_notices/notice_serializer.rb +35 -0
  16. data/app/serializers/command_tower/serializers/home_notices/selection_serializer.rb +21 -0
  17. data/app/services/command_tower/home_notices/campaign.rb +28 -0
  18. data/app/services/command_tower/home_notices/campaigns/update_app.rb +77 -0
  19. data/app/services/command_tower/home_notices/catalog/validator.rb +92 -0
  20. data/app/services/command_tower/home_notices/catalog.rb +92 -0
  21. data/app/services/command_tower/home_notices/context.rb +10 -0
  22. data/app/services/command_tower/home_notices/delivery.rb +43 -0
  23. data/app/services/command_tower/home_notices/notice.rb +88 -0
  24. data/app/services/command_tower/home_notices/notice_record.rb +28 -0
  25. data/app/services/command_tower/messaging/contract/inbox.rb +29 -0
  26. data/app/services/command_tower/messaging/contract/requests/document_for_communication.rb +24 -0
  27. data/app/services/command_tower/messaging/contract/results/inbox_document.rb +17 -0
  28. data/app/services/command_tower/services/auth/purge_user_associated_data.rb +6 -0
  29. data/app/services/command_tower/services/home_notices/acknowledge.rb +149 -0
  30. data/app/services/command_tower/services/home_notices/check_mutation_eligibility.rb +84 -0
  31. data/app/services/command_tower/services/home_notices/check_rate_limit.rb +52 -0
  32. data/app/services/command_tower/services/home_notices/compose.rb +113 -0
  33. data/app/services/command_tower/services/home_notices/deliver.rb +111 -0
  34. data/app/services/command_tower/services/home_notices/dismiss.rb +147 -0
  35. data/app/services/command_tower/services/home_notices/load_candidates.rb +85 -0
  36. data/app/services/command_tower/services/home_notices/pick_notices.rb +139 -0
  37. data/app/services/command_tower/services/home_notices/prune_ended.rb +93 -0
  38. data/app/services/command_tower/services/home_notices/read_controls.rb +31 -0
  39. data/app/services/command_tower/services/home_notices/record_impression.rb +154 -0
  40. data/app/services/command_tower/services/home_notices/resolve_notice.rb +69 -0
  41. data/app/services/command_tower/services/home_notices/select.rb +136 -0
  42. data/app/services/command_tower/services/home_notices/update_control.rb +56 -0
  43. data/app/workflows/command_tower/workflows/admin/home_notices/update_control_workflow.rb +64 -0
  44. data/app/workflows/command_tower/workflows/home_notices/acknowledge_workflow.rb +140 -0
  45. data/app/workflows/command_tower/workflows/home_notices/dismiss_workflow.rb +107 -0
  46. data/app/workflows/command_tower/workflows/home_notices/prune_ended_workflow.rb +25 -0
  47. data/app/workflows/command_tower/workflows/home_notices/record_impression_workflow.rb +92 -0
  48. data/app/workflows/command_tower/workflows/home_notices/show_workflow.rb +44 -0
  49. data/config/routes.rb +9 -0
  50. data/db/migrate/20261124200001_create_command_tower_home_notices.rb +43 -0
  51. data/db/migrate/20261124200002_create_command_tower_home_notice_controls.rb +12 -0
  52. data/docs/api_reference.md +108 -1
  53. data/docs/audit.md +12 -0
  54. data/docs/bootstrap/08-initializer.md +15 -0
  55. data/docs/bootstrap/09-rbac.md +6 -0
  56. data/docs/bootstrap/13-optional.md +12 -0
  57. data/docs/extending.md +2 -0
  58. data/docs/home_notices.md +236 -0
  59. data/docs/messaging_integration_guide.md +4 -0
  60. data/docs/models.md +4 -0
  61. data/docs/principal_capabilities.md +1 -0
  62. data/docs/ui.md +13 -0
  63. data/docs/upgrades/0.24.0.md +50 -0
  64. data/lib/command_tower/authorization/default.yml +10 -0
  65. data/lib/command_tower/configuration/config.rb +6 -0
  66. data/lib/command_tower/configuration/home_notices/config.rb +67 -0
  67. data/lib/command_tower/configuration/registry/audit/config.rb +61 -0
  68. data/lib/command_tower/configuration/registry/principal_capabilities/config.rb +1 -1
  69. data/lib/command_tower/engine.rb +1 -0
  70. data/lib/command_tower/install/baseline.rb +2 -0
  71. data/lib/command_tower/ui/document.rb +26 -5
  72. data/lib/command_tower/version.rb +1 -1
  73. data/lib/tasks/home_notices.rake +11 -0
  74. metadata +53 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command_tower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - matt-taylor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-24 00:00:00.000000000 Z
11
+ date: 2026-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phonelib
@@ -214,6 +214,7 @@ files:
214
214
  - app/auth/command_tower/auth/signup_session_context.rb
215
215
  - app/controllers/command_tower/admin/application_controller.rb
216
216
  - app/controllers/command_tower/admin/audit/events_controller.rb
217
+ - app/controllers/command_tower/admin/home_notices_controller.rb
217
218
  - app/controllers/command_tower/admin/messaging/announcements_controller.rb
218
219
  - app/controllers/command_tower/admin/messaging/gallery_controller.rb
219
220
  - app/controllers/command_tower/admin/messaging/gallery_test_sends_controller.rb
@@ -242,6 +243,7 @@ files:
242
243
  - app/controllers/command_tower/me/account_controller.rb
243
244
  - app/controllers/command_tower/me/audit_events_controller.rb
244
245
  - app/controllers/command_tower/me/experience_states_controller.rb
246
+ - app/controllers/command_tower/me/home_notices_controller.rb
245
247
  - app/controllers/command_tower/me/inbox_controller.rb
246
248
  - app/controllers/command_tower/me/name_controller.rb
247
249
  - app/controllers/command_tower/me/password_controller.rb
@@ -264,6 +266,7 @@ files:
264
266
  - app/controllers/concerns/command_tower/auth/signup_session_boundary.rb
265
267
  - app/controllers/concerns/command_tower/execution/client_compatibility_boundary.rb
266
268
  - app/controllers/concerns/command_tower/execution/http_boundary.rb
269
+ - app/deserializers/command_tower/deserializers/admin/home_notices/control_deserializer.rb
267
270
  - app/deserializers/command_tower/deserializers/admin/messaging/create_announcement_deserializer.rb
268
271
  - app/deserializers/command_tower/deserializers/admin/scope_parameter.rb
269
272
  - app/deserializers/command_tower/deserializers/admin/users.rb
@@ -284,6 +287,7 @@ files:
284
287
  - app/deserializers/command_tower/deserializers/clients/types.rb
285
288
  - app/deserializers/command_tower/deserializers/coercion_result.rb
286
289
  - app/deserializers/command_tower/deserializers/failure.rb
290
+ - app/deserializers/command_tower/deserializers/home_notices/notice_id_deserializer.rb
287
291
  - app/deserializers/command_tower/deserializers/intervention/envelope_deserializer.rb
288
292
  - app/deserializers/command_tower/deserializers/me/change_password_deserializer.rb
289
293
  - app/deserializers/command_tower/deserializers/me/delete_account_deserializer.rb
@@ -345,6 +349,9 @@ files:
345
349
  - app/errors/command_tower/errors/client_update_required_error.rb
346
350
  - app/errors/command_tower/errors/continuation_exhausted_error.rb
347
351
  - app/errors/command_tower/errors/forbidden_error.rb
352
+ - app/errors/command_tower/errors/home_notices/linked_message_unavailable_error.rb
353
+ - app/errors/command_tower/errors/home_notices/rate_limit_error.rb
354
+ - app/errors/command_tower/errors/home_notices/unavailable_error.rb
348
355
  - app/errors/command_tower/errors/internal_error.rb
349
356
  - app/errors/command_tower/errors/messaging/accept_rejected_error.rb
350
357
  - app/errors/command_tower/errors/messaging/announcement_type_not_supported_error.rb
@@ -360,6 +367,7 @@ files:
360
367
  - app/helpers/command_tower/application_helper.rb
361
368
  - app/jobs/command_tower/application_job.rb
362
369
  - app/jobs/command_tower/execution/job_boundary.rb
370
+ - app/jobs/command_tower/home_notices/prune_ended_job.rb
363
371
  - app/jobs/command_tower/messaging/channel_delivery_execution_job.rb
364
372
  - app/jobs/command_tower/messaging/communications/produce_recipient_job.rb
365
373
  - app/jobs/command_tower/messaging/execution_recovery_job.rb
@@ -371,6 +379,8 @@ files:
371
379
  - app/mailers/command_tower/password_reset_mailer.rb
372
380
  - app/models/command_tower/application_record.rb
373
381
  - app/models/command_tower/audit/event.rb
382
+ - app/models/command_tower/home_notice.rb
383
+ - app/models/command_tower/home_notice_control.rb
374
384
  - app/models/command_tower/impersonation/session.rb
375
385
  - app/models/command_tower/messaging/channel_delivery.rb
376
386
  - app/models/command_tower/messaging/communication.rb
@@ -406,6 +416,11 @@ files:
406
416
  - app/serializers/command_tower/serializers/auth/signup_session_response_serializer.rb
407
417
  - app/serializers/command_tower/serializers/auth/user_serializer.rb
408
418
  - app/serializers/command_tower/serializers/auth/username_availability_serializer.rb
419
+ - app/serializers/command_tower/serializers/home_notices/control_serializer.rb
420
+ - app/serializers/command_tower/serializers/home_notices/dismissal_serializer.rb
421
+ - app/serializers/command_tower/serializers/home_notices/mutation_serializer.rb
422
+ - app/serializers/command_tower/serializers/home_notices/notice_serializer.rb
423
+ - app/serializers/command_tower/serializers/home_notices/selection_serializer.rb
409
424
  - app/serializers/command_tower/serializers/impersonation/session_serializer.rb
410
425
  - app/serializers/command_tower/serializers/intervention/blocker_serializer.rb
411
426
  - app/serializers/command_tower/serializers/intervention/envelope_serializer.rb
@@ -450,6 +465,14 @@ files:
450
465
  - app/services/command_tower/clients/transport/response.rb
451
466
  - app/services/command_tower/clients/url.rb
452
467
  - app/services/command_tower/email_theme/resolver.rb
468
+ - app/services/command_tower/home_notices/campaign.rb
469
+ - app/services/command_tower/home_notices/campaigns/update_app.rb
470
+ - app/services/command_tower/home_notices/catalog.rb
471
+ - app/services/command_tower/home_notices/catalog/validator.rb
472
+ - app/services/command_tower/home_notices/context.rb
473
+ - app/services/command_tower/home_notices/delivery.rb
474
+ - app/services/command_tower/home_notices/notice.rb
475
+ - app/services/command_tower/home_notices/notice_record.rb
453
476
  - app/services/command_tower/identity/phone/normalizer.rb
454
477
  - app/services/command_tower/identity/phone_verification/sms_configuration.rb
455
478
  - app/services/command_tower/identity/phone_verification/sms_transport.rb
@@ -501,6 +524,7 @@ files:
501
524
  - app/services/command_tower/messaging/contract/observability/correlation.rb
502
525
  - app/services/command_tower/messaging/contract/observability/operation_logger.rb
503
526
  - app/services/command_tower/messaging/contract/observability/publisher.rb
527
+ - app/services/command_tower/messaging/contract/requests/document_for_communication.rb
504
528
  - app/services/command_tower/messaging/contract/requests/find_communication.rb
505
529
  - app/services/command_tower/messaging/contract/requests/mark_viewed_for_communication.rb
506
530
  - app/services/command_tower/messaging/contract/requests/viewed_for_communication.rb
@@ -508,6 +532,7 @@ files:
508
532
  - app/services/command_tower/messaging/contract/results/communication_result.rb
509
533
  - app/services/command_tower/messaging/contract/results/delivery_attempt_result.rb
510
534
  - app/services/command_tower/messaging/contract/results/destination_plan_result.rb
535
+ - app/services/command_tower/messaging/contract/results/inbox_document.rb
511
536
  - app/services/command_tower/messaging/contract/results/inbox_item_result.rb
512
537
  - app/services/command_tower/messaging/contract/results/inbox_view_mark.rb
513
538
  - app/services/command_tower/messaging/contract/validation_error.rb
@@ -738,6 +763,20 @@ files:
738
763
  - app/services/command_tower/services/auth/tombstone_user.rb
739
764
  - app/services/command_tower/services/auth/username_availability.rb
740
765
  - app/services/command_tower/services/client_compatibility/evaluate.rb
766
+ - app/services/command_tower/services/home_notices/acknowledge.rb
767
+ - app/services/command_tower/services/home_notices/check_mutation_eligibility.rb
768
+ - app/services/command_tower/services/home_notices/check_rate_limit.rb
769
+ - app/services/command_tower/services/home_notices/compose.rb
770
+ - app/services/command_tower/services/home_notices/deliver.rb
771
+ - app/services/command_tower/services/home_notices/dismiss.rb
772
+ - app/services/command_tower/services/home_notices/load_candidates.rb
773
+ - app/services/command_tower/services/home_notices/pick_notices.rb
774
+ - app/services/command_tower/services/home_notices/prune_ended.rb
775
+ - app/services/command_tower/services/home_notices/read_controls.rb
776
+ - app/services/command_tower/services/home_notices/record_impression.rb
777
+ - app/services/command_tower/services/home_notices/resolve_notice.rb
778
+ - app/services/command_tower/services/home_notices/select.rb
779
+ - app/services/command_tower/services/home_notices/update_control.rb
741
780
  - app/services/command_tower/services/impersonation/create.rb
742
781
  - app/services/command_tower/services/impersonation/end.rb
743
782
  - app/services/command_tower/services/impersonation/record_activity.rb
@@ -787,6 +826,7 @@ files:
787
826
  - app/views/layouts/mailer.html.erb
788
827
  - app/views/layouts/mailer.text.erb
789
828
  - app/workflows/command_tower/transactional.rb
829
+ - app/workflows/command_tower/workflows/admin/home_notices/update_control_workflow.rb
790
830
  - app/workflows/command_tower/workflows/admin/messaging/create_announcement_workflow.rb
791
831
  - app/workflows/command_tower/workflows/admin/messaging/gallery/index_workflow.rb
792
832
  - app/workflows/command_tower/workflows/admin/messaging/gallery/show_workflow.rb
@@ -836,6 +876,11 @@ files:
836
876
  - app/workflows/command_tower/workflows/auth/username_availability_workflow.rb
837
877
  - app/workflows/command_tower/workflows/client_compatibility/evaluate_workflow.rb
838
878
  - app/workflows/command_tower/workflows/client_compatibility/recommendation_meta.rb
879
+ - app/workflows/command_tower/workflows/home_notices/acknowledge_workflow.rb
880
+ - app/workflows/command_tower/workflows/home_notices/dismiss_workflow.rb
881
+ - app/workflows/command_tower/workflows/home_notices/prune_ended_workflow.rb
882
+ - app/workflows/command_tower/workflows/home_notices/record_impression_workflow.rb
883
+ - app/workflows/command_tower/workflows/home_notices/show_workflow.rb
839
884
  - app/workflows/command_tower/workflows/impersonation/error_mapping.rb
840
885
  - app/workflows/command_tower/workflows/impersonation/start_workflow.rb
841
886
  - app/workflows/command_tower/workflows/impersonation/stop_workflow.rb
@@ -891,6 +936,8 @@ files:
891
936
  - db/migrate/20261012000001_add_provider_metadata_to_messaging_delivery_attempts.rb
892
937
  - db/migrate/20261012000002_add_finished_at_index_to_messaging_delivery_attempts.rb
893
938
  - db/migrate/20261124000001_add_message_definition_columns_to_messaging_communications.rb
939
+ - db/migrate/20261124200001_create_command_tower_home_notices.rb
940
+ - db/migrate/20261124200002_create_command_tower_home_notice_controls.rb
894
941
  - docs/admin_workspace.md
895
942
  - docs/api_reference.md
896
943
  - docs/architecture.md
@@ -920,6 +967,7 @@ files:
920
967
  - docs/email_verification_workflow.md
921
968
  - docs/eventing.md
922
969
  - docs/extending.md
970
+ - docs/home_notices.md
923
971
  - docs/host_integration_guide.md
924
972
  - docs/initializing.md
925
973
  - docs/messaging_integration_guide.md
@@ -946,6 +994,7 @@ files:
946
994
  - docs/upgrades/0.21.0.md
947
995
  - docs/upgrades/0.22.0.md
948
996
  - docs/upgrades/0.23.0.md
997
+ - docs/upgrades/0.24.0.md
949
998
  - docs/upgrades/README.md
950
999
  - lib/command_tower.rb
951
1000
  - lib/command_tower/admin_scope.rb
@@ -983,6 +1032,7 @@ files:
983
1032
  - lib/command_tower/configuration/credentials/twilio.rb
984
1033
  - lib/command_tower/configuration/email/config.rb
985
1034
  - lib/command_tower/configuration/email_theme/config.rb
1035
+ - lib/command_tower/configuration/home_notices/config.rb
986
1036
  - lib/command_tower/configuration/identity/config.rb
987
1037
  - lib/command_tower/configuration/identity/phone_verification.rb
988
1038
  - lib/command_tower/configuration/impersonation/config.rb
@@ -1126,6 +1176,7 @@ files:
1126
1176
  - lib/generators/command_tower/configure/USAGE
1127
1177
  - lib/generators/command_tower/configure/configure_generator.rb
1128
1178
  - lib/tasks/auto_annotate_models.rake
1179
+ - lib/tasks/home_notices.rake
1129
1180
  - lib/tasks/install.rake
1130
1181
  - lib/tasks/ui.rake
1131
1182
  - lib/tasks/users.rake