sentdm 0.33.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/README.md +11 -9
- data/lib/sentdm/client.rb +25 -0
- data/lib/sentdm/internal/calls_page.rb +115 -0
- data/lib/sentdm/models/api_response_of_call.rb +43 -0
- data/lib/sentdm/models/api_response_of_call_recordings.rb +43 -0
- data/lib/sentdm/models/api_response_of_calls_list.rb +42 -0
- data/lib/sentdm/models/call.rb +133 -0
- data/lib/sentdm/models/call_event.rb +72 -0
- data/lib/sentdm/models/call_event_payload.rb +102 -0
- data/lib/sentdm/models/call_hangup_params.rb +32 -0
- data/lib/sentdm/models/call_list_params.rb +83 -0
- data/lib/sentdm/models/call_list_recordings_params.rb +26 -0
- data/lib/sentdm/models/call_party.rb +31 -0
- data/lib/sentdm/models/call_record_params.rb +55 -0
- data/lib/sentdm/models/call_recording.rb +38 -0
- data/lib/sentdm/models/call_recordings.rb +24 -0
- data/lib/sentdm/models/call_retrieve_params.rb +26 -0
- data/lib/sentdm/models/call_timeline_entry.rb +26 -0
- data/lib/sentdm/models/calls/api_response_of_list_of_call_participant.rb +45 -0
- data/lib/sentdm/models/calls/call_participant.rb +60 -0
- data/lib/sentdm/models/calls/call_participant_target.rb +30 -0
- data/lib/sentdm/models/calls/participant_add_params.rb +66 -0
- data/lib/sentdm/models/calls/participant_list_params.rb +28 -0
- data/lib/sentdm/models/calls/participant_remove_all_params.rb +28 -0
- data/lib/sentdm/models/calls/participant_remove_params.rb +34 -0
- data/lib/sentdm/models/calls/participant_update_params.rb +64 -0
- data/lib/sentdm/models/calls_list.rb +26 -0
- data/lib/sentdm/models/channel_event_payload.rb +16 -6
- data/lib/sentdm/models/channels/api_response_of_list_of_voice_number.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_voice_callback_test.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_voice_number.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_voice_number_created.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_voice_secret.rb +45 -0
- data/lib/sentdm/models/channels/api_response_of_voice_token.rb +45 -0
- data/lib/sentdm/models/channels/voice_callback_test.rb +65 -0
- data/lib/sentdm/models/channels/voice_callback_test_error_info.rb +41 -0
- data/lib/sentdm/models/channels/voice_callback_test_request_info.rb +40 -0
- data/lib/sentdm/models/channels/voice_callback_test_response_info.rb +28 -0
- data/lib/sentdm/models/channels/voice_create_params.rb +86 -0
- data/lib/sentdm/models/channels/voice_create_token_params.rb +69 -0
- data/lib/sentdm/models/channels/voice_list_params.rb +22 -0
- data/lib/sentdm/models/channels/voice_number.rb +68 -0
- data/lib/sentdm/models/channels/voice_number_created.rb +26 -0
- data/lib/sentdm/models/channels/voice_retrieve_params.rb +28 -0
- data/lib/sentdm/models/channels/voice_rotate_secret_params.rb +34 -0
- data/lib/sentdm/models/channels/voice_secret.rb +25 -0
- data/lib/sentdm/models/channels/voice_test_params.rb +34 -0
- data/lib/sentdm/models/channels/voice_token.rb +44 -0
- data/lib/sentdm/models/channels/voice_update_params.rb +95 -0
- data/lib/sentdm/models/conversation_messages_list.rb +100 -13
- data/lib/sentdm/models/inbound_message_event_payload.rb +70 -3
- data/lib/sentdm/models/me_retrieve_response.rb +21 -1
- data/lib/sentdm/models/message_event_payload.rb +23 -1
- data/lib/sentdm/models/message_retrieve_activities_response.rb +23 -1
- data/lib/sentdm/models/message_retrieve_status_response.rb +100 -13
- data/lib/sentdm/models/template_create_params.rb +11 -1
- data/lib/sentdm/models/webhook_create_params.rb +31 -1
- data/lib/sentdm/models/webhook_list_events_response.rb +7 -3
- data/lib/sentdm/models/webhook_update_params.rb +31 -1
- data/lib/sentdm/models.rb +36 -0
- data/lib/sentdm/resources/calls/participants.rb +231 -0
- data/lib/sentdm/resources/calls.rb +235 -0
- data/lib/sentdm/resources/channels/voice.rb +381 -0
- data/lib/sentdm/resources/channels.rb +45 -0
- data/lib/sentdm/resources/me.rb +5 -0
- data/lib/sentdm/resources/templates.rb +3 -1
- data/lib/sentdm/resources/webhooks.rb +9 -3
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +50 -0
- data/rbi/sentdm/client.rbi +23 -0
- data/rbi/sentdm/internal/calls_page.rbi +71 -0
- data/rbi/sentdm/models/api_response_of_call.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_call_recordings.rbi +74 -0
- data/rbi/sentdm/models/api_response_of_calls_list.rbi +74 -0
- data/rbi/sentdm/models/call.rbi +177 -0
- data/rbi/sentdm/models/call_event.rbi +114 -0
- data/rbi/sentdm/models/call_event_payload.rbi +135 -0
- data/rbi/sentdm/models/call_hangup_params.rbi +59 -0
- data/rbi/sentdm/models/call_list_params.rbi +112 -0
- data/rbi/sentdm/models/call_list_recordings_params.rbi +46 -0
- data/rbi/sentdm/models/call_party.rbi +41 -0
- data/rbi/sentdm/models/call_record_params.rbi +83 -0
- data/rbi/sentdm/models/call_recording.rbi +59 -0
- data/rbi/sentdm/models/call_recordings.rbi +39 -0
- data/rbi/sentdm/models/call_retrieve_params.rbi +46 -0
- data/rbi/sentdm/models/call_timeline_entry.rbi +40 -0
- data/rbi/sentdm/models/calls/api_response_of_list_of_call_participant.rbi +76 -0
- data/rbi/sentdm/models/calls/call_participant.rbi +92 -0
- data/rbi/sentdm/models/calls/call_participant_target.rbi +47 -0
- data/rbi/sentdm/models/calls/participant_add_params.rbi +98 -0
- data/rbi/sentdm/models/calls/participant_list_params.rbi +51 -0
- data/rbi/sentdm/models/calls/participant_remove_all_params.rbi +51 -0
- data/rbi/sentdm/models/calls/participant_remove_params.rbi +61 -0
- data/rbi/sentdm/models/calls/participant_update_params.rbi +94 -0
- data/rbi/sentdm/models/calls_list.rbi +47 -0
- data/rbi/sentdm/models/channel_event_payload.rbi +20 -8
- data/rbi/sentdm/models/channels/api_response_of_list_of_voice_number.rbi +76 -0
- data/rbi/sentdm/models/channels/api_response_of_voice_callback_test.rbi +83 -0
- data/rbi/sentdm/models/channels/api_response_of_voice_number.rbi +81 -0
- data/rbi/sentdm/models/channels/api_response_of_voice_number_created.rbi +83 -0
- data/rbi/sentdm/models/channels/api_response_of_voice_secret.rbi +81 -0
- data/rbi/sentdm/models/channels/api_response_of_voice_token.rbi +81 -0
- data/rbi/sentdm/models/channels/voice_callback_test.rbi +126 -0
- data/rbi/sentdm/models/channels/voice_callback_test_error_info.rbi +65 -0
- data/rbi/sentdm/models/channels/voice_callback_test_request_info.rbi +66 -0
- data/rbi/sentdm/models/channels/voice_callback_test_response_info.rbi +48 -0
- data/rbi/sentdm/models/channels/voice_create_params.rbi +127 -0
- data/rbi/sentdm/models/channels/voice_create_token_params.rbi +104 -0
- data/rbi/sentdm/models/channels/voice_list_params.rbi +40 -0
- data/rbi/sentdm/models/channels/voice_number.rbi +105 -0
- data/rbi/sentdm/models/channels/voice_number_created.rbi +42 -0
- data/rbi/sentdm/models/channels/voice_retrieve_params.rbi +51 -0
- data/rbi/sentdm/models/channels/voice_rotate_secret_params.rbi +64 -0
- data/rbi/sentdm/models/channels/voice_secret.rbi +35 -0
- data/rbi/sentdm/models/channels/voice_test_params.rbi +61 -0
- data/rbi/sentdm/models/channels/voice_token.rbi +76 -0
- data/rbi/sentdm/models/channels/voice_update_params.rbi +158 -0
- data/rbi/sentdm/models/conversation_messages_list.rbi +122 -19
- data/rbi/sentdm/models/inbound_message_event_payload.rbi +110 -2
- data/rbi/sentdm/models/me_retrieve_response.rbi +35 -0
- data/rbi/sentdm/models/message_event_payload.rbi +28 -0
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +26 -0
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +122 -19
- data/rbi/sentdm/models/template_create_params.rbi +15 -0
- data/rbi/sentdm/models/webhook_create_params.rbi +61 -0
- data/rbi/sentdm/models/webhook_list_events_response.rbi +6 -3
- data/rbi/sentdm/models/webhook_update_params.rbi +61 -0
- data/rbi/sentdm/models.rbi +36 -0
- data/rbi/sentdm/resources/calls/participants.rbi +199 -0
- data/rbi/sentdm/resources/calls.rbi +206 -0
- data/rbi/sentdm/resources/channels/voice.rbi +371 -0
- data/rbi/sentdm/resources/channels.rbi +42 -0
- data/rbi/sentdm/resources/me.rbi +5 -0
- data/rbi/sentdm/resources/templates.rbi +6 -0
- data/rbi/sentdm/resources/webhooks.rbi +15 -1
- data/sig/sentdm/client.rbs +4 -0
- data/sig/sentdm/internal/calls_page.rbs +41 -0
- data/sig/sentdm/models/api_response_of_call.rbs +39 -0
- data/sig/sentdm/models/api_response_of_call_recordings.rbs +39 -0
- data/sig/sentdm/models/api_response_of_calls_list.rbs +39 -0
- data/sig/sentdm/models/call.rbs +101 -0
- data/sig/sentdm/models/call_event.rbs +44 -0
- data/sig/sentdm/models/call_event_payload.rbs +68 -0
- data/sig/sentdm/models/call_hangup_params.rbs +38 -0
- data/sig/sentdm/models/call_list_params.rbs +67 -0
- data/sig/sentdm/models/call_list_recordings_params.rbs +30 -0
- data/sig/sentdm/models/call_party.rbs +17 -0
- data/sig/sentdm/models/call_record_params.rbs +54 -0
- data/sig/sentdm/models/call_recording.rbs +32 -0
- data/sig/sentdm/models/call_recordings.rbs +17 -0
- data/sig/sentdm/models/call_retrieve_params.rbs +30 -0
- data/sig/sentdm/models/call_timeline_entry.rbs +19 -0
- data/sig/sentdm/models/calls/api_response_of_list_of_call_participant.rbs +41 -0
- data/sig/sentdm/models/calls/call_participant.rbs +52 -0
- data/sig/sentdm/models/calls/call_participant_target.rbs +23 -0
- data/sig/sentdm/models/calls/participant_add_params.rbs +63 -0
- data/sig/sentdm/models/calls/participant_list_params.rbs +32 -0
- data/sig/sentdm/models/calls/participant_remove_all_params.rbs +34 -0
- data/sig/sentdm/models/calls/participant_remove_params.rbs +40 -0
- data/sig/sentdm/models/calls/participant_update_params.rbs +61 -0
- data/sig/sentdm/models/calls_list.rbs +26 -0
- data/sig/sentdm/models/channel_event_payload.rbs +5 -0
- data/sig/sentdm/models/channels/api_response_of_list_of_voice_number.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_voice_callback_test.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_voice_number.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_voice_number_created.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_voice_secret.rbs +41 -0
- data/sig/sentdm/models/channels/api_response_of_voice_token.rbs +41 -0
- data/sig/sentdm/models/channels/voice_callback_test.rbs +51 -0
- data/sig/sentdm/models/channels/voice_callback_test_error_info.rbs +28 -0
- data/sig/sentdm/models/channels/voice_callback_test_request_info.rbs +34 -0
- data/sig/sentdm/models/channels/voice_callback_test_response_info.rbs +20 -0
- data/sig/sentdm/models/channels/voice_create_params.rbs +64 -0
- data/sig/sentdm/models/channels/voice_create_token_params.rbs +61 -0
- data/sig/sentdm/models/channels/voice_list_params.rbs +27 -0
- data/sig/sentdm/models/channels/voice_number.rbs +57 -0
- data/sig/sentdm/models/channels/voice_number_created.rbs +17 -0
- data/sig/sentdm/models/channels/voice_retrieve_params.rbs +32 -0
- data/sig/sentdm/models/channels/voice_rotate_secret_params.rbs +40 -0
- data/sig/sentdm/models/channels/voice_secret.rbs +17 -0
- data/sig/sentdm/models/channels/voice_test_params.rbs +40 -0
- data/sig/sentdm/models/channels/voice_token.rbs +40 -0
- data/sig/sentdm/models/channels/voice_update_params.rbs +78 -0
- data/sig/sentdm/models/conversation_messages_list.rbs +56 -8
- data/sig/sentdm/models/inbound_message_event_payload.rbs +37 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +7 -0
- data/sig/sentdm/models/message_event_payload.rbs +10 -0
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +10 -0
- data/sig/sentdm/models/message_retrieve_status_response.rbs +56 -8
- data/sig/sentdm/models/template_create_params.rbs +7 -0
- data/sig/sentdm/models/webhook_create_params.rbs +29 -0
- data/sig/sentdm/models/webhook_list_events_response.rbs +1 -0
- data/sig/sentdm/models/webhook_update_params.rbs +29 -0
- data/sig/sentdm/models.rbs +36 -0
- data/sig/sentdm/resources/calls/participants.rbs +50 -0
- data/sig/sentdm/resources/calls.rbs +50 -0
- data/sig/sentdm/resources/channels/voice.rbs +68 -0
- data/sig/sentdm/resources/channels.rbs +9 -0
- data/sig/sentdm/resources/templates.rbs +1 -0
- data/sig/sentdm/resources/webhooks.rbs +2 -0
- metadata +152 -2
|
@@ -42,6 +42,7 @@ module Sentdm
|
|
|
42
42
|
created_at: Time,
|
|
43
43
|
description: String?,
|
|
44
44
|
email: String?,
|
|
45
|
+
enable_template_auto_creation_for_sp: bool,
|
|
45
46
|
icon: String?,
|
|
46
47
|
name: String,
|
|
47
48
|
organization_id: String?,
|
|
@@ -73,6 +74,10 @@ module Sentdm
|
|
|
73
74
|
|
|
74
75
|
attr_accessor email: String?
|
|
75
76
|
|
|
77
|
+
attr_reader enable_template_auto_creation_for_sp: bool?
|
|
78
|
+
|
|
79
|
+
def enable_template_auto_creation_for_sp=: (bool) -> bool
|
|
80
|
+
|
|
76
81
|
attr_accessor icon: String?
|
|
77
82
|
|
|
78
83
|
attr_reader name: String?
|
|
@@ -107,6 +112,7 @@ module Sentdm
|
|
|
107
112
|
?created_at: Time,
|
|
108
113
|
?description: String?,
|
|
109
114
|
?email: String?,
|
|
115
|
+
?enable_template_auto_creation_for_sp: bool,
|
|
110
116
|
?icon: String?,
|
|
111
117
|
?name: String,
|
|
112
118
|
?organization_id: String?,
|
|
@@ -125,6 +131,7 @@ module Sentdm
|
|
|
125
131
|
created_at: Time,
|
|
126
132
|
description: String?,
|
|
127
133
|
email: String?,
|
|
134
|
+
enable_template_auto_creation_for_sp: bool,
|
|
128
135
|
icon: String?,
|
|
129
136
|
name: String,
|
|
130
137
|
organization_id: String?,
|
|
@@ -9,6 +9,8 @@ module Sentdm
|
|
|
9
9
|
channel: String,
|
|
10
10
|
message_id: String,
|
|
11
11
|
outbound_number: String,
|
|
12
|
+
reason: String?,
|
|
13
|
+
reason_code: String?,
|
|
12
14
|
schedule_reason: String?,
|
|
13
15
|
scheduled_at: String?,
|
|
14
16
|
template_id: String?,
|
|
@@ -39,6 +41,10 @@ module Sentdm
|
|
|
39
41
|
|
|
40
42
|
def outbound_number=: (String) -> String
|
|
41
43
|
|
|
44
|
+
attr_accessor reason: String?
|
|
45
|
+
|
|
46
|
+
attr_accessor reason_code: String?
|
|
47
|
+
|
|
42
48
|
attr_accessor schedule_reason: String?
|
|
43
49
|
|
|
44
50
|
attr_accessor scheduled_at: String?
|
|
@@ -59,6 +65,8 @@ module Sentdm
|
|
|
59
65
|
?channel: String,
|
|
60
66
|
?message_id: String,
|
|
61
67
|
?outbound_number: String,
|
|
68
|
+
?reason: String?,
|
|
69
|
+
?reason_code: String?,
|
|
62
70
|
?schedule_reason: String?,
|
|
63
71
|
?scheduled_at: String?,
|
|
64
72
|
?template_id: String?,
|
|
@@ -74,6 +82,8 @@ module Sentdm
|
|
|
74
82
|
channel: String,
|
|
75
83
|
message_id: String,
|
|
76
84
|
outbound_number: String,
|
|
85
|
+
reason: String?,
|
|
86
|
+
reason_code: String?,
|
|
77
87
|
schedule_reason: String?,
|
|
78
88
|
scheduled_at: String?,
|
|
79
89
|
template_id: String?,
|
|
@@ -75,6 +75,8 @@ module Sentdm
|
|
|
75
75
|
description: String,
|
|
76
76
|
from: String?,
|
|
77
77
|
price: String?,
|
|
78
|
+
reason: String?,
|
|
79
|
+
reason_code: String?,
|
|
78
80
|
scheduled_at: Time?,
|
|
79
81
|
status: String,
|
|
80
82
|
timestamp: Time
|
|
@@ -91,6 +93,10 @@ module Sentdm
|
|
|
91
93
|
|
|
92
94
|
attr_accessor price: String?
|
|
93
95
|
|
|
96
|
+
attr_accessor reason: String?
|
|
97
|
+
|
|
98
|
+
attr_accessor reason_code: String?
|
|
99
|
+
|
|
94
100
|
attr_accessor scheduled_at: Time?
|
|
95
101
|
|
|
96
102
|
attr_reader status: String?
|
|
@@ -106,6 +112,8 @@ module Sentdm
|
|
|
106
112
|
?description: String,
|
|
107
113
|
?from: String?,
|
|
108
114
|
?price: String?,
|
|
115
|
+
?reason: String?,
|
|
116
|
+
?reason_code: String?,
|
|
109
117
|
?scheduled_at: Time?,
|
|
110
118
|
?status: String,
|
|
111
119
|
?timestamp: Time
|
|
@@ -116,6 +124,8 @@ module Sentdm
|
|
|
116
124
|
description: String,
|
|
117
125
|
from: String?,
|
|
118
126
|
price: String?,
|
|
127
|
+
reason: String?,
|
|
128
|
+
reason_code: String?,
|
|
119
129
|
scheduled_at: Time?,
|
|
120
130
|
status: String,
|
|
121
131
|
timestamp: Time
|
|
@@ -49,6 +49,8 @@ module Sentdm
|
|
|
49
49
|
phone: String,
|
|
50
50
|
phone_international: String,
|
|
51
51
|
price: Float?,
|
|
52
|
+
reason: String?,
|
|
53
|
+
reason_code: String?,
|
|
52
54
|
region_code: String,
|
|
53
55
|
status: String,
|
|
54
56
|
template_category: String?,
|
|
@@ -97,6 +99,10 @@ module Sentdm
|
|
|
97
99
|
|
|
98
100
|
attr_accessor price: Float?
|
|
99
101
|
|
|
102
|
+
attr_accessor reason: String?
|
|
103
|
+
|
|
104
|
+
attr_accessor reason_code: String?
|
|
105
|
+
|
|
100
106
|
attr_reader region_code: String?
|
|
101
107
|
|
|
102
108
|
def region_code=: (String) -> String
|
|
@@ -124,6 +130,8 @@ module Sentdm
|
|
|
124
130
|
?phone: String,
|
|
125
131
|
?phone_international: String,
|
|
126
132
|
?price: Float?,
|
|
133
|
+
?reason: String?,
|
|
134
|
+
?reason_code: String?,
|
|
127
135
|
?region_code: String,
|
|
128
136
|
?status: String,
|
|
129
137
|
?template_category: String?,
|
|
@@ -144,6 +152,8 @@ module Sentdm
|
|
|
144
152
|
phone: String,
|
|
145
153
|
phone_international: String,
|
|
146
154
|
price: Float?,
|
|
155
|
+
reason: String?,
|
|
156
|
+
reason_code: String?,
|
|
147
157
|
region_code: String,
|
|
148
158
|
status: String,
|
|
149
159
|
template_category: String?,
|
|
@@ -151,7 +161,14 @@ module Sentdm
|
|
|
151
161
|
template_name: String?
|
|
152
162
|
}
|
|
153
163
|
|
|
154
|
-
type event =
|
|
164
|
+
type event =
|
|
165
|
+
{
|
|
166
|
+
status: String,
|
|
167
|
+
timestamp: Time,
|
|
168
|
+
description: String?,
|
|
169
|
+
reason: String?,
|
|
170
|
+
reason_code: String?
|
|
171
|
+
}
|
|
155
172
|
|
|
156
173
|
class Event < Sentdm::Internal::Type::BaseModel
|
|
157
174
|
attr_accessor status: String
|
|
@@ -160,16 +177,24 @@ module Sentdm
|
|
|
160
177
|
|
|
161
178
|
attr_accessor description: String?
|
|
162
179
|
|
|
180
|
+
attr_accessor reason: String?
|
|
181
|
+
|
|
182
|
+
attr_accessor reason_code: String?
|
|
183
|
+
|
|
163
184
|
def initialize: (
|
|
164
185
|
status: String,
|
|
165
186
|
timestamp: Time,
|
|
166
|
-
?description: String
|
|
187
|
+
?description: String?,
|
|
188
|
+
?reason: String?,
|
|
189
|
+
?reason_code: String?
|
|
167
190
|
) -> void
|
|
168
191
|
|
|
169
192
|
def to_hash: -> {
|
|
170
193
|
status: String,
|
|
171
194
|
timestamp: Time,
|
|
172
|
-
description: String
|
|
195
|
+
description: String?,
|
|
196
|
+
reason: String?,
|
|
197
|
+
reason_code: String?
|
|
173
198
|
}
|
|
174
199
|
end
|
|
175
200
|
|
|
@@ -273,18 +298,41 @@ module Sentdm
|
|
|
273
298
|
def to_hash: -> { type: String, url: String }
|
|
274
299
|
end
|
|
275
300
|
|
|
276
|
-
type media =
|
|
301
|
+
type media =
|
|
302
|
+
{
|
|
303
|
+
media_type: String?,
|
|
304
|
+
mime_type: String?,
|
|
305
|
+
size_bytes: Integer?,
|
|
306
|
+
:source_hash_sha256 => String?,
|
|
307
|
+
url: String?
|
|
308
|
+
}
|
|
277
309
|
|
|
278
310
|
class Media < Sentdm::Internal::Type::BaseModel
|
|
279
311
|
attr_accessor media_type: String?
|
|
280
312
|
|
|
281
|
-
|
|
313
|
+
attr_accessor mime_type: String?
|
|
282
314
|
|
|
283
|
-
|
|
315
|
+
attr_accessor size_bytes: Integer?
|
|
284
316
|
|
|
285
|
-
|
|
317
|
+
attr_accessor source_hash_sha256: String?
|
|
286
318
|
|
|
287
|
-
|
|
319
|
+
attr_accessor url: String?
|
|
320
|
+
|
|
321
|
+
def initialize: (
|
|
322
|
+
?media_type: String?,
|
|
323
|
+
?mime_type: String?,
|
|
324
|
+
?size_bytes: Integer?,
|
|
325
|
+
?source_hash_sha256: String?,
|
|
326
|
+
?url: String?
|
|
327
|
+
) -> void
|
|
328
|
+
|
|
329
|
+
def to_hash: -> {
|
|
330
|
+
media_type: String?,
|
|
331
|
+
mime_type: String?,
|
|
332
|
+
size_bytes: Integer?,
|
|
333
|
+
:source_hash_sha256 => String?,
|
|
334
|
+
url: String?
|
|
335
|
+
}
|
|
288
336
|
end
|
|
289
337
|
end
|
|
290
338
|
end
|
|
@@ -2,6 +2,7 @@ module Sentdm
|
|
|
2
2
|
module Models
|
|
3
3
|
type template_create_params =
|
|
4
4
|
{
|
|
5
|
+
auto_create_for_sp: bool,
|
|
5
6
|
category: String?,
|
|
6
7
|
creation_source: String?,
|
|
7
8
|
definition: Sentdm::TemplateDefinition,
|
|
@@ -17,6 +18,10 @@ module Sentdm
|
|
|
17
18
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
18
19
|
include Sentdm::Internal::Type::RequestParameters
|
|
19
20
|
|
|
21
|
+
attr_reader auto_create_for_sp: bool?
|
|
22
|
+
|
|
23
|
+
def auto_create_for_sp=: (bool) -> bool
|
|
24
|
+
|
|
20
25
|
attr_accessor category: String?
|
|
21
26
|
|
|
22
27
|
attr_accessor creation_source: String?
|
|
@@ -46,6 +51,7 @@ module Sentdm
|
|
|
46
51
|
def x_profile_id=: (String) -> String
|
|
47
52
|
|
|
48
53
|
def initialize: (
|
|
54
|
+
?auto_create_for_sp: bool,
|
|
49
55
|
?category: String?,
|
|
50
56
|
?creation_source: String?,
|
|
51
57
|
?definition: Sentdm::TemplateDefinition,
|
|
@@ -58,6 +64,7 @@ module Sentdm
|
|
|
58
64
|
) -> void
|
|
59
65
|
|
|
60
66
|
def to_hash: -> {
|
|
67
|
+
auto_create_for_sp: bool,
|
|
61
68
|
category: String?,
|
|
62
69
|
creation_source: String?,
|
|
63
70
|
definition: Sentdm::TemplateDefinition,
|
|
@@ -8,6 +8,7 @@ module Sentdm
|
|
|
8
8
|
event_types: ::Array[String],
|
|
9
9
|
retry_count: Integer,
|
|
10
10
|
sandbox: bool,
|
|
11
|
+
sender_profile: Sentdm::WebhookCreateParams::SenderProfile?,
|
|
11
12
|
timeout_seconds: Integer,
|
|
12
13
|
idempotency_key: String,
|
|
13
14
|
x_profile_id: String
|
|
@@ -40,6 +41,8 @@ module Sentdm
|
|
|
40
41
|
|
|
41
42
|
def sandbox=: (bool) -> bool
|
|
42
43
|
|
|
44
|
+
attr_accessor sender_profile: Sentdm::WebhookCreateParams::SenderProfile?
|
|
45
|
+
|
|
43
46
|
attr_reader timeout_seconds: Integer?
|
|
44
47
|
|
|
45
48
|
def timeout_seconds=: (Integer) -> Integer
|
|
@@ -59,6 +62,7 @@ module Sentdm
|
|
|
59
62
|
?event_types: ::Array[String],
|
|
60
63
|
?retry_count: Integer,
|
|
61
64
|
?sandbox: bool,
|
|
65
|
+
?sender_profile: Sentdm::WebhookCreateParams::SenderProfile?,
|
|
62
66
|
?timeout_seconds: Integer,
|
|
63
67
|
?idempotency_key: String,
|
|
64
68
|
?x_profile_id: String,
|
|
@@ -72,11 +76,36 @@ module Sentdm
|
|
|
72
76
|
event_types: ::Array[String],
|
|
73
77
|
retry_count: Integer,
|
|
74
78
|
sandbox: bool,
|
|
79
|
+
sender_profile: Sentdm::WebhookCreateParams::SenderProfile?,
|
|
75
80
|
timeout_seconds: Integer,
|
|
76
81
|
idempotency_key: String,
|
|
77
82
|
x_profile_id: String,
|
|
78
83
|
request_options: Sentdm::RequestOptions
|
|
79
84
|
}
|
|
85
|
+
|
|
86
|
+
type sender_profile =
|
|
87
|
+
{
|
|
88
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
89
|
+
event_types: ::Array[String]
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
class SenderProfile < Sentdm::Internal::Type::BaseModel
|
|
93
|
+
attr_accessor event_filters: ::Hash[Symbol, ::Array[String]]?
|
|
94
|
+
|
|
95
|
+
attr_reader event_types: ::Array[String]?
|
|
96
|
+
|
|
97
|
+
def event_types=: (::Array[String]) -> ::Array[String]
|
|
98
|
+
|
|
99
|
+
def initialize: (
|
|
100
|
+
?event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
101
|
+
?event_types: ::Array[String]
|
|
102
|
+
) -> void
|
|
103
|
+
|
|
104
|
+
def to_hash: -> {
|
|
105
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
106
|
+
event_types: ::Array[String]
|
|
107
|
+
}
|
|
108
|
+
end
|
|
80
109
|
end
|
|
81
110
|
end
|
|
82
111
|
end
|
|
@@ -87,6 +87,7 @@ module Sentdm
|
|
|
87
87
|
| Sentdm::ChannelEvent
|
|
88
88
|
| Sentdm::ContactEvent
|
|
89
89
|
| Sentdm::Models::WebhookListEventsResponse::EventData::SentDmServicesCommonServicesWebhooksContractsWebhookEventOfLinkWebhookPayload
|
|
90
|
+
| Sentdm::CallEvent
|
|
90
91
|
|
|
91
92
|
module EventData
|
|
92
93
|
extend Sentdm::Internal::Type::Union
|
|
@@ -9,6 +9,7 @@ module Sentdm
|
|
|
9
9
|
event_types: ::Array[String],
|
|
10
10
|
retry_count: Integer,
|
|
11
11
|
sandbox: bool,
|
|
12
|
+
sender_profile: Sentdm::WebhookUpdateParams::SenderProfile?,
|
|
12
13
|
timeout_seconds: Integer,
|
|
13
14
|
idempotency_key: String,
|
|
14
15
|
x_profile_id: String
|
|
@@ -43,6 +44,8 @@ module Sentdm
|
|
|
43
44
|
|
|
44
45
|
def sandbox=: (bool) -> bool
|
|
45
46
|
|
|
47
|
+
attr_accessor sender_profile: Sentdm::WebhookUpdateParams::SenderProfile?
|
|
48
|
+
|
|
46
49
|
attr_reader timeout_seconds: Integer?
|
|
47
50
|
|
|
48
51
|
def timeout_seconds=: (Integer) -> Integer
|
|
@@ -63,6 +66,7 @@ module Sentdm
|
|
|
63
66
|
?event_types: ::Array[String],
|
|
64
67
|
?retry_count: Integer,
|
|
65
68
|
?sandbox: bool,
|
|
69
|
+
?sender_profile: Sentdm::WebhookUpdateParams::SenderProfile?,
|
|
66
70
|
?timeout_seconds: Integer,
|
|
67
71
|
?idempotency_key: String,
|
|
68
72
|
?x_profile_id: String,
|
|
@@ -77,11 +81,36 @@ module Sentdm
|
|
|
77
81
|
event_types: ::Array[String],
|
|
78
82
|
retry_count: Integer,
|
|
79
83
|
sandbox: bool,
|
|
84
|
+
sender_profile: Sentdm::WebhookUpdateParams::SenderProfile?,
|
|
80
85
|
timeout_seconds: Integer,
|
|
81
86
|
idempotency_key: String,
|
|
82
87
|
x_profile_id: String,
|
|
83
88
|
request_options: Sentdm::RequestOptions
|
|
84
89
|
}
|
|
90
|
+
|
|
91
|
+
type sender_profile =
|
|
92
|
+
{
|
|
93
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
94
|
+
event_types: ::Array[String]
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
class SenderProfile < Sentdm::Internal::Type::BaseModel
|
|
98
|
+
attr_accessor event_filters: ::Hash[Symbol, ::Array[String]]?
|
|
99
|
+
|
|
100
|
+
attr_reader event_types: ::Array[String]?
|
|
101
|
+
|
|
102
|
+
def event_types=: (::Array[String]) -> ::Array[String]
|
|
103
|
+
|
|
104
|
+
def initialize: (
|
|
105
|
+
?event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
106
|
+
?event_types: ::Array[String]
|
|
107
|
+
) -> void
|
|
108
|
+
|
|
109
|
+
def to_hash: -> {
|
|
110
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
111
|
+
event_types: ::Array[String]
|
|
112
|
+
}
|
|
113
|
+
end
|
|
85
114
|
end
|
|
86
115
|
end
|
|
87
116
|
end
|
data/sig/sentdm/models.rbs
CHANGED
|
@@ -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
|
|
@@ -8,6 +8,7 @@ module Sentdm
|
|
|
8
8
|
?event_types: ::Array[String],
|
|
9
9
|
?retry_count: Integer,
|
|
10
10
|
?sandbox: bool,
|
|
11
|
+
?sender_profile: Sentdm::WebhookCreateParams::SenderProfile?,
|
|
11
12
|
?timeout_seconds: Integer,
|
|
12
13
|
?idempotency_key: String,
|
|
13
14
|
?x_profile_id: String,
|
|
@@ -28,6 +29,7 @@ module Sentdm
|
|
|
28
29
|
?event_types: ::Array[String],
|
|
29
30
|
?retry_count: Integer,
|
|
30
31
|
?sandbox: bool,
|
|
32
|
+
?sender_profile: Sentdm::WebhookUpdateParams::SenderProfile?,
|
|
31
33
|
?timeout_seconds: Integer,
|
|
32
34
|
?idempotency_key: String,
|
|
33
35
|
?x_profile_id: String,
|