sentdm 0.38.0 → 0.39.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.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/sentdm/client.rb +3 -20
  5. data/lib/sentdm/models/call_event_payload.rb +4 -3
  6. data/lib/sentdm/models/message_send_params.rb +8 -1
  7. data/lib/sentdm/models/template.rb +6 -5
  8. data/lib/sentdm/models/template_body.rb +8 -8
  9. data/lib/sentdm/models/{calls/api_response_of_list_of_call_participant.rb → voice/api_response_of_call.rb} +7 -7
  10. data/lib/sentdm/models/voice/api_response_of_call_recordings.rb +45 -0
  11. data/lib/sentdm/models/voice/api_response_of_calls_list.rb +44 -0
  12. data/lib/sentdm/models/{channels → voice}/api_response_of_voice_token.rb +5 -5
  13. data/lib/sentdm/models/voice/call.rb +149 -0
  14. data/lib/sentdm/models/{calls/participant_remove_params.rb → voice/call_hangup_params.rb} +8 -8
  15. data/lib/sentdm/models/voice/call_list_params.rb +85 -0
  16. data/lib/sentdm/models/{calls/participant_remove_all_params.rb → voice/call_list_recordings_params.rb} +3 -3
  17. data/lib/sentdm/models/voice/call_party.rb +33 -0
  18. data/lib/sentdm/models/{calls/participant_update_params.rb → voice/call_record_params.rb} +10 -17
  19. data/lib/sentdm/models/voice/call_recording.rb +40 -0
  20. data/lib/sentdm/models/voice/call_recordings.rb +26 -0
  21. data/lib/sentdm/models/{calls/participant_list_params.rb → voice/call_retrieve_params.rb} +3 -3
  22. data/lib/sentdm/models/voice/call_timeline_entry.rb +28 -0
  23. data/lib/sentdm/models/voice/calls/api_response_of_list_of_call_participant.rb +51 -0
  24. data/lib/sentdm/models/voice/calls/call_participant.rb +62 -0
  25. data/lib/sentdm/models/voice/calls/call_participant_target.rb +32 -0
  26. data/lib/sentdm/models/voice/calls/participant_add_params.rb +68 -0
  27. data/lib/sentdm/models/voice/calls/participant_list_params.rb +30 -0
  28. data/lib/sentdm/models/voice/calls/participant_remove_all_params.rb +30 -0
  29. data/lib/sentdm/models/voice/calls/participant_remove_params.rb +36 -0
  30. data/lib/sentdm/models/voice/calls/participant_update_params.rb +66 -0
  31. data/lib/sentdm/models/voice/calls_list.rb +28 -0
  32. data/lib/sentdm/models/{channels/voice_create_token_params.rb → voice/token_create_params.rb} +4 -4
  33. data/lib/sentdm/models/{channels → voice}/voice_token.rb +9 -3
  34. data/lib/sentdm/models.rb +2 -30
  35. data/lib/sentdm/resources/channels/voice.rb +13 -56
  36. data/lib/sentdm/resources/channels.rb +2 -2
  37. data/lib/sentdm/resources/voice/calls/participants.rb +233 -0
  38. data/lib/sentdm/resources/voice/calls.rb +238 -0
  39. data/lib/sentdm/resources/voice/tokens.rb +75 -0
  40. data/lib/sentdm/resources/voice.rb +56 -0
  41. data/lib/sentdm/version.rb +1 -1
  42. data/lib/sentdm.rb +30 -28
  43. data/rbi/sentdm/client.rbi +2 -19
  44. data/rbi/sentdm/models/call_event_payload.rbi +6 -4
  45. data/rbi/sentdm/models/message_send_params.rbi +16 -2
  46. data/rbi/sentdm/models/template.rbi +12 -10
  47. data/rbi/sentdm/models/template_body.rbi +12 -12
  48. data/rbi/sentdm/models/voice/api_response_of_call.rbi +76 -0
  49. data/rbi/sentdm/models/voice/api_response_of_call_recordings.rbi +81 -0
  50. data/rbi/sentdm/models/{calls/api_response_of_list_of_call_participant.rbi → voice/api_response_of_calls_list.rbi} +12 -9
  51. data/rbi/sentdm/models/{channels → voice}/api_response_of_voice_token.rbi +6 -8
  52. data/rbi/sentdm/models/voice/call.rbi +196 -0
  53. data/rbi/sentdm/models/{calls/participant_remove_params.rbi → voice/call_hangup_params.rbi} +11 -11
  54. data/rbi/sentdm/models/voice/call_list_params.rbi +114 -0
  55. data/rbi/sentdm/models/{calls/participant_list_params.rbi → voice/call_list_recordings_params.rbi} +3 -3
  56. data/rbi/sentdm/models/voice/call_party.rbi +47 -0
  57. data/rbi/sentdm/models/{calls/participant_update_params.rbi → voice/call_record_params.rbi} +12 -21
  58. data/rbi/sentdm/models/voice/call_recording.rbi +63 -0
  59. data/rbi/sentdm/models/voice/call_recordings.rbi +49 -0
  60. data/rbi/sentdm/models/{calls/participant_remove_all_params.rbi → voice/call_retrieve_params.rbi} +3 -6
  61. data/rbi/sentdm/models/voice/call_timeline_entry.rbi +44 -0
  62. data/rbi/sentdm/models/voice/calls/api_response_of_list_of_call_participant.rbi +84 -0
  63. data/rbi/sentdm/models/voice/calls/call_participant.rbi +97 -0
  64. data/rbi/sentdm/models/voice/calls/call_participant_target.rbi +49 -0
  65. data/rbi/sentdm/models/voice/calls/participant_add_params.rbi +104 -0
  66. data/rbi/sentdm/models/voice/calls/participant_list_params.rbi +53 -0
  67. data/rbi/sentdm/models/voice/calls/participant_remove_all_params.rbi +53 -0
  68. data/rbi/sentdm/models/voice/calls/participant_remove_params.rbi +63 -0
  69. data/rbi/sentdm/models/voice/calls/participant_update_params.rbi +96 -0
  70. data/rbi/sentdm/models/voice/calls_list.rbi +54 -0
  71. data/rbi/sentdm/models/{channels/voice_create_token_params.rbi → voice/token_create_params.rbi} +3 -6
  72. data/rbi/sentdm/models/{channels → voice}/voice_token.rbi +8 -4
  73. data/rbi/sentdm/models.rbi +2 -30
  74. data/rbi/sentdm/resources/channels/voice.rbi +13 -56
  75. data/rbi/sentdm/resources/channels.rbi +2 -2
  76. data/rbi/sentdm/resources/messages.rbi +8 -1
  77. data/rbi/sentdm/resources/voice/calls/participants.rbi +201 -0
  78. data/rbi/sentdm/resources/voice/calls.rbi +209 -0
  79. data/rbi/sentdm/resources/voice/tokens.rbi +73 -0
  80. data/rbi/sentdm/resources/voice.rbi +52 -0
  81. data/sig/sentdm/client.rbs +1 -1
  82. data/sig/sentdm/models/{calls/api_response_of_list_of_call_participant.rbs → voice/api_response_of_call.rbs} +7 -7
  83. data/sig/sentdm/models/voice/api_response_of_call_recordings.rbs +41 -0
  84. data/sig/sentdm/models/voice/api_response_of_calls_list.rbs +41 -0
  85. data/sig/sentdm/models/{channels → voice}/api_response_of_voice_token.rbs +5 -5
  86. data/sig/sentdm/models/voice/call.rbs +110 -0
  87. data/sig/sentdm/models/{calls/participant_remove_params.rbs → voice/call_hangup_params.rbs} +8 -8
  88. data/sig/sentdm/models/voice/call_list_params.rbs +69 -0
  89. data/sig/sentdm/models/{calls/participant_remove_all_params.rbs → voice/call_list_recordings_params.rbs} +6 -8
  90. data/sig/sentdm/models/voice/call_party.rbs +19 -0
  91. data/sig/sentdm/models/{calls/participant_update_params.rbs → voice/call_record_params.rbs} +8 -13
  92. data/sig/sentdm/models/voice/call_recording.rbs +34 -0
  93. data/sig/sentdm/models/voice/call_recordings.rbs +22 -0
  94. data/sig/sentdm/models/{calls/participant_list_params.rbs → voice/call_retrieve_params.rbs} +3 -3
  95. data/sig/sentdm/models/voice/call_timeline_entry.rbs +21 -0
  96. data/sig/sentdm/models/voice/calls/api_response_of_list_of_call_participant.rbs +43 -0
  97. data/sig/sentdm/models/voice/calls/call_participant.rbs +54 -0
  98. data/sig/sentdm/models/voice/calls/call_participant_target.rbs +25 -0
  99. data/sig/sentdm/models/voice/calls/participant_add_params.rbs +65 -0
  100. data/sig/sentdm/models/voice/calls/participant_list_params.rbs +34 -0
  101. data/sig/sentdm/models/voice/calls/participant_remove_all_params.rbs +36 -0
  102. data/sig/sentdm/models/voice/calls/participant_remove_params.rbs +42 -0
  103. data/sig/sentdm/models/voice/calls/participant_update_params.rbs +63 -0
  104. data/sig/sentdm/models/voice/calls_list.rbs +33 -0
  105. data/sig/sentdm/models/{channels/voice_create_token_params.rbs → voice/token_create_params.rbs} +3 -3
  106. data/sig/sentdm/models/{channels → voice}/voice_token.rbs +3 -1
  107. data/sig/sentdm/models.rbs +2 -30
  108. data/sig/sentdm/resources/channels/voice.rbs +0 -10
  109. data/sig/sentdm/resources/voice/calls/participants.rbs +52 -0
  110. data/sig/sentdm/resources/{calls/participants.rbs → voice/calls.rbs} +23 -21
  111. data/sig/sentdm/resources/voice/tokens.rbs +19 -0
  112. data/sig/sentdm/resources/voice.rbs +11 -0
  113. metadata +89 -83
  114. data/lib/sentdm/models/api_response_of_call.rb +0 -43
  115. data/lib/sentdm/models/api_response_of_call_recordings.rb +0 -43
  116. data/lib/sentdm/models/api_response_of_calls_list.rb +0 -42
  117. data/lib/sentdm/models/call.rb +0 -134
  118. data/lib/sentdm/models/call_hangup_params.rb +0 -32
  119. data/lib/sentdm/models/call_list_params.rb +0 -83
  120. data/lib/sentdm/models/call_list_recordings_params.rb +0 -26
  121. data/lib/sentdm/models/call_party.rb +0 -31
  122. data/lib/sentdm/models/call_record_params.rb +0 -55
  123. data/lib/sentdm/models/call_recording.rb +0 -38
  124. data/lib/sentdm/models/call_recordings.rb +0 -24
  125. data/lib/sentdm/models/call_retrieve_params.rb +0 -26
  126. data/lib/sentdm/models/call_timeline_entry.rb +0 -26
  127. data/lib/sentdm/models/calls/call_participant.rb +0 -60
  128. data/lib/sentdm/models/calls/call_participant_target.rb +0 -30
  129. data/lib/sentdm/models/calls/participant_add_params.rb +0 -66
  130. data/lib/sentdm/models/calls_list.rb +0 -26
  131. data/lib/sentdm/resources/calls/participants.rb +0 -231
  132. data/lib/sentdm/resources/calls.rb +0 -236
  133. data/rbi/sentdm/models/api_response_of_call.rbi +0 -74
  134. data/rbi/sentdm/models/api_response_of_call_recordings.rbi +0 -74
  135. data/rbi/sentdm/models/api_response_of_calls_list.rbi +0 -74
  136. data/rbi/sentdm/models/call.rbi +0 -179
  137. data/rbi/sentdm/models/call_hangup_params.rbi +0 -59
  138. data/rbi/sentdm/models/call_list_params.rbi +0 -112
  139. data/rbi/sentdm/models/call_list_recordings_params.rbi +0 -46
  140. data/rbi/sentdm/models/call_party.rbi +0 -41
  141. data/rbi/sentdm/models/call_record_params.rbi +0 -83
  142. data/rbi/sentdm/models/call_recording.rbi +0 -59
  143. data/rbi/sentdm/models/call_recordings.rbi +0 -39
  144. data/rbi/sentdm/models/call_retrieve_params.rbi +0 -46
  145. data/rbi/sentdm/models/call_timeline_entry.rbi +0 -40
  146. data/rbi/sentdm/models/calls/call_participant.rbi +0 -92
  147. data/rbi/sentdm/models/calls/call_participant_target.rbi +0 -47
  148. data/rbi/sentdm/models/calls/participant_add_params.rbi +0 -98
  149. data/rbi/sentdm/models/calls_list.rbi +0 -47
  150. data/rbi/sentdm/resources/calls/participants.rbi +0 -199
  151. data/rbi/sentdm/resources/calls.rbi +0 -207
  152. data/sig/sentdm/models/api_response_of_call.rbs +0 -39
  153. data/sig/sentdm/models/api_response_of_call_recordings.rbs +0 -39
  154. data/sig/sentdm/models/api_response_of_calls_list.rbs +0 -39
  155. data/sig/sentdm/models/call.rbs +0 -101
  156. data/sig/sentdm/models/call_hangup_params.rbs +0 -38
  157. data/sig/sentdm/models/call_list_params.rbs +0 -67
  158. data/sig/sentdm/models/call_list_recordings_params.rbs +0 -30
  159. data/sig/sentdm/models/call_party.rbs +0 -17
  160. data/sig/sentdm/models/call_record_params.rbs +0 -54
  161. data/sig/sentdm/models/call_recording.rbs +0 -32
  162. data/sig/sentdm/models/call_recordings.rbs +0 -17
  163. data/sig/sentdm/models/call_retrieve_params.rbs +0 -30
  164. data/sig/sentdm/models/call_timeline_entry.rbs +0 -19
  165. data/sig/sentdm/models/calls/call_participant.rbs +0 -52
  166. data/sig/sentdm/models/calls/call_participant_target.rbs +0 -23
  167. data/sig/sentdm/models/calls/participant_add_params.rbs +0 -63
  168. data/sig/sentdm/models/calls_list.rbs +0 -26
  169. data/sig/sentdm/resources/calls.rbs +0 -50
