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.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +11 -9
  4. data/lib/sentdm/client.rb +25 -0
  5. data/lib/sentdm/internal/calls_page.rb +115 -0
  6. data/lib/sentdm/models/api_response_of_call.rb +43 -0
  7. data/lib/sentdm/models/api_response_of_call_recordings.rb +43 -0
  8. data/lib/sentdm/models/api_response_of_calls_list.rb +42 -0
  9. data/lib/sentdm/models/call.rb +133 -0
  10. data/lib/sentdm/models/call_event.rb +72 -0
  11. data/lib/sentdm/models/call_event_payload.rb +102 -0
  12. data/lib/sentdm/models/call_hangup_params.rb +32 -0
  13. data/lib/sentdm/models/call_list_params.rb +83 -0
  14. data/lib/sentdm/models/call_list_recordings_params.rb +26 -0
  15. data/lib/sentdm/models/call_party.rb +31 -0
  16. data/lib/sentdm/models/call_record_params.rb +55 -0
  17. data/lib/sentdm/models/call_recording.rb +38 -0
  18. data/lib/sentdm/models/call_recordings.rb +24 -0
  19. data/lib/sentdm/models/call_retrieve_params.rb +26 -0
  20. data/lib/sentdm/models/call_timeline_entry.rb +26 -0
  21. data/lib/sentdm/models/calls/api_response_of_list_of_call_participant.rb +45 -0
  22. data/lib/sentdm/models/calls/call_participant.rb +60 -0
  23. data/lib/sentdm/models/calls/call_participant_target.rb +30 -0
  24. data/lib/sentdm/models/calls/participant_add_params.rb +66 -0
  25. data/lib/sentdm/models/calls/participant_list_params.rb +28 -0
  26. data/lib/sentdm/models/calls/participant_remove_all_params.rb +28 -0
  27. data/lib/sentdm/models/calls/participant_remove_params.rb +34 -0
  28. data/lib/sentdm/models/calls/participant_update_params.rb +64 -0
  29. data/lib/sentdm/models/calls_list.rb +26 -0
  30. data/lib/sentdm/models/channels/api_response_of_list_of_voice_number.rb +45 -0
  31. data/lib/sentdm/models/channels/api_response_of_voice_callback_test.rb +45 -0
  32. data/lib/sentdm/models/channels/api_response_of_voice_number.rb +45 -0
  33. data/lib/sentdm/models/channels/api_response_of_voice_number_created.rb +45 -0
  34. data/lib/sentdm/models/channels/api_response_of_voice_secret.rb +45 -0
  35. data/lib/sentdm/models/channels/api_response_of_voice_token.rb +45 -0
  36. data/lib/sentdm/models/channels/voice_callback_test.rb +65 -0
  37. data/lib/sentdm/models/channels/voice_callback_test_error_info.rb +41 -0
  38. data/lib/sentdm/models/channels/voice_callback_test_request_info.rb +40 -0
  39. data/lib/sentdm/models/channels/voice_callback_test_response_info.rb +28 -0
  40. data/lib/sentdm/models/channels/voice_create_params.rb +86 -0
  41. data/lib/sentdm/models/channels/voice_create_token_params.rb +69 -0
  42. data/lib/sentdm/models/channels/voice_list_params.rb +22 -0
  43. data/lib/sentdm/models/channels/voice_number.rb +68 -0
  44. data/lib/sentdm/models/channels/voice_number_created.rb +26 -0
  45. data/lib/sentdm/models/channels/voice_retrieve_params.rb +28 -0
  46. data/lib/sentdm/models/channels/voice_rotate_secret_params.rb +34 -0
  47. data/lib/sentdm/models/channels/voice_secret.rb +25 -0
  48. data/lib/sentdm/models/channels/voice_test_params.rb +34 -0
  49. data/lib/sentdm/models/channels/voice_token.rb +44 -0
  50. data/lib/sentdm/models/channels/voice_update_params.rb +95 -0
  51. data/lib/sentdm/models/webhook_list_events_response.rb +4 -173
  52. data/lib/sentdm/models.rb +36 -0
  53. data/lib/sentdm/resources/calls/participants.rb +231 -0
  54. data/lib/sentdm/resources/calls.rb +235 -0
  55. data/lib/sentdm/resources/channels/voice.rb +381 -0
  56. data/lib/sentdm/resources/channels.rb +45 -0
  57. data/lib/sentdm/version.rb +1 -1
  58. data/lib/sentdm.rb +50 -0
  59. data/rbi/sentdm/client.rbi +23 -0
  60. data/rbi/sentdm/internal/calls_page.rbi +71 -0
  61. data/rbi/sentdm/models/api_response_of_call.rbi +74 -0
  62. data/rbi/sentdm/models/api_response_of_call_recordings.rbi +74 -0
  63. data/rbi/sentdm/models/api_response_of_calls_list.rbi +74 -0
  64. data/rbi/sentdm/models/call.rbi +177 -0
  65. data/rbi/sentdm/models/call_event.rbi +114 -0
  66. data/rbi/sentdm/models/call_event_payload.rbi +135 -0
  67. data/rbi/sentdm/models/call_hangup_params.rbi +59 -0
  68. data/rbi/sentdm/models/call_list_params.rbi +112 -0
  69. data/rbi/sentdm/models/call_list_recordings_params.rbi +46 -0
  70. data/rbi/sentdm/models/call_party.rbi +41 -0
  71. data/rbi/sentdm/models/call_record_params.rbi +83 -0
  72. data/rbi/sentdm/models/call_recording.rbi +59 -0
  73. data/rbi/sentdm/models/call_recordings.rbi +39 -0
  74. data/rbi/sentdm/models/call_retrieve_params.rbi +46 -0
  75. data/rbi/sentdm/models/call_timeline_entry.rbi +40 -0
  76. data/rbi/sentdm/models/calls/api_response_of_list_of_call_participant.rbi +76 -0
  77. data/rbi/sentdm/models/calls/call_participant.rbi +92 -0
  78. data/rbi/sentdm/models/calls/call_participant_target.rbi +47 -0
  79. data/rbi/sentdm/models/calls/participant_add_params.rbi +98 -0
  80. data/rbi/sentdm/models/calls/participant_list_params.rbi +51 -0
  81. data/rbi/sentdm/models/calls/participant_remove_all_params.rbi +51 -0
  82. data/rbi/sentdm/models/calls/participant_remove_params.rbi +61 -0
  83. data/rbi/sentdm/models/calls/participant_update_params.rbi +94 -0
  84. data/rbi/sentdm/models/calls_list.rbi +47 -0
  85. data/rbi/sentdm/models/channels/api_response_of_list_of_voice_number.rbi +76 -0
  86. data/rbi/sentdm/models/channels/api_response_of_voice_callback_test.rbi +83 -0
  87. data/rbi/sentdm/models/channels/api_response_of_voice_number.rbi +81 -0
  88. data/rbi/sentdm/models/channels/api_response_of_voice_number_created.rbi +83 -0
  89. data/rbi/sentdm/models/channels/api_response_of_voice_secret.rbi +81 -0
  90. data/rbi/sentdm/models/channels/api_response_of_voice_token.rbi +81 -0
  91. data/rbi/sentdm/models/channels/voice_callback_test.rbi +126 -0
  92. data/rbi/sentdm/models/channels/voice_callback_test_error_info.rbi +65 -0
  93. data/rbi/sentdm/models/channels/voice_callback_test_request_info.rbi +66 -0
  94. data/rbi/sentdm/models/channels/voice_callback_test_response_info.rbi +48 -0
  95. data/rbi/sentdm/models/channels/voice_create_params.rbi +127 -0
  96. data/rbi/sentdm/models/channels/voice_create_token_params.rbi +104 -0
  97. data/rbi/sentdm/models/channels/voice_list_params.rbi +40 -0
  98. data/rbi/sentdm/models/channels/voice_number.rbi +105 -0
  99. data/rbi/sentdm/models/channels/voice_number_created.rbi +42 -0
  100. data/rbi/sentdm/models/channels/voice_retrieve_params.rbi +51 -0
  101. data/rbi/sentdm/models/channels/voice_rotate_secret_params.rbi +64 -0
  102. data/rbi/sentdm/models/channels/voice_secret.rbi +35 -0
  103. data/rbi/sentdm/models/channels/voice_test_params.rbi +61 -0
  104. data/rbi/sentdm/models/channels/voice_token.rbi +76 -0
  105. data/rbi/sentdm/models/channels/voice_update_params.rbi +158 -0
  106. data/rbi/sentdm/models/webhook_list_events_response.rbi +3 -269
  107. data/rbi/sentdm/models.rbi +36 -0
  108. data/rbi/sentdm/resources/calls/participants.rbi +199 -0
  109. data/rbi/sentdm/resources/calls.rbi +206 -0
  110. data/rbi/sentdm/resources/channels/voice.rbi +371 -0
  111. data/rbi/sentdm/resources/channels.rbi +42 -0
  112. data/sig/sentdm/client.rbs +4 -0
  113. data/sig/sentdm/internal/calls_page.rbs +41 -0
  114. data/sig/sentdm/models/api_response_of_call.rbs +39 -0
  115. data/sig/sentdm/models/api_response_of_call_recordings.rbs +39 -0
  116. data/sig/sentdm/models/api_response_of_calls_list.rbs +39 -0
  117. data/sig/sentdm/models/call.rbs +101 -0
  118. data/sig/sentdm/models/call_event.rbs +44 -0
  119. data/sig/sentdm/models/call_event_payload.rbs +68 -0
  120. data/sig/sentdm/models/call_hangup_params.rbs +38 -0
  121. data/sig/sentdm/models/call_list_params.rbs +67 -0
  122. data/sig/sentdm/models/call_list_recordings_params.rbs +30 -0
  123. data/sig/sentdm/models/call_party.rbs +17 -0
  124. data/sig/sentdm/models/call_record_params.rbs +54 -0
  125. data/sig/sentdm/models/call_recording.rbs +32 -0
  126. data/sig/sentdm/models/call_recordings.rbs +17 -0
  127. data/sig/sentdm/models/call_retrieve_params.rbs +30 -0
  128. data/sig/sentdm/models/call_timeline_entry.rbs +19 -0
  129. data/sig/sentdm/models/calls/api_response_of_list_of_call_participant.rbs +41 -0
  130. data/sig/sentdm/models/calls/call_participant.rbs +52 -0
  131. data/sig/sentdm/models/calls/call_participant_target.rbs +23 -0
  132. data/sig/sentdm/models/calls/participant_add_params.rbs +63 -0
  133. data/sig/sentdm/models/calls/participant_list_params.rbs +32 -0
  134. data/sig/sentdm/models/calls/participant_remove_all_params.rbs +34 -0
  135. data/sig/sentdm/models/calls/participant_remove_params.rbs +40 -0
  136. data/sig/sentdm/models/calls/participant_update_params.rbs +61 -0
  137. data/sig/sentdm/models/calls_list.rbs +26 -0
  138. data/sig/sentdm/models/channels/api_response_of_list_of_voice_number.rbs +41 -0
  139. data/sig/sentdm/models/channels/api_response_of_voice_callback_test.rbs +41 -0
  140. data/sig/sentdm/models/channels/api_response_of_voice_number.rbs +41 -0
  141. data/sig/sentdm/models/channels/api_response_of_voice_number_created.rbs +41 -0
  142. data/sig/sentdm/models/channels/api_response_of_voice_secret.rbs +41 -0
  143. data/sig/sentdm/models/channels/api_response_of_voice_token.rbs +41 -0
  144. data/sig/sentdm/models/channels/voice_callback_test.rbs +51 -0
  145. data/sig/sentdm/models/channels/voice_callback_test_error_info.rbs +28 -0
  146. data/sig/sentdm/models/channels/voice_callback_test_request_info.rbs +34 -0
  147. data/sig/sentdm/models/channels/voice_callback_test_response_info.rbs +20 -0
  148. data/sig/sentdm/models/channels/voice_create_params.rbs +64 -0
  149. data/sig/sentdm/models/channels/voice_create_token_params.rbs +61 -0
  150. data/sig/sentdm/models/channels/voice_list_params.rbs +27 -0
  151. data/sig/sentdm/models/channels/voice_number.rbs +57 -0
  152. data/sig/sentdm/models/channels/voice_number_created.rbs +17 -0
  153. data/sig/sentdm/models/channels/voice_retrieve_params.rbs +32 -0
  154. data/sig/sentdm/models/channels/voice_rotate_secret_params.rbs +40 -0
  155. data/sig/sentdm/models/channels/voice_secret.rbs +17 -0
  156. data/sig/sentdm/models/channels/voice_test_params.rbs +40 -0
  157. data/sig/sentdm/models/channels/voice_token.rbs +40 -0
  158. data/sig/sentdm/models/channels/voice_update_params.rbs +78 -0
  159. data/sig/sentdm/models/webhook_list_events_response.rbs +1 -107
  160. data/sig/sentdm/models.rbs +36 -0
  161. data/sig/sentdm/resources/calls/participants.rbs +50 -0
  162. data/sig/sentdm/resources/calls.rbs +50 -0
  163. data/sig/sentdm/resources/channels/voice.rbs +68 -0
  164. data/sig/sentdm/resources/channels.rbs +9 -0
  165. 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