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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d612dc78e03726f7930429ab6d7cf9826145b9bf42d5049e8a5ecea9db3ad7b8
4
- data.tar.gz: 33a733a57efb4084871fde7e35c7913c836eecc708a40af1210171f91de390c7
3
+ metadata.gz: c00d08f6dc8c60212e04d6f91c6a2a9224a5719a1e361c7b39467b880f035ba2
4
+ data.tar.gz: 549a5f2e13e0ccbbb47a2c7d66f6bc8cbde7121968a633801113cb9ac074d8a6
5
5
  SHA512:
6
- metadata.gz: 4487eebe13f6bc9f8589ae754827ea7f0a62a9796964a1f938272f16b1dadce28b49efb4d836ab90b0d68742c2bfc3eca6b3ec4376df87255c56db9f75301dee
7
- data.tar.gz: 3f9798c5f37e08efcbdc8f6723258412fe55f91bcb1f71b7440d204d1b5800ce75acbc6b0c0e7192c73b742b3729e343013869c3758fb1e44a399f8787ef0020
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
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "ark-email", "~> 0.11.0"
29
+ gem "ark-email", "~> 0.12.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -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 data
11
- # Base64-encoded RFC 2822 message
10
+ # @!attribute from
11
+ # Sender email address
12
12
  #
13
13
  # @return [String]
14
- required :data, String
14
+ required :from, String
15
15
 
16
- # @!attribute mail_from
17
- # Envelope sender address
16
+ # @!attribute raw_message
17
+ # Base64-encoded RFC 2822 MIME message
18
18
  #
19
19
  # @return [String]
20
- required :mail_from, String, api_name: :mailFrom
20
+ required :raw_message, String, api_name: :rawMessage
21
21
 
22
- # @!attribute rcpt_to
23
- # Envelope recipient addresses
22
+ # @!attribute to
23
+ # Recipient email addresses
24
24
  #
25
25
  # @return [Array<String>]
26
- required :rcpt_to, ArkEmail::Internal::Type::ArrayOf[String], api_name: :rcptTo
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(data:, mail_from:, rcpt_to:, bounce: nil, request_options: {})
35
- # @param data [String] Base64-encoded RFC 2822 message
34
+ # @!method initialize(from:, raw_message:, to:, bounce: nil, request_options: {})
35
+ # @param from [String] Sender email address
36
36
  #
37
- # @param mail_from [String] Envelope sender address
37
+ # @param raw_message [String] Base64-encoded RFC 2822 MIME message
38
38
  #
39
- # @param rcpt_to [Array<String>] Envelope recipient addresses
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 `data` field should contain the base64-encoded raw email.
269
+ # The `rawMessage` field should contain the base64-encoded raw email.
270
270
  #
271
- # @overload send_raw(data:, mail_from:, rcpt_to:, bounce: nil, request_options: {})
271
+ # @overload send_raw(from:, raw_message:, to:, bounce: nil, request_options: {})
272
272
  #
273
- # @param data [String] Base64-encoded RFC 2822 message
273
+ # @param from [String] Sender email address
274
274
  #
275
- # @param mail_from [String] Envelope sender address
275
+ # @param raw_message [String] Base64-encoded RFC 2822 MIME message
276
276
  #
277
- # @param rcpt_to [Array<String>] Envelope recipient addresses
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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ArkEmail
4
- VERSION = "0.11.0"
4
+ VERSION = "0.12.0"
5
5
  end
@@ -11,17 +11,17 @@ module ArkEmail
11
11
  T.any(ArkEmail::EmailSendRawParams, ArkEmail::Internal::AnyHash)
12
12
  end
13
13
 
14
- # Base64-encoded RFC 2822 message
14
+ # Sender email address
15
15
  sig { returns(String) }
16
- attr_accessor :data
16
+ attr_accessor :from
17
17
 
18
- # Envelope sender address
18
+ # Base64-encoded RFC 2822 MIME message
19
19
  sig { returns(String) }
20
- attr_accessor :mail_from
20
+ attr_accessor :raw_message
21
21
 
22
- # Envelope recipient addresses
22
+ # Recipient email addresses
23
23
  sig { returns(T::Array[String]) }
24
- attr_accessor :rcpt_to
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
- data: String,
33
- mail_from: String,
34
- rcpt_to: T::Array[String],
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
- # Base64-encoded RFC 2822 message
41
- data:,
42
- # Envelope sender address
43
- mail_from:,
44
- # Envelope recipient addresses
45
- rcpt_to:,
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
- data: String,
56
- mail_from: String,
57
- rcpt_to: T::Array[String],
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 `data` field should contain the base64-encoded raw email.
279
+ # The `rawMessage` field should contain the base64-encoded raw email.
280
280
  sig do
281
281
  params(
282
- data: String,
283
- mail_from: String,
284
- rcpt_to: T::Array[String],
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
- # Base64-encoded RFC 2822 message
291
- data:,
292
- # Envelope sender address
293
- mail_from:,
294
- # Envelope recipient addresses
295
- rcpt_to:,
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 data: String
11
+ attr_accessor from: String
17
12
 
18
- attr_accessor mail_from: String
13
+ attr_accessor raw_message: String
19
14
 
20
- attr_accessor rcpt_to: ::Array[String]
15
+ attr_accessor to: ::Array[String]
21
16
 
22
17
  attr_accessor bounce: bool?
23
18
 
24
19
  def initialize: (
25
- data: String,
26
- mail_from: String,
27
- rcpt_to: ::Array[String],
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
- data: String,
34
- mail_from: String,
35
- rcpt_to: ::Array[String],
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
- data: String,
58
- mail_from: String,
59
- rcpt_to: ::Array[String],
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.11.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-22 00:00:00.000000000 Z
11
+ date: 2026-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi