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,44 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_event =
|
|
4
|
+
{
|
|
5
|
+
event: String?,
|
|
6
|
+
field: String,
|
|
7
|
+
payload: Sentdm::CallEventPayload?,
|
|
8
|
+
request_id: String?,
|
|
9
|
+
timestamp: String
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class CallEvent < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor event: String?
|
|
14
|
+
|
|
15
|
+
attr_reader field: String?
|
|
16
|
+
|
|
17
|
+
def field=: (String) -> String
|
|
18
|
+
|
|
19
|
+
attr_accessor payload: Sentdm::CallEventPayload?
|
|
20
|
+
|
|
21
|
+
attr_accessor request_id: String?
|
|
22
|
+
|
|
23
|
+
attr_reader timestamp: String?
|
|
24
|
+
|
|
25
|
+
def timestamp=: (String) -> String
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
?event: String?,
|
|
29
|
+
?field: String,
|
|
30
|
+
?payload: Sentdm::CallEventPayload?,
|
|
31
|
+
?request_id: String?,
|
|
32
|
+
?timestamp: String
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
event: String?,
|
|
37
|
+
field: String,
|
|
38
|
+
payload: Sentdm::CallEventPayload?,
|
|
39
|
+
request_id: String?,
|
|
40
|
+
timestamp: String
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_event_payload =
|
|
4
|
+
{
|
|
5
|
+
call_id: String,
|
|
6
|
+
account_id: String,
|
|
7
|
+
channel: String,
|
|
8
|
+
duration_seconds: Integer?,
|
|
9
|
+
number: String,
|
|
10
|
+
price: Float?,
|
|
11
|
+
reason: String?,
|
|
12
|
+
recording_id: String?,
|
|
13
|
+
updated_at: String
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class CallEventPayload < Sentdm::Internal::Type::BaseModel
|
|
17
|
+
attr_accessor call_id: String
|
|
18
|
+
|
|
19
|
+
attr_reader account_id: String?
|
|
20
|
+
|
|
21
|
+
def account_id=: (String) -> String
|
|
22
|
+
|
|
23
|
+
attr_reader channel: String?
|
|
24
|
+
|
|
25
|
+
def channel=: (String) -> String
|
|
26
|
+
|
|
27
|
+
attr_accessor duration_seconds: Integer?
|
|
28
|
+
|
|
29
|
+
attr_reader number: String?
|
|
30
|
+
|
|
31
|
+
def number=: (String) -> String
|
|
32
|
+
|
|
33
|
+
attr_accessor price: Float?
|
|
34
|
+
|
|
35
|
+
attr_accessor reason: String?
|
|
36
|
+
|
|
37
|
+
attr_accessor recording_id: String?
|
|
38
|
+
|
|
39
|
+
attr_reader updated_at: String?
|
|
40
|
+
|
|
41
|
+
def updated_at=: (String) -> String
|
|
42
|
+
|
|
43
|
+
def initialize: (
|
|
44
|
+
call_id: String,
|
|
45
|
+
?account_id: String,
|
|
46
|
+
?channel: String,
|
|
47
|
+
?duration_seconds: Integer?,
|
|
48
|
+
?number: String,
|
|
49
|
+
?price: Float?,
|
|
50
|
+
?reason: String?,
|
|
51
|
+
?recording_id: String?,
|
|
52
|
+
?updated_at: String
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
call_id: String,
|
|
57
|
+
account_id: String,
|
|
58
|
+
channel: String,
|
|
59
|
+
duration_seconds: Integer?,
|
|
60
|
+
number: String,
|
|
61
|
+
price: Float?,
|
|
62
|
+
reason: String?,
|
|
63
|
+
recording_id: String?,
|
|
64
|
+
updated_at: String
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_hangup_params =
|
|
4
|
+
{ id: String, idempotency_key: String, x_profile_id: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CallHangupParams < Sentdm::Models::MutationRequest
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
def id: -> String
|
|
12
|
+
|
|
13
|
+
def id=: (String _) -> String
|
|
14
|
+
|
|
15
|
+
def idempotency_key: -> String?
|
|
16
|
+
|
|
17
|
+
def idempotency_key=: (String _) -> String
|
|
18
|
+
|
|
19
|
+
def x_profile_id: -> String?
|
|
20
|
+
|
|
21
|
+
def x_profile_id=: (String _) -> String
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
?idempotency_key: String,
|
|
26
|
+
?x_profile_id: String,
|
|
27
|
+
?request_options: Sentdm::request_opts
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
id: String,
|
|
32
|
+
idempotency_key: String,
|
|
33
|
+
x_profile_id: String,
|
|
34
|
+
request_options: Sentdm::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_list_params =
|
|
4
|
+
{
|
|
5
|
+
direction: String?,
|
|
6
|
+
from: Time?,
|
|
7
|
+
number: String?,
|
|
8
|
+
page: Integer,
|
|
9
|
+
page_size: Integer,
|
|
10
|
+
status: String?,
|
|
11
|
+
to: Time?,
|
|
12
|
+
x_profile_id: String
|
|
13
|
+
}
|
|
14
|
+
& Sentdm::Internal::Type::request_parameters
|
|
15
|
+
|
|
16
|
+
class CallListParams < Sentdm::Internal::Type::BaseModel
|
|
17
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_accessor direction: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor from: Time?
|
|
23
|
+
|
|
24
|
+
attr_accessor number: String?
|
|
25
|
+
|
|
26
|
+
attr_reader page: Integer?
|
|
27
|
+
|
|
28
|
+
def page=: (Integer) -> Integer
|
|
29
|
+
|
|
30
|
+
attr_reader page_size: Integer?
|
|
31
|
+
|
|
32
|
+
def page_size=: (Integer) -> Integer
|
|
33
|
+
|
|
34
|
+
attr_accessor status: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor to: Time?
|
|
37
|
+
|
|
38
|
+
attr_reader x_profile_id: String?
|
|
39
|
+
|
|
40
|
+
def x_profile_id=: (String) -> String
|
|
41
|
+
|
|
42
|
+
def initialize: (
|
|
43
|
+
?direction: String?,
|
|
44
|
+
?from: Time?,
|
|
45
|
+
?number: String?,
|
|
46
|
+
?page: Integer,
|
|
47
|
+
?page_size: Integer,
|
|
48
|
+
?status: String?,
|
|
49
|
+
?to: Time?,
|
|
50
|
+
?x_profile_id: String,
|
|
51
|
+
?request_options: Sentdm::request_opts
|
|
52
|
+
) -> void
|
|
53
|
+
|
|
54
|
+
def to_hash: -> {
|
|
55
|
+
direction: String?,
|
|
56
|
+
from: Time?,
|
|
57
|
+
number: String?,
|
|
58
|
+
page: Integer,
|
|
59
|
+
page_size: Integer,
|
|
60
|
+
status: String?,
|
|
61
|
+
to: Time?,
|
|
62
|
+
x_profile_id: String,
|
|
63
|
+
request_options: Sentdm::RequestOptions
|
|
64
|
+
}
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_list_recordings_params =
|
|
4
|
+
{ id: String, x_profile_id: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CallListRecordingsParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_reader x_profile_id: String?
|
|
14
|
+
|
|
15
|
+
def x_profile_id=: (String) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
id: String,
|
|
19
|
+
?x_profile_id: String,
|
|
20
|
+
?request_options: Sentdm::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
25
|
+
x_profile_id: String,
|
|
26
|
+
request_options: Sentdm::RequestOptions
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_party = { kind: String, value: String? }
|
|
4
|
+
|
|
5
|
+
class CallParty < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
attr_reader kind: String?
|
|
7
|
+
|
|
8
|
+
def kind=: (String) -> String
|
|
9
|
+
|
|
10
|
+
attr_accessor value: String?
|
|
11
|
+
|
|
12
|
+
def initialize: (?kind: String, ?value: String?) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { kind: String, value: String? }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_record_params =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
action: String,
|
|
7
|
+
sandbox: bool,
|
|
8
|
+
idempotency_key: String,
|
|
9
|
+
x_profile_id: String
|
|
10
|
+
}
|
|
11
|
+
& Sentdm::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class CallRecordParams < Sentdm::Internal::Type::BaseModel
|
|
14
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_reader action: String?
|
|
20
|
+
|
|
21
|
+
def action=: (String) -> String
|
|
22
|
+
|
|
23
|
+
attr_reader sandbox: bool?
|
|
24
|
+
|
|
25
|
+
def sandbox=: (bool) -> bool
|
|
26
|
+
|
|
27
|
+
attr_reader idempotency_key: String?
|
|
28
|
+
|
|
29
|
+
def idempotency_key=: (String) -> String
|
|
30
|
+
|
|
31
|
+
attr_reader x_profile_id: String?
|
|
32
|
+
|
|
33
|
+
def x_profile_id=: (String) -> String
|
|
34
|
+
|
|
35
|
+
def initialize: (
|
|
36
|
+
id: String,
|
|
37
|
+
?action: String,
|
|
38
|
+
?sandbox: bool,
|
|
39
|
+
?idempotency_key: String,
|
|
40
|
+
?x_profile_id: String,
|
|
41
|
+
?request_options: Sentdm::request_opts
|
|
42
|
+
) -> void
|
|
43
|
+
|
|
44
|
+
def to_hash: -> {
|
|
45
|
+
id: String,
|
|
46
|
+
action: String,
|
|
47
|
+
sandbox: bool,
|
|
48
|
+
idempotency_key: String,
|
|
49
|
+
x_profile_id: String,
|
|
50
|
+
request_options: Sentdm::RequestOptions
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_recording =
|
|
4
|
+
{ download_url: String, recording_id: String, url_expires_at: Time }
|
|
5
|
+
|
|
6
|
+
class CallRecording < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
attr_reader download_url: String?
|
|
8
|
+
|
|
9
|
+
def download_url=: (String) -> String
|
|
10
|
+
|
|
11
|
+
attr_reader recording_id: String?
|
|
12
|
+
|
|
13
|
+
def recording_id=: (String) -> String
|
|
14
|
+
|
|
15
|
+
attr_reader url_expires_at: Time?
|
|
16
|
+
|
|
17
|
+
def url_expires_at=: (Time) -> Time
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
?download_url: String,
|
|
21
|
+
?recording_id: String,
|
|
22
|
+
?url_expires_at: Time
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
download_url: String,
|
|
27
|
+
recording_id: String,
|
|
28
|
+
url_expires_at: Time
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_recordings = { recordings: ::Array[Sentdm::CallRecording] }
|
|
4
|
+
|
|
5
|
+
class CallRecordings < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
attr_reader recordings: ::Array[Sentdm::CallRecording]?
|
|
7
|
+
|
|
8
|
+
def recordings=: (
|
|
9
|
+
::Array[Sentdm::CallRecording]
|
|
10
|
+
) -> ::Array[Sentdm::CallRecording]
|
|
11
|
+
|
|
12
|
+
def initialize: (?recordings: ::Array[Sentdm::CallRecording]) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { recordings: ::Array[Sentdm::CallRecording] }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_retrieve_params =
|
|
4
|
+
{ id: String, x_profile_id: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CallRetrieveParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_reader x_profile_id: String?
|
|
14
|
+
|
|
15
|
+
def x_profile_id=: (String) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
id: String,
|
|
19
|
+
?x_profile_id: String,
|
|
20
|
+
?request_options: Sentdm::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
25
|
+
x_profile_id: String,
|
|
26
|
+
request_options: Sentdm::RequestOptions
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type call_timeline_entry = { status: String, timestamp: Time }
|
|
4
|
+
|
|
5
|
+
class CallTimelineEntry < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
attr_reader status: String?
|
|
7
|
+
|
|
8
|
+
def status=: (String) -> String
|
|
9
|
+
|
|
10
|
+
attr_reader timestamp: Time?
|
|
11
|
+
|
|
12
|
+
def timestamp=: (Time) -> Time
|
|
13
|
+
|
|
14
|
+
def initialize: (?status: String, ?timestamp: Time) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> { status: String, timestamp: Time }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type api_response_of_list_of_call_participant =
|
|
5
|
+
{
|
|
6
|
+
data: ::Array[Sentdm::Calls::CallParticipant]?,
|
|
7
|
+
error: Sentdm::ErrorDetail?,
|
|
8
|
+
meta: Sentdm::APIMeta,
|
|
9
|
+
success: bool
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class APIResponseOfListOfCallParticipant < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: ::Array[Sentdm::Calls::CallParticipant]?
|
|
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::Calls::CallParticipant]?,
|
|
27
|
+
?error: Sentdm::ErrorDetail?,
|
|
28
|
+
?meta: Sentdm::APIMeta,
|
|
29
|
+
?success: bool
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
data: ::Array[Sentdm::Calls::CallParticipant]?,
|
|
34
|
+
error: Sentdm::ErrorDetail?,
|
|
35
|
+
meta: Sentdm::APIMeta,
|
|
36
|
+
success: bool
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
class CallParticipant = Calls::CallParticipant
|
|
4
|
+
|
|
5
|
+
module Calls
|
|
6
|
+
type call_participant =
|
|
7
|
+
{
|
|
8
|
+
id: String,
|
|
9
|
+
duration_seconds: Integer,
|
|
10
|
+
kind: String,
|
|
11
|
+
muted: bool,
|
|
12
|
+
value: String?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class CallParticipant < Sentdm::Internal::Type::BaseModel
|
|
16
|
+
attr_reader id: String?
|
|
17
|
+
|
|
18
|
+
def id=: (String) -> String
|
|
19
|
+
|
|
20
|
+
attr_reader duration_seconds: Integer?
|
|
21
|
+
|
|
22
|
+
def duration_seconds=: (Integer) -> Integer
|
|
23
|
+
|
|
24
|
+
attr_reader kind: String?
|
|
25
|
+
|
|
26
|
+
def kind=: (String) -> String
|
|
27
|
+
|
|
28
|
+
attr_reader muted: bool?
|
|
29
|
+
|
|
30
|
+
def muted=: (bool) -> bool
|
|
31
|
+
|
|
32
|
+
attr_accessor value: String?
|
|
33
|
+
|
|
34
|
+
def initialize: (
|
|
35
|
+
?id: String,
|
|
36
|
+
?duration_seconds: Integer,
|
|
37
|
+
?kind: String,
|
|
38
|
+
?muted: bool,
|
|
39
|
+
?value: String?
|
|
40
|
+
) -> void
|
|
41
|
+
|
|
42
|
+
def to_hash: -> {
|
|
43
|
+
id: String,
|
|
44
|
+
duration_seconds: Integer,
|
|
45
|
+
kind: String,
|
|
46
|
+
muted: bool,
|
|
47
|
+
value: String?
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
class CallParticipantTarget = Calls::CallParticipantTarget
|
|
4
|
+
|
|
5
|
+
module Calls
|
|
6
|
+
type call_participant_target = { kind: String, value: String }
|
|
7
|
+
|
|
8
|
+
class CallParticipantTarget < Sentdm::Internal::Type::BaseModel
|
|
9
|
+
attr_reader kind: String?
|
|
10
|
+
|
|
11
|
+
def kind=: (String) -> String
|
|
12
|
+
|
|
13
|
+
attr_reader value: String?
|
|
14
|
+
|
|
15
|
+
def value=: (String) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (?kind: String, ?value: String) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { kind: String, value: String }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type participant_add_params =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
caller_id: String?,
|
|
8
|
+
sandbox: bool,
|
|
9
|
+
to: Sentdm::Calls::CallParticipantTarget,
|
|
10
|
+
idempotency_key: String,
|
|
11
|
+
x_profile_id: String
|
|
12
|
+
}
|
|
13
|
+
& Sentdm::Internal::Type::request_parameters
|
|
14
|
+
|
|
15
|
+
class ParticipantAddParams < 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 caller_id: String?
|
|
22
|
+
|
|
23
|
+
attr_reader sandbox: bool?
|
|
24
|
+
|
|
25
|
+
def sandbox=: (bool) -> bool
|
|
26
|
+
|
|
27
|
+
attr_reader to: Sentdm::Calls::CallParticipantTarget?
|
|
28
|
+
|
|
29
|
+
def to=: (
|
|
30
|
+
Sentdm::Calls::CallParticipantTarget
|
|
31
|
+
) -> Sentdm::Calls::CallParticipantTarget
|
|
32
|
+
|
|
33
|
+
attr_reader idempotency_key: String?
|
|
34
|
+
|
|
35
|
+
def idempotency_key=: (String) -> String
|
|
36
|
+
|
|
37
|
+
attr_reader x_profile_id: String?
|
|
38
|
+
|
|
39
|
+
def x_profile_id=: (String) -> String
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
id: String,
|
|
43
|
+
?caller_id: String?,
|
|
44
|
+
?sandbox: bool,
|
|
45
|
+
?to: Sentdm::Calls::CallParticipantTarget,
|
|
46
|
+
?idempotency_key: String,
|
|
47
|
+
?x_profile_id: String,
|
|
48
|
+
?request_options: Sentdm::request_opts
|
|
49
|
+
) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> {
|
|
52
|
+
id: String,
|
|
53
|
+
caller_id: String?,
|
|
54
|
+
sandbox: bool,
|
|
55
|
+
to: Sentdm::Calls::CallParticipantTarget,
|
|
56
|
+
idempotency_key: String,
|
|
57
|
+
x_profile_id: String,
|
|
58
|
+
request_options: Sentdm::RequestOptions
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type participant_list_params =
|
|
5
|
+
{ id: String, x_profile_id: String }
|
|
6
|
+
& Sentdm::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class ParticipantListParams < Sentdm::Internal::Type::BaseModel
|
|
9
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_reader x_profile_id: String?
|
|
15
|
+
|
|
16
|
+
def x_profile_id=: (String) -> String
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
id: String,
|
|
20
|
+
?x_profile_id: String,
|
|
21
|
+
?request_options: Sentdm::request_opts
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> {
|
|
25
|
+
id: String,
|
|
26
|
+
x_profile_id: String,
|
|
27
|
+
request_options: Sentdm::RequestOptions
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Calls
|
|
4
|
+
type participant_remove_all_params =
|
|
5
|
+
{ id: String, x_profile_id: String }
|
|
6
|
+
& Sentdm::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class ParticipantRemoveAllParams < 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 x_profile_id: -> String?
|
|
17
|
+
|
|
18
|
+
def x_profile_id=: (String _) -> String
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
id: String,
|
|
22
|
+
?x_profile_id: String,
|
|
23
|
+
?request_options: Sentdm::request_opts
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
id: String,
|
|
28
|
+
x_profile_id: String,
|
|
29
|
+
request_options: Sentdm::RequestOptions
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|