telnyx 5.70.0 → 5.72.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.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/lib/webhook_verification.rb +14 -1
  5. data/lib/telnyx/lib/webhooks_ed25519.rb +51 -38
  6. data/lib/telnyx/lib.rb +14 -0
  7. data/lib/telnyx/models/ai/assistant.rb +6 -149
  8. data/lib/telnyx/models/book_appointment_tool.rb +31 -0
  9. data/lib/telnyx/models/book_appointment_tool_params.rb +51 -0
  10. data/lib/telnyx/models/call_assistant_request.rb +176 -0
  11. data/lib/telnyx/models/call_control_bucket_ids.rb +23 -0
  12. data/lib/telnyx/models/call_control_retrieval_tool.rb +31 -0
  13. data/lib/telnyx/models/call_dial_params.rb +11 -1
  14. data/lib/telnyx/models/calls/action_answer_params.rb +11 -1
  15. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +6 -39
  16. data/lib/telnyx/models/check_availability_tool.rb +31 -0
  17. data/lib/telnyx/models/check_availability_tool_params.rb +31 -0
  18. data/lib/telnyx/models/pronunciation_dict_alias_item.rb +51 -0
  19. data/lib/telnyx/models/pronunciation_dict_create_params.rb +5 -93
  20. data/lib/telnyx/models/pronunciation_dict_create_response.rb +3 -191
  21. data/lib/telnyx/models/pronunciation_dict_data.rb +101 -0
  22. data/lib/telnyx/models/pronunciation_dict_phoneme_item.rb +71 -0
  23. data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +3 -191
  24. data/lib/telnyx/models/pronunciation_dict_update_params.rb +5 -93
  25. data/lib/telnyx/models/pronunciation_dict_update_response.rb +3 -191
  26. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +203 -191
  27. data/lib/telnyx/models/voice_clone_create_from_design_params.rb +3 -3
  28. data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +61 -54
  29. data/lib/telnyx/models/voice_clone_create_params.rb +28 -28
  30. data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rb +26 -0
  31. data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rb +54 -0
  32. data/lib/telnyx/models.rb +20 -0
  33. data/lib/telnyx/resources/calls/actions.rb +4 -2
  34. data/lib/telnyx/resources/calls.rb +3 -1
  35. data/lib/telnyx/resources/pronunciation_dicts.rb +4 -4
  36. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -3
  37. data/lib/telnyx/resources/voice_clones.rb +6 -6
  38. data/lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb +20 -0
  39. data/lib/telnyx/version.rb +1 -1
  40. data/lib/telnyx.rb +16 -1
  41. data/rbi/telnyx/models/ai/assistant.rbi +15 -329
  42. data/rbi/telnyx/models/book_appointment_tool.rbi +65 -0
  43. data/rbi/telnyx/models/book_appointment_tool_params.rbi +83 -0
  44. data/rbi/telnyx/models/call_assistant_request.rbi +322 -0
  45. data/rbi/telnyx/models/call_control_bucket_ids.rbi +42 -0
  46. data/rbi/telnyx/models/call_control_retrieval_tool.rbi +63 -0
  47. data/rbi/telnyx/models/call_dial_params.rbi +15 -0
  48. data/rbi/telnyx/models/calls/action_answer_params.rbi +15 -0
  49. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +10 -77
  50. data/rbi/telnyx/models/check_availability_tool.rbi +67 -0
  51. data/rbi/telnyx/models/check_availability_tool_params.rbi +45 -0
  52. data/rbi/telnyx/models/pronunciation_dict_alias_item.rbi +79 -0
  53. data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +8 -154
  54. data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +6 -366
  55. data/rbi/telnyx/models/pronunciation_dict_data.rbi +186 -0
  56. data/rbi/telnyx/models/pronunciation_dict_phoneme_item.rbi +117 -0
  57. data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +6 -366
  58. data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +10 -156
  59. data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +6 -366
  60. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +391 -403
  61. data/rbi/telnyx/models/voice_clone_create_from_design_params.rbi +10 -10
  62. data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +94 -92
  63. data/rbi/telnyx/models/voice_clone_create_params.rbi +53 -53
  64. data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbi +47 -0
  65. data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbi +118 -0
  66. data/rbi/telnyx/models.rbi +20 -0
  67. data/rbi/telnyx/resources/calls/actions.rbi +9 -3
  68. data/rbi/telnyx/resources/calls.rbi +5 -0
  69. data/rbi/telnyx/resources/pronunciation_dicts.rbi +5 -7
  70. data/rbi/telnyx/resources/texml/accounts/calls.rbi +5 -5
  71. data/rbi/telnyx/resources/voice_clones.rbi +9 -9
  72. data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbi +16 -0
  73. data/sig/telnyx/models/ai/assistant.rbs +3 -142
  74. data/sig/telnyx/models/book_appointment_tool.rbs +35 -0
  75. data/sig/telnyx/models/book_appointment_tool_params.rbs +39 -0
  76. data/sig/telnyx/models/call_assistant_request.rbs +132 -0
  77. data/sig/telnyx/models/call_control_bucket_ids.rbs +21 -0
  78. data/sig/telnyx/models/call_control_retrieval_tool.rbs +35 -0
  79. data/sig/telnyx/models/call_dial_params.rbs +9 -0
  80. data/sig/telnyx/models/calls/action_answer_params.rbs +9 -0
  81. data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +6 -35
  82. data/sig/telnyx/models/check_availability_tool.rbs +35 -0
  83. data/sig/telnyx/models/check_availability_tool_params.rbs +16 -0
  84. data/sig/telnyx/models/pronunciation_dict_alias_item.rbs +40 -0
  85. data/sig/telnyx/models/pronunciation_dict_create_params.rbs +2 -58
  86. data/sig/telnyx/models/pronunciation_dict_create_response.rbs +6 -155
  87. data/sig/telnyx/models/pronunciation_dict_data.rbs +88 -0
  88. data/sig/telnyx/models/pronunciation_dict_phoneme_item.rbs +55 -0
  89. data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +6 -155
  90. data/sig/telnyx/models/pronunciation_dict_update_params.rbs +2 -58
  91. data/sig/telnyx/models/pronunciation_dict_update_response.rbs +6 -155
  92. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +317 -325
  93. data/sig/telnyx/models/voice_clone_create_from_design_params.rbs +7 -7
  94. data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +63 -61
  95. data/sig/telnyx/models/voice_clone_create_params.rbs +35 -35
  96. data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbs +30 -0
  97. data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbs +63 -0
  98. data/sig/telnyx/models.rbs +20 -0
  99. data/sig/telnyx/resources/calls/actions.rbs +2 -1
  100. data/sig/telnyx/resources/calls.rbs +1 -0
  101. data/sig/telnyx/resources/pronunciation_dicts.rbs +1 -1
  102. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -1
  103. data/sig/telnyx/resources/voice_clones.rbs +2 -2
  104. data/sig/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbs +5 -0
  105. metadata +39 -5
  106. data/lib/telnyx/models/pronunciation_dict_list_response.rb +0 -190
  107. data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +0 -353
  108. data/sig/telnyx/models/pronunciation_dict_list_response.rbs +0 -144
