telnyx 5.89.0 → 5.90.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: 880ba6753b019017a82fe4cb747e2f772bf86fd4012300f1fc963d94b404867f
4
- data.tar.gz: 47247ce35fef31fbaf3e27fac9802ea0d9e0a9a5860e534014601272e97763a1
3
+ metadata.gz: c7831db6252f7443f94b6b2b33387b62f3cd05bdd417fea3d01d10123e6243b5
4
+ data.tar.gz: c2731964c66d934121a13a9c026fcd9ffd49ba747a9c449c58116f27ccd37e9f
5
5
  SHA512:
6
- metadata.gz: 8450fe4745d0dda28b9326eed7f5b56883988305b8eb0c08320ec2b08d0a3e1dd061f426f185c9ae0a916f4838ebe5508aedd0e7f4286f72c01ebb51fb0ec16f
7
- data.tar.gz: 9a1e6be33c9100b2010372a27db2e1a614e0404e03f48979920a4c473fa5eae9965c3bf07708acd5b414980af8bc1541c18b9b7838743e66541bd0c1f4ed6a30
6
+ metadata.gz: da94381863d975125a701a4c15d2e7a40d0c782302c33f85e6694a69d3cd38a1cf247115dc66c646645c03609eee2cccedd16a02f3adb693487862b41ece3ac7
7
+ data.tar.gz: 3faf331ff5ff89c4f4b75b78c131aeee6b546916674d63364b7811e49e0611527d8ad532ec7af77407a3c144559f84885fbdd47ac7e4275439846127f496d1c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.90.0 (2026-04-28)
4
+
5
+ Full Changelog: [v5.89.0...v5.90.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.89.0...v5.90.0)
6
+
7
+ ### Features
8
+
9
+ * ENGDESK-51445: added profile ID fields to Whatsapp messages ([d29a4f1](https://github.com/team-telnyx/telnyx-ruby/commit/d29a4f1063b8c4db96c46a1215a7f3cb5d4e1aab))
10
+
3
11
  ## 5.89.0 (2026-04-28)
4
12
 
5
13
  Full Changelog: [v5.88.0...v5.89.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.88.0...v5.89.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.89.0"
27
+ gem "telnyx", "~> 5.90.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -24,6 +24,12 @@ module Telnyx
24
24
  # @return [Telnyx::Models::WhatsappMessageContent]
25
25
  required :whatsapp_message, -> { Telnyx::WhatsappMessageContent }
26
26
 
27
+ # @!attribute messaging_profile_id
28
+ # Messaging profile ID - required if the 'from' number is not SMS-enabled
29
+ #
30
+ # @return [String, nil]
31
+ optional :messaging_profile_id, String
32
+
27
33
  # @!attribute type
28
34
  # Message type - must be set to "WHATSAPP"
29
35
  #
@@ -36,13 +42,15 @@ module Telnyx
36
42
  # @return [String, nil]
37
43
  optional :webhook_url, String
38
44
 
39
- # @!method initialize(from:, to:, whatsapp_message:, type: nil, webhook_url: nil, request_options: {})
45
+ # @!method initialize(from:, to:, whatsapp_message:, messaging_profile_id: nil, type: nil, webhook_url: nil, request_options: {})
40
46
  # @param from [String] Phone number in +E.164 format associated with Whatsapp account
41
47
  #
42
48
  # @param to [String] Phone number in +E.164 format
43
49
  #
44
50
  # @param whatsapp_message [Telnyx::Models::WhatsappMessageContent]
45
51
  #
52
+ # @param messaging_profile_id [String] Messaging profile ID - required if the 'from' number is not SMS-enabled
53
+ #
46
54
  # @param type [Symbol, Telnyx::Models::MessageSendWhatsappParams::Type] Message type - must be set to "WHATSAPP"
47
55
  #
48
56
  # @param webhook_url [String] The URL where webhooks related to this message will be sent.
@@ -44,20 +44,36 @@ module Telnyx
44
44
  # @return [String, nil]
45
45
  optional :email, String
46
46
 
47
+ # @!attribute profile_id
48
+ # Messaging profile ID for inbound messages
49
+ #
50
+ # @return [String, nil]
51
+ optional :profile_id, String
52
+
47
53
  # @!attribute website
48
54
  #
49
55
  # @return [String, nil]
50
56
  optional :website, String
51
57
 
52
- # @!method initialize(phone_number:, about: nil, address: nil, category: nil, description: nil, display_name: nil, email: nil, website: nil, request_options: {})
58
+ # @!method initialize(phone_number:, about: nil, address: nil, category: nil, description: nil, display_name: nil, email: nil, profile_id: nil, website: nil, request_options: {})
53
59
  # @param phone_number [String]
60
+ #
54
61
  # @param about [String]
62
+ #
55
63
  # @param address [String]
64
+ #
56
65
  # @param category [String]
66
+ #
57
67
  # @param description [String]
68
+ #
58
69
  # @param display_name [String]
70
+ #
59
71
  # @param email [String]
72
+ #
73
+ # @param profile_id [String] Messaging profile ID for inbound messages
74
+ #
60
75
  # @param website [String]
76
+ #
61
77
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
62
78
  end
63
79
  end
@@ -51,6 +51,11 @@ module Telnyx
51
51
  # @return [String, nil]
52
52
  optional :phone_number_id, String
53
53
 
54
+ # @!attribute profile_id
55
+ #
56
+ # @return [String, nil]
57
+ optional :profile_id, String
58
+
54
59
  # @!attribute profile_photo_url
55
60
  #
56
61
  # @return [String, nil]
@@ -71,7 +76,7 @@ module Telnyx
71
76
  # @return [String, nil]
72
77
  optional :website, String
73
78
 
74
- # @!method initialize(id: nil, about: nil, address: nil, category: nil, created_at: nil, description: nil, display_name: nil, email: nil, phone_number_id: nil, profile_photo_url: nil, record_type: nil, updated_at: nil, website: nil)
79
+ # @!method initialize(id: nil, about: nil, address: nil, category: nil, created_at: nil, description: nil, display_name: nil, email: nil, phone_number_id: nil, profile_id: nil, profile_photo_url: nil, record_type: nil, updated_at: nil, website: nil)
75
80
  # @param id [String]
76
81
  #
77
82
  # @param about [String]
@@ -90,6 +95,8 @@ module Telnyx
90
95
  #
91
96
  # @param phone_number_id [String] Whatsapp phone number ID
92
97
  #
98
+ # @param profile_id [String]
99
+ #
93
100
  # @param profile_photo_url [String]
94
101
  #
95
102
  # @param record_type [String]
@@ -353,7 +353,7 @@ module Telnyx
353
353
 
354
354
  # Send a Whatsapp message
355
355
  #
356
- # @overload send_whatsapp(from:, to:, whatsapp_message:, type: nil, webhook_url: nil, request_options: {})
356
+ # @overload send_whatsapp(from:, to:, whatsapp_message:, messaging_profile_id: nil, type: nil, webhook_url: nil, request_options: {})
357
357
  #
358
358
  # @param from [String] Phone number in +E.164 format associated with Whatsapp account
359
359
  #
@@ -361,6 +361,8 @@ module Telnyx
361
361
  #
362
362
  # @param whatsapp_message [Telnyx::Models::WhatsappMessageContent]
363
363
  #
364
+ # @param messaging_profile_id [String] Messaging profile ID - required if the 'from' number is not SMS-enabled
365
+ #
364
366
  # @param type [Symbol, Telnyx::Models::MessageSendWhatsappParams::Type] Message type - must be set to "WHATSAPP"
365
367
  #
366
368
  # @param webhook_url [String] The URL where webhooks related to this message will be sent.
@@ -32,7 +32,7 @@ module Telnyx
32
32
 
33
33
  # Update phone number business profile
34
34
  #
35
- # @overload update(phone_number, about: nil, address: nil, category: nil, description: nil, display_name: nil, email: nil, website: nil, request_options: {})
35
+ # @overload update(phone_number, about: nil, address: nil, category: nil, description: nil, display_name: nil, email: nil, profile_id: nil, website: nil, request_options: {})
36
36
  #
37
37
  # @param phone_number [String] Phone number (E.164 format)
38
38
  #
@@ -48,6 +48,8 @@ module Telnyx
48
48
  #
49
49
  # @param email [String]
50
50
  #
51
+ # @param profile_id [String] Messaging profile ID for inbound messages
52
+ #
51
53
  # @param website [String]
52
54
  #
53
55
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.89.0"
4
+ VERSION = "5.90.0"
5
5
  end
@@ -27,6 +27,13 @@ module Telnyx
27
27
  end
28
28
  attr_writer :whatsapp_message
29
29
 
30
+ # Messaging profile ID - required if the 'from' number is not SMS-enabled
31
+ sig { returns(T.nilable(String)) }
32
+ attr_reader :messaging_profile_id
33
+
34
+ sig { params(messaging_profile_id: String).void }
35
+ attr_writer :messaging_profile_id
36
+
30
37
  # Message type - must be set to "WHATSAPP"
31
38
  sig do
32
39
  returns(T.nilable(Telnyx::MessageSendWhatsappParams::Type::OrSymbol))
@@ -50,6 +57,7 @@ module Telnyx
50
57
  from: String,
51
58
  to: String,
52
59
  whatsapp_message: Telnyx::WhatsappMessageContent::OrHash,
60
+ messaging_profile_id: String,
53
61
  type: Telnyx::MessageSendWhatsappParams::Type::OrSymbol,
54
62
  webhook_url: String,
55
63
  request_options: Telnyx::RequestOptions::OrHash
@@ -61,6 +69,8 @@ module Telnyx
61
69
  # Phone number in +E.164 format
62
70
  to:,
63
71
  whatsapp_message:,
72
+ # Messaging profile ID - required if the 'from' number is not SMS-enabled
73
+ messaging_profile_id: nil,
64
74
  # Message type - must be set to "WHATSAPP"
65
75
  type: nil,
66
76
  # The URL where webhooks related to this message will be sent.
@@ -75,6 +85,7 @@ module Telnyx
75
85
  from: String,
76
86
  to: String,
77
87
  whatsapp_message: Telnyx::WhatsappMessageContent,
88
+ messaging_profile_id: String,
78
89
  type: Telnyx::MessageSendWhatsappParams::Type::OrSymbol,
79
90
  webhook_url: String,
80
91
  request_options: Telnyx::RequestOptions
@@ -55,6 +55,13 @@ module Telnyx
55
55
  sig { params(email: String).void }
56
56
  attr_writer :email
57
57
 
58
+ # Messaging profile ID for inbound messages
59
+ sig { returns(T.nilable(String)) }
60
+ attr_reader :profile_id
61
+
62
+ sig { params(profile_id: String).void }
63
+ attr_writer :profile_id
64
+
58
65
  sig { returns(T.nilable(String)) }
59
66
  attr_reader :website
60
67
 
@@ -70,6 +77,7 @@ module Telnyx
70
77
  description: String,
71
78
  display_name: String,
72
79
  email: String,
80
+ profile_id: String,
73
81
  website: String,
74
82
  request_options: Telnyx::RequestOptions::OrHash
75
83
  ).returns(T.attached_class)
@@ -82,6 +90,8 @@ module Telnyx
82
90
  description: nil,
83
91
  display_name: nil,
84
92
  email: nil,
93
+ # Messaging profile ID for inbound messages
94
+ profile_id: nil,
85
95
  website: nil,
86
96
  request_options: {}
87
97
  )
@@ -97,6 +107,7 @@ module Telnyx
97
107
  description: String,
98
108
  display_name: String,
99
109
  email: String,
110
+ profile_id: String,
100
111
  website: String,
101
112
  request_options: Telnyx::RequestOptions
102
113
  }
