telnyx 5.68.2 → 5.69.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/CHANGELOG.md +35 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +7 -0
- data/lib/telnyx/internal/util.rb +18 -4
- data/lib/telnyx/models/ai/assistant_create_params.rb +47 -1
- data/lib/telnyx/models/ai/assistant_tool.rb +25 -5
- data/lib/telnyx/models/ai/assistant_update_params.rb +47 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +48 -1
- data/lib/telnyx/models/ai/audio_transcribe_response.rb +70 -7
- data/lib/telnyx/models/ai/inference_embedding.rb +48 -1
- data/lib/telnyx/models/ai/telephony_settings.rb +13 -1
- data/lib/telnyx/models/pronunciation_dict_create_params.rb +141 -0
- data/lib/telnyx/models/pronunciation_dict_create_response.rb +207 -0
- data/lib/telnyx/models/pronunciation_dict_delete_params.rb +20 -0
- data/lib/telnyx/models/pronunciation_dict_list_params.rb +30 -0
- data/lib/telnyx/models/pronunciation_dict_list_response.rb +190 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_params.rb +20 -0
- data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +207 -0
- data/lib/telnyx/models/pronunciation_dict_update_params.rb +144 -0
- data/lib/telnyx/models/pronunciation_dict_update_response.rb +207 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +1893 -547
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +514 -0
- data/lib/telnyx/models/texml_initiate_ai_call_response.rb +34 -0
- data/lib/telnyx/models/verification.rb +1 -0
- data/lib/telnyx/models/verification_trigger_whatsapp_verification_params.rb +46 -0
- data/lib/telnyx/models/verify_profile_create_params.rb +43 -1
- data/lib/telnyx/models/verify_profile_update_params.rb +43 -1
- data/lib/telnyx/models/whatsapp_message_content.rb +196 -1
- data/lib/telnyx/models/wireless_blocklist_update_params.rb +8 -21
- data/lib/telnyx/models.rb +15 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/pronunciation_dicts.rb +156 -0
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -84
- data/lib/telnyx/resources/texml.rb +106 -0
- data/lib/telnyx/resources/verifications.rb +28 -0
- data/lib/telnyx/resources/verify_profiles.rb +5 -2
- data/lib/telnyx/resources/wireless_blocklists.rb +5 -5
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +13 -0
- data/rbi/telnyx/client.rbi +6 -0
- data/rbi/telnyx/internal/util.rbi +8 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +130 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +56 -5
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +130 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +132 -0
- data/rbi/telnyx/models/ai/audio_transcribe_response.rbi +123 -10
- data/rbi/telnyx/models/ai/inference_embedding.rbi +130 -0
- data/rbi/telnyx/models/ai/telephony_settings.rbi +13 -0
- data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +246 -0
- data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +398 -0
- data/rbi/telnyx/models/pronunciation_dict_delete_params.rbi +38 -0
- data/rbi/telnyx/models/pronunciation_dict_list_params.rbi +57 -0
- data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +353 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_params.rbi +38 -0
- data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +398 -0
- data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +268 -0
- data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +398 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +3719 -1011
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +1010 -0
- data/rbi/telnyx/models/texml_initiate_ai_call_response.rbi +58 -0
- data/rbi/telnyx/models/verification.rbi +1 -0
- data/rbi/telnyx/models/verification_trigger_whatsapp_verification_params.rbi +73 -0
- data/rbi/telnyx/models/verify_profile_create_params.rbi +85 -0
- data/rbi/telnyx/models/verify_profile_update_params.rbi +85 -0
- data/rbi/telnyx/models/whatsapp_message_content.rbi +492 -0
- data/rbi/telnyx/models/wireless_blocklist_update_params.rbi +6 -49
- data/rbi/telnyx/models.rbi +19 -10
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +4 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -0
- data/rbi/telnyx/resources/pronunciation_dicts.rbi +131 -0
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -163
- data/rbi/telnyx/resources/texml.rbi +164 -0
- data/rbi/telnyx/resources/verifications.rbi +23 -0
- data/rbi/telnyx/resources/verify_profiles.rbi +4 -0
- data/rbi/telnyx/resources/wireless_blocklists.rbi +3 -3
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/internal/util.rbs +4 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +62 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +17 -4
- data/sig/telnyx/models/ai/assistant_update_params.rbs +62 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +62 -0
- data/sig/telnyx/models/ai/audio_transcribe_response.rbs +53 -3
- data/sig/telnyx/models/ai/inference_embedding.rbs +62 -0
- data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
- data/sig/telnyx/models/pronunciation_dict_create_params.rbs +97 -0
- data/sig/telnyx/models/pronunciation_dict_create_response.rbs +167 -0
- data/sig/telnyx/models/pronunciation_dict_delete_params.rbs +20 -0
- data/sig/telnyx/models/pronunciation_dict_list_params.rbs +32 -0
- data/sig/telnyx/models/pronunciation_dict_list_response.rbs +144 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_params.rbs +20 -0
- data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +167 -0
- data/sig/telnyx/models/pronunciation_dict_update_params.rbs +108 -0
- data/sig/telnyx/models/pronunciation_dict_update_response.rbs +167 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +1368 -331
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +444 -0
- data/sig/telnyx/models/texml_initiate_ai_call_response.rbs +38 -0
- data/sig/telnyx/models/verification.rbs +2 -1
- data/sig/telnyx/models/verification_trigger_whatsapp_verification_params.rbs +43 -0
- data/sig/telnyx/models/verify_profile_create_params.rbs +43 -1
- data/sig/telnyx/models/verify_profile_update_params.rbs +43 -1
- data/sig/telnyx/models/whatsapp_message_content.rbs +205 -0
- data/sig/telnyx/models/wireless_blocklist_update_params.rbs +5 -25
- data/sig/telnyx/models.rbs +14 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/pronunciation_dicts.rbs +33 -0
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -40
- data/sig/telnyx/resources/texml.rbs +44 -0
- data/sig/telnyx/resources/verifications.rbs +8 -0
- data/sig/telnyx/resources/verify_profiles.rbs +2 -0
- data/sig/telnyx/resources/wireless_blocklists.rbs +1 -1
- metadata +41 -2
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type pronunciation_dict_create_response =
|
|
4
|
+
{ data: Telnyx::Models::PronunciationDictCreateResponse::Data }
|
|
5
|
+
|
|
6
|
+
class PronunciationDictCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
attr_reader data: Telnyx::Models::PronunciationDictCreateResponse::Data?
|
|
8
|
+
|
|
9
|
+
def data=: (
|
|
10
|
+
Telnyx::Models::PronunciationDictCreateResponse::Data
|
|
11
|
+
) -> Telnyx::Models::PronunciationDictCreateResponse::Data
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
?data: Telnyx::Models::PronunciationDictCreateResponse::Data
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
data: Telnyx::Models::PronunciationDictCreateResponse::Data
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type data =
|
|
22
|
+
{
|
|
23
|
+
id: String,
|
|
24
|
+
created_at: Time,
|
|
25
|
+
items: ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::item],
|
|
26
|
+
name: String,
|
|
27
|
+
record_type: Telnyx::Models::PronunciationDictCreateResponse::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::PronunciationDictCreateResponse::Data::item]?
|
|
42
|
+
|
|
43
|
+
def items=: (
|
|
44
|
+
::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::item]
|
|
45
|
+
) -> ::Array[Telnyx::Models::PronunciationDictCreateResponse::Data::item]
|
|
46
|
+
|
|
47
|
+
attr_reader name: String?
|
|
48
|
+
|
|
49
|
+
def name=: (String) -> String
|
|
50
|
+
|
|
51
|
+
attr_reader record_type: Telnyx::Models::PronunciationDictCreateResponse::Data::record_type?
|
|
52
|
+
|
|
53
|
+
def record_type=: (
|
|
54
|
+
Telnyx::Models::PronunciationDictCreateResponse::Data::record_type
|
|
55
|
+
) -> Telnyx::Models::PronunciationDictCreateResponse::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::PronunciationDictCreateResponse::Data::item],
|
|
69
|
+
?name: String,
|
|
70
|
+
?record_type: Telnyx::Models::PronunciationDictCreateResponse::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::PronunciationDictCreateResponse::Data::item],
|
|
79
|
+
name: String,
|
|
80
|
+
record_type: Telnyx::Models::PronunciationDictCreateResponse::Data::record_type,
|
|
81
|
+
updated_at: Time,
|
|
82
|
+
version: Integer
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
type item =
|
|
86
|
+
Telnyx::Models::PronunciationDictCreateResponse::Data::Item::Alias
|
|
87
|
+
| Telnyx::Models::PronunciationDictCreateResponse::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::PronunciationDictCreateResponse::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::PronunciationDictCreateResponse::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::PronunciationDictCreateResponse::Data::Item::Phoneme::alphabet,
|
|
129
|
+
phoneme: String,
|
|
130
|
+
text: String,
|
|
131
|
+
?type: :phoneme
|
|
132
|
+
) -> void
|
|
133
|
+
|
|
134
|
+
def to_hash: -> {
|
|
135
|
+
alphabet: Telnyx::Models::PronunciationDictCreateResponse::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::PronunciationDictCreateResponse::Data::Item::Phoneme::alphabet]
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def self?.variants: -> ::Array[Telnyx::Models::PronunciationDictCreateResponse::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::PronunciationDictCreateResponse::Data::record_type]
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type pronunciation_dict_delete_params =
|
|
4
|
+
{ id: String } & Telnyx::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PronunciationDictDeleteParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Telnyx::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { id: String, request_options: Telnyx::RequestOptions }
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type pronunciation_dict_list_params =
|
|
4
|
+
{ page_number: Integer, page_size: Integer }
|
|
5
|
+
& Telnyx::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class PronunciationDictListParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_reader page_number: Integer?
|
|
12
|
+
|
|
13
|
+
def page_number=: (Integer) -> Integer
|
|
14
|
+
|
|
15
|
+
attr_reader page_size: Integer?
|
|
16
|
+
|
|
17
|
+
def page_size=: (Integer) -> Integer
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
?page_number: Integer,
|
|
21
|
+
?page_size: Integer,
|
|
22
|
+
?request_options: Telnyx::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
page_number: Integer,
|
|
27
|
+
page_size: Integer,
|
|
28
|
+
request_options: Telnyx::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type pronunciation_dict_list_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
items: ::Array[Telnyx::Models::PronunciationDictListResponse::item],
|
|
8
|
+
name: String,
|
|
9
|
+
record_type: Telnyx::Models::PronunciationDictListResponse::record_type,
|
|
10
|
+
updated_at: Time,
|
|
11
|
+
version: Integer
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class PronunciationDictListResponse < Telnyx::Internal::Type::BaseModel
|
|
15
|
+
attr_reader id: String?
|
|
16
|
+
|
|
17
|
+
def id=: (String) -> String
|
|
18
|
+
|
|
19
|
+
attr_reader created_at: Time?
|
|
20
|
+
|
|
21
|
+
def created_at=: (Time) -> Time
|
|
22
|
+
|
|
23
|
+
attr_reader items: ::Array[Telnyx::Models::PronunciationDictListResponse::item]?
|
|
24
|
+
|
|
25
|
+
def items=: (
|
|
26
|
+
::Array[Telnyx::Models::PronunciationDictListResponse::item]
|
|
27
|
+
) -> ::Array[Telnyx::Models::PronunciationDictListResponse::item]
|
|
28
|
+
|
|
29
|
+
attr_reader name: String?
|
|
30
|
+
|
|
31
|
+
def name=: (String) -> String
|
|
32
|
+
|
|
33
|
+
attr_reader record_type: Telnyx::Models::PronunciationDictListResponse::record_type?
|
|
34
|
+
|
|
35
|
+
def record_type=: (
|
|
36
|
+
Telnyx::Models::PronunciationDictListResponse::record_type
|
|
37
|
+
) -> Telnyx::Models::PronunciationDictListResponse::record_type
|
|
38
|
+
|
|
39
|
+
attr_reader updated_at: Time?
|
|
40
|
+
|
|
41
|
+
def updated_at=: (Time) -> Time
|
|
42
|
+
|
|
43
|
+
attr_reader version: Integer?
|
|
44
|
+
|
|
45
|
+
def version=: (Integer) -> Integer
|
|
46
|
+
|
|
47
|
+
def initialize: (
|
|
48
|
+
?id: String,
|
|
49
|
+
?created_at: Time,
|
|
50
|
+
?items: ::Array[Telnyx::Models::PronunciationDictListResponse::item],
|
|
51
|
+
?name: String,
|
|
52
|
+
?record_type: Telnyx::Models::PronunciationDictListResponse::record_type,
|
|
53
|
+
?updated_at: Time,
|
|
54
|
+
?version: Integer
|
|
55
|
+
) -> void
|
|
56
|
+
|
|
57
|
+
def to_hash: -> {
|
|
58
|
+
id: String,
|
|
59
|
+
created_at: Time,
|
|
60
|
+
items: ::Array[Telnyx::Models::PronunciationDictListResponse::item],
|
|
61
|
+
name: String,
|
|
62
|
+
record_type: Telnyx::Models::PronunciationDictListResponse::record_type,
|
|
63
|
+
updated_at: Time,
|
|
64
|
+
version: Integer
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type item =
|
|
68
|
+
Telnyx::Models::PronunciationDictListResponse::Item::Alias
|
|
69
|
+
| Telnyx::Models::PronunciationDictListResponse::Item::Phoneme
|
|
70
|
+
|
|
71
|
+
module Item
|
|
72
|
+
extend Telnyx::Internal::Type::Union
|
|
73
|
+
|
|
74
|
+
type alias_ = { alias_: String, text: String, type: :alias }
|
|
75
|
+
|
|
76
|
+
class Alias < Telnyx::Internal::Type::BaseModel
|
|
77
|
+
attr_accessor alias_: String
|
|
78
|
+
|
|
79
|
+
attr_accessor text: String
|
|
80
|
+
|
|
81
|
+
attr_accessor type: :alias
|
|
82
|
+
|
|
83
|
+
def initialize: (alias_: String, text: String, ?type: :alias) -> void
|
|
84
|
+
|
|
85
|
+
def to_hash: -> { alias_: String, text: String, type: :alias }
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
type phoneme =
|
|
89
|
+
{
|
|
90
|
+
alphabet: Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::alphabet,
|
|
91
|
+
phoneme: String,
|
|
92
|
+
text: String,
|
|
93
|
+
type: :phoneme
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
class Phoneme < Telnyx::Internal::Type::BaseModel
|
|
97
|
+
attr_accessor alphabet: Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::alphabet
|
|
98
|
+
|
|
99
|
+
attr_accessor phoneme: String
|
|
100
|
+
|
|
101
|
+
attr_accessor text: String
|
|
102
|
+
|
|
103
|
+
attr_accessor type: :phoneme
|
|
104
|
+
|
|
105
|
+
def initialize: (
|
|
106
|
+
alphabet: Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::alphabet,
|
|
107
|
+
phoneme: String,
|
|
108
|
+
text: String,
|
|
109
|
+
?type: :phoneme
|
|
110
|
+
) -> void
|
|
111
|
+
|
|
112
|
+
def to_hash: -> {
|
|
113
|
+
alphabet: Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::alphabet,
|
|
114
|
+
phoneme: String,
|
|
115
|
+
text: String,
|
|
116
|
+
type: :phoneme
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
type alphabet = :ipa
|
|
120
|
+
|
|
121
|
+
module Alphabet
|
|
122
|
+
extend Telnyx::Internal::Type::Enum
|
|
123
|
+
|
|
124
|
+
IPA: :ipa
|
|
125
|
+
|
|
126
|
+
def self?.values: -> ::Array[Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::alphabet]
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
def self?.variants: -> ::Array[Telnyx::Models::PronunciationDictListResponse::item]
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
type record_type = :pronunciation_dict
|
|
134
|
+
|
|
135
|
+
module RecordType
|
|
136
|
+
extend Telnyx::Internal::Type::Enum
|
|
137
|
+
|
|
138
|
+
PRONUNCIATION_DICT: :pronunciation_dict
|
|
139
|
+
|
|
140
|
+
def self?.values: -> ::Array[Telnyx::Models::PronunciationDictListResponse::record_type]
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type pronunciation_dict_retrieve_params =
|
|
4
|
+
{ id: String } & Telnyx::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PronunciationDictRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
id: String,
|
|
14
|
+
?request_options: Telnyx::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> { id: String, request_options: Telnyx::RequestOptions }
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type pronunciation_dict_retrieve_response =
|
|
4
|
+
{ data: Telnyx::Models::PronunciationDictRetrieveResponse::Data }
|
|
5
|
+
|
|
6
|
+
class PronunciationDictRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
attr_reader data: Telnyx::Models::PronunciationDictRetrieveResponse::Data?
|
|
8
|
+
|
|
9
|
+
def data=: (
|
|
10
|
+
Telnyx::Models::PronunciationDictRetrieveResponse::Data
|
|
11
|
+
) -> Telnyx::Models::PronunciationDictRetrieveResponse::Data
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
?data: Telnyx::Models::PronunciationDictRetrieveResponse::Data
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
data: Telnyx::Models::PronunciationDictRetrieveResponse::Data
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type data =
|
|
22
|
+
{
|
|
23
|
+
id: String,
|
|
24
|
+
created_at: Time,
|
|
25
|
+
items: ::Array[Telnyx::Models::PronunciationDictRetrieveResponse::Data::item],
|
|
26
|
+
name: String,
|
|
27
|
+
record_type: Telnyx::Models::PronunciationDictRetrieveResponse::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::PronunciationDictRetrieveResponse::Data::item]?
|
|
42
|
+
|
|
43
|
+
def items=: (
|
|
44
|
+
::Array[Telnyx::Models::PronunciationDictRetrieveResponse::Data::item]
|
|
45
|
+
) -> ::Array[Telnyx::Models::PronunciationDictRetrieveResponse::Data::item]
|
|
46
|
+
|
|
47
|
+
attr_reader name: String?
|
|
48
|
+
|
|
49
|
+
def name=: (String) -> String
|
|
50
|
+
|
|
51
|
+
attr_reader record_type: Telnyx::Models::PronunciationDictRetrieveResponse::Data::record_type?
|
|
52
|
+
|
|
53
|
+
def record_type=: (
|
|
54
|
+
Telnyx::Models::PronunciationDictRetrieveResponse::Data::record_type
|
|
55
|
+
) -> Telnyx::Models::PronunciationDictRetrieveResponse::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::PronunciationDictRetrieveResponse::Data::item],
|
|
69
|
+
?name: String,
|
|
70
|
+
?record_type: Telnyx::Models::PronunciationDictRetrieveResponse::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::PronunciationDictRetrieveResponse::Data::item],
|
|
79
|
+
name: String,
|
|
80
|
+
record_type: Telnyx::Models::PronunciationDictRetrieveResponse::Data::record_type,
|
|
81
|
+
updated_at: Time,
|
|
82
|
+
version: Integer
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
type item =
|
|
86
|
+
Telnyx::Models::PronunciationDictRetrieveResponse::Data::Item::Alias
|
|
87
|
+
| Telnyx::Models::PronunciationDictRetrieveResponse::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::PronunciationDictRetrieveResponse::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::PronunciationDictRetrieveResponse::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::PronunciationDictRetrieveResponse::Data::Item::Phoneme::alphabet,
|
|
129
|
+
phoneme: String,
|
|
130
|
+
text: String,
|
|
131
|
+
?type: :phoneme
|
|
132
|
+
) -> void
|
|
133
|
+
|
|
134
|
+
def to_hash: -> {
|
|
135
|
+
alphabet: Telnyx::Models::PronunciationDictRetrieveResponse::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::PronunciationDictRetrieveResponse::Data::Item::Phoneme::alphabet]
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def self?.variants: -> ::Array[Telnyx::Models::PronunciationDictRetrieveResponse::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::PronunciationDictRetrieveResponse::Data::record_type]
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type pronunciation_dict_update_params =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
items: ::Array[Telnyx::Models::PronunciationDictUpdateParams::item],
|
|
7
|
+
name: String
|
|
8
|
+
}
|
|
9
|
+
& Telnyx::Internal::Type::request_parameters
|
|
10
|
+
|
|
11
|
+
class PronunciationDictUpdateParams < Telnyx::Internal::Type::BaseModel
|
|
12
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_reader items: ::Array[Telnyx::Models::PronunciationDictUpdateParams::item]?
|
|
18
|
+
|
|
19
|
+
def items=: (
|
|
20
|
+
::Array[Telnyx::Models::PronunciationDictUpdateParams::item]
|
|
21
|
+
) -> ::Array[Telnyx::Models::PronunciationDictUpdateParams::item]
|
|
22
|
+
|
|
23
|
+
attr_reader name: String?
|
|
24
|
+
|
|
25
|
+
def name=: (String) -> String
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
id: String,
|
|
29
|
+
?items: ::Array[Telnyx::Models::PronunciationDictUpdateParams::item],
|
|
30
|
+
?name: String,
|
|
31
|
+
?request_options: Telnyx::request_opts
|
|
32
|
+
) -> void
|
|
33
|
+
|
|
34
|
+
def to_hash: -> {
|
|
35
|
+
id: String,
|
|
36
|
+
items: ::Array[Telnyx::Models::PronunciationDictUpdateParams::item],
|
|
37
|
+
name: String,
|
|
38
|
+
request_options: Telnyx::RequestOptions
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type item =
|
|
42
|
+
Telnyx::PronunciationDictUpdateParams::Item::Alias
|
|
43
|
+
| Telnyx::PronunciationDictUpdateParams::Item::Phoneme
|
|
44
|
+
|
|
45
|
+
module Item
|
|
46
|
+
extend Telnyx::Internal::Type::Union
|
|
47
|
+
|
|
48
|
+
type alias_ = { alias_: String, text: String, type: :alias }
|
|
49
|
+
|
|
50
|
+
class Alias < Telnyx::Internal::Type::BaseModel
|
|
51
|
+
attr_accessor alias_: String
|
|
52
|
+
|
|
53
|
+
attr_accessor text: String
|
|
54
|
+
|
|
55
|
+
attr_accessor type: :alias
|
|
56
|
+
|
|
57
|
+
def initialize: (alias_: String, text: String, ?type: :alias) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> { alias_: String, text: String, type: :alias }
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
type phoneme =
|
|
63
|
+
{
|
|
64
|
+
alphabet: Telnyx::Models::PronunciationDictUpdateParams::Item::Phoneme::alphabet,
|
|
65
|
+
phoneme: String,
|
|
66
|
+
text: String,
|
|
67
|
+
type: :phoneme
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
class Phoneme < Telnyx::Internal::Type::BaseModel
|
|
71
|
+
attr_accessor alphabet: Telnyx::Models::PronunciationDictUpdateParams::Item::Phoneme::alphabet
|
|
72
|
+
|
|
73
|
+
attr_accessor phoneme: String
|
|
74
|
+
|
|
75
|
+
attr_accessor text: String
|
|
76
|
+
|
|
77
|
+
attr_accessor type: :phoneme
|
|
78
|
+
|
|
79
|
+
def initialize: (
|
|
80
|
+
alphabet: Telnyx::Models::PronunciationDictUpdateParams::Item::Phoneme::alphabet,
|
|
81
|
+
phoneme: String,
|
|
82
|
+
text: String,
|
|
83
|
+
?type: :phoneme
|
|
84
|
+
) -> void
|
|
85
|
+
|
|
86
|
+
def to_hash: -> {
|
|
87
|
+
alphabet: Telnyx::Models::PronunciationDictUpdateParams::Item::Phoneme::alphabet,
|
|
88
|
+
phoneme: String,
|
|
89
|
+
text: String,
|
|
90
|
+
type: :phoneme
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
type alphabet = :ipa
|
|
94
|
+
|
|
95
|
+
module Alphabet
|
|
96
|
+
extend Telnyx::Internal::Type::Enum
|
|
97
|
+
|
|
98
|
+
IPA: :ipa
|
|
99
|
+
|
|
100
|
+
def self?.values: -> ::Array[Telnyx::Models::PronunciationDictUpdateParams::Item::Phoneme::alphabet]
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def self?.variants: -> ::Array[Telnyx::Models::PronunciationDictUpdateParams::item]
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|