wavix-ruby-sdk 1.6.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 +4 -4
- data/.fern/metadata.json +3 -3
- data/.fern/replay.lock +13 -1
- data/lib/wavix/api_keys/client.rb +3 -2
- data/lib/wavix/client.rb +1 -1
- data/lib/wavix/sub_accounts/client.rb +4 -3
- data/lib/wavix/types/api_key.rb +6 -3
- data/lib/wavix/types/api_key_base.rb +50 -0
- data/lib/wavix/types/api_key_with_secret.rb +48 -16
- data/lib/wavix/types/number_document.rb +0 -2
- data/lib/wavix/types/sub_organization_response.rb +2 -0
- data/lib/wavix/types/sub_organization_with_secret.rb +24 -0
- data/lib/wavix/types/sub_organization_with_secret_default_destinations.rb +12 -0
- data/lib/wavix/types/sub_organization_with_secret_status.rb +12 -0
- data/lib/wavix/types/whats_app_message_error.rb +8 -4
- data/lib/wavix/types/whats_app_message_error_action.rb +14 -0
- data/lib/wavix/types/whats_app_message_error_code.rb +13 -13
- data/lib/wavix/types/whats_app_message_list_item.rb +2 -0
- data/lib/wavix/version.rb +1 -1
- data/lib/wavix.rb +7 -2
- data/reference.md +4 -4
- metadata +7 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42b4fcf6e81cf511554219ced5c48a496f1de9aed95316967e26b5bc4a267c15
|
|
4
|
+
data.tar.gz: 9469783fa9485e9dab99a6e386be2ca3b2e82b7a6d901ac9be156ee4f52df75e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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": "
|
|
5
|
+
"originGitCommit": "e96ad6856a556b13d0049680adc042880f7f95a2",
|
|
6
6
|
"originGitCommitIsDirty": false,
|
|
7
7
|
"invokedBy": "ci",
|
|
8
|
-
"requestedVersion": "
|
|
8
|
+
"requestedVersion": "3.0.0",
|
|
9
9
|
"ciProvider": "github",
|
|
10
|
-
"sdkVersion": "
|
|
10
|
+
"sdkVersion": "3.0.0"
|
|
11
11
|
}
|
data/.fern/replay.lock
CHANGED
|
@@ -30,5 +30,17 @@ generations:
|
|
|
30
30
|
cli_version: unknown
|
|
31
31
|
generator_versions:
|
|
32
32
|
fernapi/fern-ruby-sdk: 1.13.1
|
|
33
|
-
|
|
33
|
+
- commit_sha: 96b5ddb0276ffaae2b3b915498acfccc31bfa54e
|
|
34
|
+
tree_hash: d8cbc95e1a9f1cb0fdd27d7b77e9b0651cbbce2b
|
|
35
|
+
timestamp: 2026-11-19T07:18:52.734Z
|
|
36
|
+
cli_version: unknown
|
|
37
|
+
generator_versions:
|
|
38
|
+
fernapi/fern-ruby-sdk: 1.13.1
|
|
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
|
|
34
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::
|
|
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/
|
|
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::
|
|
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::
|
|
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)
|
data/lib/wavix/types/api_key.rb
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
@@ -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
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
module Wavix
|
|
4
4
|
module Types
|
|
5
|
-
# Why a message you sent wasn't delivered. Returned in `whatsapp.message.failed` events and
|
|
6
|
-
#
|
|
7
|
-
#
|
|
5
|
+
# Why a message you sent wasn't delivered. Returned in `whatsapp.message.failed` events and when you retrieve or
|
|
6
|
+
# list WhatsApp messages. Wavix retries temporary failures itself, so you get an error only after Wavix stops
|
|
7
|
+
# retrying.
|
|
8
8
|
class WhatsAppMessageError < Internal::Types::Model
|
|
9
9
|
field :code, -> { Wavix::Types::WhatsAppMessageErrorCode }, optional: false, nullable: false
|
|
10
10
|
|
|
11
|
-
field :
|
|
11
|
+
field :subcode, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :action, -> { Wavix::Types::WhatsAppMessageErrorAction }, optional: false, nullable: false
|
|
12
16
|
|
|
13
17
|
field :docs_url, -> { String }, optional: false, nullable: false
|
|
14
18
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Wavix
|
|
4
|
+
module Types
|
|
5
|
+
module WhatsAppMessageErrorAction
|
|
6
|
+
extend Wavix::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
RESEND_LATER = "resend_later"
|
|
9
|
+
FIX_AND_RESEND = "fix_and_resend"
|
|
10
|
+
DO_NOT_RESEND = "do_not_resend"
|
|
11
|
+
CONTACT_SUPPORT = "contact_support"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -5,19 +5,19 @@ module Wavix
|
|
|
5
5
|
module WhatsAppMessageErrorCode
|
|
6
6
|
extend Wavix::Internal::Types::Enum
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
RECIPIENT_NOT_ON_WHATSAPP = "RECIPIENT_NOT_ON_WHATSAPP"
|
|
9
|
+
RECIPIENT_OPTED_OUT = "RECIPIENT_OPTED_OUT"
|
|
10
|
+
SERVICE_WINDOW_CLOSED = "SERVICE_WINDOW_CLOSED"
|
|
11
|
+
TEMPLATE_NOT_APPROVED = "TEMPLATE_NOT_APPROVED"
|
|
12
|
+
TEMPLATE_PAUSED_OR_DISABLED = "TEMPLATE_PAUSED_OR_DISABLED"
|
|
13
|
+
INVALID_TEMPLATE_PARAMETERS = "INVALID_TEMPLATE_PARAMETERS"
|
|
14
|
+
MARKETING_LIMIT_REACHED = "MARKETING_LIMIT_REACHED"
|
|
15
|
+
SENDER_LIMIT_REACHED = "SENDER_LIMIT_REACHED"
|
|
16
|
+
SENDER_RATE_LIMITED = "SENDER_RATE_LIMITED"
|
|
17
|
+
SENDER_UNAVAILABLE = "SENDER_UNAVAILABLE"
|
|
18
|
+
SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE"
|
|
19
|
+
MESSAGE_EXPIRED = "MESSAGE_EXPIRED"
|
|
20
|
+
DELIVERY_FAILED = "DELIVERY_FAILED"
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
end
|
|
@@ -22,6 +22,8 @@ module Wavix
|
|
|
22
22
|
field :content, -> { Wavix::Types::WhatsAppInboundMessageContent }, optional: true, nullable: false
|
|
23
23
|
|
|
24
24
|
field :service_window_open_until, -> { String }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :error, -> { Wavix::Types::WhatsAppMessageError }, optional: true, nullable: false
|
|
25
27
|
end
|
|
26
28
|
end
|
|
27
29
|
end
|
data/lib/wavix/version.rb
CHANGED
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"
|
|
@@ -285,6 +289,9 @@ require_relative "wavix/types/whats_app_template_create_request"
|
|
|
285
289
|
require_relative "wavix/types/whats_app_template_response"
|
|
286
290
|
require_relative "wavix/types/whats_app_inbound_message_content_type"
|
|
287
291
|
require_relative "wavix/types/whats_app_inbound_message_content"
|
|
292
|
+
require_relative "wavix/types/whats_app_message_error_code"
|
|
293
|
+
require_relative "wavix/types/whats_app_message_error_action"
|
|
294
|
+
require_relative "wavix/types/whats_app_message_error"
|
|
288
295
|
require_relative "wavix/types/whats_app_message_list_item_direction"
|
|
289
296
|
require_relative "wavix/types/whats_app_message_list_item_status"
|
|
290
297
|
require_relative "wavix/types/whats_app_message_list_item"
|
|
@@ -367,8 +374,6 @@ require_relative "wavix/types/whats_app_message_status_event_data"
|
|
|
367
374
|
require_relative "wavix/types/whats_app_message_sent_event"
|
|
368
375
|
require_relative "wavix/types/whats_app_message_delivered_event"
|
|
369
376
|
require_relative "wavix/types/whats_app_message_read_event"
|
|
370
|
-
require_relative "wavix/types/whats_app_message_error_code"
|
|
371
|
-
require_relative "wavix/types/whats_app_message_error"
|
|
372
377
|
require_relative "wavix/types/whats_app_message_failed_event_data_status"
|
|
373
378
|
require_relative "wavix/types/whats_app_message_failed_event_data"
|
|
374
379
|
require_relative "wavix/types/whats_app_message_failed_event"
|
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::
|
|
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::
|
|
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:
|
|
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-
|
|
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
|
|
@@ -472,6 +476,7 @@ files:
|
|
|
472
476
|
- lib/wavix/types/whats_app_message.rb
|
|
473
477
|
- lib/wavix/types/whats_app_message_delivered_event.rb
|
|
474
478
|
- lib/wavix/types/whats_app_message_error.rb
|
|
479
|
+
- lib/wavix/types/whats_app_message_error_action.rb
|
|
475
480
|
- lib/wavix/types/whats_app_message_error_code.rb
|
|
476
481
|
- lib/wavix/types/whats_app_message_failed_event.rb
|
|
477
482
|
- lib/wavix/types/whats_app_message_failed_event_data.rb
|