trycourier 4.7.0 → 4.8.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/CHANGELOG.md +39 -0
- data/README.md +25 -235
- data/lib/courier/client.rb +4 -0
- data/lib/courier/internal/util.rb +32 -1
- data/lib/courier/models/audience_delete_params.rb +7 -1
- data/lib/courier/models/audience_list_members_params.rb +8 -1
- data/lib/courier/models/audience_retrieve_params.rb +7 -1
- data/lib/courier/models/audience_update_params.rb +8 -1
- data/lib/courier/models/audit_event_retrieve_params.rb +7 -1
- data/lib/courier/models/automations/invoke_invoke_by_template_params.rb +7 -1
- data/lib/courier/models/brand_delete_params.rb +7 -1
- data/lib/courier/models/brand_retrieve_params.rb +7 -1
- data/lib/courier/models/brand_update_params.rb +8 -1
- data/lib/courier/models/bulk_add_users_params.rb +7 -1
- data/lib/courier/models/bulk_list_users_params.rb +8 -1
- data/lib/courier/models/bulk_retrieve_job_params.rb +7 -1
- data/lib/courier/models/bulk_run_job_params.rb +7 -1
- data/lib/courier/models/elemental_content.rb +1 -8
- data/lib/courier/models/journey.rb +63 -0
- data/lib/courier/models/journey_invoke_params.rb +20 -0
- data/lib/courier/models/journey_list_params.rb +47 -0
- data/lib/courier/models/journeys_invoke_request.rb +49 -0
- data/lib/courier/models/journeys_invoke_response.rb +17 -0
- data/lib/courier/models/journeys_list_response.rb +24 -0
- data/lib/courier/models/list_delete_params.rb +7 -1
- data/lib/courier/models/list_restore_params.rb +7 -1
- data/lib/courier/models/list_retrieve_params.rb +7 -1
- data/lib/courier/models/list_update_params.rb +7 -1
- data/lib/courier/models/lists/subscription_add_params.rb +7 -1
- data/lib/courier/models/lists/subscription_list_params.rb +8 -1
- data/lib/courier/models/lists/subscription_subscribe_params.rb +7 -1
- data/lib/courier/models/lists/subscription_subscribe_user_params.rb +7 -1
- data/lib/courier/models/lists/subscription_unsubscribe_user_params.rb +7 -1
- data/lib/courier/models/message_cancel_params.rb +7 -1
- data/lib/courier/models/message_content_params.rb +7 -1
- data/lib/courier/models/message_details.rb +37 -37
- data/lib/courier/models/message_history_params.rb +8 -1
- data/lib/courier/models/message_retrieve_params.rb +7 -1
- data/lib/courier/models/notification_retrieve_content_params.rb +7 -1
- data/lib/courier/models/notifications/check_delete_params.rb +7 -1
- data/lib/courier/models/notifications/check_list_params.rb +7 -1
- data/lib/courier/models/notifications/check_update_params.rb +7 -1
- data/lib/courier/models/notifications/draft_retrieve_content_params.rb +7 -1
- data/lib/courier/models/profile_create_params.rb +7 -1
- data/lib/courier/models/profile_delete_params.rb +7 -1
- data/lib/courier/models/profile_replace_params.rb +7 -1
- data/lib/courier/models/profile_retrieve_params.rb +7 -1
- data/lib/courier/models/profile_update_params.rb +8 -1
- data/lib/courier/models/profiles/list_delete_params.rb +7 -1
- data/lib/courier/models/profiles/list_retrieve_params.rb +8 -1
- data/lib/courier/models/profiles/list_subscribe_params.rb +7 -1
- data/lib/courier/models/request_archive_params.rb +7 -1
- data/lib/courier/models/tenant_delete_params.rb +7 -1
- data/lib/courier/models/tenant_list_users_params.rb +8 -1
- data/lib/courier/models/tenant_retrieve_params.rb +7 -1
- data/lib/courier/models/tenant_update_params.rb +8 -1
- data/lib/courier/models/tenants/preferences/item_delete_params.rb +7 -1
- data/lib/courier/models/tenants/preferences/item_update_params.rb +7 -1
- data/lib/courier/models/tenants/template_list_params.rb +8 -1
- data/lib/courier/models/tenants/template_publish_params.rb +7 -1
- data/lib/courier/models/tenants/template_replace_params.rb +7 -1
- data/lib/courier/models/tenants/template_retrieve_params.rb +7 -1
- data/lib/courier/models/tenants/templates/version_retrieve_params.rb +7 -1
- data/lib/courier/models/translation_retrieve_params.rb +7 -1
- data/lib/courier/models/translation_update_params.rb +7 -1
- data/lib/courier/models/users/preference_retrieve_params.rb +8 -1
- data/lib/courier/models/users/preference_retrieve_topic_params.rb +8 -1
- data/lib/courier/models/users/preference_update_or_create_topic_params.rb +8 -1
- data/lib/courier/models/users/tenant_add_multiple_params.rb +7 -1
- data/lib/courier/models/users/tenant_add_single_params.rb +7 -1
- data/lib/courier/models/users/tenant_list_params.rb +8 -1
- data/lib/courier/models/users/tenant_remove_all_params.rb +7 -1
- data/lib/courier/models/users/tenant_remove_single_params.rb +7 -1
- data/lib/courier/models/users/token_add_multiple_params.rb +7 -1
- data/lib/courier/models/users/token_add_single_params.rb +168 -2
- data/lib/courier/models/users/token_delete_params.rb +7 -1
- data/lib/courier/models/users/token_list_params.rb +7 -1
- data/lib/courier/models/users/token_retrieve_params.rb +7 -1
- data/lib/courier/models/users/token_update_params.rb +7 -1
- data/lib/courier/models.rb +12 -0
- data/lib/courier/resources/audiences.rb +4 -2
- data/lib/courier/resources/audit_events.rb +2 -1
- data/lib/courier/resources/automations.rb +2 -1
- data/lib/courier/resources/brands.rb +2 -1
- data/lib/courier/resources/bulk.rb +2 -1
- data/lib/courier/resources/journeys.rb +73 -0
- data/lib/courier/resources/lists/subscriptions.rb +2 -1
- data/lib/courier/resources/lists.rb +2 -1
- data/lib/courier/resources/messages.rb +4 -2
- data/lib/courier/resources/notifications.rb +2 -1
- data/lib/courier/resources/profiles/lists.rb +2 -1
- data/lib/courier/resources/tenants/templates.rb +2 -1
- data/lib/courier/resources/tenants.rb +4 -2
- data/lib/courier/resources/users/preferences.rb +7 -4
- data/lib/courier/resources/users/tenants.rb +2 -1
- data/lib/courier/resources/users/tokens.rb +7 -9
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +7 -0
- data/rbi/courier/client.rbi +3 -0
- data/rbi/courier/internal/util.rbi +21 -1
- data/rbi/courier/models/audience_delete_params.rbi +13 -5
- data/rbi/courier/models/audience_list_members_params.rbi +6 -0
- data/rbi/courier/models/audience_retrieve_params.rbi +13 -5
- data/rbi/courier/models/audience_update_params.rbi +6 -0
- data/rbi/courier/models/audit_event_retrieve_params.rbi +13 -5
- data/rbi/courier/models/automations/invoke_invoke_by_template_params.rbi +6 -0
- data/rbi/courier/models/brand_delete_params.rbi +13 -5
- data/rbi/courier/models/brand_retrieve_params.rbi +13 -5
- data/rbi/courier/models/brand_update_params.rbi +6 -0
- data/rbi/courier/models/bulk_add_users_params.rbi +6 -1
- data/rbi/courier/models/bulk_list_users_params.rbi +6 -0
- data/rbi/courier/models/bulk_retrieve_job_params.rbi +13 -5
- data/rbi/courier/models/bulk_run_job_params.rbi +13 -5
- data/rbi/courier/models/elemental_content.rbi +3 -9
- data/rbi/courier/models/journey.rbi +91 -0
- data/rbi/courier/models/journey_invoke_params.rbi +35 -0
- data/rbi/courier/models/journey_list_params.rbi +85 -0
- data/rbi/courier/models/journeys_invoke_request.rbi +84 -0
- data/rbi/courier/models/journeys_invoke_response.rbi +27 -0
- data/rbi/courier/models/journeys_list_response.rbi +46 -0
- data/rbi/courier/models/list_delete_params.rbi +13 -5
- data/rbi/courier/models/list_restore_params.rbi +13 -5
- data/rbi/courier/models/list_retrieve_params.rbi +13 -5
- data/rbi/courier/models/list_update_params.rbi +6 -1
- data/rbi/courier/models/lists/subscription_add_params.rbi +6 -1
- data/rbi/courier/models/lists/subscription_list_params.rbi +6 -0
- data/rbi/courier/models/lists/subscription_subscribe_params.rbi +6 -1
- data/rbi/courier/models/lists/subscription_subscribe_user_params.rbi +6 -1
- data/rbi/courier/models/lists/subscription_unsubscribe_user_params.rbi +10 -2
- data/rbi/courier/models/message_cancel_params.rbi +13 -5
- data/rbi/courier/models/message_content_params.rbi +13 -5
- data/rbi/courier/models/message_details.rbi +55 -43
- data/rbi/courier/models/message_history_params.rbi +10 -1
- data/rbi/courier/models/message_retrieve_params.rbi +13 -5
- data/rbi/courier/models/notification_retrieve_content_params.rbi +13 -5
- data/rbi/courier/models/notifications/check_delete_params.rbi +10 -2
- data/rbi/courier/models/notifications/check_list_params.rbi +10 -2
- data/rbi/courier/models/notifications/check_update_params.rbi +6 -1
- data/rbi/courier/models/notifications/draft_retrieve_content_params.rbi +13 -5
- data/rbi/courier/models/profile_create_params.rbi +6 -1
- data/rbi/courier/models/profile_delete_params.rbi +13 -5
- data/rbi/courier/models/profile_replace_params.rbi +6 -1
- data/rbi/courier/models/profile_retrieve_params.rbi +13 -5
- data/rbi/courier/models/profile_update_params.rbi +6 -0
- data/rbi/courier/models/profiles/list_delete_params.rbi +13 -5
- data/rbi/courier/models/profiles/list_retrieve_params.rbi +6 -0
- data/rbi/courier/models/profiles/list_subscribe_params.rbi +6 -1
- data/rbi/courier/models/request_archive_params.rbi +13 -5
- data/rbi/courier/models/tenant_delete_params.rbi +13 -5
- data/rbi/courier/models/tenant_list_users_params.rbi +6 -0
- data/rbi/courier/models/tenant_retrieve_params.rbi +13 -5
- data/rbi/courier/models/tenant_update_params.rbi +6 -0
- data/rbi/courier/models/tenants/preferences/item_delete_params.rbi +10 -2
- data/rbi/courier/models/tenants/preferences/item_update_params.rbi +10 -2
- data/rbi/courier/models/tenants/template_list_params.rbi +6 -0
- data/rbi/courier/models/tenants/template_publish_params.rbi +10 -2
- data/rbi/courier/models/tenants/template_replace_params.rbi +10 -2
- data/rbi/courier/models/tenants/template_retrieve_params.rbi +10 -2
- data/rbi/courier/models/tenants/templates/version_retrieve_params.rbi +6 -1
- data/rbi/courier/models/translation_retrieve_params.rbi +10 -2
- data/rbi/courier/models/translation_update_params.rbi +6 -1
- data/rbi/courier/models/users/preference_retrieve_params.rbi +6 -0
- data/rbi/courier/models/users/preference_retrieve_topic_params.rbi +6 -0
- data/rbi/courier/models/users/preference_update_or_create_topic_params.rbi +6 -0
- data/rbi/courier/models/users/tenant_add_multiple_params.rbi +6 -1
- data/rbi/courier/models/users/tenant_add_single_params.rbi +6 -1
- data/rbi/courier/models/users/tenant_list_params.rbi +6 -0
- data/rbi/courier/models/users/tenant_remove_all_params.rbi +13 -5
- data/rbi/courier/models/users/tenant_remove_single_params.rbi +10 -2
- data/rbi/courier/models/users/token_add_multiple_params.rbi +13 -5
- data/rbi/courier/models/users/token_add_single_params.rbi +290 -3
- data/rbi/courier/models/users/token_delete_params.rbi +10 -2
- data/rbi/courier/models/users/token_list_params.rbi +13 -5
- data/rbi/courier/models/users/token_retrieve_params.rbi +10 -2
- data/rbi/courier/models/users/token_update_params.rbi +6 -1
- data/rbi/courier/models.rbi +12 -0
- data/rbi/courier/resources/journeys.rbi +64 -0
- data/rbi/courier/resources/users/tokens.rbi +11 -9
- data/sig/courier/client.rbs +2 -0
- data/sig/courier/internal/util.rbs +10 -0
- data/sig/courier/models/audience_delete_params.rbs +11 -3
- data/sig/courier/models/audience_list_members_params.rbs +6 -1
- data/sig/courier/models/audience_retrieve_params.rbs +11 -3
- data/sig/courier/models/audience_update_params.rbs +5 -0
- data/sig/courier/models/audit_event_retrieve_params.rbs +11 -3
- data/sig/courier/models/automations/invoke_invoke_by_template_params.rbs +5 -0
- data/sig/courier/models/brand_delete_params.rbs +11 -3
- data/sig/courier/models/brand_retrieve_params.rbs +11 -3
- data/sig/courier/models/brand_update_params.rbs +5 -0
- data/sig/courier/models/bulk_add_users_params.rbs +5 -1
- data/sig/courier/models/bulk_list_users_params.rbs +6 -1
- data/sig/courier/models/bulk_retrieve_job_params.rbs +11 -3
- data/sig/courier/models/bulk_run_job_params.rbs +11 -3
- data/sig/courier/models/elemental_content.rbs +3 -11
- data/sig/courier/models/journey.rbs +55 -0
- data/sig/courier/models/journey_invoke_params.rbs +25 -0
- data/sig/courier/models/journey_list_params.rbs +45 -0
- data/sig/courier/models/journeys_invoke_request.rbs +36 -0
- data/sig/courier/models/journeys_invoke_response.rbs +13 -0
- data/sig/courier/models/journeys_list_response.rbs +23 -0
- data/sig/courier/models/list_delete_params.rbs +12 -3
- data/sig/courier/models/list_restore_params.rbs +11 -3
- data/sig/courier/models/list_retrieve_params.rbs +11 -3
- data/sig/courier/models/list_update_params.rbs +9 -1
- data/sig/courier/models/lists/subscription_add_params.rbs +8 -1
- data/sig/courier/models/lists/subscription_list_params.rbs +6 -1
- data/sig/courier/models/lists/subscription_subscribe_params.rbs +8 -1
- data/sig/courier/models/lists/subscription_subscribe_user_params.rbs +9 -1
- data/sig/courier/models/lists/subscription_unsubscribe_user_params.rbs +6 -1
- data/sig/courier/models/message_cancel_params.rbs +11 -3
- data/sig/courier/models/message_content_params.rbs +11 -3
- data/sig/courier/models/message_details.rbs +31 -23
- data/sig/courier/models/message_history_params.rbs +6 -1
- data/sig/courier/models/message_retrieve_params.rbs +11 -3
- data/sig/courier/models/notification_retrieve_content_params.rbs +8 -3
- data/sig/courier/models/notifications/check_delete_params.rbs +10 -2
- data/sig/courier/models/notifications/check_list_params.rbs +10 -2
- data/sig/courier/models/notifications/check_update_params.rbs +9 -1
- data/sig/courier/models/notifications/draft_retrieve_content_params.rbs +8 -3
- data/sig/courier/models/profile_create_params.rbs +5 -1
- data/sig/courier/models/profile_delete_params.rbs +11 -3
- data/sig/courier/models/profile_replace_params.rbs +5 -1
- data/sig/courier/models/profile_retrieve_params.rbs +11 -3
- data/sig/courier/models/profile_update_params.rbs +5 -1
- data/sig/courier/models/profiles/list_delete_params.rbs +11 -3
- data/sig/courier/models/profiles/list_retrieve_params.rbs +6 -1
- data/sig/courier/models/profiles/list_subscribe_params.rbs +8 -1
- data/sig/courier/models/request_archive_params.rbs +11 -3
- data/sig/courier/models/tenant_delete_params.rbs +11 -3
- data/sig/courier/models/tenant_list_users_params.rbs +5 -1
- data/sig/courier/models/tenant_retrieve_params.rbs +11 -3
- data/sig/courier/models/tenant_update_params.rbs +5 -0
- data/sig/courier/models/tenants/preferences/item_delete_params.rbs +6 -1
- data/sig/courier/models/tenants/preferences/item_update_params.rbs +8 -1
- data/sig/courier/models/tenants/template_list_params.rbs +5 -1
- data/sig/courier/models/tenants/template_publish_params.rbs +8 -1
- data/sig/courier/models/tenants/template_replace_params.rbs +8 -1
- data/sig/courier/models/tenants/template_retrieve_params.rbs +6 -1
- data/sig/courier/models/tenants/templates/version_retrieve_params.rbs +5 -1
- data/sig/courier/models/translation_retrieve_params.rbs +6 -1
- data/sig/courier/models/translation_update_params.rbs +5 -1
- data/sig/courier/models/users/preference_retrieve_params.rbs +6 -1
- data/sig/courier/models/users/preference_retrieve_topic_params.rbs +5 -1
- data/sig/courier/models/users/preference_update_or_create_topic_params.rbs +5 -0
- data/sig/courier/models/users/tenant_add_multiple_params.rbs +5 -1
- data/sig/courier/models/users/tenant_add_single_params.rbs +5 -1
- data/sig/courier/models/users/tenant_list_params.rbs +5 -1
- data/sig/courier/models/users/tenant_remove_all_params.rbs +11 -3
- data/sig/courier/models/users/tenant_remove_single_params.rbs +6 -1
- data/sig/courier/models/users/token_add_multiple_params.rbs +11 -3
- data/sig/courier/models/users/token_add_single_params.rbs +127 -4
- data/sig/courier/models/users/token_delete_params.rbs +6 -1
- data/sig/courier/models/users/token_list_params.rbs +11 -3
- data/sig/courier/models/users/token_retrieve_params.rbs +6 -1
- data/sig/courier/models/users/token_update_params.rbs +5 -0
- data/sig/courier/models.rbs +12 -0
- data/sig/courier/resources/journeys.rbs +21 -0
- data/sig/courier/resources/users/tokens.rbs +5 -6
- metadata +23 -2
|
@@ -13,16 +13,6 @@ module Courier
|
|
|
13
13
|
sig { returns(String) }
|
|
14
14
|
attr_accessor :id
|
|
15
15
|
|
|
16
|
-
# A UTC timestamp at which the recipient clicked on a tracked link for the first
|
|
17
|
-
# time. Stored as a millisecond representation of the Unix epoch.
|
|
18
|
-
sig { returns(Integer) }
|
|
19
|
-
attr_accessor :clicked
|
|
20
|
-
|
|
21
|
-
# A UTC timestamp at which the Integration provider delivered the message. Stored
|
|
22
|
-
# as a millisecond representation of the Unix epoch.
|
|
23
|
-
sig { returns(Integer) }
|
|
24
|
-
attr_accessor :delivered
|
|
25
|
-
|
|
26
16
|
# A UTC timestamp at which Courier received the message request. Stored as a
|
|
27
17
|
# millisecond representation of the Unix epoch.
|
|
28
18
|
sig { returns(Integer) }
|
|
@@ -36,58 +26,74 @@ module Courier
|
|
|
36
26
|
sig { returns(String) }
|
|
37
27
|
attr_accessor :notification
|
|
38
28
|
|
|
39
|
-
# A UTC timestamp at which the recipient opened a message for the first time.
|
|
40
|
-
# Stored as a millisecond representation of the Unix epoch.
|
|
41
|
-
sig { returns(Integer) }
|
|
42
|
-
attr_accessor :opened
|
|
43
|
-
|
|
44
29
|
# A unique identifier associated with the recipient of the delivered message.
|
|
45
30
|
sig { returns(String) }
|
|
46
31
|
attr_accessor :recipient
|
|
47
32
|
|
|
48
|
-
# A UTC timestamp at which Courier passed the message to the Integration provider.
|
|
49
|
-
# Stored as a millisecond representation of the Unix epoch.
|
|
50
|
-
sig { returns(Integer) }
|
|
51
|
-
attr_accessor :sent
|
|
52
|
-
|
|
53
33
|
# The current status of the message.
|
|
54
34
|
sig { returns(Courier::MessageDetails::Status::TaggedSymbol) }
|
|
55
35
|
attr_accessor :status
|
|
56
36
|
|
|
37
|
+
# A UTC timestamp at which the recipient clicked on a tracked link for the first
|
|
38
|
+
# time. Stored as a millisecond representation of the Unix epoch.
|
|
39
|
+
sig { returns(T.nilable(Integer)) }
|
|
40
|
+
attr_reader :clicked
|
|
41
|
+
|
|
42
|
+
sig { params(clicked: Integer).void }
|
|
43
|
+
attr_writer :clicked
|
|
44
|
+
|
|
45
|
+
# A UTC timestamp at which the Integration provider delivered the message. Stored
|
|
46
|
+
# as a millisecond representation of the Unix epoch.
|
|
47
|
+
sig { returns(T.nilable(Integer)) }
|
|
48
|
+
attr_reader :delivered
|
|
49
|
+
|
|
50
|
+
sig { params(delivered: Integer).void }
|
|
51
|
+
attr_writer :delivered
|
|
52
|
+
|
|
57
53
|
# A message describing the error that occurred.
|
|
58
54
|
sig { returns(T.nilable(String)) }
|
|
59
55
|
attr_accessor :error
|
|
60
56
|
|
|
57
|
+
# A UTC timestamp at which the recipient opened a message for the first time.
|
|
58
|
+
# Stored as a millisecond representation of the Unix epoch.
|
|
59
|
+
sig { returns(T.nilable(Integer)) }
|
|
60
|
+
attr_reader :opened
|
|
61
|
+
|
|
62
|
+
sig { params(opened: Integer).void }
|
|
63
|
+
attr_writer :opened
|
|
64
|
+
|
|
61
65
|
# The reason for the current status of the message.
|
|
62
66
|
sig { returns(T.nilable(Courier::MessageDetails::Reason::TaggedSymbol)) }
|
|
63
67
|
attr_accessor :reason
|
|
64
68
|
|
|
69
|
+
# A UTC timestamp at which Courier passed the message to the Integration provider.
|
|
70
|
+
# Stored as a millisecond representation of the Unix epoch.
|
|
71
|
+
sig { returns(T.nilable(Integer)) }
|
|
72
|
+
attr_reader :sent
|
|
73
|
+
|
|
74
|
+
sig { params(sent: Integer).void }
|
|
75
|
+
attr_writer :sent
|
|
76
|
+
|
|
65
77
|
sig do
|
|
66
78
|
params(
|
|
67
79
|
id: String,
|
|
68
|
-
clicked: Integer,
|
|
69
|
-
delivered: Integer,
|
|
70
80
|
enqueued: Integer,
|
|
71
81
|
event: String,
|
|
72
82
|
notification: String,
|
|
73
|
-
opened: Integer,
|
|
74
83
|
recipient: String,
|
|
75
|
-
sent: Integer,
|
|
76
84
|
status: Courier::MessageDetails::Status::OrSymbol,
|
|
85
|
+
clicked: Integer,
|
|
86
|
+
delivered: Integer,
|
|
77
87
|
error: T.nilable(String),
|
|
78
|
-
|
|
88
|
+
opened: Integer,
|
|
89
|
+
reason: T.nilable(Courier::MessageDetails::Reason::OrSymbol),
|
|
90
|
+
sent: Integer
|
|
79
91
|
).returns(T.attached_class)
|
|
80
92
|
end
|
|
81
93
|
def self.new(
|
|
82
94
|
# A unique identifier associated with the message you wish to retrieve (results
|
|
83
95
|
# from a send).
|
|
84
96
|
id:,
|
|
85
|
-
# A UTC timestamp at which the recipient clicked on a tracked link for the first
|
|
86
|
-
# time. Stored as a millisecond representation of the Unix epoch.
|
|
87
|
-
clicked:,
|
|
88
|
-
# A UTC timestamp at which the Integration provider delivered the message. Stored
|
|
89
|
-
# as a millisecond representation of the Unix epoch.
|
|
90
|
-
delivered:,
|
|
91
97
|
# A UTC timestamp at which Courier received the message request. Stored as a
|
|
92
98
|
# millisecond representation of the Unix epoch.
|
|
93
99
|
enqueued:,
|
|
@@ -95,20 +101,26 @@ module Courier
|
|
|
95
101
|
event:,
|
|
96
102
|
# A unique identifier associated with the notification of the delivered message.
|
|
97
103
|
notification:,
|
|
98
|
-
# A UTC timestamp at which the recipient opened a message for the first time.
|
|
99
|
-
# Stored as a millisecond representation of the Unix epoch.
|
|
100
|
-
opened:,
|
|
101
104
|
# A unique identifier associated with the recipient of the delivered message.
|
|
102
105
|
recipient:,
|
|
103
|
-
# A UTC timestamp at which Courier passed the message to the Integration provider.
|
|
104
|
-
# Stored as a millisecond representation of the Unix epoch.
|
|
105
|
-
sent:,
|
|
106
106
|
# The current status of the message.
|
|
107
107
|
status:,
|
|
108
|
+
# A UTC timestamp at which the recipient clicked on a tracked link for the first
|
|
109
|
+
# time. Stored as a millisecond representation of the Unix epoch.
|
|
110
|
+
clicked: nil,
|
|
111
|
+
# A UTC timestamp at which the Integration provider delivered the message. Stored
|
|
112
|
+
# as a millisecond representation of the Unix epoch.
|
|
113
|
+
delivered: nil,
|
|
108
114
|
# A message describing the error that occurred.
|
|
109
115
|
error: nil,
|
|
116
|
+
# A UTC timestamp at which the recipient opened a message for the first time.
|
|
117
|
+
# Stored as a millisecond representation of the Unix epoch.
|
|
118
|
+
opened: nil,
|
|
110
119
|
# The reason for the current status of the message.
|
|
111
|
-
reason: nil
|
|
120
|
+
reason: nil,
|
|
121
|
+
# A UTC timestamp at which Courier passed the message to the Integration provider.
|
|
122
|
+
# Stored as a millisecond representation of the Unix epoch.
|
|
123
|
+
sent: nil
|
|
112
124
|
)
|
|
113
125
|
end
|
|
114
126
|
|
|
@@ -116,17 +128,17 @@ module Courier
|
|
|
116
128
|
override.returns(
|
|
117
129
|
{
|
|
118
130
|
id: String,
|
|
119
|
-
clicked: Integer,
|
|
120
|
-
delivered: Integer,
|
|
121
131
|
enqueued: Integer,
|
|
122
132
|
event: String,
|
|
123
133
|
notification: String,
|
|
124
|
-
opened: Integer,
|
|
125
134
|
recipient: String,
|
|
126
|
-
sent: Integer,
|
|
127
135
|
status: Courier::MessageDetails::Status::TaggedSymbol,
|
|
136
|
+
clicked: Integer,
|
|
137
|
+
delivered: Integer,
|
|
128
138
|
error: T.nilable(String),
|
|
129
|
-
|
|
139
|
+
opened: Integer,
|
|
140
|
+
reason: T.nilable(Courier::MessageDetails::Reason::TaggedSymbol),
|
|
141
|
+
sent: Integer
|
|
130
142
|
}
|
|
131
143
|
)
|
|
132
144
|
end
|
|
@@ -11,17 +11,22 @@ module Courier
|
|
|
11
11
|
T.any(Courier::MessageHistoryParams, Courier::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :message_id
|
|
16
|
+
|
|
14
17
|
# A supported Message History type that will filter the events returned.
|
|
15
18
|
sig { returns(T.nilable(String)) }
|
|
16
19
|
attr_accessor :type
|
|
17
20
|
|
|
18
21
|
sig do
|
|
19
22
|
params(
|
|
23
|
+
message_id: String,
|
|
20
24
|
type: T.nilable(String),
|
|
21
25
|
request_options: Courier::RequestOptions::OrHash
|
|
22
26
|
).returns(T.attached_class)
|
|
23
27
|
end
|
|
24
28
|
def self.new(
|
|
29
|
+
message_id:,
|
|
25
30
|
# A supported Message History type that will filter the events returned.
|
|
26
31
|
type: nil,
|
|
27
32
|
request_options: {}
|
|
@@ -30,7 +35,11 @@ module Courier
|
|
|
30
35
|
|
|
31
36
|
sig do
|
|
32
37
|
override.returns(
|
|
33
|
-
{
|
|
38
|
+
{
|
|
39
|
+
message_id: String,
|
|
40
|
+
type: T.nilable(String),
|
|
41
|
+
request_options: Courier::RequestOptions
|
|
42
|
+
}
|
|
34
43
|
)
|
|
35
44
|
end
|
|
36
45
|
def to_hash
|
|
@@ -11,15 +11,23 @@ module Courier
|
|
|
11
11
|
T.any(Courier::MessageRetrieveParams, Courier::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :message_id
|
|
16
|
+
|
|
14
17
|
sig do
|
|
15
|
-
params(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
params(
|
|
19
|
+
message_id: String,
|
|
20
|
+
request_options: Courier::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
18
22
|
end
|
|
19
|
-
def self.new(request_options: {})
|
|
23
|
+
def self.new(message_id:, request_options: {})
|
|
20
24
|
end
|
|
21
25
|
|
|
22
|
-
sig
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{ message_id: String, request_options: Courier::RequestOptions }
|
|
29
|
+
)
|
|
30
|
+
end
|
|
23
31
|
def to_hash
|
|
24
32
|
end
|
|
25
33
|
end
|
|
@@ -14,15 +14,23 @@ module Courier
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
id: String,
|
|
23
|
+
request_options: Courier::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
|
-
def self.new(request_options: {})
|
|
26
|
+
def self.new(id:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
|
-
sig
|
|
29
|
+
sig do
|
|
30
|
+
override.returns(
|
|
31
|
+
{ id: String, request_options: Courier::RequestOptions }
|
|
32
|
+
)
|
|
33
|
+
end
|
|
26
34
|
def to_hash
|
|
27
35
|
end
|
|
28
36
|
end
|
|
@@ -18,18 +18,26 @@ module Courier
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :submission_id
|
|
23
|
+
|
|
21
24
|
sig do
|
|
22
25
|
params(
|
|
23
26
|
id: String,
|
|
27
|
+
submission_id: String,
|
|
24
28
|
request_options: Courier::RequestOptions::OrHash
|
|
25
29
|
).returns(T.attached_class)
|
|
26
30
|
end
|
|
27
|
-
def self.new(id:, request_options: {})
|
|
31
|
+
def self.new(id:, submission_id:, request_options: {})
|
|
28
32
|
end
|
|
29
33
|
|
|
30
34
|
sig do
|
|
31
35
|
override.returns(
|
|
32
|
-
{
|
|
36
|
+
{
|
|
37
|
+
id: String,
|
|
38
|
+
submission_id: String,
|
|
39
|
+
request_options: Courier::RequestOptions
|
|
40
|
+
}
|
|
33
41
|
)
|
|
34
42
|
end
|
|
35
43
|
def to_hash
|
|
@@ -18,18 +18,26 @@ module Courier
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :submission_id
|
|
23
|
+
|
|
21
24
|
sig do
|
|
22
25
|
params(
|
|
23
26
|
id: String,
|
|
27
|
+
submission_id: String,
|
|
24
28
|
request_options: Courier::RequestOptions::OrHash
|
|
25
29
|
).returns(T.attached_class)
|
|
26
30
|
end
|
|
27
|
-
def self.new(id:, request_options: {})
|
|
31
|
+
def self.new(id:, submission_id:, request_options: {})
|
|
28
32
|
end
|
|
29
33
|
|
|
30
34
|
sig do
|
|
31
35
|
override.returns(
|
|
32
|
-
{
|
|
36
|
+
{
|
|
37
|
+
id: String,
|
|
38
|
+
submission_id: String,
|
|
39
|
+
request_options: Courier::RequestOptions
|
|
40
|
+
}
|
|
33
41
|
)
|
|
34
42
|
end
|
|
35
43
|
def to_hash
|
|
@@ -18,23 +18,28 @@ module Courier
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :submission_id
|
|
23
|
+
|
|
21
24
|
sig { returns(T::Array[Courier::BaseCheck]) }
|
|
22
25
|
attr_accessor :checks
|
|
23
26
|
|
|
24
27
|
sig do
|
|
25
28
|
params(
|
|
26
29
|
id: String,
|
|
30
|
+
submission_id: String,
|
|
27
31
|
checks: T::Array[Courier::BaseCheck::OrHash],
|
|
28
32
|
request_options: Courier::RequestOptions::OrHash
|
|
29
33
|
).returns(T.attached_class)
|
|
30
34
|
end
|
|
31
|
-
def self.new(id:, checks:, request_options: {})
|
|
35
|
+
def self.new(id:, submission_id:, checks:, request_options: {})
|
|
32
36
|
end
|
|
33
37
|
|
|
34
38
|
sig do
|
|
35
39
|
override.returns(
|
|
36
40
|
{
|
|
37
41
|
id: String,
|
|
42
|
+
submission_id: String,
|
|
38
43
|
checks: T::Array[Courier::BaseCheck],
|
|
39
44
|
request_options: Courier::RequestOptions
|
|
40
45
|
}
|
|
@@ -15,15 +15,23 @@ module Courier
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
18
21
|
sig do
|
|
19
|
-
params(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
params(
|
|
23
|
+
id: String,
|
|
24
|
+
request_options: Courier::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
22
26
|
end
|
|
23
|
-
def self.new(request_options: {})
|
|
27
|
+
def self.new(id:, request_options: {})
|
|
24
28
|
end
|
|
25
29
|
|
|
26
|
-
sig
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{ id: String, request_options: Courier::RequestOptions }
|
|
33
|
+
)
|
|
34
|
+
end
|
|
27
35
|
def to_hash
|
|
28
36
|
end
|
|
29
37
|
end
|
|
@@ -11,21 +11,26 @@ module Courier
|
|
|
11
11
|
T.any(Courier::ProfileCreateParams, Courier::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :user_id
|
|
16
|
+
|
|
14
17
|
sig { returns(T::Hash[Symbol, T.anything]) }
|
|
15
18
|
attr_accessor :profile
|
|
16
19
|
|
|
17
20
|
sig do
|
|
18
21
|
params(
|
|
22
|
+
user_id: String,
|
|
19
23
|
profile: T::Hash[Symbol, T.anything],
|
|
20
24
|
request_options: Courier::RequestOptions::OrHash
|
|
21
25
|
).returns(T.attached_class)
|
|
22
26
|
end
|
|
23
|
-
def self.new(profile:, request_options: {})
|
|
27
|
+
def self.new(user_id:, profile:, request_options: {})
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
sig do
|
|
27
31
|
override.returns(
|
|
28
32
|
{
|
|
33
|
+
user_id: String,
|
|
29
34
|
profile: T::Hash[Symbol, T.anything],
|
|
30
35
|
request_options: Courier::RequestOptions
|
|
31
36
|
}
|
|
@@ -11,15 +11,23 @@ module Courier
|
|
|
11
11
|
T.any(Courier::ProfileDeleteParams, Courier::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :user_id
|
|
16
|
+
|
|
14
17
|
sig do
|
|
15
|
-
params(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
params(
|
|
19
|
+
user_id: String,
|
|
20
|
+
request_options: Courier::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
18
22
|
end
|
|
19
|
-
def self.new(request_options: {})
|
|
23
|
+
def self.new(user_id:, request_options: {})
|
|
20
24
|
end
|
|
21
25
|
|
|
22
|
-
sig
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{ user_id: String, request_options: Courier::RequestOptions }
|
|
29
|
+
)
|
|
30
|
+
end
|
|
23
31
|
def to_hash
|
|
24
32
|
end
|
|
25
33
|
end
|
|
@@ -11,21 +11,26 @@ module Courier
|
|
|
11
11
|
T.any(Courier::ProfileReplaceParams, Courier::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :user_id
|
|
16
|
+
|
|
14
17
|
sig { returns(T::Hash[Symbol, T.anything]) }
|
|
15
18
|
attr_accessor :profile
|
|
16
19
|
|
|
17
20
|
sig do
|
|
18
21
|
params(
|
|
22
|
+
user_id: String,
|
|
19
23
|
profile: T::Hash[Symbol, T.anything],
|
|
20
24
|
request_options: Courier::RequestOptions::OrHash
|
|
21
25
|
).returns(T.attached_class)
|
|
22
26
|
end
|
|
23
|
-
def self.new(profile:, request_options: {})
|
|
27
|
+
def self.new(user_id:, profile:, request_options: {})
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
sig do
|
|
27
31
|
override.returns(
|
|
28
32
|
{
|
|
33
|
+
user_id: String,
|
|
29
34
|
profile: T::Hash[Symbol, T.anything],
|
|
30
35
|
request_options: Courier::RequestOptions
|
|
31
36
|
}
|
|
@@ -11,15 +11,23 @@ module Courier
|
|
|
11
11
|
T.any(Courier::ProfileRetrieveParams, Courier::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :user_id
|
|
16
|
+
|
|
14
17
|
sig do
|
|
15
|
-
params(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
params(
|
|
19
|
+
user_id: String,
|
|
20
|
+
request_options: Courier::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
18
22
|
end
|
|
19
|
-
def self.new(request_options: {})
|
|
23
|
+
def self.new(user_id:, request_options: {})
|
|
20
24
|
end
|
|
21
25
|
|
|
22
|
-
sig
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{ user_id: String, request_options: Courier::RequestOptions }
|
|
29
|
+
)
|
|
30
|
+
end
|
|
23
31
|
def to_hash
|
|
24
32
|
end
|
|
25
33
|
end
|
|
@@ -11,17 +11,22 @@ module Courier
|
|
|
11
11
|
T.any(Courier::ProfileUpdateParams, Courier::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :user_id
|
|
16
|
+
|
|
14
17
|
# List of patch operations to apply to the profile.
|
|
15
18
|
sig { returns(T::Array[Courier::ProfileUpdateParams::Patch]) }
|
|
16
19
|
attr_accessor :patch
|
|
17
20
|
|
|
18
21
|
sig do
|
|
19
22
|
params(
|
|
23
|
+
user_id: String,
|
|
20
24
|
patch: T::Array[Courier::ProfileUpdateParams::Patch::OrHash],
|
|
21
25
|
request_options: Courier::RequestOptions::OrHash
|
|
22
26
|
).returns(T.attached_class)
|
|
23
27
|
end
|
|
24
28
|
def self.new(
|
|
29
|
+
user_id:,
|
|
25
30
|
# List of patch operations to apply to the profile.
|
|
26
31
|
patch:,
|
|
27
32
|
request_options: {}
|
|
@@ -31,6 +36,7 @@ module Courier
|
|
|
31
36
|
sig do
|
|
32
37
|
override.returns(
|
|
33
38
|
{
|
|
39
|
+
user_id: String,
|
|
34
40
|
patch: T::Array[Courier::ProfileUpdateParams::Patch],
|
|
35
41
|
request_options: Courier::RequestOptions
|
|
36
42
|
}
|
|
@@ -15,15 +15,23 @@ module Courier
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :user_id
|
|
20
|
+
|
|
18
21
|
sig do
|
|
19
|
-
params(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
params(
|
|
23
|
+
user_id: String,
|
|
24
|
+
request_options: Courier::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
22
26
|
end
|
|
23
|
-
def self.new(request_options: {})
|
|
27
|
+
def self.new(user_id:, request_options: {})
|
|
24
28
|
end
|
|
25
29
|
|
|
26
|
-
sig
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{ user_id: String, request_options: Courier::RequestOptions }
|
|
33
|
+
)
|
|
34
|
+
end
|
|
27
35
|
def to_hash
|
|
28
36
|
end
|
|
29
37
|
end
|
|
@@ -15,17 +15,22 @@ module Courier
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :user_id
|
|
20
|
+
|
|
18
21
|
# A unique identifier that allows for fetching the next set of message statuses.
|
|
19
22
|
sig { returns(T.nilable(String)) }
|
|
20
23
|
attr_accessor :cursor
|
|
21
24
|
|
|
22
25
|
sig do
|
|
23
26
|
params(
|
|
27
|
+
user_id: String,
|
|
24
28
|
cursor: T.nilable(String),
|
|
25
29
|
request_options: Courier::RequestOptions::OrHash
|
|
26
30
|
).returns(T.attached_class)
|
|
27
31
|
end
|
|
28
32
|
def self.new(
|
|
33
|
+
user_id:,
|
|
29
34
|
# A unique identifier that allows for fetching the next set of message statuses.
|
|
30
35
|
cursor: nil,
|
|
31
36
|
request_options: {}
|
|
@@ -35,6 +40,7 @@ module Courier
|
|
|
35
40
|
sig do
|
|
36
41
|
override.returns(
|
|
37
42
|
{
|
|
43
|
+
user_id: String,
|
|
38
44
|
cursor: T.nilable(String),
|
|
39
45
|
request_options: Courier::RequestOptions
|
|
40
46
|
}
|
|
@@ -15,21 +15,26 @@ module Courier
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :user_id
|
|
20
|
+
|
|
18
21
|
sig { returns(T::Array[Courier::SubscribeToListsRequestItem]) }
|
|
19
22
|
attr_accessor :lists
|
|
20
23
|
|
|
21
24
|
sig do
|
|
22
25
|
params(
|
|
26
|
+
user_id: String,
|
|
23
27
|
lists: T::Array[Courier::SubscribeToListsRequestItem::OrHash],
|
|
24
28
|
request_options: Courier::RequestOptions::OrHash
|
|
25
29
|
).returns(T.attached_class)
|
|
26
30
|
end
|
|
27
|
-
def self.new(lists:, request_options: {})
|
|
31
|
+
def self.new(user_id:, lists:, request_options: {})
|
|
28
32
|
end
|
|
29
33
|
|
|
30
34
|
sig do
|
|
31
35
|
override.returns(
|
|
32
36
|
{
|
|
37
|
+
user_id: String,
|
|
33
38
|
lists: T::Array[Courier::SubscribeToListsRequestItem],
|
|
34
39
|
request_options: Courier::RequestOptions
|
|
35
40
|
}
|
|
@@ -11,15 +11,23 @@ module Courier
|
|
|
11
11
|
T.any(Courier::RequestArchiveParams, Courier::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :request_id
|
|
16
|
+
|
|
14
17
|
sig do
|
|
15
|
-
params(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
params(
|
|
19
|
+
request_id: String,
|
|
20
|
+
request_options: Courier::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
18
22
|
end
|
|
19
|
-
def self.new(request_options: {})
|
|
23
|
+
def self.new(request_id:, request_options: {})
|
|
20
24
|
end
|
|
21
25
|
|
|
22
|
-
sig
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{ request_id: String, request_options: Courier::RequestOptions }
|
|
29
|
+
)
|
|
30
|
+
end
|
|
23
31
|
def to_hash
|
|
24
32
|
end
|
|
25
33
|
end
|
|
@@ -11,15 +11,23 @@ module Courier
|
|
|
11
11
|
T.any(Courier::TenantDeleteParams, Courier::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :tenant_id
|
|
16
|
+
|
|
14
17
|
sig do
|
|
15
|
-
params(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
params(
|
|
19
|
+
tenant_id: String,
|
|
20
|
+
request_options: Courier::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
18
22
|
end
|
|
19
|
-
def self.new(request_options: {})
|
|
23
|
+
def self.new(tenant_id:, request_options: {})
|
|
20
24
|
end
|
|
21
25
|
|
|
22
|
-
sig
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{ tenant_id: String, request_options: Courier::RequestOptions }
|
|
29
|
+
)
|
|
30
|
+
end
|
|
23
31
|
def to_hash
|
|
24
32
|
end
|
|
25
33
|
end
|