command_tower 0.22.0 → 0.23.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.
- checksums.yaml +4 -4
- data/app/controllers/command_tower/admin/messaging/gallery_controller.rb +35 -0
- data/app/controllers/command_tower/admin/messaging/gallery_test_sends_controller.rb +54 -0
- data/app/controllers/command_tower/me/inbox_controller.rb +19 -4
- data/app/controllers/command_tower/messaging/unsubscribe_controller.rb +43 -0
- data/app/controllers/concerns/command_tower/execution/http_boundary.rb +36 -1
- data/app/errors/command_tower/errors/messaging/announcement_type_not_supported_error.rb +23 -0
- data/app/errors/command_tower/errors/messaging/gallery_test_send_failed_error.rb +26 -0
- data/app/errors/command_tower/errors/messaging/gallery_test_send_impersonating_error.rb +23 -0
- data/app/errors/command_tower/errors/messaging/gallery_test_send_rate_limit_error.rb +25 -0
- data/app/errors/command_tower/errors/messaging/unsubscribe_rate_limit_error.rb +25 -0
- data/app/jobs/command_tower/messaging/communications/produce_recipient_job.rb +2 -2
- data/app/mailers/command_tower/messaging/channel_mailer.rb +2 -0
- data/app/models/command_tower/messaging/communication.rb +10 -0
- data/app/serializers/command_tower/serializers/admin/messaging/gallery_serializer.rb +67 -0
- data/app/services/command_tower/email_theme/resolver.rb +13 -12
- data/app/services/command_tower/messaging/accept/coordinator.rb +57 -4
- data/app/services/command_tower/messaging/accept/persister.rb +3 -0
- data/app/services/command_tower/messaging/accept/request_normalizer.rb +9 -4
- data/app/services/command_tower/messaging/accept/resolve_communication_slots.rb +114 -0
- data/app/services/command_tower/messaging/announcement_definition.rb +88 -0
- data/app/services/command_tower/messaging/contract/inbox.rb +65 -0
- data/app/services/command_tower/messaging/contract/mappers/communication_mapper.rb +9 -0
- data/app/services/command_tower/messaging/contract/requests/mark_viewed_for_communication.rb +21 -0
- data/app/services/command_tower/messaging/contract/requests/viewed_for_communication.rb +21 -0
- data/app/services/command_tower/messaging/contract/results/communication_result.rb +3 -0
- data/app/services/command_tower/messaging/contract/results/inbox_view_mark.rb +18 -0
- data/app/services/command_tower/messaging/definitions/document_builder.rb +157 -0
- data/app/services/command_tower/messaging/definitions/render_context.rb +18 -0
- data/app/services/command_tower/messaging/inbox/item_result.rb +5 -1
- data/app/services/command_tower/messaging/inbox/mutator.rb +17 -0
- data/app/services/command_tower/messaging/inbox/reader.rb +12 -0
- data/app/services/command_tower/messaging/inbox/scope.rb +8 -0
- data/app/services/command_tower/messaging/inbox.rb +8 -0
- data/app/services/command_tower/messaging/message_definition/metadata.rb +35 -0
- data/app/services/command_tower/messaging/message_definition.rb +151 -0
- data/app/services/command_tower/messaging/notification_types/declaration.rb +12 -1
- data/app/services/command_tower/messaging/notification_types/message_definition_checks.rb +143 -0
- data/app/services/command_tower/messaging/notification_types/registry.rb +2 -0
- data/app/services/command_tower/messaging/rendering/channel_renderer.rb +73 -6
- data/app/services/command_tower/messaging/rendering/compliance_footer.rb +80 -0
- data/app/services/command_tower/messaging/rendering/defined_email_renderer.rb +141 -0
- data/app/services/command_tower/messaging/rendering/inbox_document_renderer.rb +79 -4
- data/app/services/command_tower/messaging/rendering/rendered_payload.rb +13 -1
- data/app/services/command_tower/messaging/rendering/unsubscribe_headers.rb +51 -0
- data/app/services/command_tower/messaging/unsubscribe/token_verifier.rb +26 -0
- data/app/services/command_tower/services/messaging/announcements/resolve_produce_arguments.rb +74 -0
- data/app/services/command_tower/services/messaging/communications/explicit_copy_rule.rb +50 -0
- data/app/services/command_tower/services/messaging/communications/produce.rb +18 -4
- data/app/services/command_tower/services/messaging/communications/produce_many.rb +20 -2
- data/app/services/command_tower/services/messaging/gallery/channel_failed.rb +31 -0
- data/app/services/command_tower/services/messaging/gallery/check_test_send_rate_limit.rb +47 -0
- data/app/services/command_tower/services/messaging/gallery/list_gallery_types.rb +44 -0
- data/app/services/command_tower/services/messaging/gallery/preview_builder.rb +122 -0
- data/app/services/command_tower/services/messaging/gallery/preview_channels.rb +51 -0
- data/app/services/command_tower/services/messaging/gallery/preview_checks.rb +85 -0
- data/app/services/command_tower/services/messaging/gallery/preview_email.rb +56 -0
- data/app/services/command_tower/services/messaging/gallery/render_gallery_preview.rb +85 -0
- data/app/services/command_tower/services/messaging/gallery/test_send.rb +55 -0
- data/app/services/command_tower/services/messaging/inbox.rb +36 -8
- data/app/services/command_tower/services/messaging/unsubscribe/check_rate_limit.rb +57 -0
- data/app/services/command_tower/services/messaging/unsubscribe/issue_token.rb +25 -0
- data/app/services/command_tower/services/messaging/unsubscribe/opt_out_of_email.rb +65 -0
- data/app/services/command_tower/services/messaging/unsubscribe/verify_token.rb +42 -0
- data/app/services/command_tower/services/users/record_last_known_time_zone.rb +40 -0
- data/app/workflows/command_tower/workflows/admin/messaging/create_announcement_workflow.rb +16 -3
- data/app/workflows/command_tower/workflows/admin/messaging/gallery/index_workflow.rb +29 -0
- data/app/workflows/command_tower/workflows/admin/messaging/gallery/show_workflow.rb +40 -0
- data/app/workflows/command_tower/workflows/admin/messaging/gallery/test_send_workflow.rb +103 -0
- data/app/workflows/command_tower/workflows/messaging/communications/produce_recipient_workflow.rb +2 -2
- data/app/workflows/command_tower/workflows/messaging/error_mapping.rb +8 -1
- data/app/workflows/command_tower/workflows/messaging/inbox.rb +30 -5
- data/app/workflows/command_tower/workflows/messaging/unsubscribe/one_click_workflow.rb +56 -0
- data/app/workflows/command_tower/workflows/messaging/unsubscribe/preferences_redirect_workflow.rb +24 -0
- data/config/routes.rb +9 -0
- data/db/migrate/20261124000001_add_message_definition_columns_to_messaging_communications.rb +9 -0
- data/docs/admin_workspace.md +2 -1
- data/docs/api_reference.md +78 -20
- data/docs/audit.md +9 -0
- data/docs/authentication_authorization_guide.md +1 -1
- data/docs/bootstrap/09-rbac.md +2 -0
- data/docs/bootstrap/11-auth-client-path.md +1 -1
- data/docs/cookie_authentication_guide.md +2 -0
- data/docs/extending.md +4 -0
- data/docs/messaging_integration_guide.md +40 -15
- data/docs/principal_capabilities.md +2 -0
- data/docs/ui.md +64 -2
- data/docs/upgrades/0.23.0.md +64 -0
- data/docs/upgrades/README.md +1 -0
- data/lib/command_tower/authorization/default.yml +8 -0
- data/lib/command_tower/configuration/messaging/compliance.rb +47 -0
- data/lib/command_tower/configuration/messaging/config.rb +25 -0
- data/lib/command_tower/configuration/registry/admin_workspace/config.rb +9 -0
- data/lib/command_tower/configuration/registry/admin_workspace/tool_definition.rb +10 -1
- data/lib/command_tower/configuration/registry/audit/config.rb +38 -0
- data/lib/command_tower/configuration/registry/principal_capabilities/config.rb +2 -0
- data/lib/command_tower/current.rb +1 -0
- data/lib/command_tower/email_theme/default_ui_tokens.json +18 -0
- data/lib/command_tower/email_theme/palette.rb +75 -0
- data/lib/command_tower/email_theme/token_file.rb +81 -0
- data/lib/command_tower/engine.rb +7 -0
- data/lib/command_tower/execution.rb +2 -1
- data/lib/command_tower/install/baseline.rb +1 -0
- data/lib/command_tower/rspec/message_definition.rb +125 -0
- data/lib/command_tower/ui/document.rb +18 -4
- data/lib/command_tower/ui/email/renderer/text_nodes.rb +2 -1
- data/lib/command_tower/ui/email/renderer.rb +17 -5
- data/lib/command_tower/ui/email/text_part.rb +53 -0
- data/lib/command_tower/ui/fragments/markdown.rb +121 -0
- data/lib/command_tower/ui/markdown_subset/chunker.rb +91 -0
- data/lib/command_tower/ui/markdown_subset/inline.rb +86 -0
- data/lib/command_tower/ui/markdown_subset/segment.rb +15 -0
- data/lib/command_tower/ui/markdown_subset/walker.rb +129 -0
- data/lib/command_tower/ui/nodes/instant.rb +3 -0
- data/lib/command_tower/ui/redaction.rb +44 -0
- data/lib/command_tower/ui/required_facts/matchers/text.rb +22 -0
- data/lib/command_tower/ui/required_facts/matchers/time.rb +37 -0
- data/lib/command_tower/ui/required_facts/verdict.rb +54 -0
- data/lib/command_tower/ui/text_derivation.rb +18 -17
- data/lib/command_tower/ui/time_formatter.rb +5 -3
- data/lib/command_tower/ui.rb +6 -0
- data/lib/command_tower/version.rb +1 -1
- data/lib/command_tower.rb +2 -0
- metadata +78 -2
|
@@ -28,51 +28,52 @@ module CommandTower
|
|
|
28
28
|
}.freeze
|
|
29
29
|
|
|
30
30
|
class << self
|
|
31
|
-
|
|
31
|
+
# `user_zone` is the zone a `zone: "user"` time resolves to.
|
|
32
|
+
def call(node, user_zone: CommandTower.config.ui.default_zone)
|
|
32
33
|
_, handler = HANDLERS.find { |klass, _| node.is_a?(klass) }
|
|
33
|
-
handler ? send(handler, node) : "" # divider, avatar, code
|
|
34
|
+
handler ? send(handler, node, user_zone) : "" # divider, avatar, code
|
|
34
35
|
end
|
|
35
36
|
|
|
36
37
|
private
|
|
37
38
|
|
|
38
|
-
def container_text(node)
|
|
39
|
-
lines(node.children.map { |child| call(child) })
|
|
39
|
+
def container_text(node, user_zone)
|
|
40
|
+
lines(node.children.map { |child| call(child, user_zone:) })
|
|
40
41
|
end
|
|
41
42
|
|
|
42
|
-
def text_text(node)
|
|
43
|
+
def text_text(node, _user_zone)
|
|
43
44
|
spans_text(node.spans)
|
|
44
45
|
end
|
|
45
46
|
|
|
46
|
-
def banner_text(node)
|
|
47
|
+
def banner_text(node, _user_zone)
|
|
47
48
|
lines([node.title, spans_text(node.spans)])
|
|
48
49
|
end
|
|
49
50
|
|
|
50
|
-
def instant_text(node)
|
|
51
|
-
TimeFormatter.call(at: node.at, zone: node.zone, format: node.format, label: :always)
|
|
51
|
+
def instant_text(node, user_zone)
|
|
52
|
+
TimeFormatter.call(at: node.at, zone: node.zone, format: node.format, label: :always, user_zone:)
|
|
52
53
|
end
|
|
53
54
|
|
|
54
|
-
def key_value_text(node)
|
|
55
|
-
lines(node.items.map { |item| item_text(item) })
|
|
55
|
+
def key_value_text(node, user_zone)
|
|
56
|
+
lines(node.items.map { |item| item_text(item, user_zone) })
|
|
56
57
|
end
|
|
57
58
|
|
|
58
|
-
def component_text(node)
|
|
59
|
-
call(node.fallback)
|
|
59
|
+
def component_text(node, user_zone)
|
|
60
|
+
call(node.fallback, user_zone:)
|
|
60
61
|
end
|
|
61
62
|
|
|
62
|
-
def stat_tile_text(node)
|
|
63
|
+
def stat_tile_text(node, _user_zone)
|
|
63
64
|
"#{node.label}: #{node.value}"
|
|
64
65
|
end
|
|
65
66
|
|
|
66
|
-
def label_text(node)
|
|
67
|
+
def label_text(node, _user_zone)
|
|
67
68
|
node.label.to_s
|
|
68
69
|
end
|
|
69
70
|
|
|
70
|
-
def image_text(node)
|
|
71
|
+
def image_text(node, _user_zone)
|
|
71
72
|
node.decorative ? "" : node.alt.to_s
|
|
72
73
|
end
|
|
73
74
|
|
|
74
|
-
def item_text(item)
|
|
75
|
-
value = item.value.is_a?(Nodes::Instant) ? instant_text(item.value) : item.value.to_s
|
|
75
|
+
def item_text(item, user_zone)
|
|
76
|
+
value = item.value.is_a?(Nodes::Instant) ? instant_text(item.value, user_zone) : item.value.to_s
|
|
76
77
|
item.label.to_s.empty? ? value : "#{item.label}: #{value}"
|
|
77
78
|
end
|
|
78
79
|
|
|
@@ -19,14 +19,16 @@ module CommandTower
|
|
|
19
19
|
}.freeze
|
|
20
20
|
FORMATS = (PATTERNS.keys + [:countdown]).freeze
|
|
21
21
|
LABELS = %i[auto always never].freeze
|
|
22
|
+
USER_ZONE = "user"
|
|
22
23
|
|
|
23
24
|
class << self
|
|
24
|
-
# `at` is a Time or a UTC ISO-8601 string; `zone` a TZInfo identifier
|
|
25
|
-
|
|
25
|
+
# `at` is a Time or a UTC ISO-8601 string; `zone` a TZInfo identifier, or
|
|
26
|
+
# `:user` / "user", which resolves to `user_zone` (default `config.ui.default_zone`).
|
|
27
|
+
def call(at:, zone:, format:, label: :auto, user_zone: CommandTower.config.ui.default_zone)
|
|
26
28
|
format = pick(format, FORMATS, "format")
|
|
27
29
|
label = pick(label, LABELS, "label")
|
|
28
30
|
instant = parse(at)
|
|
29
|
-
timezone = TZInfo::Timezone.get(zone.to_s)
|
|
31
|
+
timezone = TZInfo::Timezone.get(zone.to_s == USER_ZONE ? user_zone.to_s : zone.to_s)
|
|
30
32
|
text = timezone.to_local(instant).strftime(PATTERNS.fetch(format == :countdown ? :short : format))
|
|
31
33
|
return text unless show_label?(format, label)
|
|
32
34
|
|
data/lib/command_tower/ui.rb
CHANGED
|
@@ -65,6 +65,10 @@ require "command_tower/ui/nodes/code"
|
|
|
65
65
|
require "command_tower/ui/nodes/component"
|
|
66
66
|
require "command_tower/ui/nodes/facts"
|
|
67
67
|
require "command_tower/ui/document"
|
|
68
|
+
require "command_tower/ui/redaction"
|
|
69
|
+
require "command_tower/ui/required_facts/verdict"
|
|
70
|
+
require "command_tower/ui/required_facts/matchers/text"
|
|
71
|
+
require "command_tower/ui/required_facts/matchers/time"
|
|
68
72
|
require "command_tower/ui/builder"
|
|
69
73
|
require "command_tower/ui/text_derivation"
|
|
70
74
|
require "command_tower/ui/legacy_mapping"
|
|
@@ -75,6 +79,8 @@ require "command_tower/ui/fragments/fact_row"
|
|
|
75
79
|
require "command_tower/ui/fragments/cta_group"
|
|
76
80
|
require "command_tower/ui/fragments/notice_frame"
|
|
77
81
|
require "command_tower/ui/fragments/facts"
|
|
82
|
+
require "command_tower/ui/fragments/markdown"
|
|
78
83
|
require "command_tower/ui/email/styles"
|
|
79
84
|
require "command_tower/ui/email/layout"
|
|
85
|
+
require "command_tower/ui/email/text_part"
|
|
80
86
|
require "command_tower/ui/email/renderer"
|
data/lib/command_tower.rb
CHANGED
|
@@ -16,6 +16,8 @@ require "command_tower/logging/subscriber"
|
|
|
16
16
|
require "command_tower/version"
|
|
17
17
|
require "command_tower/engine"
|
|
18
18
|
require "command_tower/ui"
|
|
19
|
+
require "command_tower/email_theme/token_file"
|
|
20
|
+
require "command_tower/email_theme/palette"
|
|
19
21
|
require "command_tower/configuration/config"
|
|
20
22
|
require "command_tower/install/baseline"
|
|
21
23
|
require "command_tower/install/doctor"
|
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.
|
|
4
|
+
version: 0.23.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-
|
|
11
|
+
date: 2026-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: phonelib
|
|
@@ -184,6 +184,20 @@ dependencies:
|
|
|
184
184
|
- - "~>"
|
|
185
185
|
- !ruby/object:Gem::Version
|
|
186
186
|
version: '2.0'
|
|
187
|
+
- !ruby/object:Gem::Dependency
|
|
188
|
+
name: kramdown
|
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
|
190
|
+
requirements:
|
|
191
|
+
- - "~>"
|
|
192
|
+
- !ruby/object:Gem::Version
|
|
193
|
+
version: '2.4'
|
|
194
|
+
type: :runtime
|
|
195
|
+
prerelease: false
|
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
197
|
+
requirements:
|
|
198
|
+
- - "~>"
|
|
199
|
+
- !ruby/object:Gem::Version
|
|
200
|
+
version: '2.4'
|
|
187
201
|
description: CommandTower is the Base API to handle all the things you don't want
|
|
188
202
|
to for a Rails API only backend serving a Dedicated frontend
|
|
189
203
|
email:
|
|
@@ -201,6 +215,8 @@ files:
|
|
|
201
215
|
- app/controllers/command_tower/admin/application_controller.rb
|
|
202
216
|
- app/controllers/command_tower/admin/audit/events_controller.rb
|
|
203
217
|
- app/controllers/command_tower/admin/messaging/announcements_controller.rb
|
|
218
|
+
- app/controllers/command_tower/admin/messaging/gallery_controller.rb
|
|
219
|
+
- app/controllers/command_tower/admin/messaging/gallery_test_sends_controller.rb
|
|
204
220
|
- app/controllers/command_tower/admin/users/identities_controller.rb
|
|
205
221
|
- app/controllers/command_tower/admin/users/impersonation_sessions_controller.rb
|
|
206
222
|
- app/controllers/command_tower/admin/users/roles_controller.rb
|
|
@@ -237,6 +253,7 @@ files:
|
|
|
237
253
|
- app/controllers/command_tower/me/pushover/verifications_controller.rb
|
|
238
254
|
- app/controllers/command_tower/me/pushover_controller.rb
|
|
239
255
|
- app/controllers/command_tower/me_controller.rb
|
|
256
|
+
- app/controllers/command_tower/messaging/unsubscribe_controller.rb
|
|
240
257
|
- app/controllers/command_tower/profile_controller.rb
|
|
241
258
|
- app/controllers/concerns/command_tower/api/application_response_renderer.rb
|
|
242
259
|
- app/controllers/concerns/command_tower/api/deserializer_failure_details.rb
|
|
@@ -330,8 +347,13 @@ files:
|
|
|
330
347
|
- app/errors/command_tower/errors/forbidden_error.rb
|
|
331
348
|
- app/errors/command_tower/errors/internal_error.rb
|
|
332
349
|
- app/errors/command_tower/errors/messaging/accept_rejected_error.rb
|
|
350
|
+
- app/errors/command_tower/errors/messaging/announcement_type_not_supported_error.rb
|
|
351
|
+
- app/errors/command_tower/errors/messaging/gallery_test_send_failed_error.rb
|
|
352
|
+
- app/errors/command_tower/errors/messaging/gallery_test_send_impersonating_error.rb
|
|
353
|
+
- app/errors/command_tower/errors/messaging/gallery_test_send_rate_limit_error.rb
|
|
333
354
|
- app/errors/command_tower/errors/messaging/idempotency_conflict_error.rb
|
|
334
355
|
- app/errors/command_tower/errors/messaging/recipient_unresolved_error.rb
|
|
356
|
+
- app/errors/command_tower/errors/messaging/unsubscribe_rate_limit_error.rb
|
|
335
357
|
- app/errors/command_tower/errors/not_found_error.rb
|
|
336
358
|
- app/errors/command_tower/errors/unauthorized_error.rb
|
|
337
359
|
- app/errors/command_tower/errors/validation_error.rb
|
|
@@ -362,6 +384,7 @@ files:
|
|
|
362
384
|
- app/models/user.rb
|
|
363
385
|
- app/models/user_secret.rb
|
|
364
386
|
- app/serializers/command_tower/serializers/admin/messaging/announcement_response_serializer.rb
|
|
387
|
+
- app/serializers/command_tower/serializers/admin/messaging/gallery_serializer.rb
|
|
365
388
|
- app/serializers/command_tower/serializers/admin/users.rb
|
|
366
389
|
- app/serializers/command_tower/serializers/admin/workspace/manifest_serializer.rb
|
|
367
390
|
- app/serializers/command_tower/serializers/application/envelope_serializer.rb
|
|
@@ -454,9 +477,11 @@ files:
|
|
|
454
477
|
- app/services/command_tower/messaging/accept/persistence_error.rb
|
|
455
478
|
- app/services/command_tower/messaging/accept/persister.rb
|
|
456
479
|
- app/services/command_tower/messaging/accept/request_normalizer.rb
|
|
480
|
+
- app/services/command_tower/messaging/accept/resolve_communication_slots.rb
|
|
457
481
|
- app/services/command_tower/messaging/accept/result.rb
|
|
458
482
|
- app/services/command_tower/messaging/accept/unknown_type_error.rb
|
|
459
483
|
- app/services/command_tower/messaging/accept/validation_error.rb
|
|
484
|
+
- app/services/command_tower/messaging/announcement_definition.rb
|
|
460
485
|
- app/services/command_tower/messaging/channel_detectors.rb
|
|
461
486
|
- app/services/command_tower/messaging/channels.rb
|
|
462
487
|
- app/services/command_tower/messaging/channels/definition.rb
|
|
@@ -464,6 +489,7 @@ files:
|
|
|
464
489
|
- app/services/command_tower/messaging/channels/unknown_channel_error.rb
|
|
465
490
|
- app/services/command_tower/messaging/contract/communications.rb
|
|
466
491
|
- app/services/command_tower/messaging/contract/error.rb
|
|
492
|
+
- app/services/command_tower/messaging/contract/inbox.rb
|
|
467
493
|
- app/services/command_tower/messaging/contract/internal/finder.rb
|
|
468
494
|
- app/services/command_tower/messaging/contract/invariant_error.rb
|
|
469
495
|
- app/services/command_tower/messaging/contract/mappers/channel_delivery_mapper.rb
|
|
@@ -476,12 +502,17 @@ files:
|
|
|
476
502
|
- app/services/command_tower/messaging/contract/observability/operation_logger.rb
|
|
477
503
|
- app/services/command_tower/messaging/contract/observability/publisher.rb
|
|
478
504
|
- app/services/command_tower/messaging/contract/requests/find_communication.rb
|
|
505
|
+
- app/services/command_tower/messaging/contract/requests/mark_viewed_for_communication.rb
|
|
506
|
+
- app/services/command_tower/messaging/contract/requests/viewed_for_communication.rb
|
|
479
507
|
- app/services/command_tower/messaging/contract/results/channel_delivery_result.rb
|
|
480
508
|
- app/services/command_tower/messaging/contract/results/communication_result.rb
|
|
481
509
|
- app/services/command_tower/messaging/contract/results/delivery_attempt_result.rb
|
|
482
510
|
- app/services/command_tower/messaging/contract/results/destination_plan_result.rb
|
|
483
511
|
- app/services/command_tower/messaging/contract/results/inbox_item_result.rb
|
|
512
|
+
- app/services/command_tower/messaging/contract/results/inbox_view_mark.rb
|
|
484
513
|
- app/services/command_tower/messaging/contract/validation_error.rb
|
|
514
|
+
- app/services/command_tower/messaging/definitions/document_builder.rb
|
|
515
|
+
- app/services/command_tower/messaging/definitions/render_context.rb
|
|
485
516
|
- app/services/command_tower/messaging/delivery_retry_policy.rb
|
|
486
517
|
- app/services/command_tower/messaging/endpoints.rb
|
|
487
518
|
- app/services/command_tower/messaging/endpoints/begin_verification.rb
|
|
@@ -559,6 +590,8 @@ files:
|
|
|
559
590
|
- app/services/command_tower/messaging/inbox/scope.rb
|
|
560
591
|
- app/services/command_tower/messaging/inbox/unread_count_result.rb
|
|
561
592
|
- app/services/command_tower/messaging/inbox/validation_error.rb
|
|
593
|
+
- app/services/command_tower/messaging/message_definition.rb
|
|
594
|
+
- app/services/command_tower/messaging/message_definition/metadata.rb
|
|
562
595
|
- app/services/command_tower/messaging/notification_types.rb
|
|
563
596
|
- app/services/command_tower/messaging/notification_types/catalog_category.rb
|
|
564
597
|
- app/services/command_tower/messaging/notification_types/declaration.rb
|
|
@@ -566,6 +599,7 @@ files:
|
|
|
566
599
|
- app/services/command_tower/messaging/notification_types/duplicate_type_error.rb
|
|
567
600
|
- app/services/command_tower/messaging/notification_types/error.rb
|
|
568
601
|
- app/services/command_tower/messaging/notification_types/invalid_declaration_error.rb
|
|
602
|
+
- app/services/command_tower/messaging/notification_types/message_definition_checks.rb
|
|
569
603
|
- app/services/command_tower/messaging/notification_types/not_found_error.rb
|
|
570
604
|
- app/services/command_tower/messaging/notification_types/permitted_choice.rb
|
|
571
605
|
- app/services/command_tower/messaging/notification_types/registry.rb
|
|
@@ -624,6 +658,8 @@ files:
|
|
|
624
658
|
- app/services/command_tower/messaging/recipient_readiness/recipient_result.rb
|
|
625
659
|
- app/services/command_tower/messaging/recipient_readiness/unknown_channel_error.rb
|
|
626
660
|
- app/services/command_tower/messaging/rendering/channel_renderer.rb
|
|
661
|
+
- app/services/command_tower/messaging/rendering/compliance_footer.rb
|
|
662
|
+
- app/services/command_tower/messaging/rendering/defined_email_renderer.rb
|
|
627
663
|
- app/services/command_tower/messaging/rendering/inbox_document.rb
|
|
628
664
|
- app/services/command_tower/messaging/rendering/inbox_document_renderer.rb
|
|
629
665
|
- app/services/command_tower/messaging/rendering/inbox_presentation_resolver.rb
|
|
@@ -635,7 +671,9 @@ files:
|
|
|
635
671
|
- app/services/command_tower/messaging/rendering/rendered_pushover_payload.rb
|
|
636
672
|
- app/services/command_tower/messaging/rendering/rendered_sms_payload.rb
|
|
637
673
|
- app/services/command_tower/messaging/rendering/template_resolver.rb
|
|
674
|
+
- app/services/command_tower/messaging/rendering/unsubscribe_headers.rb
|
|
638
675
|
- app/services/command_tower/messaging/sound_catalog.rb
|
|
676
|
+
- app/services/command_tower/messaging/unsubscribe/token_verifier.rb
|
|
639
677
|
- app/services/command_tower/secrets.rb
|
|
640
678
|
- app/services/command_tower/secrets/cleanse.rb
|
|
641
679
|
- app/services/command_tower/secrets/generate.rb
|
|
@@ -711,15 +749,31 @@ files:
|
|
|
711
749
|
- app/services/command_tower/services/me/pushover_product_gate.rb
|
|
712
750
|
- app/services/command_tower/services/me/sms_product_gate.rb
|
|
713
751
|
- app/services/command_tower/services/me/update_name.rb
|
|
752
|
+
- app/services/command_tower/services/messaging/announcements/resolve_produce_arguments.rb
|
|
753
|
+
- app/services/command_tower/services/messaging/communications/explicit_copy_rule.rb
|
|
714
754
|
- app/services/command_tower/services/messaging/communications/produce.rb
|
|
715
755
|
- app/services/command_tower/services/messaging/communications/produce_many.rb
|
|
756
|
+
- app/services/command_tower/services/messaging/gallery/channel_failed.rb
|
|
757
|
+
- app/services/command_tower/services/messaging/gallery/check_test_send_rate_limit.rb
|
|
758
|
+
- app/services/command_tower/services/messaging/gallery/list_gallery_types.rb
|
|
759
|
+
- app/services/command_tower/services/messaging/gallery/preview_builder.rb
|
|
760
|
+
- app/services/command_tower/services/messaging/gallery/preview_channels.rb
|
|
761
|
+
- app/services/command_tower/services/messaging/gallery/preview_checks.rb
|
|
762
|
+
- app/services/command_tower/services/messaging/gallery/preview_email.rb
|
|
763
|
+
- app/services/command_tower/services/messaging/gallery/render_gallery_preview.rb
|
|
764
|
+
- app/services/command_tower/services/messaging/gallery/test_send.rb
|
|
716
765
|
- app/services/command_tower/services/messaging/inbox.rb
|
|
717
766
|
- app/services/command_tower/services/messaging/preferences/platform_enabled_channels.rb
|
|
718
767
|
- app/services/command_tower/services/messaging/preferences/show.rb
|
|
719
768
|
- app/services/command_tower/services/messaging/preferences/update.rb
|
|
720
769
|
- app/services/command_tower/services/messaging/recipients.rb
|
|
770
|
+
- app/services/command_tower/services/messaging/unsubscribe/check_rate_limit.rb
|
|
771
|
+
- app/services/command_tower/services/messaging/unsubscribe/issue_token.rb
|
|
772
|
+
- app/services/command_tower/services/messaging/unsubscribe/opt_out_of_email.rb
|
|
773
|
+
- app/services/command_tower/services/messaging/unsubscribe/verify_token.rb
|
|
721
774
|
- app/services/command_tower/services/rate_limits/check.rb
|
|
722
775
|
- app/services/command_tower/services/service_result.rb
|
|
776
|
+
- app/services/command_tower/services/users/record_last_known_time_zone.rb
|
|
723
777
|
- app/services/command_tower/user_attributes/mutate.rb
|
|
724
778
|
- app/services/command_tower/username/available.rb
|
|
725
779
|
- app/shared_sequences/command_tower/shared_sequences/admin/users/resolve_scoped_user.rb
|
|
@@ -734,6 +788,9 @@ files:
|
|
|
734
788
|
- app/views/layouts/mailer.text.erb
|
|
735
789
|
- app/workflows/command_tower/transactional.rb
|
|
736
790
|
- app/workflows/command_tower/workflows/admin/messaging/create_announcement_workflow.rb
|
|
791
|
+
- app/workflows/command_tower/workflows/admin/messaging/gallery/index_workflow.rb
|
|
792
|
+
- app/workflows/command_tower/workflows/admin/messaging/gallery/show_workflow.rb
|
|
793
|
+
- app/workflows/command_tower/workflows/admin/messaging/gallery/test_send_workflow.rb
|
|
737
794
|
- app/workflows/command_tower/workflows/admin/scope_resolution.rb
|
|
738
795
|
- app/workflows/command_tower/workflows/admin/users/error_mapping.rb
|
|
739
796
|
- app/workflows/command_tower/workflows/admin/users/identity_mutation.rb
|
|
@@ -814,6 +871,8 @@ files:
|
|
|
814
871
|
- app/workflows/command_tower/workflows/messaging/inbox.rb
|
|
815
872
|
- app/workflows/command_tower/workflows/messaging/preferences/show_workflow.rb
|
|
816
873
|
- app/workflows/command_tower/workflows/messaging/preferences/update_workflow.rb
|
|
874
|
+
- app/workflows/command_tower/workflows/messaging/unsubscribe/one_click_workflow.rb
|
|
875
|
+
- app/workflows/command_tower/workflows/messaging/unsubscribe/preferences_redirect_workflow.rb
|
|
817
876
|
- app/workflows/command_tower/workflows/profile/show_workflow.rb
|
|
818
877
|
- app/workflows/command_tower/workflows/workflow_result.rb
|
|
819
878
|
- config/routes.rb
|
|
@@ -831,6 +890,7 @@ files:
|
|
|
831
890
|
- db/migrate/20261010000002_add_conversation_identity_to_messaging_communications.rb
|
|
832
891
|
- db/migrate/20261012000001_add_provider_metadata_to_messaging_delivery_attempts.rb
|
|
833
892
|
- db/migrate/20261012000002_add_finished_at_index_to_messaging_delivery_attempts.rb
|
|
893
|
+
- db/migrate/20261124000001_add_message_definition_columns_to_messaging_communications.rb
|
|
834
894
|
- docs/admin_workspace.md
|
|
835
895
|
- docs/api_reference.md
|
|
836
896
|
- docs/architecture.md
|
|
@@ -885,6 +945,7 @@ files:
|
|
|
885
945
|
- docs/upgrades/0.20.0.md
|
|
886
946
|
- docs/upgrades/0.21.0.md
|
|
887
947
|
- docs/upgrades/0.22.0.md
|
|
948
|
+
- docs/upgrades/0.23.0.md
|
|
888
949
|
- docs/upgrades/README.md
|
|
889
950
|
- lib/command_tower.rb
|
|
890
951
|
- lib/command_tower/admin_scope.rb
|
|
@@ -933,6 +994,7 @@ files:
|
|
|
933
994
|
- lib/command_tower/configuration/login/strategy/plain_text/email_verify.rb
|
|
934
995
|
- lib/command_tower/configuration/login/strategy/plain_text/lockable.rb
|
|
935
996
|
- lib/command_tower/configuration/login/strategy/plain_text/password_reset.rb
|
|
997
|
+
- lib/command_tower/configuration/messaging/compliance.rb
|
|
936
998
|
- lib/command_tower/configuration/messaging/config.rb
|
|
937
999
|
- lib/command_tower/configuration/messaging/expo.rb
|
|
938
1000
|
- lib/command_tower/configuration/messaging/pushover.rb
|
|
@@ -969,6 +1031,9 @@ files:
|
|
|
969
1031
|
- lib/command_tower/credential_resolution/smtp_credentials.rb
|
|
970
1032
|
- lib/command_tower/credential_resolution/twilio_credentials.rb
|
|
971
1033
|
- lib/command_tower/current.rb
|
|
1034
|
+
- lib/command_tower/email_theme/default_ui_tokens.json
|
|
1035
|
+
- lib/command_tower/email_theme/palette.rb
|
|
1036
|
+
- lib/command_tower/email_theme/token_file.rb
|
|
972
1037
|
- lib/command_tower/engine.rb
|
|
973
1038
|
- lib/command_tower/error.rb
|
|
974
1039
|
- lib/command_tower/events.rb
|
|
@@ -989,6 +1054,7 @@ files:
|
|
|
989
1054
|
- lib/command_tower/password_recovery/authorization_helper.rb
|
|
990
1055
|
- lib/command_tower/principal_capabilities.rb
|
|
991
1056
|
- lib/command_tower/redis_connection.rb
|
|
1057
|
+
- lib/command_tower/rspec/message_definition.rb
|
|
992
1058
|
- lib/command_tower/schema.rb
|
|
993
1059
|
- lib/command_tower/schema/error/base.rb
|
|
994
1060
|
- lib/command_tower/schema/error/email_validation_required.rb
|
|
@@ -1013,16 +1079,22 @@ files:
|
|
|
1013
1079
|
- lib/command_tower/ui/email/renderer/styling.rb
|
|
1014
1080
|
- lib/command_tower/ui/email/renderer/text_nodes.rb
|
|
1015
1081
|
- lib/command_tower/ui/email/styles.rb
|
|
1082
|
+
- lib/command_tower/ui/email/text_part.rb
|
|
1016
1083
|
- lib/command_tower/ui/fragment.rb
|
|
1017
1084
|
- lib/command_tower/ui/fragments/cta_group.rb
|
|
1018
1085
|
- lib/command_tower/ui/fragments/fact_row.rb
|
|
1019
1086
|
- lib/command_tower/ui/fragments/facts.rb
|
|
1020
1087
|
- lib/command_tower/ui/fragments/header.rb
|
|
1088
|
+
- lib/command_tower/ui/fragments/markdown.rb
|
|
1021
1089
|
- lib/command_tower/ui/fragments/notice_frame.rb
|
|
1022
1090
|
- lib/command_tower/ui/hardening.rb
|
|
1023
1091
|
- lib/command_tower/ui/hostname.rb
|
|
1024
1092
|
- lib/command_tower/ui/legacy_mapping.rb
|
|
1025
1093
|
- lib/command_tower/ui/limits.rb
|
|
1094
|
+
- lib/command_tower/ui/markdown_subset/chunker.rb
|
|
1095
|
+
- lib/command_tower/ui/markdown_subset/inline.rb
|
|
1096
|
+
- lib/command_tower/ui/markdown_subset/segment.rb
|
|
1097
|
+
- lib/command_tower/ui/markdown_subset/walker.rb
|
|
1026
1098
|
- lib/command_tower/ui/nodes/action.rb
|
|
1027
1099
|
- lib/command_tower/ui/nodes/avatar.rb
|
|
1028
1100
|
- lib/command_tower/ui/nodes/badge.rb
|
|
@@ -1041,6 +1113,10 @@ files:
|
|
|
1041
1113
|
- lib/command_tower/ui/nodes/stack.rb
|
|
1042
1114
|
- lib/command_tower/ui/nodes/stat_tile.rb
|
|
1043
1115
|
- lib/command_tower/ui/nodes/text.rb
|
|
1116
|
+
- lib/command_tower/ui/redaction.rb
|
|
1117
|
+
- lib/command_tower/ui/required_facts/matchers/text.rb
|
|
1118
|
+
- lib/command_tower/ui/required_facts/matchers/time.rb
|
|
1119
|
+
- lib/command_tower/ui/required_facts/verdict.rb
|
|
1044
1120
|
- lib/command_tower/ui/text_derivation.rb
|
|
1045
1121
|
- lib/command_tower/ui/time_formatter.rb
|
|
1046
1122
|
- lib/command_tower/ui/tokens.rb
|