@@ -1,167 +1,18 @@
1
1
  module Telnyx
2
2
  module Models
3
3
  type pronunciation_dict_update_response =
4
- { data: Telnyx::Models::PronunciationDictUpdateResponse::Data }
4
+ { data: Telnyx::PronunciationDictData }
5
5
 
6
6
  class PronunciationDictUpdateResponse < Telnyx::Internal::Type::BaseModel
7
- attr_reader data: Telnyx::Models::PronunciationDictUpdateResponse::Data?
7
+ attr_reader data: Telnyx::PronunciationDictData?
8
8
 
9
9
  def data=: (
10
- Telnyx::Models::PronunciationDictUpdateResponse::Data
11
- ) -> Telnyx::Models::PronunciationDictUpdateResponse::Data
10
+ Telnyx::PronunciationDictData
11
+ ) -> Telnyx::PronunciationDictData
12
12
 
13
- def initialize: (
14
- ?data: Telnyx::Models::PronunciationDictUpdateResponse::Data
15
- ) -> void
13
+ def initialize: (?data: Telnyx::PronunciationDictData) -> void
16
14
 
17
- def to_hash: -> {
18
- data: Telnyx::Models::PronunciationDictUpdateResponse::Data
19
- }
20
-
21
- type data =
22
- {
23
- id: String,
24
- created_at: Time,
25
- items: ::Array[Telnyx::Models::PronunciationDictUpdateResponse::Data::item],
26
- name: String,
27
- record_type: Telnyx::Models::PronunciationDictUpdateResponse::Data::record_type,
28
- updated_at: Time,
29
- version: Integer
30
- }
31
-
32
- class Data < Telnyx::Internal::Type::BaseModel
33
- attr_reader id: String?
34
-
35
- def id=: (String) -> String
36
-
37
- attr_reader created_at: Time?
38
-
39
- def created_at=: (Time) -> Time
40
-
41
- attr_reader items: ::Array[Telnyx::Models::PronunciationDictUpdateResponse::Data::item]?
42
-
43
- def items=: (
44
- ::Array[Telnyx::Models::PronunciationDictUpdateResponse::Data::item]
45
- ) -> ::Array[Telnyx::Models::PronunciationDictUpdateResponse::Data::item]
46
-
47
- attr_reader name: String?
48
-
49
- def name=: (String) -> String
50
-
51
- attr_reader record_type: Telnyx::Models::PronunciationDictUpdateResponse::Data::record_type?
52
-
53
- def record_type=: (
54
- Telnyx::Models::PronunciationDictUpdateResponse::Data::record_type
55
- ) -> Telnyx::Models::PronunciationDictUpdateResponse::Data::record_type
56
-
57
- attr_reader updated_at: Time?
58
-
59
- def updated_at=: (Time) -> Time
60
-
61
- attr_reader version: Integer?
62
-
63
- def version=: (Integer) -> Integer
64
-
65
- def initialize: (
66
- ?id: String,
67
- ?created_at: Time,
68
- ?items: ::Array[Telnyx::Models::PronunciationDictUpdateResponse::Data::item],
69
- ?name: String,
70
- ?record_type: Telnyx::Models::PronunciationDictUpdateResponse::Data::record_type,
71
- ?updated_at: Time,
72
- ?version: Integer
73
- ) -> void
74
-
75
- def to_hash: -> {
76
- id: String,
77
- created_at: Time,
78
- items: ::Array[Telnyx::Models::PronunciationDictUpdateResponse::Data::item],
79
- name: String,
80
- record_type: Telnyx::Models::PronunciationDictUpdateResponse::Data::record_type,
81
- updated_at: Time,
82
- version: Integer
83
- }
84
-
85
- type item =
86
- Telnyx::Models::PronunciationDictUpdateResponse::Data::Item::Alias
87
- | Telnyx::Models::PronunciationDictUpdateResponse::Data::Item::Phoneme
88
-
89
- module Item
90
- extend Telnyx::Internal::Type::Union
91
-
92
- type alias_ = { alias_: String, text: String, type: :alias }
93
-
94
- class Alias < Telnyx::Internal::Type::BaseModel
95
- attr_accessor alias_: String
96
-
97
- attr_accessor text: String
98
-
99
- attr_accessor type: :alias
100
-
101
- def initialize: (
102
- alias_: String,
103
- text: String,
104
- ?type: :alias
105
- ) -> void
106
-
107
- def to_hash: -> { alias_: String, text: String, type: :alias }
108
- end
109
-
110
- type phoneme =
111
- {
112
- alphabet: Telnyx::Models::PronunciationDictUpdateResponse::Data::Item::Phoneme::alphabet,
113
- phoneme: String,
114
- text: String,
115
- type: :phoneme
116
- }
117
-
118
- class Phoneme < Telnyx::Internal::Type::BaseModel
119
- attr_accessor alphabet: Telnyx::Models::PronunciationDictUpdateResponse::Data::Item::Phoneme::alphabet
120
-
121
- attr_accessor phoneme: String
122
-
123
- attr_accessor text: String
124
-
125
- attr_accessor type: :phoneme
126
-
127
- def initialize: (
128
- alphabet: Telnyx::Models::PronunciationDictUpdateResponse::Data::Item::Phoneme::alphabet,
129
- phoneme: String,
130
- text: String,
131
- ?type: :phoneme
132
- ) -> void
133
-
134
- def to_hash: -> {
135
- alphabet: Telnyx::Models::PronunciationDictUpdateResponse::Data::Item::Phoneme::alphabet,
136
- phoneme: String,
137
- text: String,
138
- type: :phoneme
139
- }
140
-
141
- type alphabet = :ipa
142
-
143
- module Alphabet
144
- extend Telnyx::Internal::Type::Enum
145
-
146
- IPA: :ipa
147
-
148
- def self?.values: -> ::Array[Telnyx::Models::PronunciationDictUpdateResponse::Data::Item::Phoneme::alphabet]
149
- end
150
- end
151
-
152
- def self?.variants: -> ::Array[Telnyx::Models::PronunciationDictUpdateResponse::Data::item]
153
- end
154
-
155
- type record_type = :pronunciation_dict
156
-
157
- module RecordType
158
- extend Telnyx::Internal::Type::Enum
159
-
160
- PRONUNCIATION_DICT: :pronunciation_dict
161
-
162
- def self?.values: -> ::Array[Telnyx::Models::PronunciationDictUpdateResponse::Data::record_type]
163
- end
164
- end
15
+ def to_hash: -> { data: Telnyx::PronunciationDictData }
165
16
  end
166
17
  end
167
18
  end