telnyx 5.7.0 → 5.7.2
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 +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/audio_transcribe_params.rb +32 -5
- data/lib/telnyx/models/calls/action_start_recording_params.rb +122 -7
- data/lib/telnyx/models/fax_delivered_webhook_event.rb +193 -144
- data/lib/telnyx/models/fax_failed_webhook_event.rb +195 -146
- data/lib/telnyx/models/fax_media_processed_webhook_event.rb +177 -128
- data/lib/telnyx/models/fax_queued_webhook_event.rb +177 -128
- data/lib/telnyx/models/fax_sending_started_webhook_event.rb +177 -128
- data/lib/telnyx/models/faxes/action_cancel_response.rb +16 -5
- data/lib/telnyx/models/faxes/action_refresh_response.rb +16 -5
- data/lib/telnyx/models/private_wireless_gateway_status.rb +3 -2
- data/lib/telnyx/models/sim_card_list_params.rb +11 -3
- data/lib/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_participants_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_retrieve_participants_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_retrieve_response.rb +9 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_update_response.rb +9 -1
- data/lib/telnyx/resources/ai/audio.rb +5 -1
- data/lib/telnyx/resources/calls/actions.rb +2 -2
- data/lib/telnyx/resources/texml/calls.rb +0 -130
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +0 -4
- data/rbi/telnyx/models/ai/audio_transcribe_params.rbi +53 -7
- data/rbi/telnyx/models/calls/action_start_recording_params.rbi +565 -9
- data/rbi/telnyx/models/fax_delivered_webhook_event.rbi +368 -247
- data/rbi/telnyx/models/fax_failed_webhook_event.rbi +388 -262
- data/rbi/telnyx/models/fax_media_processed_webhook_event.rbi +356 -239
- data/rbi/telnyx/models/fax_queued_webhook_event.rbi +348 -222
- data/rbi/telnyx/models/fax_sending_started_webhook_event.rbi +356 -239
- data/rbi/telnyx/models/faxes/action_cancel_response.rbi +45 -7
- data/rbi/telnyx/models/faxes/action_refresh_response.rbi +45 -7
- data/rbi/telnyx/models/private_wireless_gateway_status.rbi +4 -2
- data/rbi/telnyx/models/sim_card_list_params.rbi +14 -3
- data/rbi/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_retrieve_participants_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_retrieve_response.rbi +11 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_update_response.rbi +11 -0
- data/rbi/telnyx/resources/ai/audio.rbi +18 -3
- data/rbi/telnyx/resources/calls/actions.rbi +5 -3
- data/rbi/telnyx/resources/sim_cards.rbi +1 -1
- data/rbi/telnyx/resources/texml/calls.rbi +0 -180
- data/sig/telnyx/models/ai/audio_transcribe_params.rbs +18 -1
- data/sig/telnyx/models/calls/action_start_recording_params.rbs +219 -5
- data/sig/telnyx/models/fax_delivered_webhook_event.rbs +175 -122
- data/sig/telnyx/models/fax_failed_webhook_event.rbs +178 -125
- data/sig/telnyx/models/fax_media_processed_webhook_event.rbs +165 -112
- data/sig/telnyx/models/fax_queued_webhook_event.rbs +165 -112
- data/sig/telnyx/models/fax_sending_started_webhook_event.rbs +165 -112
- data/sig/telnyx/models/faxes/action_cancel_response.rbs +24 -5
- data/sig/telnyx/models/faxes/action_refresh_response.rbs +24 -5
- data/sig/telnyx/models/sim_card_list_params.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_participants_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_retrieve_participants_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_retrieve_response.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_update_response.rbs +7 -0
- data/sig/telnyx/resources/ai/audio.rbs +2 -0
- data/sig/telnyx/resources/calls/actions.rbs +1 -1
- data/sig/telnyx/resources/texml/calls.rbs +0 -49
- metadata +2 -14
- data/lib/telnyx/models/texml/call_initiate_params.rb +0 -427
- data/lib/telnyx/models/texml/call_initiate_response.rb +0 -41
- data/lib/telnyx/models/texml/call_update_params.rb +0 -16
- data/lib/telnyx/models/texml/call_update_response.rb +0 -35
- data/rbi/telnyx/models/texml/call_initiate_params.rbi +0 -886
- data/rbi/telnyx/models/texml/call_initiate_response.rbi +0 -85
- data/rbi/telnyx/models/texml/call_update_params.rbi +0 -29
- data/rbi/telnyx/models/texml/call_update_response.rbi +0 -75
- data/sig/telnyx/models/texml/call_initiate_params.rbs +0 -371
- data/sig/telnyx/models/texml/call_initiate_response.rbs +0 -44
- data/sig/telnyx/models/texml/call_update_params.rbs +0 -17
- data/sig/telnyx/models/texml/call_update_response.rbs +0 -40
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44673328be367e8f6d1a6aeabecc5b36c8520f2943faf06a88e071dcab166274
|
|
4
|
+
data.tar.gz: b328bd1fb4691753ed233b4e67ca5ad2113f599ce515087d340765e97c0a57db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97b4a08db4a7f99cf57bdc4b5499ec3010412fccdc6c5778fa1048cac1f5b38e65615a39a1a351358d75c083493c90b545471c7f477ea01f6f694617b1a70151
|
|
7
|
+
data.tar.gz: ccf0deedf2c5fba7940c1666065e90ddbb9208499b04186449354723b0dc880217a34954f2372e0a878b7b7954aac2f32f487cb3eb0c93aac4915e6a8f211956
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.7.2 (2026-01-30)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.7.1...v5.7.2](https://github.com/team-telnyx/telnyx-ruby/compare/v5.7.1...v5.7.2)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* use PaginationMeta schema for ListFaxesResponse.meta ([584eea3](https://github.com/team-telnyx/telnyx-ruby/commit/584eea35132ca54d84b21159bd28b30faf9d5655))
|
|
10
|
+
|
|
11
|
+
## 5.7.1 (2026-01-30)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v5.7.0...v5.7.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.7.0...v5.7.1)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* remove deprecated TeXML API endpoints from OpenAPI spec ([53481a2](https://github.com/team-telnyx/telnyx-ruby/commit/53481a2b89a0dc63ca5877421d13d62855478e9b))
|
|
18
|
+
|
|
3
19
|
## 5.7.0 (2026-01-29)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v5.6.0...v5.7.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.6.0...v5.7.0)
|
data/README.md
CHANGED
|
@@ -11,7 +11,8 @@ module Telnyx
|
|
|
11
11
|
# @!attribute model
|
|
12
12
|
# ID of the model to use. `distil-whisper/distil-large-v2` is lower latency but
|
|
13
13
|
# English-only. `openai/whisper-large-v3-turbo` is multi-lingual but slightly
|
|
14
|
-
# higher latency.
|
|
14
|
+
# higher latency. `deepgram/nova-3` supports English variants (en, en-US, en-GB,
|
|
15
|
+
# en-AU, en-NZ, en-IN) and only accepts mp3/wav files.
|
|
15
16
|
#
|
|
16
17
|
# @return [Symbol, Telnyx::Models::AI::AudioTranscribeParams::Model]
|
|
17
18
|
required :model, enum: -> { Telnyx::AI::AudioTranscribeParams::Model }
|
|
@@ -19,7 +20,8 @@ module Telnyx
|
|
|
19
20
|
# @!attribute file
|
|
20
21
|
# The audio file object to transcribe, in one of these formats: flac, mp3, mp4,
|
|
21
22
|
# mpeg, mpga, m4a, ogg, wav, or webm. File uploads are limited to 100 MB. Cannot
|
|
22
|
-
# be used together with `file_url`
|
|
23
|
+
# be used together with `file_url`. Note: `deepgram/nova-3` only supports mp3 and
|
|
24
|
+
# wav formats.
|
|
23
25
|
#
|
|
24
26
|
# @return [Pathname, StringIO, IO, String, Telnyx::FilePart, nil]
|
|
25
27
|
optional :file, Telnyx::Internal::Type::FileInput
|
|
@@ -27,11 +29,30 @@ module Telnyx
|
|
|
27
29
|
# @!attribute file_url
|
|
28
30
|
# Link to audio file in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a,
|
|
29
31
|
# ogg, wav, or webm. Support for hosted files is limited to 100MB. Cannot be used
|
|
30
|
-
# together with `file`
|
|
32
|
+
# together with `file`. Note: `deepgram/nova-3` only supports mp3 and wav formats.
|
|
31
33
|
#
|
|
32
34
|
# @return [String, nil]
|
|
33
35
|
optional :file_url, String
|
|
34
36
|
|
|
37
|
+
# @!attribute language
|
|
38
|
+
# The language of the audio to be transcribed. For `deepgram/nova-3`, only English
|
|
39
|
+
# variants are supported: `en`, `en-US`, `en-GB`, `en-AU`, `en-NZ`, `en-IN`. For
|
|
40
|
+
# `openai/whisper-large-v3-turbo`, supports multiple languages.
|
|
41
|
+
# `distil-whisper/distil-large-v2` does not support language parameter.
|
|
42
|
+
#
|
|
43
|
+
# @return [String, nil]
|
|
44
|
+
optional :language, String
|
|
45
|
+
|
|
46
|
+
# @!attribute model_config
|
|
47
|
+
# Additional model-specific configuration parameters. Only allowed with
|
|
48
|
+
# `deepgram/nova-3` model. Can include Deepgram-specific options such as
|
|
49
|
+
# `smart_format`, `punctuate`, `diarize`, `utterance`, `numerals`, and `language`.
|
|
50
|
+
# If `language` is provided both as a top-level parameter and in `model_config`,
|
|
51
|
+
# the top-level parameter takes precedence.
|
|
52
|
+
#
|
|
53
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
54
|
+
optional :model_config, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
|
55
|
+
|
|
35
56
|
# @!attribute response_format
|
|
36
57
|
# The format of the transcript output. Use `verbose_json` to take advantage of
|
|
37
58
|
# timestamps.
|
|
@@ -49,7 +70,7 @@ module Telnyx
|
|
|
49
70
|
enum: -> { Telnyx::AI::AudioTranscribeParams::TimestampGranularities },
|
|
50
71
|
api_name: :"timestamp_granularities[]"
|
|
51
72
|
|
|
52
|
-
# @!method initialize(model:, file: nil, file_url: nil, response_format: nil, timestamp_granularities: nil, request_options: {})
|
|
73
|
+
# @!method initialize(model:, file: nil, file_url: nil, language: nil, model_config: nil, response_format: nil, timestamp_granularities: nil, request_options: {})
|
|
53
74
|
# Some parameter documentations has been truncated, see
|
|
54
75
|
# {Telnyx::Models::AI::AudioTranscribeParams} for more details.
|
|
55
76
|
#
|
|
@@ -59,6 +80,10 @@ module Telnyx
|
|
|
59
80
|
#
|
|
60
81
|
# @param file_url [String] Link to audio file in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg
|
|
61
82
|
#
|
|
83
|
+
# @param language [String] The language of the audio to be transcribed. For `deepgram/nova-3`, only English
|
|
84
|
+
#
|
|
85
|
+
# @param model_config [Hash{Symbol=>Object}] Additional model-specific configuration parameters. Only allowed with `deepgram/
|
|
86
|
+
#
|
|
62
87
|
# @param response_format [Symbol, Telnyx::Models::AI::AudioTranscribeParams::ResponseFormat] The format of the transcript output. Use `verbose_json` to take advantage of tim
|
|
63
88
|
#
|
|
64
89
|
# @param timestamp_granularities [Symbol, Telnyx::Models::AI::AudioTranscribeParams::TimestampGranularities] The timestamp granularities to populate for this transcription. `response_format
|
|
@@ -67,12 +92,14 @@ module Telnyx
|
|
|
67
92
|
|
|
68
93
|
# ID of the model to use. `distil-whisper/distil-large-v2` is lower latency but
|
|
69
94
|
# English-only. `openai/whisper-large-v3-turbo` is multi-lingual but slightly
|
|
70
|
-
# higher latency.
|
|
95
|
+
# higher latency. `deepgram/nova-3` supports English variants (en, en-US, en-GB,
|
|
96
|
+
# en-AU, en-NZ, en-IN) and only accepts mp3/wav files.
|
|
71
97
|
module Model
|
|
72
98
|
extend Telnyx::Internal::Type::Enum
|
|
73
99
|
|
|
74
100
|
DISTIL_WHISPER_DISTIL_LARGE_V2 = :"distil-whisper/distil-large-v2"
|
|
75
101
|
OPENAI_WHISPER_LARGE_V3_TURBO = :"openai/whisper-large-v3-turbo"
|
|
102
|
+
DEEPGRAM_NOVA_3 = :"deepgram/nova-3"
|
|
76
103
|
|
|
77
104
|
# @!method self.values
|
|
78
105
|
# @return [Array<Symbol>]
|
|
@@ -80,13 +80,15 @@ module Telnyx
|
|
|
80
80
|
optional :transcription, Telnyx::Internal::Type::Boolean
|
|
81
81
|
|
|
82
82
|
# @!attribute transcription_engine
|
|
83
|
-
# Engine to use for speech recognition. `A` - `Google`
|
|
83
|
+
# Engine to use for speech recognition. `A` - `Google`, `B` - `Telnyx`,
|
|
84
|
+
# `deepgram/nova-3` - `Deepgram Nova-3`. Note: `deepgram/nova-3` supports only
|
|
85
|
+
# `en` and `en-{Region}` languages.
|
|
84
86
|
#
|
|
85
|
-
# @return [
|
|
86
|
-
optional :transcription_engine,
|
|
87
|
+
# @return [Symbol, Telnyx::Models::Calls::ActionStartRecordingParams::TranscriptionEngine, nil]
|
|
88
|
+
optional :transcription_engine,
|
|
89
|
+
enum: -> { Telnyx::Calls::ActionStartRecordingParams::TranscriptionEngine }
|
|
87
90
|
|
|
88
91
|
# @!attribute transcription_language
|
|
89
|
-
# Language to use for speech recognition
|
|
90
92
|
#
|
|
91
93
|
# @return [Symbol, Telnyx::Models::Calls::ActionStartRecordingParams::TranscriptionLanguage, nil]
|
|
92
94
|
optional :transcription_language,
|
|
@@ -149,9 +151,9 @@ module Telnyx
|
|
|
149
151
|
#
|
|
150
152
|
# @param transcription [Boolean] Enable post recording transcription. The default value is false.
|
|
151
153
|
#
|
|
152
|
-
# @param transcription_engine [
|
|
154
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::ActionStartRecordingParams::TranscriptionEngine] Engine to use for speech recognition. `A` - `Google`, `B` - `Telnyx`, `deepgram/
|
|
153
155
|
#
|
|
154
|
-
# @param transcription_language [Symbol, Telnyx::Models::Calls::ActionStartRecordingParams::TranscriptionLanguage]
|
|
156
|
+
# @param transcription_language [Symbol, Telnyx::Models::Calls::ActionStartRecordingParams::TranscriptionLanguage]
|
|
155
157
|
#
|
|
156
158
|
# @param transcription_max_speaker_count [Integer] Defines maximum number of speakers in the conversation. Applies to `google` engi
|
|
157
159
|
#
|
|
@@ -203,7 +205,20 @@ module Telnyx
|
|
|
203
205
|
# @return [Array<Symbol>]
|
|
204
206
|
end
|
|
205
207
|
|
|
206
|
-
#
|
|
208
|
+
# Engine to use for speech recognition. `A` - `Google`, `B` - `Telnyx`,
|
|
209
|
+
# `deepgram/nova-3` - `Deepgram Nova-3`. Note: `deepgram/nova-3` supports only
|
|
210
|
+
# `en` and `en-{Region}` languages.
|
|
211
|
+
module TranscriptionEngine
|
|
212
|
+
extend Telnyx::Internal::Type::Enum
|
|
213
|
+
|
|
214
|
+
A = :A
|
|
215
|
+
B = :B
|
|
216
|
+
DEEPGRAM_NOVA_3 = :"deepgram/nova-3"
|
|
217
|
+
|
|
218
|
+
# @!method self.values
|
|
219
|
+
# @return [Array<Symbol>]
|
|
220
|
+
end
|
|
221
|
+
|
|
207
222
|
module TranscriptionLanguage
|
|
208
223
|
extend Telnyx::Internal::Type::Enum
|
|
209
224
|
|
|
@@ -352,6 +367,106 @@ module Telnyx
|
|
|
352
367
|
ZH = :zh
|
|
353
368
|
ZH_TW = :"zh-TW"
|
|
354
369
|
ZU_ZA = :"zu-ZA"
|
|
370
|
+
EN = :en
|
|
371
|
+
DE = :de
|
|
372
|
+
ES = :es
|
|
373
|
+
RU = :ru
|
|
374
|
+
KO = :ko
|
|
375
|
+
FR = :fr
|
|
376
|
+
JA = :ja
|
|
377
|
+
PT = :pt
|
|
378
|
+
TR = :tr
|
|
379
|
+
PL = :pl
|
|
380
|
+
CA = :ca
|
|
381
|
+
NL = :nl
|
|
382
|
+
AR = :ar
|
|
383
|
+
SV = :sv
|
|
384
|
+
IT = :it
|
|
385
|
+
ID = :id
|
|
386
|
+
HI = :hi
|
|
387
|
+
FI = :fi
|
|
388
|
+
VI = :vi
|
|
389
|
+
HE = :he
|
|
390
|
+
UK = :uk
|
|
391
|
+
EL = :el
|
|
392
|
+
MS = :ms
|
|
393
|
+
CS = :cs
|
|
394
|
+
RO = :ro
|
|
395
|
+
DA = :da
|
|
396
|
+
HU = :hu
|
|
397
|
+
TA = :ta
|
|
398
|
+
NO = :no
|
|
399
|
+
TH = :th
|
|
400
|
+
UR = :ur
|
|
401
|
+
HR = :hr
|
|
402
|
+
BG = :bg
|
|
403
|
+
LT = :lt
|
|
404
|
+
LA = :la
|
|
405
|
+
MI = :mi
|
|
406
|
+
ML = :ml
|
|
407
|
+
CY = :cy
|
|
408
|
+
SK = :sk
|
|
409
|
+
TE = :te
|
|
410
|
+
FA = :fa
|
|
411
|
+
LV = :lv
|
|
412
|
+
BN = :bn
|
|
413
|
+
SR = :sr
|
|
414
|
+
AZ = :az
|
|
415
|
+
SL = :sl
|
|
416
|
+
KN = :kn
|
|
417
|
+
ET = :et
|
|
418
|
+
MK = :mk
|
|
419
|
+
BR = :br
|
|
420
|
+
EU = :eu
|
|
421
|
+
IS = :is
|
|
422
|
+
HY = :hy
|
|
423
|
+
NE = :ne
|
|
424
|
+
MN = :mn
|
|
425
|
+
BS = :bs
|
|
426
|
+
KK = :kk
|
|
427
|
+
SQ = :sq
|
|
428
|
+
SW = :sw
|
|
429
|
+
GL = :gl
|
|
430
|
+
MR = :mr
|
|
431
|
+
PA = :pa
|
|
432
|
+
SI = :si
|
|
433
|
+
KM = :km
|
|
434
|
+
SN = :sn
|
|
435
|
+
YO = :yo
|
|
436
|
+
SO = :so
|
|
437
|
+
AF = :af
|
|
438
|
+
OC = :oc
|
|
439
|
+
KA = :ka
|
|
440
|
+
BE = :be
|
|
441
|
+
TG = :tg
|
|
442
|
+
SD = :sd
|
|
443
|
+
GU = :gu
|
|
444
|
+
AM = :am
|
|
445
|
+
YI = :yi
|
|
446
|
+
LO = :lo
|
|
447
|
+
UZ = :uz
|
|
448
|
+
FO = :fo
|
|
449
|
+
HT = :ht
|
|
450
|
+
PS = :ps
|
|
451
|
+
TK = :tk
|
|
452
|
+
NN = :nn
|
|
453
|
+
MT = :mt
|
|
454
|
+
SA = :sa
|
|
455
|
+
LB = :lb
|
|
456
|
+
MY = :my
|
|
457
|
+
BO = :bo
|
|
458
|
+
TL = :tl
|
|
459
|
+
MG = :mg
|
|
460
|
+
AS = :as
|
|
461
|
+
TT = :tt
|
|
462
|
+
HAW = :haw
|
|
463
|
+
LN = :ln
|
|
464
|
+
HA = :ha
|
|
465
|
+
BA = :ba
|
|
466
|
+
JW = :jw
|
|
467
|
+
SU = :su
|
|
468
|
+
AUTO_DETECT = :auto_detect
|
|
469
|
+
ES_419 = :"es-419"
|
|
355
470
|
|
|
356
471
|
# @!method self.values
|
|
357
472
|
# @return [Array<Symbol>]
|
|
@@ -3,191 +3,240 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
class FaxDeliveredWebhookEvent < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
# @!attribute
|
|
7
|
-
# Identifies the type of resource.
|
|
6
|
+
# @!attribute data
|
|
8
7
|
#
|
|
9
|
-
# @return [
|
|
10
|
-
optional :
|
|
8
|
+
# @return [Telnyx::Models::FaxDeliveredWebhookEvent::Data, nil]
|
|
9
|
+
optional :data, -> { Telnyx::FaxDeliveredWebhookEvent::Data }
|
|
11
10
|
|
|
12
|
-
# @!attribute
|
|
13
|
-
#
|
|
11
|
+
# @!attribute meta
|
|
12
|
+
# Metadata about the webhook delivery.
|
|
14
13
|
#
|
|
15
|
-
# @return [
|
|
16
|
-
optional :
|
|
14
|
+
# @return [Telnyx::Models::FaxDeliveredWebhookEvent::Meta, nil]
|
|
15
|
+
optional :meta, -> { Telnyx::FaxDeliveredWebhookEvent::Meta }
|
|
17
16
|
|
|
18
|
-
# @!
|
|
17
|
+
# @!method initialize(data: nil, meta: nil)
|
|
18
|
+
# @param data [Telnyx::Models::FaxDeliveredWebhookEvent::Data]
|
|
19
19
|
#
|
|
20
|
-
# @
|
|
21
|
-
optional :payload, -> { Telnyx::FaxDeliveredWebhookEvent::Payload }
|
|
20
|
+
# @param meta [Telnyx::Models::FaxDeliveredWebhookEvent::Meta] Metadata about the webhook delivery.
|
|
22
21
|
|
|
23
|
-
#
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
optional :record_type, enum: -> { Telnyx::FaxDeliveredWebhookEvent::RecordType }
|
|
28
|
-
|
|
29
|
-
# @!method initialize(id: nil, event_type: nil, payload: nil, record_type: nil)
|
|
30
|
-
# @param id [String] Identifies the type of resource.
|
|
31
|
-
#
|
|
32
|
-
# @param event_type [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::EventType] The type of event being delivered.
|
|
33
|
-
#
|
|
34
|
-
# @param payload [Telnyx::Models::FaxDeliveredWebhookEvent::Payload]
|
|
35
|
-
#
|
|
36
|
-
# @param record_type [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::RecordType] Identifies the type of the resource.
|
|
37
|
-
|
|
38
|
-
# The type of event being delivered.
|
|
39
|
-
#
|
|
40
|
-
# @see Telnyx::Models::FaxDeliveredWebhookEvent#event_type
|
|
41
|
-
module EventType
|
|
42
|
-
extend Telnyx::Internal::Type::Enum
|
|
43
|
-
|
|
44
|
-
FAX_DELIVERED = :"fax.delivered"
|
|
45
|
-
|
|
46
|
-
# @!method self.values
|
|
47
|
-
# @return [Array<Symbol>]
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
# @see Telnyx::Models::FaxDeliveredWebhookEvent#payload
|
|
51
|
-
class Payload < Telnyx::Internal::Type::BaseModel
|
|
52
|
-
# @!attribute call_duration_secs
|
|
53
|
-
# The duration of the call in seconds.
|
|
54
|
-
#
|
|
55
|
-
# @return [Integer, nil]
|
|
56
|
-
optional :call_duration_secs, Integer
|
|
57
|
-
|
|
58
|
-
# @!attribute client_state
|
|
59
|
-
# State received from a command.
|
|
22
|
+
# @see Telnyx::Models::FaxDeliveredWebhookEvent#data
|
|
23
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
24
|
+
# @!attribute id
|
|
25
|
+
# Identifies the type of resource.
|
|
60
26
|
#
|
|
61
27
|
# @return [String, nil]
|
|
62
|
-
optional :
|
|
28
|
+
optional :id, String
|
|
63
29
|
|
|
64
|
-
# @!attribute
|
|
65
|
-
# The
|
|
30
|
+
# @!attribute event_type
|
|
31
|
+
# The type of event being delivered.
|
|
66
32
|
#
|
|
67
|
-
# @return [
|
|
68
|
-
optional :
|
|
33
|
+
# @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::EventType, nil]
|
|
34
|
+
optional :event_type, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Data::EventType }
|
|
69
35
|
|
|
70
|
-
# @!attribute
|
|
71
|
-
#
|
|
36
|
+
# @!attribute occurred_at
|
|
37
|
+
# ISO 8601 datetime of when the event occurred.
|
|
72
38
|
#
|
|
73
|
-
# @return [
|
|
74
|
-
optional :
|
|
39
|
+
# @return [Time, nil]
|
|
40
|
+
optional :occurred_at, Time
|
|
75
41
|
|
|
76
|
-
# @!attribute
|
|
77
|
-
# Identifies the fax.
|
|
42
|
+
# @!attribute payload
|
|
78
43
|
#
|
|
79
|
-
# @return [
|
|
80
|
-
optional :
|
|
44
|
+
# @return [Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload, nil]
|
|
45
|
+
optional :payload, -> { Telnyx::FaxDeliveredWebhookEvent::Data::Payload }
|
|
81
46
|
|
|
82
|
-
# @!attribute
|
|
83
|
-
#
|
|
47
|
+
# @!attribute record_type
|
|
48
|
+
# Identifies the type of the resource.
|
|
84
49
|
#
|
|
85
|
-
# @return [
|
|
86
|
-
optional :
|
|
50
|
+
# @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::RecordType, nil]
|
|
51
|
+
optional :record_type, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Data::RecordType }
|
|
87
52
|
|
|
88
|
-
# @!
|
|
89
|
-
#
|
|
90
|
-
# uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
|
|
91
|
-
# and media_url/contents can't be submitted together.
|
|
53
|
+
# @!method initialize(id: nil, event_type: nil, occurred_at: nil, payload: nil, record_type: nil)
|
|
54
|
+
# @param id [String] Identifies the type of resource.
|
|
92
55
|
#
|
|
93
|
-
# @
|
|
94
|
-
optional :media_name, String
|
|
95
|
-
|
|
96
|
-
# @!attribute original_media_url
|
|
97
|
-
# The original URL to the PDF used for the fax's media. If media_name was
|
|
98
|
-
# supplied, this is omitted
|
|
56
|
+
# @param event_type [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::EventType] The type of event being delivered.
|
|
99
57
|
#
|
|
100
|
-
# @
|
|
101
|
-
optional :original_media_url, String
|
|
102
|
-
|
|
103
|
-
# @!attribute page_count
|
|
104
|
-
# Number of transferred pages
|
|
105
|
-
#
|
|
106
|
-
# @return [Integer, nil]
|
|
107
|
-
optional :page_count, Integer
|
|
108
|
-
|
|
109
|
-
# @!attribute status
|
|
110
|
-
# The status of the fax.
|
|
58
|
+
# @param occurred_at [Time] ISO 8601 datetime of when the event occurred.
|
|
111
59
|
#
|
|
112
|
-
# @
|
|
113
|
-
optional :status, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Payload::Status }
|
|
114
|
-
|
|
115
|
-
# @!attribute to
|
|
116
|
-
# The phone number, in E.164 format, the fax will be sent to or SIP URI
|
|
60
|
+
# @param payload [Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload]
|
|
117
61
|
#
|
|
118
|
-
# @
|
|
119
|
-
optional :to, String
|
|
62
|
+
# @param record_type [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::RecordType] Identifies the type of the resource.
|
|
120
63
|
|
|
121
|
-
#
|
|
122
|
-
# Identifier of the user to whom the fax belongs
|
|
64
|
+
# The type of event being delivered.
|
|
123
65
|
#
|
|
124
|
-
#
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
# @!method initialize(call_duration_secs: nil, client_state: nil, connection_id: nil, direction: nil, fax_id: nil, from: nil, media_name: nil, original_media_url: nil, page_count: nil, status: nil, to: nil, user_id: nil)
|
|
128
|
-
# Some parameter documentations has been truncated, see
|
|
129
|
-
# {Telnyx::Models::FaxDeliveredWebhookEvent::Payload} for more details.
|
|
130
|
-
#
|
|
131
|
-
# @param call_duration_secs [Integer] The duration of the call in seconds.
|
|
132
|
-
#
|
|
133
|
-
# @param client_state [String] State received from a command.
|
|
134
|
-
#
|
|
135
|
-
# @param connection_id [String] The ID of the connection used to send the fax.
|
|
136
|
-
#
|
|
137
|
-
# @param direction [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Payload::Direction] The direction of the fax.
|
|
138
|
-
#
|
|
139
|
-
# @param fax_id [String] Identifies the fax.
|
|
140
|
-
#
|
|
141
|
-
# @param from [String] The phone number, in E.164 format, the fax will be sent from.
|
|
142
|
-
#
|
|
143
|
-
# @param media_name [String] The media_name used for the fax's media. Must point to a file previously uploade
|
|
144
|
-
#
|
|
145
|
-
# @param original_media_url [String] The original URL to the PDF used for the fax's media. If media_name was supplied
|
|
146
|
-
#
|
|
147
|
-
# @param page_count [Integer] Number of transferred pages
|
|
148
|
-
#
|
|
149
|
-
# @param status [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Payload::Status] The status of the fax.
|
|
150
|
-
#
|
|
151
|
-
# @param to [String] The phone number, in E.164 format, the fax will be sent to or SIP URI
|
|
152
|
-
#
|
|
153
|
-
# @param user_id [String] Identifier of the user to whom the fax belongs
|
|
154
|
-
|
|
155
|
-
# The direction of the fax.
|
|
156
|
-
#
|
|
157
|
-
# @see Telnyx::Models::FaxDeliveredWebhookEvent::Payload#direction
|
|
158
|
-
module Direction
|
|
66
|
+
# @see Telnyx::Models::FaxDeliveredWebhookEvent::Data#event_type
|
|
67
|
+
module EventType
|
|
159
68
|
extend Telnyx::Internal::Type::Enum
|
|
160
69
|
|
|
161
|
-
|
|
162
|
-
OUTBOUND = :outbound
|
|
70
|
+
FAX_DELIVERED = :"fax.delivered"
|
|
163
71
|
|
|
164
72
|
# @!method self.values
|
|
165
73
|
# @return [Array<Symbol>]
|
|
166
74
|
end
|
|
167
75
|
|
|
168
|
-
#
|
|
76
|
+
# @see Telnyx::Models::FaxDeliveredWebhookEvent::Data#payload
|
|
77
|
+
class Payload < Telnyx::Internal::Type::BaseModel
|
|
78
|
+
# @!attribute call_duration_secs
|
|
79
|
+
# The duration of the call in seconds.
|
|
80
|
+
#
|
|
81
|
+
# @return [Integer, nil]
|
|
82
|
+
optional :call_duration_secs, Integer
|
|
83
|
+
|
|
84
|
+
# @!attribute client_state
|
|
85
|
+
# State received from a command.
|
|
86
|
+
#
|
|
87
|
+
# @return [String, nil]
|
|
88
|
+
optional :client_state, String
|
|
89
|
+
|
|
90
|
+
# @!attribute connection_id
|
|
91
|
+
# The ID of the connection used to send the fax.
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
optional :connection_id, String
|
|
95
|
+
|
|
96
|
+
# @!attribute direction
|
|
97
|
+
# The direction of the fax.
|
|
98
|
+
#
|
|
99
|
+
# @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload::Direction, nil]
|
|
100
|
+
optional :direction, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Data::Payload::Direction }
|
|
101
|
+
|
|
102
|
+
# @!attribute fax_id
|
|
103
|
+
# Identifies the fax.
|
|
104
|
+
#
|
|
105
|
+
# @return [String, nil]
|
|
106
|
+
optional :fax_id, String
|
|
107
|
+
|
|
108
|
+
# @!attribute from
|
|
109
|
+
# The phone number, in E.164 format, the fax will be sent from.
|
|
110
|
+
#
|
|
111
|
+
# @return [String, nil]
|
|
112
|
+
optional :from, String
|
|
113
|
+
|
|
114
|
+
# @!attribute media_name
|
|
115
|
+
# The media_name used for the fax's media. Must point to a file previously
|
|
116
|
+
# uploaded to api.telnyx.com/v2/media by the same user/organization. media_name
|
|
117
|
+
# and media_url/contents can't be submitted together.
|
|
118
|
+
#
|
|
119
|
+
# @return [String, nil]
|
|
120
|
+
optional :media_name, String
|
|
121
|
+
|
|
122
|
+
# @!attribute original_media_url
|
|
123
|
+
# The original URL to the PDF used for the fax's media. If media_name was
|
|
124
|
+
# supplied, this is omitted
|
|
125
|
+
#
|
|
126
|
+
# @return [String, nil]
|
|
127
|
+
optional :original_media_url, String
|
|
128
|
+
|
|
129
|
+
# @!attribute page_count
|
|
130
|
+
# Number of transferred pages
|
|
131
|
+
#
|
|
132
|
+
# @return [Integer, nil]
|
|
133
|
+
optional :page_count, Integer
|
|
134
|
+
|
|
135
|
+
# @!attribute status
|
|
136
|
+
# The status of the fax.
|
|
137
|
+
#
|
|
138
|
+
# @return [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload::Status, nil]
|
|
139
|
+
optional :status, enum: -> { Telnyx::FaxDeliveredWebhookEvent::Data::Payload::Status }
|
|
140
|
+
|
|
141
|
+
# @!attribute to
|
|
142
|
+
# The phone number, in E.164 format, the fax will be sent to or SIP URI
|
|
143
|
+
#
|
|
144
|
+
# @return [String, nil]
|
|
145
|
+
optional :to, String
|
|
146
|
+
|
|
147
|
+
# @!attribute user_id
|
|
148
|
+
# Identifier of the user to whom the fax belongs
|
|
149
|
+
#
|
|
150
|
+
# @return [String, nil]
|
|
151
|
+
optional :user_id, String
|
|
152
|
+
|
|
153
|
+
# @!method initialize(call_duration_secs: nil, client_state: nil, connection_id: nil, direction: nil, fax_id: nil, from: nil, media_name: nil, original_media_url: nil, page_count: nil, status: nil, to: nil, user_id: nil)
|
|
154
|
+
# Some parameter documentations has been truncated, see
|
|
155
|
+
# {Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload} for more details.
|
|
156
|
+
#
|
|
157
|
+
# @param call_duration_secs [Integer] The duration of the call in seconds.
|
|
158
|
+
#
|
|
159
|
+
# @param client_state [String] State received from a command.
|
|
160
|
+
#
|
|
161
|
+
# @param connection_id [String] The ID of the connection used to send the fax.
|
|
162
|
+
#
|
|
163
|
+
# @param direction [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload::Direction] The direction of the fax.
|
|
164
|
+
#
|
|
165
|
+
# @param fax_id [String] Identifies the fax.
|
|
166
|
+
#
|
|
167
|
+
# @param from [String] The phone number, in E.164 format, the fax will be sent from.
|
|
168
|
+
#
|
|
169
|
+
# @param media_name [String] The media_name used for the fax's media. Must point to a file previously uploade
|
|
170
|
+
#
|
|
171
|
+
# @param original_media_url [String] The original URL to the PDF used for the fax's media. If media_name was supplied
|
|
172
|
+
#
|
|
173
|
+
# @param page_count [Integer] Number of transferred pages
|
|
174
|
+
#
|
|
175
|
+
# @param status [Symbol, Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload::Status] The status of the fax.
|
|
176
|
+
#
|
|
177
|
+
# @param to [String] The phone number, in E.164 format, the fax will be sent to or SIP URI
|
|
178
|
+
#
|
|
179
|
+
# @param user_id [String] Identifier of the user to whom the fax belongs
|
|
180
|
+
|
|
181
|
+
# The direction of the fax.
|
|
182
|
+
#
|
|
183
|
+
# @see Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload#direction
|
|
184
|
+
module Direction
|
|
185
|
+
extend Telnyx::Internal::Type::Enum
|
|
186
|
+
|
|
187
|
+
INBOUND = :inbound
|
|
188
|
+
OUTBOUND = :outbound
|
|
189
|
+
|
|
190
|
+
# @!method self.values
|
|
191
|
+
# @return [Array<Symbol>]
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# The status of the fax.
|
|
195
|
+
#
|
|
196
|
+
# @see Telnyx::Models::FaxDeliveredWebhookEvent::Data::Payload#status
|
|
197
|
+
module Status
|
|
198
|
+
extend Telnyx::Internal::Type::Enum
|
|
199
|
+
|
|
200
|
+
DELIVERED = :delivered
|
|
201
|
+
|
|
202
|
+
# @!method self.values
|
|
203
|
+
# @return [Array<Symbol>]
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Identifies the type of the resource.
|
|
169
208
|
#
|
|
170
|
-
# @see Telnyx::Models::FaxDeliveredWebhookEvent::
|
|
171
|
-
module
|
|
209
|
+
# @see Telnyx::Models::FaxDeliveredWebhookEvent::Data#record_type
|
|
210
|
+
module RecordType
|
|
172
211
|
extend Telnyx::Internal::Type::Enum
|
|
173
212
|
|
|
174
|
-
|
|
213
|
+
EVENT = :event
|
|
175
214
|
|
|
176
215
|
# @!method self.values
|
|
177
216
|
# @return [Array<Symbol>]
|
|
178
217
|
end
|
|
179
218
|
end
|
|
180
219
|
|
|
181
|
-
#
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
220
|
+
# @see Telnyx::Models::FaxDeliveredWebhookEvent#meta
|
|
221
|
+
class Meta < Telnyx::Internal::Type::BaseModel
|
|
222
|
+
# @!attribute attempt
|
|
223
|
+
# The delivery attempt number.
|
|
224
|
+
#
|
|
225
|
+
# @return [Integer, nil]
|
|
226
|
+
optional :attempt, Integer
|
|
186
227
|
|
|
187
|
-
|
|
228
|
+
# @!attribute delivered_to
|
|
229
|
+
# The URL the webhook was delivered to.
|
|
230
|
+
#
|
|
231
|
+
# @return [String, nil]
|
|
232
|
+
optional :delivered_to, String
|
|
188
233
|
|
|
189
|
-
# @!method
|
|
190
|
-
#
|
|
234
|
+
# @!method initialize(attempt: nil, delivered_to: nil)
|
|
235
|
+
# Metadata about the webhook delivery.
|
|
236
|
+
#
|
|
237
|
+
# @param attempt [Integer] The delivery attempt number.
|
|
238
|
+
#
|
|
239
|
+
# @param delivered_to [String] The URL the webhook was delivered to.
|
|
191
240
|
end
|
|
192
241
|
end
|
|
193
242
|
end
|