wavix-ruby-sdk 3.1.1 → 3.2.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: 7fab8c4c40041f4f74a82874a6b976076e57da306423b2e81aae1385d8179ba7
4
- data.tar.gz: e9d54c78f725b38e9141d464ae3506e0d8e78e1944f06c1f1c1fee95fe39b4fc
3
+ metadata.gz: d0856fa458fa41830d2755038167931efbee40a380210282f0c16dcc2da65093
4
+ data.tar.gz: 5d8976e82161b2ac6d7bf3fcc9d32d90753db2f8ab75645b79e8b63073b86bb5
5
5
  SHA512:
6
- metadata.gz: d325174e9dca7a4ae266fa8526ce931f3058518e15214651beba06b5d88ce0515a70f54c529854b2285e834eac36586b6dfd0a3336c3034aaee787dd39564ae3
7
- data.tar.gz: a91be9fce7ee858c50c70bc539b15d2a0de1f2c34d420a515a237d3cc9573306dc38fcc7a18f87add0aa00d2719adfe28d23612a4f750b8d489e93a7b3d4a01e
6
+ metadata.gz: df6f8c62830a8c28e69a39cbb637aa157d8107feb1c8cabbd9f5cd57e68d7dcfb37cf44530a0ad0bb41c7128864c259b2fa6cae89e5c41da336bd43ad41cde03
7
+ data.tar.gz: 516e434524d88e58efaaed561e4c57d76f434d2314435669a53823a7966829d682ac702df8cef55b0ff05d1838a2994c6fd75f4fe1279403da314df768b3736b
data/.fern/metadata.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "cliVersion": "5.45.3",
3
3
  "generatorName": "fernapi/fern-ruby-sdk",
4
4
  "generatorVersion": "1.13.1",
5
- "originGitCommit": "a56594dd90d30eb9e1e851a67a584eab0940d0db",
5
+ "originGitCommit": "d1a33a0219d7830d9521bb2e9cda091a3243490c",
6
6
  "originGitCommitIsDirty": false,
7
7
  "invokedBy": "ci",
8
- "requestedVersion": "3.1.1",
8
+ "requestedVersion": "3.2.0",
9
9
  "ciProvider": "github",
10
- "sdkVersion": "3.1.1"
10
+ "sdkVersion": "3.2.0"
11
11
  }
data/.fern/replay.lock CHANGED
@@ -54,5 +54,11 @@ generations:
54
54
  cli_version: unknown
55
55
  generator_versions:
56
56
  fernapi/fern-ruby-sdk: 1.13.1
57
- current_generation: e1baecef217d1b2d5efc97e6170623a10c86ee34
57
+ - commit_sha: a8e2a071dae1ebcd7ade38b4236f783f2af769ac
58
+ tree_hash: 45da73f4deee85f8d45ceeb502b7e19c609b53c7
59
+ timestamp: 2026-11-26T08:08:10.161Z
60
+ cli_version: unknown
61
+ generator_versions:
62
+ fernapi/fern-ruby-sdk: 1.13.1
63
+ current_generation: a8e2a071dae1ebcd7ade38b4236f783f2af769ac
58
64
  patches: []
data/lib/wavix/client.rb CHANGED
@@ -11,7 +11,7 @@ module Wavix
11
11
  @raw_client = Wavix::Internal::Http::RawClient.new(
12
12
  base_url: base_url || Wavix::Environment::DEFAULT,
13
13
  headers: {
14
- "User-Agent" => "wavix-ruby-sdk/3.1.1",
14
+ "User-Agent" => "wavix-ruby-sdk/3.2.0",
15
15
  "X-Fern-Language" => "Ruby",
16
16
  Authorization: "Bearer #{token}"
17
17
  },
@@ -13,7 +13,7 @@ module Wavix
13
13
  # Validates a single phone number and returns line type, carrier, portability, and reachability details. The
14
14
  # response's `error_code` is a per-number result code (`000` success; `013` internal error; `021` invalid format;
15
15
  # `041` remote timeout; `042` remote query failed; `091` insufficient funds) — distinct from the HTTP status codes
16
- # below.
16
+ # below. Each validation is charged to the account balance; `charge` in the response shows the amount.
17
17
  #
18
18
  # @param request_options [Hash]
19
19
  # @param params [Hash]
@@ -54,7 +54,7 @@ module Wavix
54
54
  end
55
55
 
56
56
  # Validates a batch of phone numbers. When `async` is `true`, returns a `request_uuid` to poll for results instead
57
- # of the validation details.
57
+ # of the validation details. Each number in the batch is charged to the account balance.
58
58
  #
59
59
  # @param request_options [Hash]
60
60
  # @param params [Wavix::NumberValidator::Types::PhoneValidationRequest]
@@ -70,7 +70,8 @@ module Wavix
70
70
 
71
71
  # Sends an SMS or MMS message. MMS is supported for U.S. numbers only. Track delivery using the returned
72
72
  # `message_id` and the message status callback. The recipient must be opted in to receive messages from the
73
- # account; sending to an opted-out number fails.
73
+ # account; sending to an opted-out number fails. Each message is charged to the account balance; `charge` in the
74
+ # response shows the amount.
74
75
  #
75
76
  # @param request_options [Hash]
76
77
  # @param params [Wavix::SmsAndMms::Messages::Types::SendMessagesRequest]
@@ -53,7 +53,7 @@ module Wavix
53
53
  end
54
54
 
55
55
  # Resends the OTP for the verification identified by `session_id` over the specified channel. Previously sent
56
- # codes are invalidated.
56
+ # codes are invalidated. Each code sent is charged to the account balance.
57
57
  #
58
58
  # @param request_options [Hash]
59
59
  # @param params [Wavix::TwoFa::Verification::Types::TwoFactorVerificationResendRequest]
@@ -5,6 +5,8 @@ module Wavix
5
5
  class CartResponse < Internal::Types::Model
6
6
  field :dids, -> { Internal::Types::Array[Wavix::Types::AvailableNumber] }, optional: false, nullable: false
7
7
 
8
+ field :unavailable_dids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
9
+
8
10
  field :doc_types, -> { Internal::Types::Array[Wavix::Types::DocumentTypeInfo] }, optional: false, nullable: false
9
11
  end
10
12
  end
@@ -24,6 +24,10 @@ module Wavix
24
24
  field :service_window_open_until, -> { String }, optional: true, nullable: false
25
25
 
26
26
  field :error, -> { Wavix::Types::WhatsAppMessageError }, optional: true, nullable: false
27
+
28
+ field :charge, -> { String }, optional: true, nullable: false
29
+
30
+ field :category, -> { Wavix::Types::WhatsAppMessageListItemCategory }, optional: true, nullable: false
27
31
  end
28
32
  end
29
33
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Wavix
4
+ module Types
5
+ module WhatsAppMessageListItemCategory
6
+ extend Wavix::Internal::Types::Enum
7
+
8
+ MARKETING = "marketing"
9
+ UTILITY = "utility"
10
+ AUTHENTICATION = "authentication"
11
+ SERVICE = "service"
12
+ end
13
+ end
14
+ end
data/lib/wavix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wavix
4
- VERSION = "3.1.1"
4
+ VERSION = "3.2.0"
5
5
  end
data/lib/wavix.rb CHANGED
@@ -294,6 +294,7 @@ require_relative "wavix/types/whats_app_message_error_action"
294
294
  require_relative "wavix/types/whats_app_message_error"
295
295
  require_relative "wavix/types/whats_app_message_list_item_direction"
296
296
  require_relative "wavix/types/whats_app_message_list_item_status"
297
+ require_relative "wavix/types/whats_app_message_list_item_category"
297
298
  require_relative "wavix/types/whats_app_message_list_item"
298
299
  require_relative "wavix/types/whats_app_message_list_response"
299
300
  require_relative "wavix/types/whats_app_send_template_header_type"
data/reference.md CHANGED
@@ -3975,7 +3975,7 @@ Prompt to play before collecting digits.
3975
3975
  <dl>
3976
3976
  <dd>
3977
3977
 
3978
- Validates a single phone number and returns line type, carrier, portability, and reachability details. The response's `error_code` is a per-number result code (`000` success; `013` internal error; `021` invalid format; `041` remote timeout; `042` remote query failed; `091` insufficient funds) — distinct from the HTTP status codes below.
3978
+ Validates a single phone number and returns line type, carrier, portability, and reachability details. The response's `error_code` is a per-number result code (`000` success; `013` internal error; `021` invalid format; `041` remote timeout; `042` remote query failed; `091` insufficient funds) — distinct from the HTTP status codes below. Each validation is charged to the account balance; `charge` in the response shows the amount.
3979
3979
  </dd>
3980
3980
  </dl>
3981
3981
  </dd>
@@ -4048,7 +4048,7 @@ client.number_validator.get(
4048
4048
  <dl>
4049
4049
  <dd>
4050
4050
 
4051
- Validates a batch of phone numbers. When `async` is `true`, returns a `request_uuid` to poll for results instead of the validation details.
4051
+ Validates a batch of phone numbers. When `async` is `true`, returns a `request_uuid` to poll for results instead of the validation details. Each number in the batch is charged to the account balance.
4052
4052
  </dd>
4053
4053
  </dl>
4054
4054
  </dd>
@@ -6764,7 +6764,7 @@ client.sms_and_mms.messages.list(
6764
6764
  <dl>
6765
6765
  <dd>
6766
6766
 
6767
- Sends an SMS or MMS message. MMS is supported for U.S. numbers only. Track delivery using the returned `message_id` and the message status callback. The recipient must be opted in to receive messages from the account; sending to an opted-out number fails.
6767
+ Sends an SMS or MMS message. MMS is supported for U.S. numbers only. Track delivery using the returned `message_id` and the message status callback. The recipient must be opted in to receive messages from the account; sending to an opted-out number fails. Each message is charged to the account balance; `charge` in the response shows the amount.
6768
6768
  </dd>
6769
6769
  </dl>
6770
6770
  </dd>
@@ -10327,7 +10327,7 @@ client.two_fa.verification.create(
10327
10327
  <dl>
10328
10328
  <dd>
10329
10329
 
10330
- Resends the OTP for the verification identified by `session_id` over the specified channel. Previously sent codes are invalidated.
10330
+ Resends the OTP for the verification identified by `session_id` over the specified channel. Previously sent codes are invalidated. Each code sent is charged to the account balance.
10331
10331
  </dd>
10332
10332
  </dl>
10333
10333
  </dd>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavix-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wavix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-24 00:00:00.000000000 Z
11
+ date: 2026-11-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The Wavix Ruby library provides convenient access to the Wavix API from
14
14
  Ruby.
@@ -483,6 +483,7 @@ files:
483
483
  - lib/wavix/types/whats_app_message_failed_event_data_status.rb
484
484
  - lib/wavix/types/whats_app_message_get_response.rb
485
485
  - lib/wavix/types/whats_app_message_list_item.rb
486
+ - lib/wavix/types/whats_app_message_list_item_category.rb
486
487
  - lib/wavix/types/whats_app_message_list_item_direction.rb
487
488
  - lib/wavix/types/whats_app_message_list_item_status.rb
488
489
  - lib/wavix/types/whats_app_message_list_response.rb