@@ -68,6 +68,12 @@ module Telnyx
68
68
  sig { params(phone_number_id: String).void }
69
69
  attr_writer :phone_number_id
70
70
 
71
+ sig { returns(T.nilable(String)) }
72
+ attr_reader :profile_id
73
+
74
+ sig { params(profile_id: String).void }
75
+ attr_writer :profile_id
76
+
71
77
  sig { returns(T.nilable(String)) }
72
78
  attr_reader :profile_photo_url
73
79
 
@@ -103,6 +109,7 @@ module Telnyx
103
109
  display_name: String,
104
110
  email: String,
105
111
  phone_number_id: String,
112
+ profile_id: String,
106
113
  profile_photo_url: String,
107
114
  record_type: String,
108
115
  updated_at: Time,
@@ -120,6 +127,7 @@ module Telnyx
120
127
  email: nil,
121
128
  # Whatsapp phone number ID
122
129
  phone_number_id: nil,
130
+ profile_id: nil,
123
131
  profile_photo_url: nil,
124
132
  record_type: nil,
125
133
  updated_at: nil,
@@ -139,6 +147,7 @@ module Telnyx
139
147
  display_name: String,
140
148
  email: String,
141
149
  phone_number_id: String,
150
+ profile_id: String,
142
151
  profile_photo_url: String,
