sentdm 0.34.0 → 0.35.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 +8 -0
- data/README.md +11 -9
- data/lib/sentdm/client.rb +25 -0
- data/lib/sentdm/internal/calls_page.rb +115 -0
- data/lib/sentdm/models/api_response_of_call.rb +43 -0
- data/lib/sentdm/models/api_response_of_call_recordings.rb +43 -0
- data/lib/sentdm/models/api_response_of_calls_list.rb +42 -0
- data/lib/sentdm/models/call.rb +133 -0
- data/lib/sentdm/models/call_event.rb +72 -0
- data/lib/sentdm/models/call_event_payload.rb +102 -0
- data/lib/sentdm/models/call_hangup_params.rb +32 -0
- data/lib/sentdm/models/call_list_params.rb +83 -0
- data/lib/sentdm/models/call_list_recordings_params.rb +26 -0
- data/lib/sentdm/models/call_party.rb +31 -0
- data/lib/sentdm/models/call_record_params.rb +55 -0
- data/lib/sentdm/models/call_recording.rb +38 -0
- data/lib/sentdm/models/call_recordings.rb +24 -0
- data/lib/sentdm/models/call_retrieve_params.rb +26 -0
- data/lib/sentdm/models/call_timeline_entry.rb +26 -0
- data/lib/sentdm/models/calls/api_response_of_list_of_call_participant.rb +45 -0
- data/lib/sentdm/models/calls/call_participant.rb +60 -0
- data/lib/sentdm/models/calls/call_participant_target.rb +30 -0
- data/lib/sentdm/models/calls/participant_add_params.rb +66 -0
- data/lib/sentdm/models/calls/participant_list_params.rb +28 -0
- data/lib/sentdm/models/calls/participant_remove_all_params.rb +28 -0
- data/lib/sentdm/models/calls/participant_remove_params.rb +34 -0
- data/lib/sentdm/models/calls/participant_update_params.rb +64 -0
- data/lib/sentdm/models/calls_list.rb +26 -0
- data/lib/sentdm/models/channels/api_response_of_list_of_voice_number.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_voice_callback_test.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_voice_number.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_voice_number_created.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_voice_secret.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_voice_token.rb +45 -0
- data/lib/sentdm/models/channels/voice_callback_test.rb +65 -0
- data/lib/sentdm/models/channels/voice_callback_test_error_info.rb +41 -0
- data/lib/sentdm/models/channels/voice_callback_test_request_info.rb +40 -0
- data/lib/sentdm/models/channels/voice_callback_test_response_info.rb +28 -0
- data/lib/sentdm/models/channels/voice_create_params.rb +86 -0
- data/lib/sentdm/models/channels/voice_create_token_params.rb +69 -0
- data/lib/sentdm/models/channels/voice_list_params.rb +22 -0
- data/lib/sentdm/models/channels/voice_number.rb +68 -0
- data/lib/sentdm/models/channels/voice_number_created.rb +26 -0
- data/lib/sentdm/models/channels/voice_retrieve_params.rb +28 -0
- data/lib/sentdm/models/channels/voice_rotate_secret_params.rb +34 -0
- data/lib/sentdm/models/channels/voice_secret.rb +25 -0
- data/lib/sentdm/models/channels/voice_test_params.rb +34 -0
- data/lib/sentdm/models/channels/voice_token.rb +44 -0
- data/lib/sentdm/models/channels/voice_update_params.rb +95 -0
- data/lib/sentdm/models/webhook_list_events_response.rb +4 -173
- data/lib/sentdm/models.rb +36 -0
- data/lib/sentdm/resources/calls/participants.rb +231 -0
- data/lib/sentdm/resources/calls.rb +235 -0
- data/lib/sentdm/resources/channels/voice.rb +381 -0
- data/lib/sentdm/resources/channels.rb +45 -0
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +50 -0
- data/rbi/sentdm/client.rbi +23 -0
- data/rbi/sentdm/internal/calls_page.rbi +71 -0
- data/rbi/sentdm/models/api_response_of_call.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_call_recordings.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_calls_list.rbi +74 -0
- data/rbi/sentdm/models/call.rbi +177 -0
- data/rbi/sentdm/models/call_event.rbi +114 -0
- data/rbi/sentdm/models/call_event_payload.rbi +135 -0
- data/rbi/sentdm/models/call_hangup_params.rbi +59 -0
- data/rbi/sentdm/models/call_list_params.rbi +112 -0
- data/rbi/sentdm/models/call_list_recordings_params.rbi +46 -0
- data/rbi/sentdm/models/call_party.rbi +41 -0
- data/rbi/sentdm/models/call_record_params.rbi +83 -0
- data/rbi/sentdm/models/call_recording.rbi +59 -0
- data/rbi/sentdm/models/call_recordings.rbi +39 -0
- data/rbi/sentdm/models/call_retrieve_params.rbi +46 -0
- data/rbi/sentdm/models/call_timeline_entry.rbi +40 -0
- data/rbi/sentdm/models/calls/api_response_of_list_of_call_participant.rbi +76 -0
- data/rbi/sentdm/models/calls/call_participant.rbi +92 -0
- data/rbi/sentdm/models/calls/call_participant_target.rbi +47 -0
- data/rbi/sentdm/models/calls/participant_add_params.rbi +98 -0
- data/rbi/sentdm/models/calls/participant_list_params.rbi +51 -0
- data/rbi/sentdm/models/calls/participant_remove_all_params.rbi +51 -0
- data/rbi/sentdm/models/calls/participant_remove_params.rbi +61 -0
- data/rbi/sentdm/models/calls/participant_update_params.rbi +94 -0
- data/rbi/sentdm/models/calls_list.rbi +47 -0
- data/rbi/sentdm/models/channels/api_response_of_list_of_voice_number.rbi +76 -0
- data/rbi/sentdm/models/channels/api_response_of_voice_callback_test.rbi +83 -0
- data/rbi/sentdm/models/channels/api_response_of_voice_number.rbi +81 -0
- data/rbi/sentdm/models/channels/api_response_of_voice_number_created.rbi +83 -0
- data/rbi/sentdm/models/channels/api_response_of_voice_secret.rbi +81 -0
- data/rbi/sentdm/models/channels/api_response_of_voice_token.rbi +81 -0
- data/rbi/sentdm/models/channels/voice_callback_test.rbi +126 -0
- data/rbi/sentdm/models/channels/voice_callback_test_error_info.rbi +65 -0
- data/rbi/sentdm/models/channels/voice_callback_test_request_info.rbi +66 -0
- data/rbi/sentdm/models/channels/voice_callback_test_response_info.rbi +48 -0
- data/rbi/sentdm/models/channels/voice_create_params.rbi +127 -0
- data/rbi/sentdm/models/channels/voice_create_token_params.rbi +104 -0
- data/rbi/sentdm/models/channels/voice_list_params.rbi +40 -0
- data/rbi/sentdm/models/channels/voice_number.rbi +105 -0
- data/rbi/sentdm/models/channels/voice_number_created.rbi +42 -0
- data/rbi/sentdm/models/channels/voice_retrieve_params.rbi +51 -0
- data/rbi/sentdm/models/channels/voice_rotate_secret_params.rbi +64 -0
- data/rbi/sentdm/models/channels/voice_secret.rbi +35 -0
- data/rbi/sentdm/models/channels/voice_test_params.rbi +61 -0
- data/rbi/sentdm/models/channels/voice_token.rbi +76 -0
- data/rbi/sentdm/models/channels/voice_update_params.rbi +158 -0
- data/rbi/sentdm/models/webhook_list_events_response.rbi +3 -269
- data/rbi/sentdm/models.rbi +36 -0
- data/rbi/sentdm/resources/calls/participants.rbi +199 -0
- data/rbi/sentdm/resources/calls.rbi +206 -0
- data/rbi/sentdm/resources/channels/voice.rbi +371 -0
- data/rbi/sentdm/resources/channels.rbi +42 -0
- data/sig/sentdm/client.rbs +4 -0
- data/sig/sentdm/internal/calls_page.rbs +41 -0
- data/sig/sentdm/models/api_response_of_call.rbs +39 -0
- data/sig/sentdm/models/api_response_of_call_recordings.rbs +39 -0
- data/sig/sentdm/models/api_response_of_calls_list.rbs +39 -0
- data/sig/sentdm/models/call.rbs +101 -0
- data/sig/sentdm/models/call_event.rbs +44 -0
- data/sig/sentdm/models/call_event_payload.rbs +68 -0
- data/sig/sentdm/models/call_hangup_params.rbs +38 -0
- data/sig/sentdm/models/call_list_params.rbs +67 -0
- data/sig/sentdm/models/call_list_recordings_params.rbs +30 -0
- data/sig/sentdm/models/call_party.rbs +17 -0
- data/sig/sentdm/models/call_record_params.rbs +54 -0
- data/sig/sentdm/models/call_recording.rbs +32 -0
- data/sig/sentdm/models/call_recordings.rbs +17 -0
- data/sig/sentdm/models/call_retrieve_params.rbs +30 -0
- data/sig/sentdm/models/call_timeline_entry.rbs +19 -0
- data/sig/sentdm/models/calls/api_response_of_list_of_call_participant.rbs +41 -0
- data/sig/sentdm/models/calls/call_participant.rbs +52 -0
- data/sig/sentdm/models/calls/call_participant_target.rbs +23 -0
- data/sig/sentdm/models/calls/participant_add_params.rbs +63 -0
- data/sig/sentdm/models/calls/participant_list_params.rbs +32 -0
- data/sig/sentdm/models/calls/participant_remove_all_params.rbs +34 -0
- data/sig/sentdm/models/calls/participant_remove_params.rbs +40 -0
- data/sig/sentdm/models/calls/participant_update_params.rbs +61 -0
- data/sig/sentdm/models/calls_list.rbs +26 -0
- data/sig/sentdm/models/channels/api_response_of_list_of_voice_number.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_voice_callback_test.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_voice_number.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_voice_number_created.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_voice_secret.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_voice_token.rbs +41 -0
- data/sig/sentdm/models/channels/voice_callback_test.rbs +51 -0
- data/sig/sentdm/models/channels/voice_callback_test_error_info.rbs +28 -0
- data/sig/sentdm/models/channels/voice_callback_test_request_info.rbs +34 -0
- data/sig/sentdm/models/channels/voice_callback_test_response_info.rbs +20 -0
- data/sig/sentdm/models/channels/voice_create_params.rbs +64 -0
- data/sig/sentdm/models/channels/voice_create_token_params.rbs +61 -0
- data/sig/sentdm/models/channels/voice_list_params.rbs +27 -0
- data/sig/sentdm/models/channels/voice_number.rbs +57 -0
- data/sig/sentdm/models/channels/voice_number_created.rbs +17 -0
- data/sig/sentdm/models/channels/voice_retrieve_params.rbs +32 -0
- data/sig/sentdm/models/channels/voice_rotate_secret_params.rbs +40 -0
- data/sig/sentdm/models/channels/voice_secret.rbs +17 -0
- data/sig/sentdm/models/channels/voice_test_params.rbs +40 -0
- data/sig/sentdm/models/channels/voice_token.rbs +40 -0
- data/sig/sentdm/models/channels/voice_update_params.rbs +78 -0
- data/sig/sentdm/models/webhook_list_events_response.rbs +1 -107
- data/sig/sentdm/models.rbs +36 -0
- data/sig/sentdm/resources/calls/participants.rbs +50 -0
- data/sig/sentdm/resources/calls.rbs +50 -0
- data/sig/sentdm/resources/channels/voice.rbs +68 -0
- data/sig/sentdm/resources/channels.rbs +9 -0
- metadata +152 -2
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type participant_remove_params =
|
|
5
|
+
{ id: String, participant_id: String, x_profile_id: String }
|
|
6
|
+
& Sentdm::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class ParticipantRemoveParams < Sentdm::Models::MutationRequest
|
|
9
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
def id: -> String
|
|
13
|
+
|
|
14
|
+
def id=: (String _) -> String
|
|
15
|
+
|
|
16
|
+
def participant_id: -> String
|
|
17
|
+
|
|
18
|
+
def participant_id=: (String _) -> String
|
|
19
|
+
|
|
20
|
+
def x_profile_id: -> String?
|
|
21
|
+
|
|
22
|
+
def x_profile_id=: (String _) -> String
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
id: String,
|
|
26
|
+
participant_id: String,
|
|
27
|
+
?x_profile_id: String,
|
|
28
|
+
?request_options: Sentdm::request_opts
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
participant_id: String,
|
|
34
|
+
x_profile_id: String,
|
|
35
|
+
request_options: Sentdm::RequestOptions
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type participant_update_params =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
participant_id: String,
|
|
8
|
+
muted: bool,
|
|
9
|
+
sandbox: bool,
|
|
10
|
+
idempotency_key: String,
|
|
11
|
+
x_profile_id: String
|
|
12
|
+
}
|
|
13
|
+
& Sentdm::Internal::Type::request_parameters
|
|
14
|
+
|
|
15
|
+
class ParticipantUpdateParams < Sentdm::Internal::Type::BaseModel
|
|
16
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
17
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
18
|
+
|
|
19
|
+
attr_accessor id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor participant_id: String
|
|
22
|
+
|
|
23
|
+
attr_reader muted: bool?
|
|
24
|
+
|
|
25
|
+
def muted=: (bool) -> bool
|
|
26
|
+
|
|
27
|
+
attr_reader sandbox: bool?
|
|
28
|
+
|
|
29
|
+
def sandbox=: (bool) -> bool
|
|
30
|
+
|
|
31
|
+
attr_reader idempotency_key: String?
|
|
32
|
+
|
|
33
|
+
def idempotency_key=: (String) -> String
|
|
34
|
+
|
|
35
|
+
attr_reader x_profile_id: String?
|
|
36
|
+
|
|
37
|
+
def x_profile_id=: (String) -> String
|
|
38
|
+
|
|
39
|
+
def initialize: (
|
|
40
|
+
id: String,
|
|
41
|
+
participant_id: String,
|
|
42
|
+
?muted: bool,
|
|
43
|
+
?sandbox: bool,
|
|
44
|
+
?idempotency_key: String,
|
|
45
|
+
?x_profile_id: String,
|
|
46
|
+
?request_options: Sentdm::request_opts
|
|
47
|
+
) -> void
|
|
48
|
+
|
|
49
|
+
def to_hash: -> {
|
|
50
|
+
id: String,
|
|
51
|
+
participant_id: String,
|
|
52
|
+
muted: bool,
|
|
53
|
+
sandbox: bool,
|
|
54
|
+
idempotency_key: String,
|
|
55
|
+
x_profile_id: String,
|
|
56
|
+
request_options: Sentdm::RequestOptions
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type calls_list =
|
|
4
|
+
{ calls: ::Array[Sentdm::Call], pagination: Sentdm::PaginationMeta }
|
|
5
|
+
|
|
6
|
+
class CallsList < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
attr_reader calls: ::Array[Sentdm::Call]?
|
|
8
|
+
|
|
9
|
+
def calls=: (::Array[Sentdm::Call]) -> ::Array[Sentdm::Call]
|
|
10
|
+
|
|
11
|
+
attr_reader pagination: Sentdm::PaginationMeta?
|
|
12
|
+
|
|
13
|
+
def pagination=: (Sentdm::PaginationMeta) -> Sentdm::PaginationMeta
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
?calls: ::Array[Sentdm::Call],
|
|
17
|
+
?pagination: Sentdm::PaginationMeta
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
calls: ::Array[Sentdm::Call],
|
|
22
|
+
pagination: Sentdm::PaginationMeta
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type api_response_of_list_of_voice_number =
|
|
5
|
+
{
|
|
6
|
+
data: ::Array[Sentdm::Channels::VoiceNumber]?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfListOfVoiceNumber < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: ::Array[Sentdm::Channels::VoiceNumber]?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: ::Array[Sentdm::Channels::VoiceNumber]?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: ::Array[Sentdm::Channels::VoiceNumber]?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type api_response_of_voice_callback_test =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Channels::VoiceCallbackTest?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfVoiceCallbackTest < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Channels::VoiceCallbackTest?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Channels::VoiceCallbackTest?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Channels::VoiceCallbackTest?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type api_response_of_voice_number =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Channels::VoiceNumber?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfVoiceNumber < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Channels::VoiceNumber?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Channels::VoiceNumber?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Channels::VoiceNumber?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type api_response_of_voice_number_created =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Channels::VoiceNumberCreated?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfVoiceNumberCreated < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Channels::VoiceNumberCreated?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Channels::VoiceNumberCreated?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Channels::VoiceNumberCreated?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type api_response_of_voice_secret =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Channels::VoiceSecret?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfVoiceSecret < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Channels::VoiceSecret?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Channels::VoiceSecret?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Channels::VoiceSecret?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type api_response_of_voice_token =
|
|
5
|
+
{
|
|
6
|
+
data: Sentdm::Channels::VoiceToken?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfVoiceToken < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Channels::VoiceToken?
|
|
14
|
+
|
|
15
|
+
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
|
+
|
|
17
|
+
attr_reader meta: Sentdm::APIMeta?
|
|
18
|
+
|
|
19
|
+
def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
|
|
20
|
+
|
|
21
|
+
attr_reader success: bool?
|
|
22
|
+
|
|
23
|
+
def success=: (bool) -> bool
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
?data: Sentdm::Channels::VoiceToken?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: Sentdm::Channels::VoiceToken?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type voice_callback_test =
|
|
5
|
+
{
|
|
6
|
+
answer: top?,
|
|
7
|
+
call_id: String,
|
|
8
|
+
error: Sentdm::Channels::VoiceCallbackTestErrorInfo?,
|
|
9
|
+
outcome: String,
|
|
10
|
+
request: Sentdm::Channels::VoiceCallbackTestRequestInfo?,
|
|
11
|
+
response: Sentdm::Channels::VoiceCallbackTestResponseInfo?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class VoiceCallbackTest < Sentdm::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor answer: top?
|
|
16
|
+
|
|
17
|
+
attr_reader call_id: String?
|
|
18
|
+
|
|
19
|
+
def call_id=: (String) -> String
|
|
20
|
+
|
|
21
|
+
attr_accessor error: Sentdm::Channels::VoiceCallbackTestErrorInfo?
|
|
22
|
+
|
|
23
|
+
attr_reader outcome: String?
|
|
24
|
+
|
|
25
|
+
def outcome=: (String) -> String
|
|
26
|
+
|
|
27
|
+
attr_accessor request: Sentdm::Channels::VoiceCallbackTestRequestInfo?
|
|
28
|
+
|
|
29
|
+
attr_accessor response: Sentdm::Channels::VoiceCallbackTestResponseInfo?
|
|
30
|
+
|
|
31
|
+
def initialize: (
|
|
32
|
+
?answer: top?,
|
|
33
|
+
?call_id: String,
|
|
34
|
+
?error: Sentdm::Channels::VoiceCallbackTestErrorInfo?,
|
|
35
|
+
?outcome: String,
|
|
36
|
+
?request: Sentdm::Channels::VoiceCallbackTestRequestInfo?,
|
|
37
|
+
?response: Sentdm::Channels::VoiceCallbackTestResponseInfo?
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
answer: top?,
|
|
42
|
+
call_id: String,
|
|
43
|
+
error: Sentdm::Channels::VoiceCallbackTestErrorInfo?,
|
|
44
|
+
outcome: String,
|
|
45
|
+
request: Sentdm::Channels::VoiceCallbackTestRequestInfo?,
|
|
46
|
+
response: Sentdm::Channels::VoiceCallbackTestResponseInfo?
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type voice_callback_test_error_info =
|
|
5
|
+
{ message: String, path: String?, reason: String }
|
|
6
|
+
|
|
7
|
+
class VoiceCallbackTestErrorInfo < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
attr_reader message: String?
|
|
9
|
+
|
|
10
|
+
def message=: (String) -> String
|
|
11
|
+
|
|
12
|
+
attr_accessor path: String?
|
|
13
|
+
|
|
14
|
+
attr_reader reason: String?
|
|
15
|
+
|
|
16
|
+
def reason=: (String) -> String
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
?message: String,
|
|
20
|
+
?path: String?,
|
|
21
|
+
?reason: String
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> { message: String, path: String?, reason: String }
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type voice_callback_test_request_info =
|
|
5
|
+
{ body: String, headers: ::Hash[Symbol, String], url: String }
|
|
6
|
+
|
|
7
|
+
class VoiceCallbackTestRequestInfo < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
attr_reader body: String?
|
|
9
|
+
|
|
10
|
+
def body=: (String) -> String
|
|
11
|
+
|
|
12
|
+
attr_reader headers: ::Hash[Symbol, String]?
|
|
13
|
+
|
|
14
|
+
def headers=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
15
|
+
|
|
16
|
+
attr_reader url: String?
|
|
17
|
+
|
|
18
|
+
def url=: (String) -> String
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?body: String,
|
|
22
|
+
?headers: ::Hash[Symbol, String],
|
|
23
|
+
?url: String
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
body: String,
|
|
28
|
+
headers: ::Hash[Symbol, String],
|
|
29
|
+
url: String
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type voice_callback_test_response_info =
|
|
5
|
+
{ body: String?, status_code: Integer }
|
|
6
|
+
|
|
7
|
+
class VoiceCallbackTestResponseInfo < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor body: String?
|
|
9
|
+
|
|
10
|
+
attr_reader status_code: Integer?
|
|
11
|
+
|
|
12
|
+
def status_code=: (Integer) -> Integer
|
|
13
|
+
|
|
14
|
+
def initialize: (?body: String?, ?status_code: Integer) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> { body: String?, status_code: Integer }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type voice_create_params =
|
|
5
|
+
{
|
|
6
|
+
callback_url: String,
|
|
7
|
+
area_code: String?,
|
|
8
|
+
default_for_app_calls: bool?,
|
|
9
|
+
number: String?,
|
|
10
|
+
sandbox: bool,
|
|
11
|
+
idempotency_key: String,
|
|
12
|
+
x_profile_id: String
|
|
13
|
+
}
|
|
14
|
+
& Sentdm::Internal::Type::request_parameters
|
|
15
|
+
|
|
16
|
+
class VoiceCreateParams < Sentdm::Internal::Type::BaseModel
|
|
17
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_accessor callback_url: String
|
|
21
|
+
|
|
22
|
+
attr_accessor area_code: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor default_for_app_calls: bool?
|
|
25
|
+
|
|
26
|
+
attr_accessor number: String?
|
|
27
|
+
|
|
28
|
+
attr_reader sandbox: bool?
|
|
29
|
+
|
|
30
|
+
def sandbox=: (bool) -> bool
|
|
31
|
+
|
|
32
|
+
attr_reader idempotency_key: String?
|
|
33
|
+
|
|
34
|
+
def idempotency_key=: (String) -> String
|
|
35
|
+
|
|
36
|
+
attr_reader x_profile_id: String?
|
|
37
|
+
|
|
38
|
+
def x_profile_id=: (String) -> String
|
|
39
|
+
|
|
40
|
+
def initialize: (
|
|
41
|
+
callback_url: String,
|
|
42
|
+
?area_code: String?,
|
|
43
|
+
?default_for_app_calls: bool?,
|
|
44
|
+
?number: String?,
|
|
45
|
+
?sandbox: bool,
|
|
46
|
+
?idempotency_key: String,
|
|
47
|
+
?x_profile_id: String,
|
|
48
|
+
?request_options: Sentdm::request_opts
|
|
49
|
+
) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> {
|
|
52
|
+
callback_url: String,
|
|
53
|
+
area_code: String?,
|
|
54
|
+
default_for_app_calls: bool?,
|
|
55
|
+
number: String?,
|
|
56
|
+
sandbox: bool,
|
|
57
|
+
idempotency_key: String,
|
|
58
|
+
x_profile_id: String,
|
|
59
|
+
request_options: Sentdm::RequestOptions
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type voice_create_token_params =
|
|
5
|
+
{
|
|
6
|
+
identity: String,
|
|
7
|
+
number: String?,
|
|
8
|
+
sandbox: bool,
|
|
9
|
+
ttl: Integer?,
|
|
10
|
+
idempotency_key: String,
|
|
11
|
+
x_profile_id: String
|
|
12
|
+
}
|
|
13
|
+
& Sentdm::Internal::Type::request_parameters
|
|
14
|
+
|
|
15
|
+
class VoiceCreateTokenParams < Sentdm::Internal::Type::BaseModel
|
|
16
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
17
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
18
|
+
|
|
19
|
+
attr_reader identity: String?
|
|
20
|
+
|
|
21
|
+
def identity=: (String) -> String
|
|
22
|
+
|
|
23
|
+
attr_accessor number: String?
|
|
24
|
+
|
|
25
|
+
attr_reader sandbox: bool?
|
|
26
|
+
|
|
27
|
+
def sandbox=: (bool) -> bool
|
|
28
|
+
|
|
29
|
+
attr_accessor ttl: Integer?
|
|
30
|
+
|
|
31
|
+
attr_reader idempotency_key: String?
|
|
32
|
+
|
|
33
|
+
def idempotency_key=: (String) -> String
|
|
34
|
+
|
|
35
|
+
attr_reader x_profile_id: String?
|
|
36
|
+
|
|
37
|
+
def x_profile_id=: (String) -> String
|
|
38
|
+
|
|
39
|
+
def initialize: (
|
|
40
|
+
?identity: String,
|
|
41
|
+
?number: String?,
|
|
42
|
+
?sandbox: bool,
|
|
43
|
+
?ttl: Integer?,
|
|
44
|
+
?idempotency_key: String,
|
|
45
|
+
?x_profile_id: String,
|
|
46
|
+
?request_options: Sentdm::request_opts
|
|
47
|
+
) -> void
|
|
48
|
+
|
|
49
|
+
def to_hash: -> {
|
|
50
|
+
identity: String,
|
|
51
|
+
number: String?,
|
|
52
|
+
sandbox: bool,
|
|
53
|
+
ttl: Integer?,
|
|
54
|
+
idempotency_key: String,
|
|
55
|
+
x_profile_id: String,
|
|
56
|
+
request_options: Sentdm::RequestOptions
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Channels
|
|
4
|
+
type voice_list_params =
|
|
5
|
+
{ x_profile_id: String } & Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class VoiceListParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_reader x_profile_id: String?
|
|
12
|
+
|
|
13
|
+
def x_profile_id=: (String) -> String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
?x_profile_id: String,
|
|
17
|
+
?request_options: Sentdm::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
x_profile_id: String,
|
|
22
|
+
request_options: Sentdm::RequestOptions
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|