sentdm 0.34.0 → 0.36.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 (171) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +11 -9
  4. data/lib/sentdm/client.rb +30 -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 +134 -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/message_event_payload.rb +9 -4
  52. data/lib/sentdm/models/message_retrieve_activities_response.rb +7 -5
  53. data/lib/sentdm/models/webhook_list_events_response.rb +4 -173
  54. data/lib/sentdm/models.rb +36 -0
  55. data/lib/sentdm/resources/calls/participants.rb +231 -0
  56. data/lib/sentdm/resources/calls.rb +236 -0
  57. data/lib/sentdm/resources/channels/voice.rb +381 -0
  58. data/lib/sentdm/resources/channels.rb +45 -0
  59. data/lib/sentdm/resources/messages.rb +10 -4
  60. data/lib/sentdm/version.rb +1 -1
  61. data/lib/sentdm.rb +50 -0
  62. data/rbi/sentdm/client.rbi +28 -0
  63. data/rbi/sentdm/internal/calls_page.rbi +71 -0
  64. data/rbi/sentdm/models/api_response_of_call.rbi +74 -0
  65. data/rbi/sentdm/models/api_response_of_call_recordings.rbi +74 -0
  66. data/rbi/sentdm/models/api_response_of_calls_list.rbi +74 -0
  67. data/rbi/sentdm/models/call.rbi +179 -0
  68. data/rbi/sentdm/models/call_event.rbi +114 -0
  69. data/rbi/sentdm/models/call_event_payload.rbi +135 -0
  70. data/rbi/sentdm/models/call_hangup_params.rbi +59 -0
  71. data/rbi/sentdm/models/call_list_params.rbi +112 -0
  72. data/rbi/sentdm/models/call_list_recordings_params.rbi +46 -0
  73. data/rbi/sentdm/models/call_party.rbi +41 -0
  74. data/rbi/sentdm/models/call_record_params.rbi +83 -0
  75. data/rbi/sentdm/models/call_recording.rbi +59 -0
  76. data/rbi/sentdm/models/call_recordings.rbi +39 -0
  77. data/rbi/sentdm/models/call_retrieve_params.rbi +46 -0
  78. data/rbi/sentdm/models/call_timeline_entry.rbi +40 -0
  79. data/rbi/sentdm/models/calls/api_response_of_list_of_call_participant.rbi +76 -0
  80. data/rbi/sentdm/models/calls/call_participant.rbi +92 -0
  81. data/rbi/sentdm/models/calls/call_participant_target.rbi +47 -0
  82. data/rbi/sentdm/models/calls/participant_add_params.rbi +98 -0
  83. data/rbi/sentdm/models/calls/participant_list_params.rbi +51 -0
  84. data/rbi/sentdm/models/calls/participant_remove_all_params.rbi +51 -0
  85. data/rbi/sentdm/models/calls/participant_remove_params.rbi +61 -0
  86. data/rbi/sentdm/models/calls/participant_update_params.rbi +94 -0
  87. data/rbi/sentdm/models/calls_list.rbi +47 -0
  88. data/rbi/sentdm/models/channels/api_response_of_list_of_voice_number.rbi +76 -0
  89. data/rbi/sentdm/models/channels/api_response_of_voice_callback_test.rbi +83 -0
  90. data/rbi/sentdm/models/channels/api_response_of_voice_number.rbi +81 -0
  91. data/rbi/sentdm/models/channels/api_response_of_voice_number_created.rbi +83 -0
  92. data/rbi/sentdm/models/channels/api_response_of_voice_secret.rbi +81 -0
  93. data/rbi/sentdm/models/channels/api_response_of_voice_token.rbi +81 -0
  94. data/rbi/sentdm/models/channels/voice_callback_test.rbi +126 -0
  95. data/rbi/sentdm/models/channels/voice_callback_test_error_info.rbi +65 -0
  96. data/rbi/sentdm/models/channels/voice_callback_test_request_info.rbi +66 -0
  97. data/rbi/sentdm/models/channels/voice_callback_test_response_info.rbi +48 -0
  98. data/rbi/sentdm/models/channels/voice_create_params.rbi +127 -0
  99. data/rbi/sentdm/models/channels/voice_create_token_params.rbi +104 -0
  100. data/rbi/sentdm/models/channels/voice_list_params.rbi +40 -0
  101. data/rbi/sentdm/models/channels/voice_number.rbi +105 -0
  102. data/rbi/sentdm/models/channels/voice_number_created.rbi +42 -0
  103. data/rbi/sentdm/models/channels/voice_retrieve_params.rbi +51 -0
  104. data/rbi/sentdm/models/channels/voice_rotate_secret_params.rbi +64 -0
  105. data/rbi/sentdm/models/channels/voice_secret.rbi +35 -0
  106. data/rbi/sentdm/models/channels/voice_test_params.rbi +61 -0
  107. data/rbi/sentdm/models/channels/voice_token.rbi +76 -0
  108. data/rbi/sentdm/models/channels/voice_update_params.rbi +158 -0
  109. data/rbi/sentdm/models/message_event_payload.rbi +16 -6
  110. data/rbi/sentdm/models/message_retrieve_activities_response.rbi +12 -8
  111. data/rbi/sentdm/models/webhook_list_events_response.rbi +3 -269
  112. data/rbi/sentdm/models.rbi +36 -0
  113. data/rbi/sentdm/resources/calls/participants.rbi +199 -0
  114. data/rbi/sentdm/resources/calls.rbi +207 -0
  115. data/rbi/sentdm/resources/channels/voice.rbi +371 -0
  116. data/rbi/sentdm/resources/channels.rbi +42 -0
  117. data/rbi/sentdm/resources/messages.rbi +10 -4
  118. data/sig/sentdm/client.rbs +4 -0
  119. data/sig/sentdm/internal/calls_page.rbs +41 -0
  120. data/sig/sentdm/models/api_response_of_call.rbs +39 -0
  121. data/sig/sentdm/models/api_response_of_call_recordings.rbs +39 -0
  122. data/sig/sentdm/models/api_response_of_calls_list.rbs +39 -0
  123. data/sig/sentdm/models/call.rbs +101 -0
  124. data/sig/sentdm/models/call_event.rbs +44 -0
  125. data/sig/sentdm/models/call_event_payload.rbs +68 -0
  126. data/sig/sentdm/models/call_hangup_params.rbs +38 -0
  127. data/sig/sentdm/models/call_list_params.rbs +67 -0
  128. data/sig/sentdm/models/call_list_recordings_params.rbs +30 -0
  129. data/sig/sentdm/models/call_party.rbs +17 -0
  130. data/sig/sentdm/models/call_record_params.rbs +54 -0
  131. data/sig/sentdm/models/call_recording.rbs +32 -0
  132. data/sig/sentdm/models/call_recordings.rbs +17 -0
  133. data/sig/sentdm/models/call_retrieve_params.rbs +30 -0
  134. data/sig/sentdm/models/call_timeline_entry.rbs +19 -0
  135. data/sig/sentdm/models/calls/api_response_of_list_of_call_participant.rbs +41 -0
  136. data/sig/sentdm/models/calls/call_participant.rbs +52 -0
  137. data/sig/sentdm/models/calls/call_participant_target.rbs +23 -0
  138. data/sig/sentdm/models/calls/participant_add_params.rbs +63 -0
  139. data/sig/sentdm/models/calls/participant_list_params.rbs +32 -0
  140. data/sig/sentdm/models/calls/participant_remove_all_params.rbs +34 -0
  141. data/sig/sentdm/models/calls/participant_remove_params.rbs +40 -0
  142. data/sig/sentdm/models/calls/participant_update_params.rbs +61 -0
  143. data/sig/sentdm/models/calls_list.rbs +26 -0
  144. data/sig/sentdm/models/channels/api_response_of_list_of_voice_number.rbs +41 -0
  145. data/sig/sentdm/models/channels/api_response_of_voice_callback_test.rbs +41 -0
  146. data/sig/sentdm/models/channels/api_response_of_voice_number.rbs +41 -0
  147. data/sig/sentdm/models/channels/api_response_of_voice_number_created.rbs +41 -0
  148. data/sig/sentdm/models/channels/api_response_of_voice_secret.rbs +41 -0
  149. data/sig/sentdm/models/channels/api_response_of_voice_token.rbs +41 -0
  150. data/sig/sentdm/models/channels/voice_callback_test.rbs +51 -0
  151. data/sig/sentdm/models/channels/voice_callback_test_error_info.rbs +28 -0
  152. data/sig/sentdm/models/channels/voice_callback_test_request_info.rbs +34 -0
  153. data/sig/sentdm/models/channels/voice_callback_test_response_info.rbs +20 -0
  154. data/sig/sentdm/models/channels/voice_create_params.rbs +64 -0
  155. data/sig/sentdm/models/channels/voice_create_token_params.rbs +61 -0
  156. data/sig/sentdm/models/channels/voice_list_params.rbs +27 -0
  157. data/sig/sentdm/models/channels/voice_number.rbs +57 -0
  158. data/sig/sentdm/models/channels/voice_number_created.rbs +17 -0
  159. data/sig/sentdm/models/channels/voice_retrieve_params.rbs +32 -0
  160. data/sig/sentdm/models/channels/voice_rotate_secret_params.rbs +40 -0
  161. data/sig/sentdm/models/channels/voice_secret.rbs +17 -0
  162. data/sig/sentdm/models/channels/voice_test_params.rbs +40 -0
  163. data/sig/sentdm/models/channels/voice_token.rbs +40 -0
  164. data/sig/sentdm/models/channels/voice_update_params.rbs +78 -0
  165. data/sig/sentdm/models/webhook_list_events_response.rbs +1 -107
  166. data/sig/sentdm/models.rbs +36 -0
  167. data/sig/sentdm/resources/calls/participants.rbs +50 -0
  168. data/sig/sentdm/resources/calls.rbs +50 -0
  169. data/sig/sentdm/resources/channels/voice.rbs +68 -0
  170. data/sig/sentdm/resources/channels.rbs +9 -0
  171. metadata +152 -2