143
152
  record_type: String,
144
153
  updated_at: Time,
@@ -406,6 +406,7 @@ module Telnyx
406
406
  from: String,
407
407
  to: String,
408
408
  whatsapp_message: Telnyx::WhatsappMessageContent::OrHash,
409
+ messaging_profile_id: String,
409
410
  type: Telnyx::MessageSendWhatsappParams::Type::OrSymbol,
410
411
  webhook_url: String,
411
412
  request_options: Telnyx::RequestOptions::OrHash
@@ -417,6 +418,8 @@ module Telnyx
417
418
  # Phone number in +E.164 format
418
419
  to:,
419
420
  whatsapp_message:,
421
+ # Messaging profile ID - required if the 'from' number is not SMS-enabled
422
+ messaging_profile_id: nil,
420
423
  # Message type - must be set to "WHATSAPP"
421
424
  type: nil,
422
425
  # The URL where webhooks related to this message will be sent.
@@ -38,6 +38,7 @@ module Telnyx
38
38
  description: String,
39
39
  display_name: String,
40
40
  email: String,
41
+ profile_id: String,
41
42
  website: String,
42
43
  request_options: Telnyx::RequestOptions::OrHash
43
44
  ).returns(
@@ -53,6 +54,8 @@ module Telnyx
53
54
  description: nil,
54
55
  display_name: nil,
55
56
  email: nil,
57
+ # Messaging profile ID for inbound messages
58
+ profile_id: nil,
56
59
  website: nil,
57
60
  request_options: {}
58
61
  )
