wavix-ruby-sdk 2.0.0 → 3.0.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: 2291b7cc0a4ca908c56c344a7e53e57344ecd88693632579a596efc8c797ee83
4
- data.tar.gz: bc644c9b30dae26bf44fe6cb30f18543784162ab4ccdbf9408d9e3b771ecc009
3
+ metadata.gz: 42b4fcf6e81cf511554219ced5c48a496f1de9aed95316967e26b5bc4a267c15
4
+ data.tar.gz: 9469783fa9485e9dab99a6e386be2ca3b2e82b7a6d901ac9be156ee4f52df75e
5
5
  SHA512:
6
- metadata.gz: a5c9cb47eea52ed99d31c77b4cee899c7d8b7b55866df01af285bef673e14cb649f124c1262db6a712a73653d40866ae71fff8e9d8036515db53b6144f624d2f
7
- data.tar.gz: c2e389635b8e3d5d51abf5721bcb8a9c4c65f604af68ae636888de7f25a87d8f1bc7a6084c03b1fbdfe812ac07b65a2f541b9d482059f0822ed593f9eb97b277
6
+ metadata.gz: d83df5628c302505fc739e4bc56b1d27e17153d033e95de7790ba48100fcdaa9ec114da7564b06f4f95e92ea83699ee641911a93d27b547849cdf09e27faae85
7
+ data.tar.gz: b00fa82dc46ad9650a419e874261c8709a257a7cb55f454fcb3a97fa06d448edfffdb6b4d20ec812e070ea65d4cb023f30862520c77c3d14ac5cd1f37256ccd3
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": "d053dce9ee7bd69d72f7279248deb332f643836f",
5
+ "originGitCommit": "e96ad6856a556b13d0049680adc042880f7f95a2",
6
6
  "originGitCommitIsDirty": false,
7
7
  "invokedBy": "ci",
8
- "requestedVersion": "2.0.0",
8
+ "requestedVersion": "3.0.0",
9
9
  "ciProvider": "github",
10
- "sdkVersion": "2.0.0"
10
+ "sdkVersion": "3.0.0"
11
11
  }
data/.fern/replay.lock CHANGED
@@ -36,5 +36,11 @@ generations:
36
36
  cli_version: unknown
37
37
  generator_versions:
38
38
  fernapi/fern-ruby-sdk: 1.13.1
39
- current_generation: 96b5ddb0276ffaae2b3b915498acfccc31bfa54e
39
+ - commit_sha: a182911a591b2f435a3a60cfee819f9ac7bedd6b
40
+ tree_hash: 2789c855d61e4879d98e44a8a411ebaae9807651
41
+ timestamp: 2026-11-23T09:05:26.606Z
42
+ cli_version: unknown
43
+ generator_versions:
44
+ fernapi/fern-ruby-sdk: 1.13.1
45
+ current_generation: a182911a591b2f435a3a60cfee819f9ac7bedd6b
40
46
  patches: []
@@ -47,7 +47,8 @@ module Wavix
47
47
  end
48
48
 
49
49
  # Creates an API key for the authenticated account. Restrict access by listing permitted IP addresses in
50
- # `permitted_ips`.
50
+ # `permitted_ips`. Store the returned `value` securely. Later reads return `redacted_value`, and `value` on reads
51
+ # is deprecated.
51
52
  #
52
53
  # @param request_options [Hash]
53
54
  # @param params [Wavix::APIKeys::Types::APIKeyCreateRequest]
@@ -57,7 +58,7 @@ module Wavix
57
58
  # @option request_options [Hash{String => Object}] :additional_body_parameters
58
59
  # @option request_options [Integer] :timeout_in_seconds
59
60
  #
60
- # @return [Wavix::Types::APIKey]
61
+ # @return [Wavix::Types::APIKeyWithSecret]
61
62
  def create(request_options: {}, **params)
62
63
  params = Wavix::Internal::Types::Utils.normalize_keys(params)
63
64
  request = Wavix::Internal::JSON::Request.new(
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/2.0.0",
14
+ "User-Agent" => "wavix-ruby-sdk/3.0.0",
15
15
  "X-Fern-Language" => "Ruby",
16
16
  Authorization: "Bearer #{token}"
17
17
  },
@@ -53,7 +53,8 @@ module Wavix
53
53
  end
54
54
 
55
55
  # Creates a sub-account under the authenticated master account. Returns the sub-account with its generated
56
- # `api_key`.
56
+ # `api_key`. Store the returned `api_key` securely. Later reads return `redacted_api_key`, and `api_key` on reads
57
+ # is deprecated.
57
58
  #
58
59
  # @param request_options [Hash]
59
60
  # @param params [Wavix::SubAccounts::Types::SubAccountsCreateRequest]
@@ -63,7 +64,7 @@ module Wavix
63
64
  # @option request_options [Hash{String => Object}] :additional_body_parameters
64
65
  # @option request_options [Integer] :timeout_in_seconds
65
66
  #
66
- # @return [Wavix::Types::SubOrganizationResponse]
67
+ # @return [Wavix::Types::SubOrganizationWithSecret]
67
68
  def create(request_options: {}, **params)
68
69
  params = Wavix::Internal::Types::Utils.normalize_keys(params)
69
70
  request = Wavix::Internal::JSON::Request.new(
@@ -80,7 +81,7 @@ module Wavix
80
81
  end
81
82
  code = response.code.to_i
82
83
  if code.between?(200, 299)
83
- Wavix::Types::SubOrganizationResponse.load(response.body)
84
+ Wavix::Types::SubOrganizationWithSecret.load(response.body)
84
85
  else
85
86
  error_class = Wavix::Errors::ResponseError.subclass_for_code(code)
86
87
  raise error_class.new(response.body, code: code)
@@ -2,14 +2,13 @@
2
2
 
3
3
  module Wavix
4
4
  module Types
5
- # API key details including IP restrictions and scope permissions.
5
+ # API key details including IP restrictions and scope permissions. The `value` field is deprecated; use
6
+ # `redacted_value`.
6
7
  class APIKey < Internal::Types::Model
7
8
  field :id, -> { Integer }, optional: false, nullable: false
8
9
 
9
10
  field :label, -> { String }, optional: false, nullable: false
10
11
 
11
- field :value, -> { String }, optional: false, nullable: false
12
-
13
12
  field :active, -> { Internal::Types::Boolean }, optional: false, nullable: false
14
13
 
15
14
  field :restricted, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -47,6 +46,10 @@ module Wavix
47
46
  field :subaccounts, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
48
47
 
49
48
  field :created_at, -> { String }, optional: false, nullable: false
49
+
50
+ field :value, -> { String }, optional: false, nullable: false
51
+
52
+ field :redacted_value, -> { String }, optional: false, nullable: true
50
53
  end
51
54
  end
52
55
  end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Wavix
4
+ module Types
5
+ # Shared API key fields without the secret value.
6
+ class APIKeyBase < Internal::Types::Model
7
+ field :id, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :label, -> { String }, optional: false, nullable: false
10
+
11
+ field :active, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+
13
+ field :restricted, -> { Internal::Types::Boolean }, optional: false, nullable: false
14
+
15
+ field :permitted_ips, -> { Internal::Types::Array[String] }, optional: false, nullable: false
16
+
17
+ field :scopes_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
18
+
19
+ field :last_used_at, -> { String }, optional: false, nullable: true
20
+
21
+ field :numbers, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
22
+
23
+ field :trunks, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
24
+
25
+ field :calls, -> { Wavix::Types::APIKeyCallsScopePermission }, optional: false, nullable: true
26
+
27
+ field :messages, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
28
+
29
+ field :recordings, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
30
+
31
+ field :campaigns, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
32
+
33
+ field :two_fa, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
34
+
35
+ field :validator, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
36
+
37
+ field :webhooks, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
38
+
39
+ field :embeddable, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
40
+
41
+ field :billing, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
42
+
43
+ field :account, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
44
+
45
+ field :subaccounts, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
46
+
47
+ field :created_at, -> { String }, optional: false, nullable: false
48
+ end
49
+ end
50
+ end
@@ -2,22 +2,54 @@
2
2
 
3
3
  module Wavix
4
4
  module Types
5
- module APIKeyWithSecret
6
- # APIKeyWithSecret is an alias for APIKey
7
-
8
- # @option str [String]
9
- #
10
- # @return [untyped]
11
- def self.load(str)
12
- ::JSON.parse(str)
13
- end
14
-
15
- # @option value [untyped]
16
- #
17
- # @return [String]
18
- def self.dump(value)
19
- ::JSON.generate(value)
20
- end
5
+ # API key details, including the secret `value`. Store the `value` securely. Later reads return `redacted_value`,
6
+ # and `value` on reads is deprecated.
7
+ class APIKeyWithSecret < Internal::Types::Model
8
+ field :id, -> { Integer }, optional: false, nullable: false
9
+
10
+ field :label, -> { String }, optional: false, nullable: false
11
+
12
+ field :active, -> { Internal::Types::Boolean }, optional: false, nullable: false
13
+
14
+ field :restricted, -> { Internal::Types::Boolean }, optional: false, nullable: false
15
+
16
+ field :permitted_ips, -> { Internal::Types::Array[String] }, optional: false, nullable: false
17
+
18
+ field :scopes_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
19
+
20
+ field :last_used_at, -> { String }, optional: false, nullable: true
21
+
22
+ field :numbers, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
23
+
24
+ field :trunks, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
25
+
26
+ field :calls, -> { Wavix::Types::APIKeyCallsScopePermission }, optional: false, nullable: true
27
+
28
+ field :messages, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
29
+
30
+ field :recordings, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
31
+
32
+ field :campaigns, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
33
+
34
+ field :two_fa, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
35
+
36
+ field :validator, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
37
+
38
+ field :webhooks, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
39
+
40
+ field :embeddable, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
41
+
42
+ field :billing, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
43
+
44
+ field :account, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
45
+
46
+ field :subaccounts, -> { Wavix::Types::APIKeyScopePermission }, optional: false, nullable: true
47
+
48
+ field :created_at, -> { String }, optional: false, nullable: false
49
+
50
+ field :value, -> { String }, optional: false, nullable: false
51
+
52
+ field :redacted_value, -> { String }, optional: false, nullable: true
21
53
  end
22
54
  end
23
55
  end
@@ -17,8 +17,6 @@ module Wavix
17
17
  field :doc_type, -> { Wavix::Types::DocumentType }, optional: false, nullable: true
18
18
 
19
19
  field :status, -> { String }, optional: false, nullable: false
20
-
21
- field :url, -> { String }, optional: false, nullable: false
22
20
  end
23
21
  end
24
22
  end
@@ -12,6 +12,8 @@ module Wavix
12
12
 
13
13
  field :api_key, -> { String }, optional: false, nullable: false
14
14
 
15
+ field :redacted_api_key, -> { String }, optional: false, nullable: true
16
+
15
17
  field :master_organization, -> { Integer }, optional: false, nullable: false
16
18
 
17
19
  field :status, -> { Wavix::Types::SubOrganizationResponseStatus }, optional: false, nullable: false
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Wavix
4
+ module Types
5
+ # Sub-account details including the full API key. Returned only by the create operation.
6
+ class SubOrganizationWithSecret < Internal::Types::Model
7
+ field :id, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :created_at, -> { String }, optional: false, nullable: false
10
+
11
+ field :name, -> { String }, optional: false, nullable: false
12
+
13
+ field :api_key, -> { String }, optional: false, nullable: false
14
+
15
+ field :redacted_api_key, -> { String }, optional: false, nullable: true
16
+
17
+ field :master_organization, -> { Integer }, optional: false, nullable: false
18
+
19
+ field :status, -> { Wavix::Types::SubOrganizationWithSecretStatus }, optional: false, nullable: false
20
+
21
+ field :default_destinations, -> { Wavix::Types::SubOrganizationWithSecretDefaultDestinations }, optional: false, nullable: false
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Wavix
4
+ module Types
5
+ # Default webhook URLs for inbound messages and delivery reports.
6
+ class SubOrganizationWithSecretDefaultDestinations < Internal::Types::Model
7
+ field :sms_endpoint, -> { String }, optional: false, nullable: false
8
+
9
+ field :dlr_endpoint, -> { String }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Wavix
4
+ module Types
5
+ module SubOrganizationWithSecretStatus
6
+ extend Wavix::Internal::Types::Enum
7
+
8
+ ENABLED = "enabled"
9
+ DISABLED = "disabled"
10
+ end
11
+ end
12
+ 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 = "2.0.0"
4
+ VERSION = "3.0.0"
5
5
  end
data/lib/wavix.rb CHANGED
@@ -74,6 +74,7 @@ require_relative "wavix/types/api_key_scope_permission_allow"
74
74
  require_relative "wavix/types/api_key_scope_permission"
75
75
  require_relative "wavix/types/api_key_calls_scope_permission_allow"
76
76
  require_relative "wavix/types/api_key_calls_scope_permission"
77
+ require_relative "wavix/types/api_key_base"
77
78
  require_relative "wavix/types/api_key"
78
79
  require_relative "wavix/types/unauthorized_error_response"
79
80
  require_relative "wavix/types/forbidden_error_response"
@@ -242,6 +243,9 @@ require_relative "wavix/types/sub_organization_response_status"
242
243
  require_relative "wavix/types/sub_organization_response_default_destinations"
243
244
  require_relative "wavix/types/sub_organization_response"
244
245
  require_relative "wavix/types/sub_accounts_list_response"
246
+ require_relative "wavix/types/sub_organization_with_secret_status"
247
+ require_relative "wavix/types/sub_organization_with_secret_default_destinations"
248
+ require_relative "wavix/types/sub_organization_with_secret"
245
249
  require_relative "wavix/types/sub_accounts_transactions_list_response_transactions_item"
246
250
  require_relative "wavix/types/sub_accounts_transactions_list_response"
247
251
  require_relative "wavix/types/whats_app_business_account_messaging_limit"
data/reference.md CHANGED
@@ -62,7 +62,7 @@ client.api_keys.list(label: "production")
62
62
  </dl>
63
63
  </details>
64
64
 
65
- <details><summary><code>client.api_keys.<a href="/lib/wavix/api_keys/client.rb">create</a>(request) -> Wavix::Types::APIKey</code></summary>
65
+ <details><summary><code>client.api_keys.<a href="/lib/wavix/api_keys/client.rb">create</a>(request) -> Wavix::Types::APIKeyWithSecret</code></summary>
66
66
  <dl>
67
67
  <dd>
68
68
 
@@ -74,7 +74,7 @@ client.api_keys.list(label: "production")
74
74
  <dl>
75
75
  <dd>
76
76
 
77
- Creates an API key for the authenticated account. Restrict access by listing permitted IP addresses in `permitted_ips`.
77
+ Creates an API key for the authenticated account. Restrict access by listing permitted IP addresses in `permitted_ips`. Store the returned `value` securely. Later reads return `redacted_value`, and `value` on reads is deprecated.
78
78
  </dd>
79
79
  </dl>
80
80
  </dd>
@@ -4625,7 +4625,7 @@ client.sub_accounts.list
4625
4625
  </dl>
4626
4626
  </details>
4627
4627
 
4628
- <details><summary><code>client.sub_accounts.<a href="/lib/wavix/sub_accounts/client.rb">create</a>(request) -> Wavix::Types::SubOrganizationResponse</code></summary>
4628
+ <details><summary><code>client.sub_accounts.<a href="/lib/wavix/sub_accounts/client.rb">create</a>(request) -> Wavix::Types::SubOrganizationWithSecret</code></summary>
4629
4629
  <dl>
4630
4630
  <dd>
4631
4631
 
@@ -4637,7 +4637,7 @@ client.sub_accounts.list
4637
4637
  <dl>
4638
4638
  <dd>
4639
4639
 
4640
- Creates a sub-account under the authenticated master account. Returns the sub-account with its generated `api_key`.
4640
+ Creates a sub-account under the authenticated master account. Returns the sub-account with its generated `api_key`. Store the returned `api_key` securely. Later reads return `redacted_api_key`, and `api_key` on reads is deprecated.
4641
4641
  </dd>
4642
4642
  </dl>
4643
4643
  </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: 2.0.0
4
+ version: 3.0.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-19 00:00:00.000000000 Z
11
+ date: 2026-11-23 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.
@@ -247,6 +247,7 @@ files:
247
247
  - lib/wavix/types/allowed_i_ps.rb
248
248
  - lib/wavix/types/allowed_i_ps_item.rb
249
249
  - lib/wavix/types/api_key.rb
250
+ - lib/wavix/types/api_key_base.rb
250
251
  - lib/wavix/types/api_key_calls_scope_permission.rb
251
252
  - lib/wavix/types/api_key_calls_scope_permission_allow.rb
252
253
  - lib/wavix/types/api_key_scope_permission.rb
@@ -368,6 +369,9 @@ files:
368
369
  - lib/wavix/types/sub_organization_response.rb
369
370
  - lib/wavix/types/sub_organization_response_default_destinations.rb
370
371
  - lib/wavix/types/sub_organization_response_status.rb
372
+ - lib/wavix/types/sub_organization_with_secret.rb
373
+ - lib/wavix/types/sub_organization_with_secret_default_destinations.rb
374
+ - lib/wavix/types/sub_organization_with_secret_status.rb
371
375
  - lib/wavix/types/submit_file_transcription_response.rb
372
376
  - lib/wavix/types/success_response.rb
373
377
  - lib/wavix/types/tcr_error_message.rb