@@ -0,0 +1,69 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ type call_list_params =
5
+ {
6
+ direction: String?,
7
+ from: Time?,
8
+ number: String?,
9
+ page: Integer,
10
+ page_size: Integer,
11
+ status: String?,
12
+ to: Time?,
13
+ x_profile_id: String
14
+ }
15
+ & Sentdm::Internal::Type::request_parameters
16
+
17
+ class CallListParams < Sentdm::Internal::Type::BaseModel
18
+ extend Sentdm::Internal::Type::RequestParameters::Converter
19
+ include Sentdm::Internal::Type::RequestParameters
20
+
21
+ attr_accessor direction: String?
22
+
23
+ attr_accessor from: Time?
24
+
25
+ attr_accessor number: String?
26
+
27
+ attr_reader page: Integer?
28
+
29
+ def page=: (Integer) -> Integer
30
+
31
+ attr_reader page_size: Integer?
32
+
33
+ def page_size=: (Integer) -> Integer
34
+
35
+ attr_accessor status: String?
36
+
37
+ attr_accessor to: Time?
38
+
39
+ attr_reader x_profile_id: String?
40
+
41
+ def x_profile_id=: (String) -> String
42
+
43
+ def initialize: (
44
+ ?direction: String?,
45
+ ?from: Time?,
46
+ ?number: String?,
47
+ ?page: Integer,
48
+ ?page_size: Integer,
49
+ ?status: String?,
50
+ ?to: Time?,
51
+ ?x_profile_id: String,
52
+ ?request_options: Sentdm::request_opts
53
+ ) -> void
54
+
55
+ def to_hash: -> {
56
+ direction: String?,
57
+ from: Time?,
58
+ number: String?,
59
+ page: Integer,
60
+ page_size: Integer,
61
+ status: String?,
62
+ to: Time?,
63
+ x_profile_id: String,
64
+ request_options: Sentdm::RequestOptions
65
+ }
66
+ end
67
+ end
68
+ end
69
+ end
@@ -1,21 +1,19 @@
1
1
  module Sentdm