@@ -5,6 +5,7 @@ module Telnyx
5
5
  from: String,
6
6
  to: String,
7
7
  whatsapp_message: Telnyx::WhatsappMessageContent,
8
+ messaging_profile_id: String,
8
9
  type: Telnyx::Models::MessageSendWhatsappParams::type_,
9
10
  webhook_url: String
10
11
  }
@@ -20,6 +21,10 @@ module Telnyx
20
21
 
21
22
  attr_accessor whatsapp_message: Telnyx::WhatsappMessageContent
22
23
 
24
+ attr_reader messaging_profile_id: String?
25
+
26
+ def messaging_profile_id=: (String) -> String
27
+
23
28
  attr_reader type: Telnyx::Models::MessageSendWhatsappParams::type_?
24
29
 
25
30
  def type=: (
@@ -34,6 +39,7 @@ module Telnyx
34
39
  from: String,
35
40
  to: String,
36
41
  whatsapp_message: Telnyx::WhatsappMessageContent,
42
+ ?messaging_profile_id: String,
37
43
  ?type: Telnyx::Models::MessageSendWhatsappParams::type_,
38
44
  ?webhook_url: String,
39
45
  ?request_options: Telnyx::request_opts
@@ -43,6 +49,7 @@ module Telnyx
43
49
  from: String,
44
50
  to: String,
45
51
  whatsapp_message: Telnyx::WhatsappMessageContent,
52
+ messaging_profile_id: String,
46
53
  type: Telnyx::Models::MessageSendWhatsappParams::type_,
47
54
  webhook_url: String,
48
55
  request_options: Telnyx::RequestOptions
@@ -11,6 +11,7 @@ module Telnyx
11
11
  description: String,
12
12
  display_name: String,
13
13
  email: String,
14
+ profile_id: String,
14
15
  website: String
15
16
  }
