ark-email 0.5.2 → 0.6.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 +9 -0
- data/README.md +3 -3
- data/lib/ark_email/models/email_send_batch_params.rb +6 -6
- data/lib/ark_email/models/email_send_params.rb +28 -26
- data/lib/ark_email/models/email_send_raw_params.rb +9 -1
- data/lib/ark_email/models/suppression_bulk_create_params.rb +4 -2
- data/lib/ark_email/models/suppression_create_params.rb +3 -3
- data/lib/ark_email/models/tracking_create_params.rb +12 -12
- data/lib/ark_email/models/tracking_update_params.rb +12 -12
- data/lib/ark_email/models/webhook_create_params.rb +26 -23
- data/lib/ark_email/models/webhook_update_params.rb +10 -10
- data/lib/ark_email/resources/emails.rb +11 -9
- data/lib/ark_email/resources/suppressions.rb +1 -1
- data/lib/ark_email/resources/tracking.rb +8 -8
- data/lib/ark_email/resources/webhooks.rb +10 -10
- data/lib/ark_email/version.rb +1 -1
- data/rbi/ark_email/models/email_send_batch_params.rbi +9 -18
- data/rbi/ark_email/models/email_send_params.rbi +46 -72
- data/rbi/ark_email/models/email_send_raw_params.rbi +8 -0
- data/rbi/ark_email/models/suppression_bulk_create_params.rbi +11 -7
- data/rbi/ark_email/models/suppression_create_params.rbi +5 -8
- data/rbi/ark_email/models/tracking_create_params.rbi +18 -27
- data/rbi/ark_email/models/tracking_update_params.rbi +20 -32
- data/rbi/ark_email/models/webhook_create_params.rbi +40 -36
- data/rbi/ark_email/models/webhook_update_params.rbi +15 -30
- data/rbi/ark_email/resources/emails.rbi +22 -18
- data/rbi/ark_email/resources/suppressions.rbi +2 -2
- data/rbi/ark_email/resources/tracking.rbi +15 -15
- data/rbi/ark_email/resources/webhooks.rbi +19 -17
- data/sig/ark_email/models/email_send_batch_params.rbs +12 -18
- data/sig/ark_email/models/email_send_params.rbs +32 -50
- data/sig/ark_email/models/email_send_raw_params.rbs +10 -1
- data/sig/ark_email/models/suppression_bulk_create_params.rbs +4 -6
- data/sig/ark_email/models/suppression_create_params.rbs +4 -6
- data/sig/ark_email/models/tracking_create_params.rbs +16 -22
- data/sig/ark_email/models/tracking_update_params.rbs +16 -24
- data/sig/ark_email/models/webhook_create_params.rbs +12 -16
- data/sig/ark_email/models/webhook_update_params.rbs +20 -30
- data/sig/ark_email/resources/emails.rbs +9 -8
- data/sig/ark_email/resources/suppressions.rbs +1 -1
- data/sig/ark_email/resources/tracking.rbs +8 -8
- data/sig/ark_email/resources/webhooks.rbs +8 -8
- metadata +1 -1
|
@@ -126,14 +126,15 @@ module ArkEmail
|
|
|
126
126
|
from: String,
|
|
127
127
|
subject: String,
|
|
128
128
|
to: T::Array[String],
|
|
129
|
-
attachments:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
129
|
+
attachments:
|
|
130
|
+
T.nilable(T::Array[ArkEmail::EmailSendParams::Attachment::OrHash]),
|
|
131
|
+
bcc: T.nilable(T::Array[String]),
|
|
132
|
+
cc: T.nilable(T::Array[String]),
|
|
133
|
+
headers: T.nilable(T::Hash[Symbol, String]),
|
|
134
|
+
html: T.nilable(String),
|
|
135
|
+
reply_to: T.nilable(String),
|
|
136
|
+
tag: T.nilable(String),
|
|
137
|
+
text: T.nilable(String),
|
|
137
138
|
idempotency_key: String,
|
|
138
139
|
request_options: ArkEmail::RequestOptions::OrHash
|
|
139
140
|
).returns(ArkEmail::Models::EmailSendResponse)
|
|
@@ -153,23 +154,23 @@ module ArkEmail
|
|
|
153
154
|
subject:,
|
|
154
155
|
# Body param: Recipient email addresses (max 50)
|
|
155
156
|
to:,
|
|
156
|
-
# Body param: File attachments
|
|
157
|
+
# Body param: File attachments (accepts null)
|
|
157
158
|
attachments: nil,
|
|
158
|
-
# Body param: BCC recipients
|
|
159
|
+
# Body param: BCC recipients (accepts null)
|
|
159
160
|
bcc: nil,
|
|
160
|
-
# Body param: CC recipients
|
|
161
|
+
# Body param: CC recipients (accepts null)
|
|
161
162
|
cc: nil,
|
|
162
|
-
# Body param: Custom email headers
|
|
163
|
+
# Body param: Custom email headers (accepts null)
|
|
163
164
|
headers: nil,
|
|
164
|
-
# Body param: HTML body content. Maximum 5MB (5,242,880
|
|
165
|
-
# attachments, the total message must not exceed 14MB.
|
|
165
|
+
# Body param: HTML body content (accepts null). Maximum 5MB (5,242,880
|
|
166
|
+
# characters). Combined with attachments, the total message must not exceed 14MB.
|
|
166
167
|
html: nil,
|
|
167
|
-
# Body param: Reply-to address
|
|
168
|
+
# Body param: Reply-to address (accepts null)
|
|
168
169
|
reply_to: nil,
|
|
169
|
-
# Body param: Tag for categorization and filtering
|
|
170
|
+
# Body param: Tag for categorization and filtering (accepts null)
|
|
170
171
|
tag: nil,
|
|
171
|
-
# Body param: Plain text body (auto-generated from HTML if not
|
|
172
|
-
# 5MB (5,242,880 characters).
|
|
172
|
+
# Body param: Plain text body (accepts null, auto-generated from HTML if not
|
|
173
|
+
# provided). Maximum 5MB (5,242,880 characters).
|
|
173
174
|
text: nil,
|
|
174
175
|
# Header param: Unique key for idempotent requests. If a request with this key was
|
|
175
176
|
# already processed, the cached response is returned. Keys expire after 24 hours.
|
|
@@ -214,6 +215,7 @@ module ArkEmail
|
|
|
214
215
|
data: String,
|
|
215
216
|
mail_from: String,
|
|
216
217
|
rcpt_to: T::Array[String],
|
|
218
|
+
bounce: T.nilable(T::Boolean),
|
|
217
219
|
request_options: ArkEmail::RequestOptions::OrHash
|
|
218
220
|
).returns(ArkEmail::Models::EmailSendRawResponse)
|
|
219
221
|
end
|
|
@@ -224,6 +226,8 @@ module ArkEmail
|
|
|
224
226
|
mail_from:,
|
|
225
227
|
# Envelope recipient addresses
|
|
226
228
|
rcpt_to:,
|
|
229
|
+
# Whether this is a bounce message (accepts null)
|
|
230
|
+
bounce: nil,
|
|
227
231
|
request_options: {}
|
|
228
232
|
)
|
|
229
233
|
end
|
|
@@ -8,14 +8,14 @@ module ArkEmail
|
|
|
8
8
|
sig do
|
|
9
9
|
params(
|
|
10
10
|
address: String,
|
|
11
|
-
reason: String,
|
|
11
|
+
reason: T.nilable(String),
|
|
12
12
|
request_options: ArkEmail::RequestOptions::OrHash
|
|
13
13
|
).returns(ArkEmail::Models::SuppressionCreateResponse)
|
|
14
14
|
end
|
|
15
15
|
def create(
|
|
16
16
|
# Email address to suppress
|
|
17
17
|
address:,
|
|
18
|
-
# Reason for suppression
|
|
18
|
+
# Reason for suppression (accepts null)
|
|
19
19
|
reason: nil,
|
|
20
20
|
request_options: {}
|
|
21
21
|
)
|
|
@@ -9,11 +9,11 @@ module ArkEmail
|
|
|
9
9
|
# value before tracking will work.
|
|
10
10
|
sig do
|
|
11
11
|
params(
|
|
12
|
-
domain_id:
|
|
12
|
+
domain_id: Integer,
|
|
13
13
|
name: String,
|
|
14
|
-
ssl_enabled: T::Boolean,
|
|
15
|
-
track_clicks: T::Boolean,
|
|
16
|
-
track_opens: T::Boolean,
|
|
14
|
+
ssl_enabled: T.nilable(T::Boolean),
|
|
15
|
+
track_clicks: T.nilable(T::Boolean),
|
|
16
|
+
track_opens: T.nilable(T::Boolean),
|
|
17
17
|
request_options: ArkEmail::RequestOptions::OrHash
|
|
18
18
|
).returns(ArkEmail::Models::TrackingCreateResponse)
|
|
19
19
|
end
|
|
@@ -22,11 +22,11 @@ module ArkEmail
|
|
|
22
22
|
domain_id:,
|
|
23
23
|
# Subdomain name (e.g., 'track' for track.yourdomain.com)
|
|
24
24
|
name:,
|
|
25
|
-
# Enable SSL for tracking URLs (
|
|
25
|
+
# Enable SSL for tracking URLs (accepts null, defaults to true)
|
|
26
26
|
ssl_enabled: nil,
|
|
27
|
-
# Enable click tracking
|
|
27
|
+
# Enable click tracking (accepts null, defaults to true)
|
|
28
28
|
track_clicks: nil,
|
|
29
|
-
# Enable open tracking (tracking pixel)
|
|
29
|
+
# Enable open tracking (tracking pixel, accepts null, defaults to true)
|
|
30
30
|
track_opens: nil,
|
|
31
31
|
request_options: {}
|
|
32
32
|
)
|
|
@@ -57,23 +57,23 @@ module ArkEmail
|
|
|
57
57
|
sig do
|
|
58
58
|
params(
|
|
59
59
|
tracking_id: String,
|
|
60
|
-
excluded_click_domains: String,
|
|
61
|
-
ssl_enabled: T::Boolean,
|
|
62
|
-
track_clicks: T::Boolean,
|
|
63
|
-
track_opens: T::Boolean,
|
|
60
|
+
excluded_click_domains: T.nilable(String),
|
|
61
|
+
ssl_enabled: T.nilable(T::Boolean),
|
|
62
|
+
track_clicks: T.nilable(T::Boolean),
|
|
63
|
+
track_opens: T.nilable(T::Boolean),
|
|
64
64
|
request_options: ArkEmail::RequestOptions::OrHash
|
|
65
65
|
).returns(ArkEmail::Models::TrackingUpdateResponse)
|
|
66
66
|
end
|
|
67
67
|
def update(
|
|
68
68
|
# Track domain ID or UUID
|
|
69
69
|
tracking_id,
|
|
70
|
-
# Comma-separated list of domains to exclude from click tracking
|
|
70
|
+
# Comma-separated list of domains to exclude from click tracking (accepts null)
|
|
71
71
|
excluded_click_domains: nil,
|
|
72
|
-
# Enable or disable SSL for tracking URLs
|
|
72
|
+
# Enable or disable SSL for tracking URLs (accepts null)
|
|
73
73
|
ssl_enabled: nil,
|
|
74
|
-
# Enable or disable click tracking
|
|
74
|
+
# Enable or disable click tracking (accepts null)
|
|
75
75
|
track_clicks: nil,
|
|
76
|
-
# Enable or disable open tracking
|
|
76
|
+
# Enable or disable open tracking (accepts null)
|
|
77
77
|
track_opens: nil,
|
|
78
78
|
request_options: {}
|
|
79
79
|
)
|
|
@@ -17,16 +17,25 @@ module ArkEmail
|
|
|
17
17
|
# - `DomainDNSError` - Domain DNS issue detected
|
|
18
18
|
sig do
|
|
19
19
|
params(
|
|
20
|
-
events: T::Array[ArkEmail::WebhookCreateParams::Event::OrSymbol],
|
|
21
20
|
name: String,
|
|
22
21
|
url: String,
|
|
23
|
-
all_events: T::Boolean,
|
|
24
|
-
enabled: T::Boolean,
|
|
22
|
+
all_events: T.nilable(T::Boolean),
|
|
23
|
+
enabled: T.nilable(T::Boolean),
|
|
24
|
+
events:
|
|
25
|
+
T.nilable(T::Array[ArkEmail::WebhookCreateParams::Event::OrSymbol]),
|
|
25
26
|
request_options: ArkEmail::RequestOptions::OrHash
|
|
26
27
|
).returns(ArkEmail::Models::WebhookCreateResponse)
|
|
27
28
|
end
|
|
28
29
|
def create(
|
|
29
|
-
#
|
|
30
|
+
# Webhook name for identification
|
|
31
|
+
name:,
|
|
32
|
+
# HTTPS endpoint URL
|
|
33
|
+
url:,
|
|
34
|
+
# Subscribe to all events (ignores events array, accepts null)
|
|
35
|
+
all_events: nil,
|
|
36
|
+
# Whether the webhook is enabled (accepts null)
|
|
37
|
+
enabled: nil,
|
|
38
|
+
# Events to subscribe to (accepts null):
|
|
30
39
|
#
|
|
31
40
|
# - `MessageSent` - Email successfully delivered to recipient's server
|
|
32
41
|
# - `MessageDelayed` - Temporary delivery failure, will retry
|
|
@@ -36,14 +45,7 @@ module ArkEmail
|
|
|
36
45
|
# - `MessageLinkClicked` - Recipient clicked a tracked link
|
|
37
46
|
# - `MessageLoaded` - Recipient opened the email (tracking pixel loaded)
|
|
38
47
|
# - `DomainDNSError` - DNS configuration issue detected
|
|
39
|
-
events
|
|
40
|
-
# Webhook name for identification
|
|
41
|
-
name:,
|
|
42
|
-
# HTTPS endpoint URL
|
|
43
|
-
url:,
|
|
44
|
-
# Subscribe to all events (ignores events array)
|
|
45
|
-
all_events: nil,
|
|
46
|
-
enabled: nil,
|
|
48
|
+
events: nil,
|
|
47
49
|
request_options: {}
|
|
48
50
|
)
|
|
49
51
|
end
|
|
@@ -62,11 +64,11 @@ module ArkEmail
|
|
|
62
64
|
sig do
|
|
63
65
|
params(
|
|
64
66
|
webhook_id: String,
|
|
65
|
-
all_events: T::Boolean,
|
|
66
|
-
enabled: T::Boolean,
|
|
67
|
-
events: T::Array[String],
|
|
68
|
-
name: String,
|
|
69
|
-
url: String,
|
|
67
|
+
all_events: T.nilable(T::Boolean),
|
|
68
|
+
enabled: T.nilable(T::Boolean),
|
|
69
|
+
events: T.nilable(T::Array[String]),
|
|
70
|
+
name: T.nilable(String),
|
|
71
|
+
url: T.nilable(String),
|
|
70
72
|
request_options: ArkEmail::RequestOptions::OrHash
|
|
71
73
|
).returns(ArkEmail::Models::WebhookUpdateResponse)
|
|
72
74
|
end
|
|
@@ -38,9 +38,9 @@ module ArkEmail
|
|
|
38
38
|
{
|
|
39
39
|
subject: String,
|
|
40
40
|
to: ::Array[String],
|
|
41
|
-
html: String
|
|
42
|
-
tag: String
|
|
43
|
-
text: String
|
|
41
|
+
html: String?,
|
|
42
|
+
tag: String?,
|
|
43
|
+
text: String?
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
class Email < ArkEmail::Internal::Type::BaseModel
|
|
@@ -48,32 +48,26 @@ module ArkEmail
|
|
|
48
48
|
|
|
49
49
|
attr_accessor to: ::Array[String]
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
attr_accessor html: String?
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
attr_accessor tag: String?
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
def tag=: (String) -> String
|
|
58
|
-
|
|
59
|
-
attr_reader text: String?
|
|
60
|
-
|
|
61
|
-
def text=: (String) -> String
|
|
55
|
+
attr_accessor text: String?
|
|
62
56
|
|
|
63
57
|
def initialize: (
|
|
64
58
|
subject: String,
|
|
65
59
|
to: ::Array[String],
|
|
66
|
-
?html: String
|
|
67
|
-
?tag: String
|
|
68
|
-
?text: String
|
|
60
|
+
?html: String?,
|
|
61
|
+
?tag: String?,
|
|
62
|
+
?text: String?
|
|
69
63
|
) -> void
|
|
70
64
|
|
|
71
65
|
def to_hash: -> {
|
|
72
66
|
subject: String,
|
|
73
67
|
to: ::Array[String],
|
|
74
|
-
html: String
|
|
75
|
-
tag: String
|
|
76
|
-
text: String
|
|
68
|
+
html: String?,
|
|
69
|
+
tag: String?,
|
|
70
|
+
text: String?
|
|
77
71
|
}
|
|
78
72
|
end
|
|
79
73
|
end
|
|
@@ -5,14 +5,14 @@ module ArkEmail
|
|
|
5
5
|
from: String,
|
|
6
6
|
subject: String,
|
|
7
7
|
to: ::Array[String],
|
|
8
|
-
attachments: ::Array[ArkEmail::EmailSendParams::Attachment]
|
|
9
|
-
bcc: ::Array[String]
|
|
10
|
-
cc: ::Array[String]
|
|
11
|
-
headers: ::Hash[Symbol, String]
|
|
12
|
-
html: String
|
|
13
|
-
reply_to: String
|
|
14
|
-
tag: String
|
|
15
|
-
text: String
|
|
8
|
+
attachments: ::Array[ArkEmail::EmailSendParams::Attachment]?,
|
|
9
|
+
bcc: ::Array[String]?,
|
|
10
|
+
cc: ::Array[String]?,
|
|
11
|
+
headers: ::Hash[Symbol, String]?,
|
|
12
|
+
html: String?,
|
|
13
|
+
reply_to: String?,
|
|
14
|
+
tag: String?,
|
|
15
|
+
text: String?,
|
|
16
16
|
idempotency_key: String
|
|
17
17
|
}
|
|
18
18
|
& ArkEmail::Internal::Type::request_parameters
|
|
@@ -27,39 +27,21 @@ module ArkEmail
|
|
|
27
27
|
|
|
28
28
|
attr_accessor to: ::Array[String]
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
attr_accessor attachments: ::Array[ArkEmail::EmailSendParams::Attachment]?
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
::Array[ArkEmail::EmailSendParams::Attachment]
|
|
34
|
-
) -> ::Array[ArkEmail::EmailSendParams::Attachment]
|
|
32
|
+
attr_accessor bcc: ::Array[String]?
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
attr_accessor cc: ::Array[String]?
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
attr_accessor headers: ::Hash[Symbol, String]?
|
|
39
37
|
|
|
40
|
-
|
|
38
|
+
attr_accessor html: String?
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
attr_accessor reply_to: String?
|
|
43
41
|
|
|
44
|
-
|
|
42
|
+
attr_accessor tag: String?
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
attr_reader html: String?
|
|
49
|
-
|
|
50
|
-
def html=: (String) -> String
|
|
51
|
-
|
|
52
|
-
attr_reader reply_to: String?
|
|
53
|
-
|
|
54
|
-
def reply_to=: (String) -> String
|
|
55
|
-
|
|
56
|
-
attr_reader tag: String?
|
|
57
|
-
|
|
58
|
-
def tag=: (String) -> String
|
|
59
|
-
|
|
60
|
-
attr_reader text: String?
|
|
61
|
-
|
|
62
|
-
def text=: (String) -> String
|
|
44
|
+
attr_accessor text: String?
|
|
63
45
|
|
|
64
46
|
attr_reader idempotency_key: String?
|
|
65
47
|
|
|
@@ -69,14 +51,14 @@ module ArkEmail
|
|
|
69
51
|
from: String,
|
|
70
52
|
subject: String,
|
|
71
53
|
to: ::Array[String],
|
|
72
|
-
?attachments: ::Array[ArkEmail::EmailSendParams::Attachment]
|
|
73
|
-
?bcc: ::Array[String]
|
|
74
|
-
?cc: ::Array[String]
|
|
75
|
-
?headers: ::Hash[Symbol, String]
|
|
76
|
-
?html: String
|
|
77
|
-
?reply_to: String
|
|
78
|
-
?tag: String
|
|
79
|
-
?text: String
|
|
54
|
+
?attachments: ::Array[ArkEmail::EmailSendParams::Attachment]?,
|
|
55
|
+
?bcc: ::Array[String]?,
|
|
56
|
+
?cc: ::Array[String]?,
|
|
57
|
+
?headers: ::Hash[Symbol, String]?,
|
|
58
|
+
?html: String?,
|
|
59
|
+
?reply_to: String?,
|
|
60
|
+
?tag: String?,
|
|
61
|
+
?text: String?,
|
|
80
62
|
?idempotency_key: String,
|
|
81
63
|
?request_options: ArkEmail::request_opts
|
|
82
64
|
) -> void
|
|
@@ -85,14 +67,14 @@ module ArkEmail
|
|
|
85
67
|
from: String,
|
|
86
68
|
subject: String,
|
|
87
69
|
to: ::Array[String],
|
|
88
|
-
attachments: ::Array[ArkEmail::EmailSendParams::Attachment]
|
|
89
|
-
bcc: ::Array[String]
|
|
90
|
-
cc: ::Array[String]
|
|
91
|
-
headers: ::Hash[Symbol, String]
|
|
92
|
-
html: String
|
|
93
|
-
reply_to: String
|
|
94
|
-
tag: String
|
|
95
|
-
text: String
|
|
70
|
+
attachments: ::Array[ArkEmail::EmailSendParams::Attachment]?,
|
|
71
|
+
bcc: ::Array[String]?,
|
|
72
|
+
cc: ::Array[String]?,
|
|
73
|
+
headers: ::Hash[Symbol, String]?,
|
|
74
|
+
html: String?,
|
|
75
|
+
reply_to: String?,
|
|
76
|
+
tag: String?,
|
|
77
|
+
text: String?,
|
|
96
78
|
idempotency_key: String,
|
|
97
79
|
request_options: ArkEmail::RequestOptions
|
|
98
80
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module ArkEmail
|
|
2
2
|
module Models
|
|
3
3
|
type email_send_raw_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
data: String,
|
|
6
|
+
mail_from: String,
|
|
7
|
+
rcpt_to: ::Array[String],
|
|
8
|
+
bounce: bool?
|
|
9
|
+
}
|
|
5
10
|
& ArkEmail::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class EmailSendRawParams < ArkEmail::Internal::Type::BaseModel
|
|
@@ -14,10 +19,13 @@ module ArkEmail
|
|
|
14
19
|
|
|
15
20
|
attr_accessor rcpt_to: ::Array[String]
|
|
16
21
|
|
|
22
|
+
attr_accessor bounce: bool?
|
|
23
|
+
|
|
17
24
|
def initialize: (
|
|
18
25
|
data: String,
|
|
19
26
|
mail_from: String,
|
|
20
27
|
rcpt_to: ::Array[String],
|
|
28
|
+
?bounce: bool?,
|
|
21
29
|
?request_options: ArkEmail::request_opts
|
|
22
30
|
) -> void
|
|
23
31
|
|
|
@@ -25,6 +33,7 @@ module ArkEmail
|
|
|
25
33
|
data: String,
|
|
26
34
|
mail_from: String,
|
|
27
35
|
rcpt_to: ::Array[String],
|
|
36
|
+
bounce: bool?,
|
|
28
37
|
request_options: ArkEmail::RequestOptions
|
|
29
38
|
}
|
|
30
39
|
end
|
|
@@ -22,18 +22,16 @@ module ArkEmail
|
|
|
22
22
|
request_options: ArkEmail::RequestOptions
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
type suppression = { address: String, reason: String }
|
|
25
|
+
type suppression = { address: String, reason: String? }
|
|
26
26
|
|
|
27
27
|
class Suppression < ArkEmail::Internal::Type::BaseModel
|
|
28
28
|
attr_accessor address: String
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
attr_accessor reason: String?
|
|
31
31
|
|
|
32
|
-
def
|
|
32
|
+
def initialize: (address: String, ?reason: String?) -> void
|
|
33
33
|
|
|
34
|
-
def
|
|
35
|
-
|
|
36
|
-
def to_hash: -> { address: String, reason: String }
|
|
34
|
+
def to_hash: -> { address: String, reason: String? }
|
|
37
35
|
end
|
|
38
36
|
end
|
|
39
37
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module ArkEmail
|
|
2
2
|
module Models
|
|
3
3
|
type suppression_create_params =
|
|
4
|
-
{ address: String, reason: String }
|
|
4
|
+
{ address: String, reason: String? }
|
|
5
5
|
& ArkEmail::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class SuppressionCreateParams < ArkEmail::Internal::Type::BaseModel
|
|
@@ -10,19 +10,17 @@ module ArkEmail
|
|
|
10
10
|
|
|
11
11
|
attr_accessor address: String
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
def reason=: (String) -> String
|
|
13
|
+
attr_accessor reason: String?
|
|
16
14
|
|
|
17
15
|
def initialize: (
|
|
18
16
|
address: String,
|
|
19
|
-
?reason: String
|
|
17
|
+
?reason: String?,
|
|
20
18
|
?request_options: ArkEmail::request_opts
|
|
21
19
|
) -> void
|
|
22
20
|
|
|
23
21
|
def to_hash: -> {
|
|
24
22
|
address: String,
|
|
25
|
-
reason: String
|
|
23
|
+
reason: String?,
|
|
26
24
|
request_options: ArkEmail::RequestOptions
|
|
27
25
|
}
|
|
28
26
|
end
|
|
@@ -2,11 +2,11 @@ module ArkEmail
|
|
|
2
2
|
module Models
|
|
3
3
|
type tracking_create_params =
|
|
4
4
|
{
|
|
5
|
-
domain_id:
|
|
5
|
+
domain_id: Integer,
|
|
6
6
|
name: String,
|
|
7
|
-
ssl_enabled: bool
|
|
8
|
-
track_clicks: bool
|
|
9
|
-
track_opens: bool
|
|
7
|
+
ssl_enabled: bool?,
|
|
8
|
+
track_clicks: bool?,
|
|
9
|
+
track_opens: bool?
|
|
10
10
|
}
|
|
11
11
|
& ArkEmail::Internal::Type::request_parameters
|
|
12
12
|
|
|
@@ -14,37 +14,31 @@ module ArkEmail
|
|
|
14
14
|
extend ArkEmail::Internal::Type::RequestParameters::Converter
|
|
15
15
|
include ArkEmail::Internal::Type::RequestParameters
|
|
16
16
|
|
|
17
|
-
attr_accessor domain_id:
|
|
17
|
+
attr_accessor domain_id: Integer
|
|
18
18
|
|
|
19
19
|
attr_accessor name: String
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
attr_accessor ssl_enabled: bool?
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
attr_accessor track_clicks: bool?
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
def track_clicks=: (bool) -> bool
|
|
28
|
-
|
|
29
|
-
attr_reader track_opens: bool?
|
|
30
|
-
|
|
31
|
-
def track_opens=: (bool) -> bool
|
|
25
|
+
attr_accessor track_opens: bool?
|
|
32
26
|
|
|
33
27
|
def initialize: (
|
|
34
|
-
domain_id:
|
|
28
|
+
domain_id: Integer,
|
|
35
29
|
name: String,
|
|
36
|
-
?ssl_enabled: bool
|
|
37
|
-
?track_clicks: bool
|
|
38
|
-
?track_opens: bool
|
|
30
|
+
?ssl_enabled: bool?,
|
|
31
|
+
?track_clicks: bool?,
|
|
32
|
+
?track_opens: bool?,
|
|
39
33
|
?request_options: ArkEmail::request_opts
|
|
40
34
|
) -> void
|
|
41
35
|
|
|
42
36
|
def to_hash: -> {
|
|
43
|
-
domain_id:
|
|
37
|
+
domain_id: Integer,
|
|
44
38
|
name: String,
|
|
45
|
-
ssl_enabled: bool
|
|
46
|
-
track_clicks: bool
|
|
47
|
-
track_opens: bool
|
|
39
|
+
ssl_enabled: bool?,
|
|
40
|
+
track_clicks: bool?,
|
|
41
|
+
track_opens: bool?,
|
|
48
42
|
request_options: ArkEmail::RequestOptions
|
|
49
43
|
}
|
|
50
44
|
end
|
|
@@ -2,10 +2,10 @@ module ArkEmail
|
|
|
2
2
|
module Models
|
|
3
3
|
type tracking_update_params =
|
|
4
4
|
{
|
|
5
|
-
excluded_click_domains: String
|
|
6
|
-
ssl_enabled: bool
|
|
7
|
-
track_clicks: bool
|
|
8
|
-
track_opens: bool
|
|
5
|
+
excluded_click_domains: String?,
|
|
6
|
+
ssl_enabled: bool?,
|
|
7
|
+
track_clicks: bool?,
|
|
8
|
+
track_opens: bool?
|
|
9
9
|
}
|
|
10
10
|
& ArkEmail::Internal::Type::request_parameters
|
|
11
11
|
|
|
@@ -13,35 +13,27 @@ module ArkEmail
|
|
|
13
13
|
extend ArkEmail::Internal::Type::RequestParameters::Converter
|
|
14
14
|
include ArkEmail::Internal::Type::RequestParameters
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
attr_accessor excluded_click_domains: String?
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
attr_accessor ssl_enabled: bool?
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
attr_accessor track_clicks: bool?
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
attr_reader track_clicks: bool?
|
|
25
|
-
|
|
26
|
-
def track_clicks=: (bool) -> bool
|
|
27
|
-
|
|
28
|
-
attr_reader track_opens: bool?
|
|
29
|
-
|
|
30
|
-
def track_opens=: (bool) -> bool
|
|
22
|
+
attr_accessor track_opens: bool?
|
|
31
23
|
|
|
32
24
|
def initialize: (
|
|
33
|
-
?excluded_click_domains: String
|
|
34
|
-
?ssl_enabled: bool
|
|
35
|
-
?track_clicks: bool
|
|
36
|
-
?track_opens: bool
|
|
25
|
+
?excluded_click_domains: String?,
|
|
26
|
+
?ssl_enabled: bool?,
|
|
27
|
+
?track_clicks: bool?,
|
|
28
|
+
?track_opens: bool?,
|
|
37
29
|
?request_options: ArkEmail::request_opts
|
|
38
30
|
) -> void
|
|
39
31
|
|
|
40
32
|
def to_hash: -> {
|
|
41
|
-
excluded_click_domains: String
|
|
42
|
-
ssl_enabled: bool
|
|
43
|
-
track_clicks: bool
|
|
44
|
-
track_opens: bool
|
|
33
|
+
excluded_click_domains: String?,
|
|
34
|
+
ssl_enabled: bool?,
|
|
35
|
+
track_clicks: bool?,
|
|
36
|
+
track_opens: bool?,
|
|
45
37
|
request_options: ArkEmail::RequestOptions
|
|
46
38
|
}
|
|
47
39
|
end
|
|
@@ -2,11 +2,11 @@ module ArkEmail
|
|
|
2
2
|
module Models
|
|
3
3
|
type webhook_create_params =
|
|
4
4
|
{
|
|
5
|
-
events: ::Array[ArkEmail::Models::WebhookCreateParams::event],
|
|
6
5
|
name: String,
|
|
7
6
|
url: String,
|
|
8
|
-
all_events: bool
|
|
9
|
-
enabled: bool
|
|
7
|
+
all_events: bool?,
|
|
8
|
+
enabled: bool?,
|
|
9
|
+
events: ::Array[ArkEmail::Models::WebhookCreateParams::event]?
|
|
10
10
|
}
|
|
11
11
|
& ArkEmail::Internal::Type::request_parameters
|
|
12
12
|
|
|
@@ -14,35 +14,31 @@ module ArkEmail
|
|
|
14
14
|
extend ArkEmail::Internal::Type::RequestParameters::Converter
|
|
15
15
|
include ArkEmail::Internal::Type::RequestParameters
|
|
16
16
|
|
|
17
|
-
attr_accessor events: ::Array[ArkEmail::Models::WebhookCreateParams::event]
|
|
18
|
-
|
|
19
17
|
attr_accessor name: String
|
|
20
18
|
|
|
21
19
|
attr_accessor url: String
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def all_events=: (bool) -> bool
|
|
21
|
+
attr_accessor all_events: bool?
|
|
26
22
|
|
|
27
|
-
|
|
23
|
+
attr_accessor enabled: bool?
|
|
28
24
|
|
|
29
|
-
|
|
25
|
+
attr_accessor events: ::Array[ArkEmail::Models::WebhookCreateParams::event]?
|
|
30
26
|
|
|
31
27
|
def initialize: (
|
|
32
|
-
events: ::Array[ArkEmail::Models::WebhookCreateParams::event],
|
|
33
28
|
name: String,
|
|
34
29
|
url: String,
|
|
35
|
-
?all_events: bool
|
|
36
|
-
?enabled: bool
|
|
30
|
+
?all_events: bool?,
|
|
31
|
+
?enabled: bool?,
|
|
32
|
+
?events: ::Array[ArkEmail::Models::WebhookCreateParams::event]?,
|
|
37
33
|
?request_options: ArkEmail::request_opts
|
|
38
34
|
) -> void
|
|
39
35
|
|
|
40
36
|
def to_hash: -> {
|
|
41
|
-
events: ::Array[ArkEmail::Models::WebhookCreateParams::event],
|
|
42
37
|
name: String,
|
|
43
38
|
url: String,
|
|
44
|
-
all_events: bool
|
|
45
|
-
enabled: bool
|
|
39
|
+
all_events: bool?,
|
|
40
|
+
enabled: bool?,
|
|
41
|
+
events: ::Array[ArkEmail::Models::WebhookCreateParams::event]?,
|
|
46
42
|
request_options: ArkEmail::RequestOptions
|
|
47
43
|
}
|
|
48
44
|
|