ark-email 0.14.0 → 0.16.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 +27 -0
- data/README.md +3 -3
- data/lib/ark_email/client.rb +4 -0
- data/lib/ark_email/models/dns_record.rb +49 -19
- data/lib/ark_email/models/domain_create_response.rb +117 -25
- data/lib/ark_email/models/domain_list_response.rb +12 -13
- data/lib/ark_email/models/domain_retrieve_response.rb +117 -25
- data/lib/ark_email/models/domain_verify_response.rb +117 -25
- data/lib/ark_email/models/email_list_response.rb +3 -10
- data/lib/ark_email/models/email_retrieve_deliveries_response.rb +11 -19
- data/lib/ark_email/models/email_retrieve_response.rb +3 -13
- data/lib/ark_email/models/email_retry_response.rb +9 -1
- data/lib/ark_email/models/email_send_batch_response.rb +3 -10
- data/lib/ark_email/models/email_send_raw_response.rb +2 -2
- data/lib/ark_email/models/email_send_response.rb +2 -2
- data/lib/ark_email/models/log_entry.rb +2 -2
- data/lib/ark_email/models/track_domain.rb +6 -2
- data/lib/ark_email/models/usage_retrieve_params.rb +14 -0
- data/lib/ark_email/models/usage_retrieve_response.rb +270 -0
- data/lib/ark_email/models/webhook_create_params.rb +0 -2
- data/lib/ark_email/models/webhook_create_response.rb +0 -2
- data/lib/ark_email/models/webhook_list_deliveries_params.rb +0 -2
- data/lib/ark_email/models/webhook_list_deliveries_response.rb +0 -2
- data/lib/ark_email/models/webhook_retrieve_delivery_response.rb +0 -2
- data/lib/ark_email/models/webhook_retrieve_response.rb +0 -2
- data/lib/ark_email/models/webhook_test_params.rb +0 -2
- data/lib/ark_email/models/webhook_update_response.rb +0 -2
- data/lib/ark_email/models.rb +2 -0
- data/lib/ark_email/resources/emails.rb +15 -14
- data/lib/ark_email/resources/usage.rb +51 -0
- data/lib/ark_email/version.rb +1 -1
- data/lib/ark_email.rb +3 -0
- data/rbi/ark_email/client.rbi +3 -0
- data/rbi/ark_email/models/dns_record.rbi +57 -22
- data/rbi/ark_email/models/domain_create_response.rbi +189 -28
- data/rbi/ark_email/models/domain_list_response.rbi +13 -19
- data/rbi/ark_email/models/domain_retrieve_response.rbi +191 -28
- data/rbi/ark_email/models/domain_verify_response.rbi +189 -28
- data/rbi/ark_email/models/email_list_response.rbi +2 -8
- data/rbi/ark_email/models/email_retrieve_deliveries_response.rbi +10 -18
- data/rbi/ark_email/models/email_retrieve_response.rbi +2 -14
- data/rbi/ark_email/models/email_retry_response.rbi +11 -3
- data/rbi/ark_email/models/email_send_batch_response.rbi +5 -9
- data/rbi/ark_email/models/email_send_raw_response.rbi +2 -2
- data/rbi/ark_email/models/email_send_response.rbi +2 -2
- data/rbi/ark_email/models/log_entry.rbi +2 -2
- data/rbi/ark_email/models/track_domain.rbi +4 -2
- data/rbi/ark_email/models/usage_retrieve_params.rbi +27 -0
- data/rbi/ark_email/models/usage_retrieve_response.rbi +511 -0
- data/rbi/ark_email/models/webhook_create_params.rbi +0 -10
- data/rbi/ark_email/models/webhook_create_response.rbi +0 -10
- data/rbi/ark_email/models/webhook_list_deliveries_params.rbi +0 -10
- data/rbi/ark_email/models/webhook_list_deliveries_response.rbi +0 -10
- data/rbi/ark_email/models/webhook_retrieve_delivery_response.rbi +0 -10
- data/rbi/ark_email/models/webhook_retrieve_response.rbi +0 -10
- data/rbi/ark_email/models/webhook_test_params.rbi +0 -10
- data/rbi/ark_email/models/webhook_update_response.rbi +0 -10
- data/rbi/ark_email/models.rbi +2 -0
- data/rbi/ark_email/resources/emails.rbi +14 -14
- data/rbi/ark_email/resources/usage.rbi +40 -0
- data/sig/ark_email/client.rbs +2 -0
- data/sig/ark_email/models/dns_record.rbs +5 -0
- data/sig/ark_email/models/domain_create_response.rbs +27 -20
- data/sig/ark_email/models/domain_list_response.rbs +4 -16
- data/sig/ark_email/models/domain_retrieve_response.rbs +27 -20
- data/sig/ark_email/models/domain_verify_response.rbs +27 -20
- data/sig/ark_email/models/email_list_response.rbs +0 -5
- data/sig/ark_email/models/email_retrieve_deliveries_response.rbs +5 -10
- data/sig/ark_email/models/email_retrieve_response.rbs +0 -5
- data/sig/ark_email/models/email_retry_response.rbs +5 -3
- data/sig/ark_email/models/email_send_batch_response.rbs +3 -5
- data/sig/ark_email/models/usage_retrieve_params.rbs +15 -0
- data/sig/ark_email/models/usage_retrieve_response.rbs +212 -0
- data/sig/ark_email/models/webhook_create_params.rbs +0 -4
- data/sig/ark_email/models/webhook_create_response.rbs +0 -4
- data/sig/ark_email/models/webhook_list_deliveries_params.rbs +0 -4
- data/sig/ark_email/models/webhook_list_deliveries_response.rbs +0 -4
- data/sig/ark_email/models/webhook_retrieve_delivery_response.rbs +0 -4
- data/sig/ark_email/models/webhook_retrieve_response.rbs +0 -4
- data/sig/ark_email/models/webhook_test_params.rbs +0 -4
- data/sig/ark_email/models/webhook_update_response.rbs +0 -4
- data/sig/ark_email/models.rbs +2 -0
- data/sig/ark_email/resources/emails.rbs +3 -3
- data/sig/ark_email/resources/usage.rbs +11 -0
- metadata +11 -2
|
@@ -27,82 +27,174 @@ module ArkEmail
|
|
|
27
27
|
# @see ArkEmail::Models::DomainVerifyResponse#data
|
|
28
28
|
class Data < ArkEmail::Internal::Type::BaseModel
|
|
29
29
|
# @!attribute id
|
|
30
|
-
#
|
|
30
|
+
# Unique domain identifier
|
|
31
31
|
#
|
|
32
|
-
# @return [
|
|
33
|
-
required :id,
|
|
32
|
+
# @return [Integer]
|
|
33
|
+
required :id, Integer
|
|
34
34
|
|
|
35
35
|
# @!attribute created_at
|
|
36
|
+
# Timestamp when the domain was added
|
|
36
37
|
#
|
|
37
38
|
# @return [Time]
|
|
38
39
|
required :created_at, Time, api_name: :createdAt
|
|
39
40
|
|
|
40
41
|
# @!attribute dns_records
|
|
42
|
+
# DNS records that must be added to your domain's DNS settings. Null if records
|
|
43
|
+
# are not yet generated.
|
|
44
|
+
#
|
|
45
|
+
# **Important:** The `name` field contains the relative hostname that you should
|
|
46
|
+
# enter in your DNS provider. Most DNS providers auto-append the zone name, so you
|
|
47
|
+
# only need to enter the relative part.
|
|
48
|
+
#
|
|
49
|
+
# For subdomains like `mail.example.com`, the zone is `example.com`, so:
|
|
50
|
+
#
|
|
51
|
+
# - SPF `name` would be `mail` (not `@`)
|
|
52
|
+
# - DKIM `name` would be `ark-xyz._domainkey.mail`
|
|
53
|
+
# - Return Path `name` would be `psrp.mail`
|
|
41
54
|
#
|
|
42
|
-
# @return [ArkEmail::Models::DomainVerifyResponse::Data::DNSRecords]
|
|
55
|
+
# @return [ArkEmail::Models::DomainVerifyResponse::Data::DNSRecords, nil]
|
|
43
56
|
required :dns_records,
|
|
44
57
|
-> { ArkEmail::Models::DomainVerifyResponse::Data::DNSRecords },
|
|
45
|
-
api_name: :dnsRecords
|
|
58
|
+
api_name: :dnsRecords,
|
|
59
|
+
nil?: true
|
|
46
60
|
|
|
47
61
|
# @!attribute name
|
|
48
|
-
#
|
|
62
|
+
# The domain name used for sending emails
|
|
49
63
|
#
|
|
50
64
|
# @return [String]
|
|
51
65
|
required :name, String
|
|
52
66
|
|
|
53
67
|
# @!attribute uuid
|
|
68
|
+
# UUID of the domain
|
|
54
69
|
#
|
|
55
70
|
# @return [String]
|
|
56
71
|
required :uuid, String
|
|
57
72
|
|
|
58
73
|
# @!attribute verified
|
|
59
|
-
# Whether DNS
|
|
74
|
+
# Whether all DNS records (SPF, DKIM, Return Path) are correctly configured.
|
|
75
|
+
# Domain must be verified before sending emails.
|
|
60
76
|
#
|
|
61
77
|
# @return [Boolean]
|
|
62
78
|
required :verified, ArkEmail::Internal::Type::Boolean
|
|
63
79
|
|
|
64
80
|
# @!attribute verified_at
|
|
65
|
-
#
|
|
81
|
+
# Timestamp when the domain ownership was verified, or null if not yet verified
|
|
66
82
|
#
|
|
67
83
|
# @return [Time, nil]
|
|
68
84
|
optional :verified_at, Time, api_name: :verifiedAt, nil?: true
|
|
69
85
|
|
|
70
86
|
# @!method initialize(id:, created_at:, dns_records:, name:, uuid:, verified:, verified_at: nil)
|
|
71
|
-
#
|
|
87
|
+
# Some parameter documentations has been truncated, see
|
|
88
|
+
# {ArkEmail::Models::DomainVerifyResponse::Data} for more details.
|
|
72
89
|
#
|
|
73
|
-
# @param
|
|
90
|
+
# @param id [Integer] Unique domain identifier
|
|
74
91
|
#
|
|
75
|
-
# @param
|
|
92
|
+
# @param created_at [Time] Timestamp when the domain was added
|
|
76
93
|
#
|
|
77
|
-
# @param
|
|
94
|
+
# @param dns_records [ArkEmail::Models::DomainVerifyResponse::Data::DNSRecords, nil] DNS records that must be added to your domain's DNS settings. Null if records ar
|
|
78
95
|
#
|
|
79
|
-
# @param
|
|
96
|
+
# @param name [String] The domain name used for sending emails
|
|
80
97
|
#
|
|
81
|
-
# @param
|
|
98
|
+
# @param uuid [String] UUID of the domain
|
|
82
99
|
#
|
|
83
|
-
# @param
|
|
100
|
+
# @param verified [Boolean] Whether all DNS records (SPF, DKIM, Return Path) are correctly configured. Domai
|
|
101
|
+
#
|
|
102
|
+
# @param verified_at [Time, nil] Timestamp when the domain ownership was verified, or null if not yet verified
|
|
84
103
|
|
|
85
104
|
# @see ArkEmail::Models::DomainVerifyResponse::Data#dns_records
|
|
86
105
|
class DNSRecords < ArkEmail::Internal::Type::BaseModel
|
|
87
106
|
# @!attribute dkim
|
|
107
|
+
# A DNS record that needs to be configured in your domain's DNS settings.
|
|
108
|
+
#
|
|
109
|
+
# The `name` field contains the relative hostname to enter in your DNS provider
|
|
110
|
+
# (which auto-appends the zone). The `fullName` field contains the complete
|
|
111
|
+
# fully-qualified domain name (FQDN) for reference.
|
|
112
|
+
#
|
|
113
|
+
# **Example for subdomain `mail.example.com`:**
|
|
114
|
+
#
|
|
115
|
+
# - `name`: `"mail"` (what you enter in DNS provider)
|
|
116
|
+
# - `fullName`: `"mail.example.com"` (the complete hostname)
|
|
88
117
|
#
|
|
89
|
-
#
|
|
90
|
-
|
|
118
|
+
# **Example for root domain `example.com`:**
|
|
119
|
+
#
|
|
120
|
+
# - `name`: `"@"` (DNS shorthand for apex/root)
|
|
121
|
+
# - `fullName`: `"example.com"`
|
|
122
|
+
#
|
|
123
|
+
# @return [ArkEmail::Models::DNSRecord, nil]
|
|
124
|
+
optional :dkim, -> { ArkEmail::DNSRecord }, nil?: true
|
|
91
125
|
|
|
92
126
|
# @!attribute return_path
|
|
127
|
+
# A DNS record that needs to be configured in your domain's DNS settings.
|
|
128
|
+
#
|
|
129
|
+
# The `name` field contains the relative hostname to enter in your DNS provider
|
|
130
|
+
# (which auto-appends the zone). The `fullName` field contains the complete
|
|
131
|
+
# fully-qualified domain name (FQDN) for reference.
|
|
132
|
+
#
|
|
133
|
+
# **Example for subdomain `mail.example.com`:**
|
|
134
|
+
#
|
|
135
|
+
# - `name`: `"mail"` (what you enter in DNS provider)
|
|
136
|
+
# - `fullName`: `"mail.example.com"` (the complete hostname)
|
|
137
|
+
#
|
|
138
|
+
# **Example for root domain `example.com`:**
|
|
139
|
+
#
|
|
140
|
+
# - `name`: `"@"` (DNS shorthand for apex/root)
|
|
141
|
+
# - `fullName`: `"example.com"`
|
|
93
142
|
#
|
|
94
|
-
# @return [ArkEmail::Models::DNSRecord]
|
|
95
|
-
|
|
143
|
+
# @return [ArkEmail::Models::DNSRecord, nil]
|
|
144
|
+
optional :return_path, -> { ArkEmail::DNSRecord }, api_name: :returnPath, nil?: true
|
|
96
145
|
|
|
97
146
|
# @!attribute spf
|
|
147
|
+
# A DNS record that needs to be configured in your domain's DNS settings.
|
|
98
148
|
#
|
|
99
|
-
#
|
|
100
|
-
|
|
149
|
+
# The `name` field contains the relative hostname to enter in your DNS provider
|
|
150
|
+
# (which auto-appends the zone). The `fullName` field contains the complete
|
|
151
|
+
# fully-qualified domain name (FQDN) for reference.
|
|
152
|
+
#
|
|
153
|
+
# **Example for subdomain `mail.example.com`:**
|
|
154
|
+
#
|
|
155
|
+
# - `name`: `"mail"` (what you enter in DNS provider)
|
|
156
|
+
# - `fullName`: `"mail.example.com"` (the complete hostname)
|
|
157
|
+
#
|
|
158
|
+
# **Example for root domain `example.com`:**
|
|
159
|
+
#
|
|
160
|
+
# - `name`: `"@"` (DNS shorthand for apex/root)
|
|
161
|
+
# - `fullName`: `"example.com"`
|
|
162
|
+
#
|
|
163
|
+
# @return [ArkEmail::Models::DNSRecord, nil]
|
|
164
|
+
optional :spf, -> { ArkEmail::DNSRecord }, nil?: true
|
|
165
|
+
|
|
166
|
+
# @!attribute zone
|
|
167
|
+
# The DNS zone (registrable domain) where records should be added. This is the
|
|
168
|
+
# root domain that your DNS provider manages. For `mail.example.com`, the zone is
|
|
169
|
+
# `example.com`. For `example.co.uk`, the zone is `example.co.uk`.
|
|
170
|
+
#
|
|
171
|
+
# @return [String, nil]
|
|
172
|
+
optional :zone, String
|
|
101
173
|
|
|
102
|
-
# @!method initialize(dkim
|
|
103
|
-
#
|
|
104
|
-
#
|
|
105
|
-
#
|
|
174
|
+
# @!method initialize(dkim: nil, return_path: nil, spf: nil, zone: nil)
|
|
175
|
+
# Some parameter documentations has been truncated, see
|
|
176
|
+
# {ArkEmail::Models::DomainVerifyResponse::Data::DNSRecords} for more details.
|
|
177
|
+
#
|
|
178
|
+
# DNS records that must be added to your domain's DNS settings. Null if records
|
|
179
|
+
# are not yet generated.
|
|
180
|
+
#
|
|
181
|
+
# **Important:** The `name` field contains the relative hostname that you should
|
|
182
|
+
# enter in your DNS provider. Most DNS providers auto-append the zone name, so you
|
|
183
|
+
# only need to enter the relative part.
|
|
184
|
+
#
|
|
185
|
+
# For subdomains like `mail.example.com`, the zone is `example.com`, so:
|
|
186
|
+
#
|
|
187
|
+
# - SPF `name` would be `mail` (not `@`)
|
|
188
|
+
# - DKIM `name` would be `ark-xyz._domainkey.mail`
|
|
189
|
+
# - Return Path `name` would be `psrp.mail`
|
|
190
|
+
#
|
|
191
|
+
# @param dkim [ArkEmail::Models::DNSRecord, nil] A DNS record that needs to be configured in your domain's DNS settings.
|
|
192
|
+
#
|
|
193
|
+
# @param return_path [ArkEmail::Models::DNSRecord, nil] A DNS record that needs to be configured in your domain's DNS settings.
|
|
194
|
+
#
|
|
195
|
+
# @param spf [ArkEmail::Models::DNSRecord, nil] A DNS record that needs to be configured in your domain's DNS settings.
|
|
196
|
+
#
|
|
197
|
+
# @param zone [String] The DNS zone (registrable domain) where records should be added.
|
|
106
198
|
end
|
|
107
199
|
end
|
|
108
200
|
end
|
|
@@ -5,16 +5,11 @@ module ArkEmail
|
|
|
5
5
|
# @see ArkEmail::Resources::Emails#list
|
|
6
6
|
class EmailListResponse < ArkEmail::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
#
|
|
8
|
+
# Unique message identifier (token)
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
12
12
|
|
|
13
|
-
# @!attribute token
|
|
14
|
-
#
|
|
15
|
-
# @return [String]
|
|
16
|
-
required :token, String
|
|
17
|
-
|
|
18
13
|
# @!attribute from
|
|
19
14
|
#
|
|
20
15
|
# @return [String]
|
|
@@ -58,13 +53,11 @@ module ArkEmail
|
|
|
58
53
|
# @return [String, nil]
|
|
59
54
|
optional :tag, String
|
|
60
55
|
|
|
61
|
-
# @!method initialize(id:,
|
|
56
|
+
# @!method initialize(id:, from:, status:, subject:, timestamp:, timestamp_iso:, to:, tag: nil)
|
|
62
57
|
# Some parameter documentations has been truncated, see
|
|
63
58
|
# {ArkEmail::Models::EmailListResponse} for more details.
|
|
64
59
|
#
|
|
65
|
-
# @param id [String]
|
|
66
|
-
#
|
|
67
|
-
# @param token [String]
|
|
60
|
+
# @param id [String] Unique message identifier (token)
|
|
68
61
|
#
|
|
69
62
|
# @param from [String]
|
|
70
63
|
#
|
|
@@ -26,8 +26,14 @@ module ArkEmail
|
|
|
26
26
|
|
|
27
27
|
# @see ArkEmail::Models::EmailRetrieveDeliveriesResponse#data
|
|
28
28
|
class Data < ArkEmail::Internal::Type::BaseModel
|
|
29
|
+
# @!attribute id
|
|
30
|
+
# Message identifier (token)
|
|
31
|
+
#
|
|
32
|
+
# @return [String]
|
|
33
|
+
required :id, String
|
|
34
|
+
|
|
29
35
|
# @!attribute can_retry_manually
|
|
30
|
-
# Whether the message can be manually retried via `POST /emails/{
|
|
36
|
+
# Whether the message can be manually retried via `POST /emails/{id}/retry`.
|
|
31
37
|
# `true` when the raw message content is still available (not expired). Messages
|
|
32
38
|
# older than the retention period cannot be retried.
|
|
33
39
|
#
|
|
@@ -42,18 +48,6 @@ module ArkEmail
|
|
|
42
48
|
required :deliveries,
|
|
43
49
|
-> { ArkEmail::Internal::Type::ArrayOf[ArkEmail::Models::EmailRetrieveDeliveriesResponse::Data::Delivery] }
|
|
44
50
|
|
|
45
|
-
# @!attribute message_id
|
|
46
|
-
# Internal numeric message ID
|
|
47
|
-
#
|
|
48
|
-
# @return [Integer]
|
|
49
|
-
required :message_id, Integer, api_name: :messageId
|
|
50
|
-
|
|
51
|
-
# @!attribute message_token
|
|
52
|
-
# Unique message token for API references
|
|
53
|
-
#
|
|
54
|
-
# @return [String]
|
|
55
|
-
required :message_token, String, api_name: :messageToken
|
|
56
|
-
|
|
57
51
|
# @!attribute retry_state
|
|
58
52
|
# Information about the current retry state of a message that is queued for
|
|
59
53
|
# delivery. Only present when the message is in the delivery queue.
|
|
@@ -77,17 +71,15 @@ module ArkEmail
|
|
|
77
71
|
# @return [Symbol, ArkEmail::Models::EmailRetrieveDeliveriesResponse::Data::Status]
|
|
78
72
|
required :status, enum: -> { ArkEmail::Models::EmailRetrieveDeliveriesResponse::Data::Status }
|
|
79
73
|
|
|
80
|
-
# @!method initialize(can_retry_manually:, deliveries:,
|
|
74
|
+
# @!method initialize(id:, can_retry_manually:, deliveries:, retry_state:, status:)
|
|
81
75
|
# Some parameter documentations has been truncated, see
|
|
82
76
|
# {ArkEmail::Models::EmailRetrieveDeliveriesResponse::Data} for more details.
|
|
83
77
|
#
|
|
84
|
-
# @param
|
|
78
|
+
# @param id [String] Message identifier (token)
|
|
85
79
|
#
|
|
86
|
-
# @param
|
|
80
|
+
# @param can_retry_manually [Boolean] Whether the message can be manually retried via `POST /emails/{id}/retry`.
|
|
87
81
|
#
|
|
88
|
-
# @param
|
|
89
|
-
#
|
|
90
|
-
# @param message_token [String] Unique message token for API references
|
|
82
|
+
# @param deliveries [Array<ArkEmail::Models::EmailRetrieveDeliveriesResponse::Data::Delivery>] Chronological list of delivery attempts for this message.
|
|
91
83
|
#
|
|
92
84
|
# @param retry_state [ArkEmail::Models::EmailRetrieveDeliveriesResponse::Data::RetryState, nil] Information about the current retry state of a message that is queued for delive
|
|
93
85
|
#
|
|
@@ -27,19 +27,11 @@ module ArkEmail
|
|
|
27
27
|
# @see ArkEmail::Models::EmailRetrieveResponse#data
|
|
28
28
|
class Data < ArkEmail::Internal::Type::BaseModel
|
|
29
29
|
# @!attribute id
|
|
30
|
-
#
|
|
30
|
+
# Unique message identifier (token)
|
|
31
31
|
#
|
|
32
32
|
# @return [String]
|
|
33
33
|
required :id, String
|
|
34
34
|
|
|
35
|
-
# @!attribute token
|
|
36
|
-
# Unique message token used to retrieve this email via API. Combined with id to
|
|
37
|
-
# form the full message identifier: msg*{id}*{token} Use this token with GET
|
|
38
|
-
# /emails/{emailId} where emailId = "msg*{id}*{token}"
|
|
39
|
-
#
|
|
40
|
-
# @return [String]
|
|
41
|
-
required :token, String
|
|
42
|
-
|
|
43
35
|
# @!attribute from
|
|
44
36
|
# Sender address
|
|
45
37
|
#
|
|
@@ -158,13 +150,11 @@ module ArkEmail
|
|
|
158
150
|
# @return [String, nil]
|
|
159
151
|
optional :tag, String
|
|
160
152
|
|
|
161
|
-
# @!method initialize(id:,
|
|
153
|
+
# @!method initialize(id:, from:, scope:, status:, subject:, timestamp:, timestamp_iso:, to:, activity: nil, attachments: nil, deliveries: nil, headers: nil, html_body: nil, message_id: nil, plain_body: nil, raw_message: nil, spam: nil, spam_score: nil, tag: nil)
|
|
162
154
|
# Some parameter documentations has been truncated, see
|
|
163
155
|
# {ArkEmail::Models::EmailRetrieveResponse::Data} for more details.
|
|
164
156
|
#
|
|
165
|
-
# @param id [String]
|
|
166
|
-
#
|
|
167
|
-
# @param token [String] Unique message token used to retrieve this email via API.
|
|
157
|
+
# @param id [String] Unique message identifier (token)
|
|
168
158
|
#
|
|
169
159
|
# @param from [String] Sender address
|
|
170
160
|
#
|
|
@@ -26,12 +26,20 @@ module ArkEmail
|
|
|
26
26
|
|
|
27
27
|
# @see ArkEmail::Models::EmailRetryResponse#data
|
|
28
28
|
class Data < ArkEmail::Internal::Type::BaseModel
|
|
29
|
+
# @!attribute id
|
|
30
|
+
# Email identifier (token)
|
|
31
|
+
#
|
|
32
|
+
# @return [String]
|
|
33
|
+
required :id, String
|
|
34
|
+
|
|
29
35
|
# @!attribute message
|
|
30
36
|
#
|
|
31
37
|
# @return [String]
|
|
32
38
|
required :message, String
|
|
33
39
|
|
|
34
|
-
# @!method initialize(message:)
|
|
40
|
+
# @!method initialize(id:, message:)
|
|
41
|
+
# @param id [String] Email identifier (token)
|
|
42
|
+
#
|
|
35
43
|
# @param message [String]
|
|
36
44
|
end
|
|
37
45
|
end
|
|
@@ -74,20 +74,13 @@ module ArkEmail
|
|
|
74
74
|
|
|
75
75
|
class Message < ArkEmail::Internal::Type::BaseModel
|
|
76
76
|
# @!attribute id
|
|
77
|
-
# Message
|
|
77
|
+
# Message identifier (token)
|
|
78
78
|
#
|
|
79
79
|
# @return [String]
|
|
80
80
|
required :id, String
|
|
81
81
|
|
|
82
|
-
# @!
|
|
83
|
-
#
|
|
84
|
-
# @return [String]
|
|
85
|
-
required :token, String
|
|
86
|
-
|
|
87
|
-
# @!method initialize(id:, token:)
|
|
88
|
-
# @param id [String] Message ID
|
|
89
|
-
#
|
|
90
|
-
# @param token [String]
|
|
82
|
+
# @!method initialize(id:)
|
|
83
|
+
# @param id [String] Message identifier (token)
|
|
91
84
|
end
|
|
92
85
|
end
|
|
93
86
|
end
|
|
@@ -27,7 +27,7 @@ module ArkEmail
|
|
|
27
27
|
# @see ArkEmail::Models::EmailSendRawResponse#data
|
|
28
28
|
class Data < ArkEmail::Internal::Type::BaseModel
|
|
29
29
|
# @!attribute id
|
|
30
|
-
# Unique message
|
|
30
|
+
# Unique message identifier (token)
|
|
31
31
|
#
|
|
32
32
|
# @return [String]
|
|
33
33
|
required :id, String
|
|
@@ -61,7 +61,7 @@ module ArkEmail
|
|
|
61
61
|
# Some parameter documentations has been truncated, see
|
|
62
62
|
# {ArkEmail::Models::EmailSendRawResponse::Data} for more details.
|
|
63
63
|
#
|
|
64
|
-
# @param id [String] Unique message
|
|
64
|
+
# @param id [String] Unique message identifier (token)
|
|
65
65
|
#
|
|
66
66
|
# @param status [Symbol, ArkEmail::Models::EmailSendRawResponse::Data::Status] Current delivery status
|
|
67
67
|
#
|
|
@@ -27,7 +27,7 @@ module ArkEmail
|
|
|
27
27
|
# @see ArkEmail::Models::EmailSendResponse#data
|
|
28
28
|
class Data < ArkEmail::Internal::Type::BaseModel
|
|
29
29
|
# @!attribute id
|
|
30
|
-
# Unique message
|
|
30
|
+
# Unique message identifier (token)
|
|
31
31
|
#
|
|
32
32
|
# @return [String]
|
|
33
33
|
required :id, String
|
|
@@ -61,7 +61,7 @@ module ArkEmail
|
|
|
61
61
|
# Some parameter documentations has been truncated, see
|
|
62
62
|
# {ArkEmail::Models::EmailSendResponse::Data} for more details.
|
|
63
63
|
#
|
|
64
|
-
# @param id [String] Unique message
|
|
64
|
+
# @param id [String] Unique message identifier (token)
|
|
65
65
|
#
|
|
66
66
|
# @param status [Symbol, ArkEmail::Models::EmailSendResponse::Data::Status] Current delivery status
|
|
67
67
|
#
|
|
@@ -231,7 +231,7 @@ module ArkEmail
|
|
|
231
231
|
# @see ArkEmail::Models::LogEntry#email
|
|
232
232
|
class Email < ArkEmail::Internal::Type::BaseModel
|
|
233
233
|
# @!attribute id
|
|
234
|
-
# Email message
|
|
234
|
+
# Email message identifier (token)
|
|
235
235
|
#
|
|
236
236
|
# @return [String, nil]
|
|
237
237
|
optional :id, String
|
|
@@ -245,7 +245,7 @@ module ArkEmail
|
|
|
245
245
|
# @!method initialize(id: nil, recipient_count: nil)
|
|
246
246
|
# Email-specific data (for email endpoints)
|
|
247
247
|
#
|
|
248
|
-
# @param id [String] Email message
|
|
248
|
+
# @param id [String] Email message identifier (token)
|
|
249
249
|
#
|
|
250
250
|
# @param recipient_count [Integer, nil] Number of recipients
|
|
251
251
|
end
|
|
@@ -16,7 +16,8 @@ module ArkEmail
|
|
|
16
16
|
required :created_at, Time, api_name: :createdAt
|
|
17
17
|
|
|
18
18
|
# @!attribute dns_ok
|
|
19
|
-
# Whether
|
|
19
|
+
# Whether the tracking CNAME record is correctly configured. Must be true to use
|
|
20
|
+
# tracking features.
|
|
20
21
|
#
|
|
21
22
|
# @return [Boolean]
|
|
22
23
|
required :dns_ok, ArkEmail::Internal::Type::Boolean, api_name: :dnsOk
|
|
@@ -94,11 +95,14 @@ module ArkEmail
|
|
|
94
95
|
optional :updated_at, Time, api_name: :updatedAt, nil?: true
|
|
95
96
|
|
|
96
97
|
# @!method initialize(id:, created_at:, dns_ok:, domain_id:, full_name:, name:, ssl_enabled:, track_clicks:, track_opens:, dns_checked_at: nil, dns_error: nil, dns_record: nil, dns_status: nil, excluded_click_domains: nil, updated_at: nil)
|
|
98
|
+
# Some parameter documentations has been truncated, see
|
|
99
|
+
# {ArkEmail::Models::TrackDomain} for more details.
|
|
100
|
+
#
|
|
97
101
|
# @param id [String] Track domain ID
|
|
98
102
|
#
|
|
99
103
|
# @param created_at [Time] When the track domain was created
|
|
100
104
|
#
|
|
101
|
-
# @param dns_ok [Boolean] Whether
|
|
105
|
+
# @param dns_ok [Boolean] Whether the tracking CNAME record is correctly configured. Must be true to use t
|
|
102
106
|
#
|
|
103
107
|
# @param domain_id [String] ID of the parent sending domain
|
|
104
108
|
#
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ArkEmail
|
|
4
|
+
module Models
|
|
5
|
+
# @see ArkEmail::Resources::Usage#retrieve
|
|
6
|
+
class UsageRetrieveParams < ArkEmail::Internal::Type::BaseModel
|
|
7
|
+
extend ArkEmail::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ArkEmail::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [ArkEmail::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|