16
17
  & Telnyx::Internal::Type::request_parameters
@@ -45,6 +46,10 @@ module Telnyx
45
46
 
46
47
  def email=: (String) -> String
47
48
 
49
+ attr_reader profile_id: String?
50
+
51
+ def profile_id=: (String) -> String
52
+
48
53
  attr_reader website: String?
49
54
 
50
55
  def website=: (String) -> String
@@ -57,6 +62,7 @@ module Telnyx
57
62
  ?description: String,
58
63
  ?display_name: String,
59
64
  ?email: String,
65
+ ?profile_id: String,
60
66
  ?website: String,
61
67
  ?request_options: Telnyx::request_opts
62
68
  ) -> void
@@ -69,6 +75,7 @@ module Telnyx
69
75
  description: String,
70
76
  display_name: String,
71
77
  email: String,
78
+ profile_id: String,
72
79
  website: String,
73
80
  request_options: Telnyx::RequestOptions
74
81
  }
@@ -13,6 +13,7 @@ module Telnyx
13
13
  display_name: String,
14
14
  email: String,
15
15
  phone_number_id: String,
16
+ profile_id: String,
16
17
  profile_photo_url: String,
17
18
  record_type: String,
18
19
  updated_at: Time,
@@ -56,6 +57,10 @@ module Telnyx
56
57
 
57
58
  def phone_number_id=: (String) -> String
58
59
 
60
+ attr_reader profile_id: String?
61
+
62
+ def profile_id=: (String) -> String
63
+
59
64
  attr_reader profile_photo_url: String?
60
65
 
61
66
  def profile_photo_url=: (String) -> String
@@ -82,6 +87,7 @@ module Telnyx
82
87
  ?display_name: String,
83
88
  ?email: String,
84
89
  ?phone_number_id: String,
90
+ ?profile_id: String,
85
91
  ?profile_photo_url: String,
86
92
  ?record_type: String,
87
93
  ?updated_at: Time,
@@ -98,6 +104,7 @@ module Telnyx
98
104
  display_name: String,
99
105
  email: String,
100
106
  phone_number_id: String,
107
+ profile_id: String,
101
108
  profile_photo_url: String,
102
109
  record_type: String,
103
110
  updated_at: Time,
@@ -112,6 +112,7 @@ module Telnyx
112
112
  from: String,
113
113
  to: String,
114
114
  whatsapp_message: Telnyx::WhatsappMessageContent,
115
+ ?messaging_profile_id: String,
115
116
  ?type: Telnyx::Models::MessageSendWhatsappParams::type_,
116
117
  ?webhook_url: String,
117
118
  ?request_options: Telnyx::request_opts
@@ -18,6 +18,7 @@ module Telnyx
18
18
  ?description: String,
19
19
  ?display_name: String,
20
20
  ?email: String,
21
+ ?profile_id: String,
21
22
  ?website: String,
22
23
  ?request_options: Telnyx::request_opts
23
24
  ) -> Telnyx::Models::Whatsapp::PhoneNumbers::ProfileUpdateResponse
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telnyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.89.0
4
+ version: 5.90.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx