telnyx 5.173.0 → 5.174.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 +7 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +0 -4
- data/lib/telnyx/lib/access_token.rb +141 -0
- data/lib/telnyx/lib/telephony_credentials.rb +87 -0
- data/lib/telnyx/lib.rb +2 -0
- data/lib/telnyx/models/ai/memory/namespaces/namespace_settings.rb +26 -0
- data/lib/telnyx/models/ai/memory/namespaces/namespace_settings_response.rb +3 -41
- data/lib/telnyx/models/ai/memory/namespaces/summary_settings.rb +33 -0
- data/lib/telnyx/models/ai/transcription_challenger.rb +148 -0
- data/lib/telnyx/models/ai/transcription_fallback_model.rb +78 -0
- data/lib/telnyx/models/ai/transcription_settings.rb +6 -219
- data/lib/telnyx/models/compute/funcs/func_log_export_config.rb +96 -0
- data/lib/telnyx/models/compute/funcs/func_log_export_config_response.rb +3 -89
- data/lib/telnyx/models/email_template_common.rb +5 -26
- data/lib/telnyx/models/email_template_create_params.rb +5 -26
- data/lib/telnyx/models/messaging_outbound_message_payload.rb +22 -1
- data/lib/telnyx/models/messaging_profile_features.rb +16 -1
- data/lib/telnyx/models/model_metadata.rb +10 -1
- data/lib/telnyx/models/outbound_message_payload.rb +22 -1
- data/lib/telnyx/models/phone_numbers/numbers_phone_numbers_job.rb +6 -50
- data/lib/telnyx/models/phone_numbers/phone_numbers_job.rb +6 -50
- data/lib/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rb +28 -0
- data/lib/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rb +28 -0
- data/lib/telnyx/models/update_email_template_request.rb +5 -26
- data/lib/telnyx/models/variable_schema_entry.rb +28 -0
- data/lib/telnyx/models/whatsapp/hosted_signup_create_response.rb +3 -83
- data/lib/telnyx/models/whatsapp/hosted_signup_retrieve_response.rb +3 -84
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +3 -191
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +3 -192
- data/lib/telnyx/models/whatsapp/{hosted_signup_list_response.rb → whatsapp_hosted_signup.rb} +8 -6
- data/lib/telnyx/models/whatsapp/{phone_number_list_response.rb → whatsapp_phone_response.rb} +12 -12
- data/lib/telnyx/models.rb +2 -0
- data/lib/telnyx/resources/email_templates.rb +3 -3
- data/lib/telnyx/resources/portouts.rb +2 -1
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/hosted_signups.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +10 -5
- data/rbi/telnyx/client.rbi +0 -3
- data/rbi/telnyx/lib/access_token.rbi +73 -0
- data/rbi/telnyx/lib/telephony_credentials.rbi +50 -0
- data/rbi/telnyx/models/ai/memory/namespaces/namespace_settings.rbi +58 -0
- data/rbi/telnyx/models/ai/memory/namespaces/namespace_settings_response.rbi +4 -107
- data/rbi/telnyx/models/ai/memory/namespaces/summary_settings.rbi +51 -0
- data/rbi/telnyx/models/ai/transcription_challenger.rbi +318 -0
- data/rbi/telnyx/models/ai/transcription_fallback_model.rbi +171 -0
- data/rbi/telnyx/models/ai/transcription_settings.rbi +7 -531
- data/rbi/telnyx/models/compute/funcs/func_log_export_config.rbi +175 -0
- data/rbi/telnyx/models/compute/funcs/func_log_export_config_response.rbi +4 -176
- data/rbi/telnyx/models/email_template_common.rbi +3 -56
- data/rbi/telnyx/models/email_template_create_params.rbi +3 -59
- data/rbi/telnyx/models/messaging_outbound_message_payload.rbi +26 -0
- data/rbi/telnyx/models/messaging_profile_features.rbi +36 -5
- data/rbi/telnyx/models/model_metadata.rbi +13 -0
- data/rbi/telnyx/models/outbound_message_payload.rbi +26 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_numbers_job.rbi +8 -96
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job.rbi +8 -94
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rbi +49 -0
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rbi +49 -0
- data/rbi/telnyx/models/update_email_template_request.rbi +3 -59
- data/rbi/telnyx/models/variable_schema_entry.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/hosted_signup_create_response.rbi +6 -173
- data/rbi/telnyx/models/whatsapp/hosted_signup_retrieve_response.rbi +6 -175
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +4 -366
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +6 -368
- data/rbi/telnyx/models/whatsapp/{hosted_signup_list_response.rbi → whatsapp_hosted_signup.rbi} +11 -12
- data/rbi/telnyx/models/whatsapp/{phone_number_list_response.rbi → whatsapp_phone_response.rbi} +23 -23
- data/rbi/telnyx/models.rbi +2 -0
- data/rbi/telnyx/resources/email_templates.rbi +3 -18
- data/rbi/telnyx/resources/portouts.rbi +2 -1
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/hosted_signups.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/client.rbs +0 -2
- data/sig/telnyx/models/ai/memory/namespaces/namespace_settings.rbs +30 -0
- data/sig/telnyx/models/ai/memory/namespaces/namespace_settings_response.rbs +4 -37
- data/sig/telnyx/models/ai/memory/namespaces/summary_settings.rbs +19 -0
- data/sig/telnyx/models/ai/transcription_challenger.rbs +98 -0
- data/sig/telnyx/models/ai/transcription_fallback_model.rbs +63 -0
- data/sig/telnyx/models/ai/transcription_settings.rbs +8 -159
- data/sig/telnyx/models/compute/funcs/func_log_export_config.rbs +96 -0
- data/sig/telnyx/models/compute/funcs/func_log_export_config_response.rbs +6 -95
- data/sig/telnyx/models/email_template_common.rbs +4 -18
- data/sig/telnyx/models/email_template_create_params.rbs +4 -18
- data/sig/telnyx/models/messaging_outbound_message_payload.rbs +10 -0
- data/sig/telnyx/models/messaging_profile_features.rbs +14 -3
- data/sig/telnyx/models/model_metadata.rbs +7 -0
- data/sig/telnyx/models/outbound_message_payload.rbs +10 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_numbers_job.rbs +12 -44
- data/sig/telnyx/models/phone_numbers/phone_numbers_job.rbs +12 -44
- data/sig/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rbs +24 -0
- data/sig/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rbs +24 -0
- data/sig/telnyx/models/update_email_template_request.rbs +4 -18
- data/sig/telnyx/models/variable_schema_entry.rbs +17 -0
- data/sig/telnyx/models/whatsapp/hosted_signup_create_response.rbs +6 -90
- data/sig/telnyx/models/whatsapp/hosted_signup_retrieve_response.rbs +6 -90
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +6 -185
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +4 -189
- data/sig/telnyx/models/whatsapp/{hosted_signup_list_response.rbs → whatsapp_hosted_signup.rbs} +11 -9
- data/sig/telnyx/models/whatsapp/{phone_number_list_response.rbs → whatsapp_phone_response.rbs} +13 -11
- data/sig/telnyx/models.rbs +2 -0
- data/sig/telnyx/resources/email_templates.rbs +3 -3
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/hosted_signups.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +36 -17
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +0 -198
- data/lib/telnyx/resources/tts_integrations/actions.rb +0 -16
- data/lib/telnyx/resources/tts_integrations.rb +0 -18
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +0 -358
- data/rbi/telnyx/resources/tts_integrations/actions.rbi +0 -14
- data/rbi/telnyx/resources/tts_integrations.rbi +0 -15
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +0 -186
- data/sig/telnyx/resources/tts_integrations/actions.rbs +0 -9
- data/sig/telnyx/resources/tts_integrations.rbs +0 -9
|
@@ -12,194 +12,27 @@ module Telnyx
|
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
sig
|
|
16
|
-
returns(
|
|
17
|
-
T.nilable(
|
|
18
|
-
Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data
|
|
19
|
-
)
|
|
20
|
-
)
|
|
21
|
-
end
|
|
15
|
+
sig { returns(T.nilable(Telnyx::Whatsapp::WhatsappHostedSignup)) }
|
|
22
16
|
attr_reader :data
|
|
23
17
|
|
|
24
18
|
sig do
|
|
25
|
-
params(
|
|
26
|
-
data:
|
|
27
|
-
Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data::OrHash
|
|
28
|
-
).void
|
|
19
|
+
params(data: Telnyx::Whatsapp::WhatsappHostedSignup::OrHash).void
|
|
29
20
|
end
|
|
30
21
|
attr_writer :data
|
|
31
22
|
|
|
32
23
|
sig do
|
|
33
|
-
params(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
).returns(T.attached_class)
|
|
24
|
+
params(data: Telnyx::Whatsapp::WhatsappHostedSignup::OrHash).returns(
|
|
25
|
+
T.attached_class
|
|
26
|
+
)
|
|
37
27
|
end
|
|
38
28
|
def self.new(data: nil)
|
|
39
29
|
end
|
|
40
30
|
|
|
41
31
|
sig do
|
|
42
|
-
override.returns(
|
|
43
|
-
{ data: Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data }
|
|
44
|
-
)
|
|
32
|
+
override.returns({ data: Telnyx::Whatsapp::WhatsappHostedSignup })
|
|
45
33
|
end
|
|
46
34
|
def to_hash
|
|
47
35
|
end
|
|
48
|
-
|
|
49
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
50
|
-
OrHash =
|
|
51
|
-
T.type_alias do
|
|
52
|
-
T.any(
|
|
53
|
-
Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data,
|
|
54
|
-
Telnyx::Internal::AnyHash
|
|
55
|
-
)
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
# Hosted signup ID
|
|
59
|
-
sig { returns(T.nilable(String)) }
|
|
60
|
-
attr_reader :id
|
|
61
|
-
|
|
62
|
-
sig { params(id: String).void }
|
|
63
|
-
attr_writer :id
|
|
64
|
-
|
|
65
|
-
# Meta App ID the hosted signup onboards customers into
|
|
66
|
-
sig { returns(T.nilable(String)) }
|
|
67
|
-
attr_reader :app_id
|
|
68
|
-
|
|
69
|
-
sig { params(app_id: String).void }
|
|
70
|
-
attr_writer :app_id
|
|
71
|
-
|
|
72
|
-
sig { returns(T.nilable(Time)) }
|
|
73
|
-
attr_reader :created_at
|
|
74
|
-
|
|
75
|
-
sig { params(created_at: Time).void }
|
|
76
|
-
attr_writer :created_at
|
|
77
|
-
|
|
78
|
-
# When the onboarding URL stops working
|
|
79
|
-
sig { returns(T.nilable(Time)) }
|
|
80
|
-
attr_reader :expires_at
|
|
81
|
-
|
|
82
|
-
sig { params(expires_at: Time).void }
|
|
83
|
-
attr_writer :expires_at
|
|
84
|
-
|
|
85
|
-
# Signed token embedded in `url`
|
|
86
|
-
sig { returns(T.nilable(String)) }
|
|
87
|
-
attr_reader :jwt
|
|
88
|
-
|
|
89
|
-
sig { params(jwt: String).void }
|
|
90
|
-
attr_writer :jwt
|
|
91
|
-
|
|
92
|
-
sig do
|
|
93
|
-
returns(
|
|
94
|
-
T.nilable(
|
|
95
|
-
Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data::RecordType::TaggedSymbol
|
|
96
|
-
)
|
|
97
|
-
)
|
|
98
|
-
end
|
|
99
|
-
attr_reader :record_type
|
|
100
|
-
|
|
101
|
-
sig do
|
|
102
|
-
params(
|
|
103
|
-
record_type:
|
|
104
|
-
Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data::RecordType::OrSymbol
|
|
105
|
-
).void
|
|
106
|
-
end
|
|
107
|
-
attr_writer :record_type
|
|
108
|
-
|
|
109
|
-
# Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
110
|
-
# signup.
|
|
111
|
-
sig { returns(T.nilable(String)) }
|
|
112
|
-
attr_reader :solution_id
|
|
113
|
-
|
|
114
|
-
sig { params(solution_id: String).void }
|
|
115
|
-
attr_writer :solution_id
|
|
116
|
-
|
|
117
|
-
# Hosted onboarding URL to share with the end customer
|
|
118
|
-
sig { returns(T.nilable(String)) }
|
|
119
|
-
attr_reader :url
|
|
120
|
-
|
|
121
|
-
sig { params(url: String).void }
|
|
122
|
-
attr_writer :url
|
|
123
|
-
|
|
124
|
-
sig do
|
|
125
|
-
params(
|
|
126
|
-
id: String,
|
|
127
|
-
app_id: String,
|
|
128
|
-
created_at: Time,
|
|
129
|
-
expires_at: Time,
|
|
130
|
-
jwt: String,
|
|
131
|
-
record_type:
|
|
132
|
-
Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data::RecordType::OrSymbol,
|
|
133
|
-
solution_id: String,
|
|
134
|
-
url: String
|
|
135
|
-
).returns(T.attached_class)
|
|
136
|
-
end
|
|
137
|
-
def self.new(
|
|
138
|
-
# Hosted signup ID
|
|
139
|
-
id: nil,
|
|
140
|
-
# Meta App ID the hosted signup onboards customers into
|
|
141
|
-
app_id: nil,
|
|
142
|
-
created_at: nil,
|
|
143
|
-
# When the onboarding URL stops working
|
|
144
|
-
expires_at: nil,
|
|
145
|
-
# Signed token embedded in `url`
|
|
146
|
-
jwt: nil,
|
|
147
|
-
record_type: nil,
|
|
148
|
-
# Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
149
|
-
# signup.
|
|
150
|
-
solution_id: nil,
|
|
151
|
-
# Hosted onboarding URL to share with the end customer
|
|
152
|
-
url: nil
|
|
153
|
-
)
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
sig do
|
|
157
|
-
override.returns(
|
|
158
|
-
{
|
|
159
|
-
id: String,
|
|
160
|
-
app_id: String,
|
|
161
|
-
created_at: Time,
|
|
162
|
-
expires_at: Time,
|
|
163
|
-
jwt: String,
|
|
164
|
-
record_type:
|
|
165
|
-
Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data::RecordType::TaggedSymbol,
|
|
166
|
-
solution_id: String,
|
|
167
|
-
url: String
|
|
168
|
-
}
|
|
169
|
-
)
|
|
170
|
-
end
|
|
171
|
-
def to_hash
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
module RecordType
|
|
175
|
-
extend Telnyx::Internal::Type::Enum
|
|
176
|
-
|
|
177
|
-
TaggedSymbol =
|
|
178
|
-
T.type_alias do
|
|
179
|
-
T.all(
|
|
180
|
-
Symbol,
|
|
181
|
-
Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data::RecordType
|
|
182
|
-
)
|
|
183
|
-
end
|
|
184
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
185
|
-
|
|
186
|
-
WHATSAPP_JWT =
|
|
187
|
-
T.let(
|
|
188
|
-
:whatsapp_jwt,
|
|
189
|
-
Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data::RecordType::TaggedSymbol
|
|
190
|
-
)
|
|
191
|
-
|
|
192
|
-
sig do
|
|
193
|
-
override.returns(
|
|
194
|
-
T::Array[
|
|
195
|
-
Telnyx::Models::Whatsapp::HostedSignupCreateResponse::Data::RecordType::TaggedSymbol
|
|
196
|
-
]
|
|
197
|
-
)
|
|
198
|
-
end
|
|
199
|
-
def self.values
|
|
200
|
-
end
|
|
201
|
-
end
|
|
202
|
-
end
|
|
203
36
|
end
|
|
204
37
|
end
|
|
205
38
|
end
|
|
@@ -12,196 +12,27 @@ module Telnyx
|
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
sig
|
|
16
|
-
returns(
|
|
17
|
-
T.nilable(
|
|
18
|
-
Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data
|
|
19
|
-
)
|
|
20
|
-
)
|
|
21
|
-
end
|
|
15
|
+
sig { returns(T.nilable(Telnyx::Whatsapp::WhatsappHostedSignup)) }
|
|
22
16
|
attr_reader :data
|
|
23
17
|
|
|
24
18
|
sig do
|
|
25
|
-
params(
|
|
26
|
-
data:
|
|
27
|
-
Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data::OrHash
|
|
28
|
-
).void
|
|
19
|
+
params(data: Telnyx::Whatsapp::WhatsappHostedSignup::OrHash).void
|
|
29
20
|
end
|
|
30
21
|
attr_writer :data
|
|
31
22
|
|
|
32
23
|
sig do
|
|
33
|
-
params(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
).returns(T.attached_class)
|
|
24
|
+
params(data: Telnyx::Whatsapp::WhatsappHostedSignup::OrHash).returns(
|
|
25
|
+
T.attached_class
|
|
26
|
+
)
|
|
37
27
|
end
|
|
38
28
|
def self.new(data: nil)
|
|
39
29
|
end
|
|
40
30
|
|
|
41
31
|
sig do
|
|
42
|
-
override.returns(
|
|
43
|
-
{
|
|
44
|
-
data: Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data
|
|
45
|
-
}
|
|
46
|
-
)
|
|
32
|
+
override.returns({ data: Telnyx::Whatsapp::WhatsappHostedSignup })
|
|
47
33
|
end
|
|
48
34
|
def to_hash
|
|
49
35
|
end
|
|
50
|
-
|
|
51
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
52
|
-
OrHash =
|
|
53
|
-
T.type_alias do
|
|
54
|
-
T.any(
|
|
55
|
-
Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data,
|
|
56
|
-
Telnyx::Internal::AnyHash
|
|
57
|
-
)
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
# Hosted signup ID
|
|
61
|
-
sig { returns(T.nilable(String)) }
|
|
62
|
-
attr_reader :id
|
|
63
|
-
|
|
64
|
-
sig { params(id: String).void }
|
|
65
|
-
attr_writer :id
|
|
66
|
-
|
|
67
|
-
# Meta App ID the hosted signup onboards customers into
|
|
68
|
-
sig { returns(T.nilable(String)) }
|
|
69
|
-
attr_reader :app_id
|
|
70
|
-
|
|
71
|
-
sig { params(app_id: String).void }
|
|
72
|
-
attr_writer :app_id
|
|
73
|
-
|
|
74
|
-
sig { returns(T.nilable(Time)) }
|
|
75
|
-
attr_reader :created_at
|
|
76
|
-
|
|
77
|
-
sig { params(created_at: Time).void }
|
|
78
|
-
attr_writer :created_at
|
|
79
|
-
|
|
80
|
-
# When the onboarding URL stops working
|
|
81
|
-
sig { returns(T.nilable(Time)) }
|
|
82
|
-
attr_reader :expires_at
|
|
83
|
-
|
|
84
|
-
sig { params(expires_at: Time).void }
|
|
85
|
-
attr_writer :expires_at
|
|
86
|
-
|
|
87
|
-
# Signed token embedded in `url`
|
|
88
|
-
sig { returns(T.nilable(String)) }
|
|
89
|
-
attr_reader :jwt
|
|
90
|
-
|
|
91
|
-
sig { params(jwt: String).void }
|
|
92
|
-
attr_writer :jwt
|
|
93
|
-
|
|
94
|
-
sig do
|
|
95
|
-
returns(
|
|
96
|
-
T.nilable(
|
|
97
|
-
Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data::RecordType::TaggedSymbol
|
|
98
|
-
)
|
|
99
|
-
)
|
|
100
|
-
end
|
|
101
|
-
attr_reader :record_type
|
|
102
|
-
|
|
103
|
-
sig do
|
|
104
|
-
params(
|
|
105
|
-
record_type:
|
|
106
|
-
Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data::RecordType::OrSymbol
|
|
107
|
-
).void
|
|
108
|
-
end
|
|
109
|
-
attr_writer :record_type
|
|
110
|
-
|
|
111
|
-
# Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
112
|
-
# signup.
|
|
113
|
-
sig { returns(T.nilable(String)) }
|
|
114
|
-
attr_reader :solution_id
|
|
115
|
-
|
|
116
|
-
sig { params(solution_id: String).void }
|
|
117
|
-
attr_writer :solution_id
|
|
118
|
-
|
|
119
|
-
# Hosted onboarding URL to share with the end customer
|
|
120
|
-
sig { returns(T.nilable(String)) }
|
|
121
|
-
attr_reader :url
|
|
122
|
-
|
|
123
|
-
sig { params(url: String).void }
|
|
124
|
-
attr_writer :url
|
|
125
|
-
|
|
126
|
-
sig do
|
|
127
|
-
params(
|
|
128
|
-
id: String,
|
|
129
|
-
app_id: String,
|
|
130
|
-
created_at: Time,
|
|
131
|
-
expires_at: Time,
|
|
132
|
-
jwt: String,
|
|
133
|
-
record_type:
|
|
134
|
-
Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data::RecordType::OrSymbol,
|
|
135
|
-
solution_id: String,
|
|
136
|
-
url: String
|
|
137
|
-
).returns(T.attached_class)
|
|
138
|
-
end
|
|
139
|
-
def self.new(
|
|
140
|
-
# Hosted signup ID
|
|
141
|
-
id: nil,
|
|
142
|
-
# Meta App ID the hosted signup onboards customers into
|
|
143
|
-
app_id: nil,
|
|
144
|
-
created_at: nil,
|
|
145
|
-
# When the onboarding URL stops working
|
|
146
|
-
expires_at: nil,
|
|
147
|
-
# Signed token embedded in `url`
|
|
148
|
-
jwt: nil,
|
|
149
|
-
record_type: nil,
|
|
150
|
-
# Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
151
|
-
# signup.
|
|
152
|
-
solution_id: nil,
|
|
153
|
-
# Hosted onboarding URL to share with the end customer
|
|
154
|
-
url: nil
|
|
155
|
-
)
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
sig do
|
|
159
|
-
override.returns(
|
|
160
|
-
{
|
|
161
|
-
id: String,
|
|
162
|
-
app_id: String,
|
|
163
|
-
created_at: Time,
|
|
164
|
-
expires_at: Time,
|
|
165
|
-
jwt: String,
|
|
166
|
-
record_type:
|
|
167
|
-
Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data::RecordType::TaggedSymbol,
|
|
168
|
-
solution_id: String,
|
|
169
|
-
url: String
|
|
170
|
-
}
|
|
171
|
-
)
|
|
172
|
-
end
|
|
173
|
-
def to_hash
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
module RecordType
|
|
177
|
-
extend Telnyx::Internal::Type::Enum
|
|
178
|
-
|
|
179
|
-
TaggedSymbol =
|
|
180
|
-
T.type_alias do
|
|
181
|
-
T.all(
|
|
182
|
-
Symbol,
|
|
183
|
-
Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data::RecordType
|
|
184
|
-
)
|
|
185
|
-
end
|
|
186
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
187
|
-
|
|
188
|
-
WHATSAPP_JWT =
|
|
189
|
-
T.let(
|
|
190
|
-
:whatsapp_jwt,
|
|
191
|
-
Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data::RecordType::TaggedSymbol
|
|
192
|
-
)
|
|
193
|
-
|
|
194
|
-
sig do
|
|
195
|
-
override.returns(
|
|
196
|
-
T::Array[
|
|
197
|
-
Telnyx::Models::Whatsapp::HostedSignupRetrieveResponse::Data::RecordType::TaggedSymbol
|
|
198
|
-
]
|
|
199
|
-
)
|
|
200
|
-
end
|
|
201
|
-
def self.values
|
|
202
|
-
end
|
|
203
|
-
end
|
|
204
|
-
end
|
|
205
36
|
end
|
|
206
37
|
end
|
|
207
38
|
end
|