@@ -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
@@ -0,0 +1,57 @@
1
+ module Sentdm
2
+ module Models
3
+ module Channels
4
+ type voice_number =
5
+ {
6
+ callback_url: String?,
7
+ created_at: Time,
8
+ default_for_app_calls: bool,
9
+ number: String,
10
+ status: String,
11
+ updated_at: Time
12
+ }
13
+
14
+ class VoiceNumber < Sentdm::Internal::Type::BaseModel
15
+ attr_accessor callback_url: String?
16
+
17
+ attr_reader created_at: Time?
18
+
19
+ def created_at=: (Time) -> Time
20
+
21
+ attr_reader default_for_app_calls: bool?
22
+
23
+ def default_for_app_calls=: (bool) -> bool
24
+
25
+ attr_reader number: String?
26
+
27
+ def number=: (String) -> String
28
+
29
+ attr_reader status: String?
30
+
31
+ def status=: (String) -> String
32
+
33
+ attr_reader updated_at: Time?
34
+
35
+ def updated_at=: (Time) -> Time
36
+
37
+ def initialize: (
38
+ ?callback_url: String?,
39
+ ?created_at: Time,
40
+ ?default_for_app_calls: bool,
41
+ ?number: String,
42
+ ?status: String,
43
+ ?updated_at: Time
44
+ ) -> void
45
+
46
+ def to_hash: -> {
47
+ callback_url: String?,
48
+ created_at: Time,
49
+ default_for_app_calls: bool,
50
+ number: String,
51
+ status: String,
52
+ updated_at: Time
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,17 @@
1
+ module Sentdm
2
+ module Models
3
+ module Channels
4
+ type voice_number_created = { callback_secret: String }
5
+
6
+ class VoiceNumberCreated < Sentdm::Models::Channels::VoiceNumber
7
+ def callback_secret: -> String?
8
+
9
+ def callback_secret=: (String _) -> String
10
+
11
+ def initialize: (?callback_secret: String) -> void
12
+
13
+ def to_hash: -> { callback_secret: String }
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,32 @@
1
+ module Sentdm
2
+ module Models
3
+ module Channels
4
+ type voice_retrieve_params =
5
+ { number: String, x_profile_id: String }
6
+ & Sentdm::Internal::Type::request_parameters
7
+
8
+ class VoiceRetrieveParams < Sentdm::Internal::Type::BaseModel
9
+ extend Sentdm::Internal::Type::RequestParameters::Converter
10
+ include Sentdm::Internal::Type::RequestParameters
11
+
12
+ attr_accessor number: String
13
+
14
+ attr_reader x_profile_id: String?
15
+
16
+ def x_profile_id=: (String) -> String
17
+
18
+ def initialize: (
19
+ number: String,
20
+ ?x_profile_id: String,
21
+ ?request_options: Sentdm::request_opts
22
+ ) -> void
23
+
24
+ def to_hash: -> {
25
+ number: String,
26
+ x_profile_id: String,
27
+ request_options: Sentdm::RequestOptions
28
+ }
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,40 @@
1
+ module Sentdm
2
+ module Models
3
+ module Channels
4
+ type voice_rotate_secret_params =
5
+ { number: String, idempotency_key: String, x_profile_id: String }
6
+ & Sentdm::Internal::Type::request_parameters
7
+
8
+ class VoiceRotateSecretParams < Sentdm::Models::MutationRequest
9
+ extend Sentdm::Internal::Type::RequestParameters::Converter
10
+ include Sentdm::Internal::Type::RequestParameters
11
+
12
+ def number: -> String
13
+
14
+ def number=: (String _) -> String
15
+
16
+ def idempotency_key: -> String?
17
+
18
+ def idempotency_key=: (String _) -> String
19
+
20
+ def x_profile_id: -> String?
21
+
22
+ def x_profile_id=: (String _) -> String
23
+
24
+ def initialize: (
25
+ number: String,
26
+ ?idempotency_key: String,
27
+ ?x_profile_id: String,
28
+ ?request_options: Sentdm::request_opts
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ number: String,
33
+ idempotency_key: String,
34
+ x_profile_id: String,
35
+ request_options: Sentdm::RequestOptions
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,17 @@
1
+ module Sentdm
2
+ module Models
3
+ module Channels
4
+ type voice_secret = { callback_secret: String }
5
+
6
+ class VoiceSecret < Sentdm::Internal::Type::BaseModel
7
+ attr_reader callback_secret: String?
8
+
9
+ def callback_secret=: (String) -> String
10
+
11
+ def initialize: (?callback_secret: String) -> void
12
+
13
+ def to_hash: -> { callback_secret: String }
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,40 @@
1
+ module Sentdm
2
+ module Models
3
+ module Channels
4
+ type voice_test_params =
5
+ { number: String, idempotency_key: String, x_profile_id: String }
6
+ & Sentdm::Internal::Type::request_parameters
7
+
8
+ class VoiceTestParams < Sentdm::Models::MutationRequest
9
+ extend Sentdm::Internal::Type::RequestParameters::Converter
10
+ include Sentdm::Internal::Type::RequestParameters
11
+
12
+ def number: -> String
13
+
14
+ def number=: (String _) -> String
15
+
16
+ def idempotency_key: -> String?
17
+
18
+ def idempotency_key=: (String _) -> String
19
+
20
+ def x_profile_id: -> String?
21
+
22
+ def x_profile_id=: (String _) -> String
23
+
24
+ def initialize: (
25
+ number: String,
26
+ ?idempotency_key: String,
27
+ ?x_profile_id: String,
28
+ ?request_options: Sentdm::request_opts
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ number: String,
33
+ idempotency_key: String,
34
+ x_profile_id: String,
35
+ request_options: Sentdm::RequestOptions
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,40 @@
1
+ module Sentdm
2
+ module Models
3
+ module Channels
4
+ type voice_token =
5
+ { token: String, expires_at: Time, identity: String, number: String }
6
+
7
+ class VoiceToken < Sentdm::Internal::Type::BaseModel
8
+ attr_reader token: String?
9
+
10
+ def token=: (String) -> String
11
+
12
+ attr_reader expires_at: Time?
13
+
14
+ def expires_at=: (Time) -> Time
15
+
16
+ attr_reader identity: String?
17
+
18
+ def identity=: (String) -> String
19
+
20
+ attr_reader number: String?
21
+
22
+ def number=: (String) -> String
23
+
24
+ def initialize: (
25
+ ?token: String,
26
+ ?expires_at: Time,
27
+ ?identity: String,
28
+ ?number: String
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ token: String,
33
+ expires_at: Time,
34
+ identity: String,
35
+ number: String
36
+ }
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,78 @@
1
+ module Sentdm
2
+ module Models
3
+ module Channels
4
+ type voice_update_params =
5
+ {
6
+ number: String,
7
+ callback_url: String?,
8
+ default_for_app_calls: bool?,
9
+ sandbox: bool,
10
+ status: Sentdm::Models::Channels::VoiceUpdateParams::status?,
11
+ idempotency_key: String,
12
+ x_profile_id: String
13
+ }
14
+ & Sentdm::Internal::Type::request_parameters
15
+
16
+ class VoiceUpdateParams < Sentdm::Internal::Type::BaseModel
17
+ extend Sentdm::Internal::Type::RequestParameters::Converter
18
+ include Sentdm::Internal::Type::RequestParameters
19
+
20
+ attr_accessor number: String
21
+
22
+ attr_accessor callback_url: String?
23
+
24
+ attr_accessor default_for_app_calls: bool?
25
+
26
+ attr_reader sandbox: bool?
27
+
28
+ def sandbox=: (bool) -> bool
29
+
30
+ attr_accessor status: Sentdm::Models::Channels::VoiceUpdateParams::status?
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
+ number: String,
42
+ ?callback_url: String?,
43
+ ?default_for_app_calls: bool?,
44
+ ?sandbox: bool,
45
+ ?status: Sentdm::Models::Channels::VoiceUpdateParams::status?,
46
+ ?idempotency_key: String,
47
+ ?x_profile_id: String,
48
+ ?request_options: Sentdm::request_opts
49
+ ) -> void
50
+
51
+ def to_hash: -> {
52
+ number: String,
53
+ callback_url: String?,
54
+ default_for_app_calls: bool?,
55
+ sandbox: bool,
56
+ status: Sentdm::Models::Channels::VoiceUpdateParams::status?,
57
+ idempotency_key: String,
58
+ x_profile_id: String,
59
+ request_options: Sentdm::RequestOptions
60
+ }
61
+
62
+ type status = :ACTIVE | :INACTIVE
63
+
64
+ module Status
65
+ extend Sentdm::Internal::Type::Enum
66
+
67
+ # Turns calls on for the number again. The callback URL and the signing secret it had are kept; send `callback_url` in the same call to replace the URL.
68
+ ACTIVE: :ACTIVE
69
+
70
+ # Turns calls off for the number. Refused while the number is the default line for app calls and other active voice numbers remain; move the default first. The callback URL and the secret stay on the number.
71
+ INACTIVE: :INACTIVE
72
+
73
+ def self?.values: -> ::Array[Sentdm::Models::Channels::VoiceUpdateParams::status]
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
@@ -87,7 +87,7 @@ module Sentdm
87
87
  | Sentdm::ChannelEvent
88
88
  | Sentdm::ContactEvent
89
89
  | Sentdm::Models::WebhookListEventsResponse::EventData::SentDmServicesCommonServicesWebhooksContractsWebhookEventOfLinkWebhookPayload
90
- | Sentdm::Models::WebhookListEventsResponse::EventData::SentDmServicesCommonServicesWebhooksContractsWebhookEventOfCallWebhookPayload
90
+ | Sentdm::CallEvent
91
91
 
92
92
  module EventData
93
93
  extend Sentdm::Internal::Type::Union
@@ -236,112 +236,6 @@ module Sentdm
236
236
  end
237
237
  end
238
238
 
239
- type sent_dm_services_common_services_webhooks_contracts_webhook_event_of_call_webhook_payload =
240
- {
241
- event: String?,
242
- field: String,
243
- payload: Sentdm::Models::WebhookListEventsResponse::EventData::SentDmServicesCommonServicesWebhooksContractsWebhookEventOfCallWebhookPayload::Payload?,
244
- request_id: String?,
245
- timestamp: String
246
- }
247
-
248
- class SentDmServicesCommonServicesWebhooksContractsWebhookEventOfCallWebhookPayload < Sentdm::Internal::Type::BaseModel
249
- attr_accessor event: String?
250
-
251
- attr_reader field: String?
252
-
253
- def field=: (String) -> String
254
-
255
- attr_accessor payload: Sentdm::Models::WebhookListEventsResponse::EventData::SentDmServicesCommonServicesWebhooksContractsWebhookEventOfCallWebhookPayload::Payload?
256
-
257
- attr_accessor request_id: String?
258
-
259
- attr_reader timestamp: String?
260
-
261
- def timestamp=: (String) -> String
262
-
263
- def initialize: (
264
- ?event: String?,
265
- ?field: String,
266
- ?payload: Sentdm::Models::WebhookListEventsResponse::EventData::SentDmServicesCommonServicesWebhooksContractsWebhookEventOfCallWebhookPayload::Payload?,
267
- ?request_id: String?,
268
- ?timestamp: String
269
- ) -> void
270
-
271
- def to_hash: -> {
272
- event: String?,
273
- field: String,
274
- payload: Sentdm::Models::WebhookListEventsResponse::EventData::SentDmServicesCommonServicesWebhooksContractsWebhookEventOfCallWebhookPayload::Payload?,
275
- request_id: String?,
276
- timestamp: String
277
- }
278
-
279
- type payload =
280
- {
281
- call_id: String,
282
- account_id: String,
283
- channel: String,
284
- duration_seconds: Integer?,
285
- number: String,
286
- price: Float?,
287
- reason: String?,
288
- recording_id: String?,
289
- updated_at: String
290
- }
291
-
292
- class Payload < Sentdm::Internal::Type::BaseModel
293
- attr_accessor call_id: String
294
-
295
- attr_reader account_id: String?
296
-
297
- def account_id=: (String) -> String
298
-
299
- attr_reader channel: String?
300
-
301
- def channel=: (String) -> String
302
-
303
- attr_accessor duration_seconds: Integer?
304
-
305
- attr_reader number: String?
306
-
307
- def number=: (String) -> String
308
-
309
- attr_accessor price: Float?
310
-
311
- attr_accessor reason: String?
312
-
313
- attr_accessor recording_id: String?
314
-
315
- attr_reader updated_at: String?
316
-
317
- def updated_at=: (String) -> String
318
-
319
- def initialize: (
320
- call_id: String,
321
- ?account_id: String,
322
- ?channel: String,
323
- ?duration_seconds: Integer?,
324
- ?number: String,
325
- ?price: Float?,
326
- ?reason: String?,
327
- ?recording_id: String?,
328
- ?updated_at: String
329
- ) -> void
330
-
331
- def to_hash: -> {
332
- call_id: String,
333
- account_id: String,
334
- channel: String,
335
- duration_seconds: Integer?,
336
- number: String,
337
- price: Float?,
338
- reason: String?,
339
- recording_id: String?,
340
- updated_at: String
341
- }
342
- end
343
- end
344
-
345
239
  def self?.variants: -> ::Array[Sentdm::Models::WebhookListEventsResponse::event_data]
346
240
  end
347
241
  end
@@ -1,6 +1,12 @@
1
1
  module Sentdm
2
2
  class APIMeta = Sentdm::Models::APIMeta
3
3
 
4
+ class APIResponseOfCall = Sentdm::Models::APIResponseOfCall
5
+
6
+ class APIResponseOfCallRecordings = Sentdm::Models::APIResponseOfCallRecordings
7
+
8
+ class APIResponseOfCallsList = Sentdm::Models::APIResponseOfCallsList
9
+
4
10
  class APIResponseOfContact = Sentdm::Models::APIResponseOfContact
5
11
 
6
12
  class APIResponseOfContactMessageSummary = Sentdm::Models::APIResponseOfContactMessageSummary
@@ -27,10 +33,40 @@ module Sentdm
27
33
 
28
34
  class BrandsBrandData = Sentdm::Models::BrandsBrandData
29
35
 
36
+ class Call = Sentdm::Models::Call
37
+
38
+ class CallEvent = Sentdm::Models::CallEvent
39
+
40
+ class CallEventPayload = Sentdm::Models::CallEventPayload
41
+
42
+ class CallHangupParams = Sentdm::Models::CallHangupParams
43
+
44
+ class CallListParams = Sentdm::Models::CallListParams
45
+
46
+ class CallListRecordingsParams = Sentdm::Models::CallListRecordingsParams
47
+
48
+ class CallParty = Sentdm::Models::CallParty
49
+
50
+ class CallRecording = Sentdm::Models::CallRecording
51
+
52
+ class CallRecordings = Sentdm::Models::CallRecordings
53
+
54
+ class CallRecordParams = Sentdm::Models::CallRecordParams
55
+
56
+ class CallRetrieveParams = Sentdm::Models::CallRetrieveParams
57
+
58
+ module Calls = Sentdm::Models::Calls
59
+
60
+ class CallsList = Sentdm::Models::CallsList
61
+
62
+ class CallTimelineEntry = Sentdm::Models::CallTimelineEntry
63
+
30
64
  class ChannelEvent = Sentdm::Models::ChannelEvent
31
65
 
32
66
  class ChannelEventPayload = Sentdm::Models::ChannelEventPayload
33
67
 
68
+ module Channels = Sentdm::Models::Channels
69
+
34
70
  class ContactCreateParams = Sentdm::Models::ContactCreateParams
35
71
 
36
72
  class ContactDeleteParams = Sentdm::Models::ContactDeleteParams