2
2
  module Models
3
- module Calls
4
- type participant_remove_all_params =
3
+ module Voice
4
+ type call_list_recordings_params =
5
5
  { id: String, x_profile_id: String }
6
6
  & Sentdm::Internal::Type::request_parameters
7
7
 
8
- class ParticipantRemoveAllParams < Sentdm::Models::MutationRequest
8
+ class CallListRecordingsParams < Sentdm::Internal::Type::BaseModel
9
9
  extend Sentdm::Internal::Type::RequestParameters::Converter
10
10
  include Sentdm::Internal::Type::RequestParameters
11
11
 
12
- def id: -> String
12
+ attr_accessor id: String
13
13
 
14
- def id=: (String _) -> String
14
+ attr_reader x_profile_id: String?
15
15
 
16
- def x_profile_id: -> String?
17
-
18
- def x_profile_id=: (String _) -> String
16
+ def x_profile_id=: (String) -> String
19
17
 
20
18
  def initialize: (
21
19
  id: String,
@@ -0,0 +1,19 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ type call_party = { kind: String, value: String? }
5
+
6
+ class CallParty < Sentdm::Internal::Type::BaseModel
7
+ attr_reader kind: String?
8
+
9
+ def kind=: (String) -> String
10
+
11
+ attr_accessor value: String?
12
+
13
+ def initialize: (?kind: String, ?value: String?) -> void
14
+
15
+ def to_hash: -> { kind: String, value: String? }
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,28 +1,25 @@
1
1
  module Sentdm
2
2
  module Models
3
- module Calls
4
- type participant_update_params =
3
+ module Voice
4
+ type call_record_params =
5
5
  {
6
6
  id: String,
7
- participant_id: String,
8
- muted: bool,
7
+ action: String,
9
8
  sandbox: bool,
10
9
  idempotency_key: String,
11
10
  x_profile_id: String
12
11
  }
13
12
  & Sentdm::Internal::Type::request_parameters
14
13
 
15
- class ParticipantUpdateParams < Sentdm::Internal::Type::BaseModel
14
+ class CallRecordParams < Sentdm::Internal::Type::BaseModel
16
15
  extend Sentdm::Internal::Type::RequestParameters::Converter
17
16
  include Sentdm::Internal::Type::RequestParameters
18
17
 
19
18
  attr_accessor id: String
20
19
 
21
- attr_accessor participant_id: String
20
+ attr_reader action: String?
22
21
 
23
- attr_reader muted: bool?
24
-
25
- def muted=: (bool) -> bool
22
+ def action=: (String) -> String
26
23
 
27
24
  attr_reader sandbox: bool?
28
25
 
@@ -38,8 +35,7 @@ module Sentdm
38
35
 
39
36
  def initialize: (
40
37
  id: String,
41
- participant_id: String,
42
- ?muted: bool,
38
+ ?action: String,
43
39
  ?sandbox: bool,
44
40
  ?idempotency_key: String,
45
41
  ?x_profile_id: String,
@@ -48,8 +44,7 @@ module Sentdm
48
44
 
49
45
  def to_hash: -> {
50
46
  id: String,
51
- participant_id: String,
52
- muted: bool,
47
+ action: String,
53
48
  sandbox: bool,
54
49
  idempotency_key: String,
55
50
  x_profile_id: String,
@@ -0,0 +1,34 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ type call_recording =
5
+ { download_url: String, recording_id: String, url_expires_at: Time }
6
+
7
+ class CallRecording < Sentdm::Internal::Type::BaseModel
8
+ attr_reader download_url: String?
9
+
10
+ def download_url=: (String) -> String
11
+
12
+ attr_reader recording_id: String?
13
+
14
+ def recording_id=: (String) -> String
15
+
16
+ attr_reader url_expires_at: Time?
17
+
18
+ def url_expires_at=: (Time) -> Time
19
+
20
+ def initialize: (
21
+ ?download_url: String,
22
+ ?recording_id: String,
23
+ ?url_expires_at: Time
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ download_url: String,
28
+ recording_id: String,
29
+ url_expires_at: Time
30
+ }
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,22 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ type call_recordings =
5
+ { recordings: ::Array[Sentdm::Voice::CallRecording] }
6
+
7
+ class CallRecordings < Sentdm::Internal::Type::BaseModel
8
+ attr_reader recordings: ::Array[Sentdm::Voice::CallRecording]?
9
+
10
+ def recordings=: (
11
+ ::Array[Sentdm::Voice::CallRecording]
12
+ ) -> ::Array[Sentdm::Voice::CallRecording]
13
+
14
+ def initialize: (
15
+ ?recordings: ::Array[Sentdm::Voice::CallRecording]
16
+ ) -> void
17
+
18
+ def to_hash: -> { recordings: ::Array[Sentdm::Voice::CallRecording] }
19
+ end
20
+ end
21
+ end
22
+ end
@@ -1,11 +1,11 @@
1
1
  module Sentdm
2
2
  module Models
3
- module Calls
4
- type participant_list_params =
3
+ module Voice
4
+ type call_retrieve_params =
5
5
  { id: String, x_profile_id: String }
6
6
  & Sentdm::Internal::Type::request_parameters
7
7
 
8
- class ParticipantListParams < Sentdm::Internal::Type::BaseModel
8
+ class CallRetrieveParams < Sentdm::Internal::Type::BaseModel
9
9
  extend Sentdm::Internal::Type::RequestParameters::Converter
10
10
  include Sentdm::Internal::Type::RequestParameters
11
11
 
@@ -0,0 +1,21 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ type call_timeline_entry = { status: String, timestamp: Time }
5
+
6
+ class CallTimelineEntry < Sentdm::Internal::Type::BaseModel
7
+ attr_reader status: String?
8
+
9
+ def status=: (String) -> String
10
+
11
+ attr_reader timestamp: Time?
12
+
13
+ def timestamp=: (Time) -> Time
14
+
15
+ def initialize: (?status: String, ?timestamp: Time) -> void
16
+
17
+ def to_hash: -> { status: String, timestamp: Time }
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,43 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ module Calls
5
+ type api_response_of_list_of_call_participant =
6
+ {
7
+ data: ::Array[Sentdm::Voice::Calls::CallParticipant]?,
8
+ error: Sentdm::ErrorDetail?,
9
+ meta: Sentdm::APIMeta,
10
+ success: bool
11
+ }
12
+
13
+ class APIResponseOfListOfCallParticipant < Sentdm::Internal::Type::BaseModel
14
+ attr_accessor data: ::Array[Sentdm::Voice::Calls::CallParticipant]?
15
+
16
+ attr_accessor error: Sentdm::ErrorDetail?
17
+
18
+ attr_reader meta: Sentdm::APIMeta?
19
+
20
+ def meta=: (Sentdm::APIMeta) -> Sentdm::APIMeta
21
+
22
+ attr_reader success: bool?
23
+
24
+ def success=: (bool) -> bool
25
+
26
+ def initialize: (
27
+ ?data: ::Array[Sentdm::Voice::Calls::CallParticipant]?,
28
+ ?error: Sentdm::ErrorDetail?,
29
+ ?meta: Sentdm::APIMeta,
30
+ ?success: bool
31
+ ) -> void
32
+
33
+ def to_hash: -> {
34
+ data: ::Array[Sentdm::Voice::Calls::CallParticipant]?,
35
+ error: Sentdm::ErrorDetail?,
36
+ meta: Sentdm::APIMeta,
37
+ success: bool
38
+ }
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,54 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ class CallParticipant = Calls::CallParticipant
5
+
6
+ module Calls
7
+ type call_participant =
8
+ {
9
+ id: String,
10
+ duration_seconds: Integer,
11
+ kind: String,
12
+ muted: bool,
13
+ value: String?
14
+ }
15
+
16
+ class CallParticipant < Sentdm::Internal::Type::BaseModel
17
+ attr_reader id: String?
18
+
19
+ def id=: (String) -> String
20
+
21
+ attr_reader duration_seconds: Integer?
22
+
23
+ def duration_seconds=: (Integer) -> Integer
24
+
25
+ attr_reader kind: String?
26
+
27
+ def kind=: (String) -> String
28
+
29
+ attr_reader muted: bool?
30
+
31
+ def muted=: (bool) -> bool
32
+
33
+ attr_accessor value: String?
34
+
35
+ def initialize: (
36
+ ?id: String,
37
+ ?duration_seconds: Integer,
38
+ ?kind: String,
39
+ ?muted: bool,
40
+ ?value: String?
41
+ ) -> void
42
+
43
+ def to_hash: -> {
44
+ id: String,
45
+ duration_seconds: Integer,
46
+ kind: String,
47
+ muted: bool,
48
+ value: String?
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,25 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ class CallParticipantTarget = Calls::CallParticipantTarget
5
+
6
+ module Calls
7
+ type call_participant_target = { kind: String, value: String }
8
+
9
+ class CallParticipantTarget < Sentdm::Internal::Type::BaseModel
10
+ attr_reader kind: String?
11
+
12
+ def kind=: (String) -> String
13
+
14
+ attr_reader value: String?
15
+
16
+ def value=: (String) -> String
17
+
18
+ def initialize: (?kind: String, ?value: String) -> void
19
+
20
+ def to_hash: -> { kind: String, value: String }
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,65 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ module Calls
5
+ type participant_add_params =
6
+ {
7
+ id: String,
8
+ caller_id: String?,
9
+ sandbox: bool,
10
+ to: Sentdm::Voice::Calls::CallParticipantTarget,
11
+ idempotency_key: String,
12
+ x_profile_id: String
13
+ }
14
+ & Sentdm::Internal::Type::request_parameters
15
+
16
+ class ParticipantAddParams < Sentdm::Internal::Type::BaseModel
17
+ extend Sentdm::Internal::Type::RequestParameters::Converter
18
+ include Sentdm::Internal::Type::RequestParameters
19
+
20
+ attr_accessor id: String
21
+
22
+ attr_accessor caller_id: String?
23
+
24
+ attr_reader sandbox: bool?
25
+
26
+ def sandbox=: (bool) -> bool
27
+
28
+ attr_reader to: Sentdm::Voice::Calls::CallParticipantTarget?
29
+
30
+ def to=: (
31
+ Sentdm::Voice::Calls::CallParticipantTarget
32
+ ) -> Sentdm::Voice::Calls::CallParticipantTarget
33
+
34
+ attr_reader idempotency_key: String?
35
+
36
+ def idempotency_key=: (String) -> String
37
+
38
+ attr_reader x_profile_id: String?
39
+
40
+ def x_profile_id=: (String) -> String
41
+
42
+ def initialize: (
43
+ id: String,
44
+ ?caller_id: String?,
45
+ ?sandbox: bool,
46
+ ?to: Sentdm::Voice::Calls::CallParticipantTarget,
47
+ ?idempotency_key: String,
48
+ ?x_profile_id: String,
49
+ ?request_options: Sentdm::request_opts
50
+ ) -> void
51
+
52
+ def to_hash: -> {
53
+ id: String,
54
+ caller_id: String?,
55
+ sandbox: bool,
56
+ to: Sentdm::Voice::Calls::CallParticipantTarget,
57
+ idempotency_key: String,
58
+ x_profile_id: String,
59
+ request_options: Sentdm::RequestOptions
60
+ }
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,34 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ module Calls
5
+ type participant_list_params =
6
+ { id: String, x_profile_id: String }
7
+ & Sentdm::Internal::Type::request_parameters
8
+
9
+ class ParticipantListParams < Sentdm::Internal::Type::BaseModel
10
+ extend Sentdm::Internal::Type::RequestParameters::Converter
11
+ include Sentdm::Internal::Type::RequestParameters
12
+
13
+ attr_accessor id: String
14
+
15
+ attr_reader x_profile_id: String?
16
+
17
+ def x_profile_id=: (String) -> String
18
+
19
+ def initialize: (
20
+ id: String,
21
+ ?x_profile_id: String,
22
+ ?request_options: Sentdm::request_opts
23
+ ) -> void
24
+
25
+ def to_hash: -> {
26
+ id: String,
27
+ x_profile_id: String,
28
+ request_options: Sentdm::RequestOptions
29
+ }
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,36 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ module Calls
5
+ type participant_remove_all_params =
6
+ { id: String, x_profile_id: String }
7
+ & Sentdm::Internal::Type::request_parameters
8
+
9
+ class ParticipantRemoveAllParams < Sentdm::Models::MutationRequest
10
+ extend Sentdm::Internal::Type::RequestParameters::Converter
11
+ include Sentdm::Internal::Type::RequestParameters
12
+
13
+ def id: -> String
14
+
15
+ def id=: (String _) -> String
16
+
17
+ def x_profile_id: -> String?
18
+
19
+ def x_profile_id=: (String _) -> String
20
+
21
+ def initialize: (
22
+ id: String,
23
+ ?x_profile_id: String,
24
+ ?request_options: Sentdm::request_opts
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ id: String,
29
+ x_profile_id: String,
30
+ request_options: Sentdm::RequestOptions
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,42 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ module Calls
5
+ type participant_remove_params =
6
+ { id: String, participant_id: String, x_profile_id: String }
7
+ & Sentdm::Internal::Type::request_parameters
8
+
9
+ class ParticipantRemoveParams < Sentdm::Models::MutationRequest
10
+ extend Sentdm::Internal::Type::RequestParameters::Converter
11
+ include Sentdm::Internal::Type::RequestParameters
12
+
13
+ def id: -> String
14
+
15
+ def id=: (String _) -> String
16
+
17
+ def participant_id: -> String
18
+
19
+ def participant_id=: (String _) -> String
20
+
21
+ def x_profile_id: -> String?
22
+
23
+ def x_profile_id=: (String _) -> String
24
+
25
+ def initialize: (
26
+ id: String,
27
+ participant_id: String,
28
+ ?x_profile_id: String,
29
+ ?request_options: Sentdm::request_opts
30
+ ) -> void
31
+
32
+ def to_hash: -> {
33
+ id: String,
34
+ participant_id: String,
35
+ x_profile_id: String,
36
+ request_options: Sentdm::RequestOptions
37
+ }
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,63 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ module Calls
5
+ type participant_update_params =
6
+ {
7
+ id: String,
8
+ participant_id: String,
9
+ muted: bool,
10
+ sandbox: bool,
11
+ idempotency_key: String,
12
+ x_profile_id: String
13
+ }
14
+ & Sentdm::Internal::Type::request_parameters
15
+
16
+ class ParticipantUpdateParams < Sentdm::Internal::Type::BaseModel
17
+ extend Sentdm::Internal::Type::RequestParameters::Converter
18
+ include Sentdm::Internal::Type::RequestParameters
19
+
20
+ attr_accessor id: String
21
+
22
+ attr_accessor participant_id: String
23
+
24
+ attr_reader muted: bool?
25
+
26
+ def muted=: (bool) -> bool
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
+ id: String,
42
+ participant_id: String,
43
+ ?muted: bool,
44
+ ?sandbox: bool,
45
+ ?idempotency_key: String,
46
+ ?x_profile_id: String,
47
+ ?request_options: Sentdm::request_opts
48
+ ) -> void
49
+
50
+ def to_hash: -> {
51
+ id: String,
52
+ participant_id: String,
53
+ muted: bool,
54
+ sandbox: bool,
55
+ idempotency_key: String,
56
+ x_profile_id: String,
57
+ request_options: Sentdm::RequestOptions
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,33 @@
1
+ module Sentdm
2
+ module Models
3
+ module Voice
4
+ type calls_list =
5
+ {
6
+ calls: ::Array[Sentdm::Voice::Call],
7
+ pagination: Sentdm::PaginationMeta
8
+ }
9
+
10
+ class CallsList < Sentdm::Internal::Type::BaseModel
11
+ attr_reader calls: ::Array[Sentdm::Voice::Call]?
12
+
13
+ def calls=: (
14
+ ::Array[Sentdm::Voice::Call]
15
+ ) -> ::Array[Sentdm::Voice::Call]
16
+
17
+ attr_reader pagination: Sentdm::PaginationMeta?
18
+
19
+ def pagination=: (Sentdm::PaginationMeta) -> Sentdm::PaginationMeta
20
+
21
+ def initialize: (
22
+ ?calls: ::Array[Sentdm::Voice::Call],
23
+ ?pagination: Sentdm::PaginationMeta
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ calls: ::Array[Sentdm::Voice::Call],
28
+ pagination: Sentdm::PaginationMeta
29
+ }
30
+ end
31
+ end
32
+ end
33
+ end
@@ -1,7 +1,7 @@
1
1
  module Sentdm
2
2
  module Models
3
- module Channels
4
- type voice_create_token_params =
3
+ module Voice
4
+ type token_create_params =
5
5
  {
6
6
  identity: String,
7
7
  number: String?,
@@ -12,7 +12,7 @@ module Sentdm
12
12
  }
13
13
  & Sentdm::Internal::Type::request_parameters
14
14
 
15
- class VoiceCreateTokenParams < Sentdm::Internal::Type::BaseModel
15
+ class TokenCreateParams < Sentdm::Internal::Type::BaseModel
16
16
  extend Sentdm::Internal::Type::RequestParameters::Converter
17
17
  include Sentdm::Internal::Type::RequestParameters
18
18