ark-email 0.11.0 → 0.12.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 +8 -0
- data/README.md +1 -1
- data/lib/ark_email/models/email_send_raw_params.rb +13 -13
- data/lib/ark_email/resources/emails.rb +5 -5
- data/lib/ark_email/version.rb +1 -1
- data/rbi/ark_email/models/email_send_raw_params.rbi +18 -18
- data/rbi/ark_email/resources/emails.rbi +10 -10
- data/sig/ark_email/models/email_send_raw_params.rbs +10 -15
- data/sig/ark_email/resources/emails.rbs +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c00d08f6dc8c60212e04d6f91c6a2a9224a5719a1e361c7b39467b880f035ba2
|
|
4
|
+
data.tar.gz: 549a5f2e13e0ccbbb47a2c7d66f6bc8cbde7121968a633801113cb9ac074d8a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0404fdb2d9cf3efbcdec7ae804e0f5ef57abd64781ee91c74d070736ad8631e7495168b22123d5eff5c7fdc42202e6148c151fef56146bf04a3566125763d9be
|
|
7
|
+
data.tar.gz: ee1ed6181c4d43550145d9924379cbd21eb36cecd8154f1d35ac0be30f975b9eb4ad9f06ae35ee26e02c0d17c8bc1be1225bea4912c78d6928d1cb47a339062b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.0 (2026-01-23)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.11.0...v0.12.0](https://github.com/ArkHQ-io/ark-ruby/compare/v0.11.0...v0.12.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** improve raw endpoint ([a0862f2](https://github.com/ArkHQ-io/ark-ruby/commit/a0862f2080187dcf8cdc0ab8d802849cdc9174ad))
|
|
10
|
+
|
|
3
11
|
## 0.11.0 (2026-01-22)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.10.0...v0.11.0](https://github.com/ArkHQ-io/ark-ruby/compare/v0.10.0...v0.11.0)
|
data/README.md
CHANGED
|
@@ -7,23 +7,23 @@ module ArkEmail
|
|
|
7
7
|
extend ArkEmail::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include ArkEmail::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!attribute
|
|
11
|
-
#
|
|
10
|
+
# @!attribute from
|
|
11
|
+
# Sender email address
|
|
12
12
|
#
|
|
13
13
|
# @return [String]
|
|
14
|
-
required :
|
|
14
|
+
required :from, String
|
|
15
15
|
|
|
16
|
-
# @!attribute
|
|
17
|
-
#
|
|
16
|
+
# @!attribute raw_message
|
|
17
|
+
# Base64-encoded RFC 2822 MIME message
|
|
18
18
|
#
|
|
19
19
|
# @return [String]
|
|
20
|
-
required :
|
|
20
|
+
required :raw_message, String, api_name: :rawMessage
|
|
21
21
|
|
|
22
|
-
# @!attribute
|
|
23
|
-
#
|
|
22
|
+
# @!attribute to
|
|
23
|
+
# Recipient email addresses
|
|
24
24
|
#
|
|
25
25
|
# @return [Array<String>]
|
|
26
|
-
required :
|
|
26
|
+
required :to, ArkEmail::Internal::Type::ArrayOf[String]
|
|
27
27
|
|
|
28
28
|
# @!attribute bounce
|
|
29
29
|
# Whether this is a bounce message (accepts null)
|
|
@@ -31,12 +31,12 @@ module ArkEmail
|
|
|
31
31
|
# @return [Boolean, nil]
|
|
32
32
|
optional :bounce, ArkEmail::Internal::Type::Boolean, nil?: true
|
|
33
33
|
|
|
34
|
-
# @!method initialize(
|
|
35
|
-
# @param
|
|
34
|
+
# @!method initialize(from:, raw_message:, to:, bounce: nil, request_options: {})
|
|
35
|
+
# @param from [String] Sender email address
|
|
36
36
|
#
|
|
37
|
-
# @param
|
|
37
|
+
# @param raw_message [String] Base64-encoded RFC 2822 MIME message
|
|
38
38
|
#
|
|
39
|
-
# @param
|
|
39
|
+
# @param to [Array<String>] Recipient email addresses
|
|
40
40
|
#
|
|
41
41
|
# @param bounce [Boolean, nil] Whether this is a bounce message (accepts null)
|
|
42
42
|
#
|
|
@@ -266,15 +266,15 @@ module ArkEmail
|
|
|
266
266
|
# Send a pre-formatted RFC 2822 MIME message. Use this for advanced use cases or
|
|
267
267
|
# when migrating from systems that generate raw email content.
|
|
268
268
|
#
|
|
269
|
-
# The `
|
|
269
|
+
# The `rawMessage` field should contain the base64-encoded raw email.
|
|
270
270
|
#
|
|
271
|
-
# @overload send_raw(
|
|
271
|
+
# @overload send_raw(from:, raw_message:, to:, bounce: nil, request_options: {})
|
|
272
272
|
#
|
|
273
|
-
# @param
|
|
273
|
+
# @param from [String] Sender email address
|
|
274
274
|
#
|
|
275
|
-
# @param
|
|
275
|
+
# @param raw_message [String] Base64-encoded RFC 2822 MIME message
|
|
276
276
|
#
|
|
277
|
-
# @param
|
|
277
|
+
# @param to [Array<String>] Recipient email addresses
|
|
278
278
|
#
|
|
279
279
|
# @param bounce [Boolean, nil] Whether this is a bounce message (accepts null)
|
|
280
280
|
#
|
data/lib/ark_email/version.rb
CHANGED
|
@@ -11,17 +11,17 @@ module ArkEmail
|
|
|
11
11
|
T.any(ArkEmail::EmailSendRawParams, ArkEmail::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Sender email address
|
|
15
15
|
sig { returns(String) }
|
|
16
|
-
attr_accessor :
|
|
16
|
+
attr_accessor :from
|
|
17
17
|
|
|
18
|
-
#
|
|
18
|
+
# Base64-encoded RFC 2822 MIME message
|
|
19
19
|
sig { returns(String) }
|
|
20
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :raw_message
|
|
21
21
|
|
|
22
|
-
#
|
|
22
|
+
# Recipient email addresses
|
|
23
23
|
sig { returns(T::Array[String]) }
|
|
24
|
-
attr_accessor :
|
|
24
|
+
attr_accessor :to
|
|
25
25
|
|
|
26
26
|
# Whether this is a bounce message (accepts null)
|
|
27
27
|
sig { returns(T.nilable(T::Boolean)) }
|
|
@@ -29,20 +29,20 @@ module ArkEmail
|
|
|
29
29
|
|
|
30
30
|
sig do
|
|
31
31
|
params(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
from: String,
|
|
33
|
+
raw_message: String,
|
|
34
|
+
to: T::Array[String],
|
|
35
35
|
bounce: T.nilable(T::Boolean),
|
|
36
36
|
request_options: ArkEmail::RequestOptions::OrHash
|
|
37
37
|
).returns(T.attached_class)
|
|
38
38
|
end
|
|
39
39
|
def self.new(
|
|
40
|
-
#
|
|
41
|
-
|
|
42
|
-
#
|
|
43
|
-
|
|
44
|
-
#
|
|
45
|
-
|
|
40
|
+
# Sender email address
|
|
41
|
+
from:,
|
|
42
|
+
# Base64-encoded RFC 2822 MIME message
|
|
43
|
+
raw_message:,
|
|
44
|
+
# Recipient email addresses
|
|
45
|
+
to:,
|
|
46
46
|
# Whether this is a bounce message (accepts null)
|
|
47
47
|
bounce: nil,
|
|
48
48
|
request_options: {}
|
|
@@ -52,9 +52,9 @@ module ArkEmail
|
|
|
52
52
|
sig do
|
|
53
53
|
override.returns(
|
|
54
54
|
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
from: String,
|
|
56
|
+
raw_message: String,
|
|
57
|
+
to: T::Array[String],
|
|
58
58
|
bounce: T.nilable(T::Boolean),
|
|
59
59
|
request_options: ArkEmail::RequestOptions
|
|
60
60
|
}
|
|
@@ -276,23 +276,23 @@ module ArkEmail
|
|
|
276
276
|
# Send a pre-formatted RFC 2822 MIME message. Use this for advanced use cases or
|
|
277
277
|
# when migrating from systems that generate raw email content.
|
|
278
278
|
#
|
|
279
|
-
# The `
|
|
279
|
+
# The `rawMessage` field should contain the base64-encoded raw email.
|
|
280
280
|
sig do
|
|
281
281
|
params(
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
from: String,
|
|
283
|
+
raw_message: String,
|
|
284
|
+
to: T::Array[String],
|
|
285
285
|
bounce: T.nilable(T::Boolean),
|
|
286
286
|
request_options: ArkEmail::RequestOptions::OrHash
|
|
287
287
|
).returns(ArkEmail::Models::EmailSendRawResponse)
|
|
288
288
|
end
|
|
289
289
|
def send_raw(
|
|
290
|
-
#
|
|
291
|
-
|
|
292
|
-
#
|
|
293
|
-
|
|
294
|
-
#
|
|
295
|
-
|
|
290
|
+
# Sender email address
|
|
291
|
+
from:,
|
|
292
|
+
# Base64-encoded RFC 2822 MIME message
|
|
293
|
+
raw_message:,
|
|
294
|
+
# Recipient email addresses
|
|
295
|
+
to:,
|
|
296
296
|
# Whether this is a bounce message (accepts null)
|
|
297
297
|
bounce: nil,
|
|
298
298
|
request_options: {}
|
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
module ArkEmail
|
|
2
2
|
module Models
|
|
3
3
|
type email_send_raw_params =
|
|
4
|
-
{
|
|
5
|
-
data: String,
|
|
6
|
-
mail_from: String,
|
|
7
|
-
rcpt_to: ::Array[String],
|
|
8
|
-
bounce: bool?
|
|
9
|
-
}
|
|
4
|
+
{ from: String, raw_message: String, to: ::Array[String], bounce: bool? }
|
|
10
5
|
& ArkEmail::Internal::Type::request_parameters
|
|
11
6
|
|
|
12
7
|
class EmailSendRawParams < ArkEmail::Internal::Type::BaseModel
|
|
13
8
|
extend ArkEmail::Internal::Type::RequestParameters::Converter
|
|
14
9
|
include ArkEmail::Internal::Type::RequestParameters
|
|
15
10
|
|
|
16
|
-
attr_accessor
|
|
11
|
+
attr_accessor from: String
|
|
17
12
|
|
|
18
|
-
attr_accessor
|
|
13
|
+
attr_accessor raw_message: String
|
|
19
14
|
|
|
20
|
-
attr_accessor
|
|
15
|
+
attr_accessor to: ::Array[String]
|
|
21
16
|
|
|
22
17
|
attr_accessor bounce: bool?
|
|
23
18
|
|
|
24
19
|
def initialize: (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
from: String,
|
|
21
|
+
raw_message: String,
|
|
22
|
+
to: ::Array[String],
|
|
28
23
|
?bounce: bool?,
|
|
29
24
|
?request_options: ArkEmail::request_opts
|
|
30
25
|
) -> void
|
|
31
26
|
|
|
32
27
|
def to_hash: -> {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
from: String,
|
|
29
|
+
raw_message: String,
|
|
30
|
+
to: ::Array[String],
|
|
36
31
|
bounce: bool?,
|
|
37
32
|
request_options: ArkEmail::RequestOptions
|
|
38
33
|
}
|
|
@@ -54,9 +54,9 @@ module ArkEmail
|
|
|
54
54
|
) -> ArkEmail::Models::EmailSendBatchResponse
|
|
55
55
|
|
|
56
56
|
def send_raw: (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
from: String,
|
|
58
|
+
raw_message: String,
|
|
59
|
+
to: ::Array[String],
|
|
60
60
|
?bounce: bool?,
|
|
61
61
|
?request_options: ArkEmail::request_opts
|
|
62
62
|
) -> ArkEmail::Models::EmailSendRawResponse
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ark-email
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ark
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|