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,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
@@ -0,0 +1,50 @@
1
+ module Sentdm
2
+ module Resources
3
+ class Calls
4
+ class Participants
5
+ def update: (
6
+ String participant_id,
7
+ id: String,
8
+ ?muted: bool,
9
+ ?sandbox: bool,
10
+ ?idempotency_key: String,
11
+ ?x_profile_id: String,
12
+ ?request_options: Sentdm::request_opts
13
+ ) -> nil
14
+
15
+ def list: (
16
+ String id,
17
+ ?x_profile_id: String,
18
+ ?request_options: Sentdm::request_opts
19
+ ) -> Sentdm::Calls::APIResponseOfListOfCallParticipant
20
+
21
+ def add: (
22
+ String id,
23
+ ?caller_id: String?,
24
+ ?sandbox: bool,
25
+ ?to: Sentdm::Calls::CallParticipantTarget,
26
+ ?idempotency_key: String,
27
+ ?x_profile_id: String,
28
+ ?request_options: Sentdm::request_opts
29
+ ) -> Sentdm::APIResponseOfCall
30
+
31
+ def remove: (
32
+ String participant_id,
33
+ id: String,
34
+ ?sandbox: bool,
35
+ ?x_profile_id: String,
36
+ ?request_options: Sentdm::request_opts
37
+ ) -> nil
38
+
39
+ def remove_all: (
40
+ String id,
41
+ ?sandbox: bool,
42
+ ?x_profile_id: String,
43
+ ?request_options: Sentdm::request_opts
44
+ ) -> nil
45
+
46
+ def initialize: (client: Sentdm::Client) -> void
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,50 @@
1
+ module Sentdm
2
+ module Resources
3
+ class Calls
4
+ attr_reader participants: Sentdm::Resources::Calls::Participants
5
+
6
+ def retrieve: (
7
+ String id,
8
+ ?x_profile_id: String,
9
+ ?request_options: Sentdm::request_opts
10
+ ) -> Sentdm::APIResponseOfCall
11
+
12
+ def list: (
13
+ ?direction: String?,
14
+ ?from: Time?,
15
+ ?number: String?,
16
+ ?page: Integer,
17
+ ?page_size: Integer,
18
+ ?status: String?,
19
+ ?to: Time?,
20
+ ?x_profile_id: String,
21
+ ?request_options: Sentdm::request_opts
22
+ ) -> Sentdm::Internal::CallsPage[Sentdm::Call]
23
+
24
+ def hangup: (
25
+ String id,
26
+ ?sandbox: bool,
27
+ ?idempotency_key: String,
28
+ ?x_profile_id: String,
29
+ ?request_options: Sentdm::request_opts
30
+ ) -> nil
31
+
32
+ def list_recordings: (
33
+ String id,
34
+ ?x_profile_id: String,
35
+ ?request_options: Sentdm::request_opts
36
+ ) -> Sentdm::APIResponseOfCallRecordings
37
+
38
+ def record: (
39
+ String id,
40
+ ?action: String,
41
+ ?sandbox: bool,
42
+ ?idempotency_key: String,
43
+ ?x_profile_id: String,
44
+ ?request_options: Sentdm::request_opts
45
+ ) -> nil
46
+
47
+ def initialize: (client: Sentdm::Client) -> void
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,68 @@
1
+ module Sentdm
2
+ module Resources
3
+ class Channels
4
+ class Voice
5
+ def create: (
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
+ ?request_options: Sentdm::request_opts
14
+ ) -> Sentdm::Channels::APIResponseOfVoiceNumberCreated
15
+
16
+ def retrieve: (
17
+ String number,
18
+ ?x_profile_id: String,
19
+ ?request_options: Sentdm::request_opts
20
+ ) -> Sentdm::Channels::APIResponseOfVoiceNumber
21
+
22
+ def update: (
23
+ String number,
24
+ ?callback_url: String?,
25
+ ?default_for_app_calls: bool?,
26
+ ?sandbox: bool,
27
+ ?status: Sentdm::Models::Channels::VoiceUpdateParams::status?,
28
+ ?idempotency_key: String,
29
+ ?x_profile_id: String,
30
+ ?request_options: Sentdm::request_opts
31
+ ) -> Sentdm::Channels::APIResponseOfVoiceNumber
32
+
33
+ def list: (
34
+ ?x_profile_id: String,
35
+ ?request_options: Sentdm::request_opts
36
+ ) -> Sentdm::Channels::APIResponseOfListOfVoiceNumber
37
+
38
+ def create_token: (
39
+ ?identity: String,
40
+ ?number: String?,
41
+ ?sandbox: bool,
42
+ ?ttl: Integer?,
43
+ ?idempotency_key: String,
44
+ ?x_profile_id: String,
45
+ ?request_options: Sentdm::request_opts
46
+ ) -> Sentdm::Channels::APIResponseOfVoiceToken
47
+
48
+ def rotate_secret: (
49
+ String number,
50
+ ?sandbox: bool,
51
+ ?idempotency_key: String,
52
+ ?x_profile_id: String,
53
+ ?request_options: Sentdm::request_opts
54
+ ) -> Sentdm::Channels::APIResponseOfVoiceSecret
55
+
56
+ def test_: (
57
+ String number,
58
+ ?sandbox: bool,
59
+ ?idempotency_key: String,
60
+ ?x_profile_id: String,
61
+ ?request_options: Sentdm::request_opts
62
+ ) -> Sentdm::Channels::APIResponseOfVoiceCallbackTest
63
+
64
+ def initialize: (client: Sentdm::Client) -> void
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,9 @@
1
+ module Sentdm
2
+ module Resources
3
+ class Channels
4
+ attr_reader voice: Sentdm::Resources::Channels::Voice
5
+
6
+ def initialize: (client: Sentdm::Client) -> void
7
+ end
8
+ end
9
+ end