sentdm 0.33.0 → 0.34.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 +7 -0
- data/README.md +1 -1
- data/lib/sentdm/models/channel_event_payload.rb +16 -6
- 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 +176 -3
- data/lib/sentdm/models/webhook_update_params.rb +31 -1
- 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/rbi/sentdm/models/channel_event_payload.rbi +20 -8
- 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 +272 -3
- data/rbi/sentdm/models/webhook_update_params.rbi +61 -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/models/channel_event_payload.rbs +5 -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 +107 -0
- data/sig/sentdm/models/webhook_update_params.rbs +29 -0
- data/sig/sentdm/resources/templates.rbs +1 -0
- data/sig/sentdm/resources/webhooks.rbs +2 -0
- metadata +1 -1
|
@@ -49,6 +49,19 @@ module Sentdm
|
|
|
49
49
|
sig { params(sandbox: T::Boolean).void }
|
|
50
50
|
attr_writer :sandbox
|
|
51
51
|
|
|
52
|
+
# Request-only: the events an organization webhook's sender profile clones
|
|
53
|
+
# receive, one clone per existing and future profile. Responses never return it.
|
|
54
|
+
sig { returns(T.nilable(Sentdm::WebhookUpdateParams::SenderProfile)) }
|
|
55
|
+
attr_reader :sender_profile
|
|
56
|
+
|
|
57
|
+
sig do
|
|
58
|
+
params(
|
|
59
|
+
sender_profile:
|
|
60
|
+
T.nilable(Sentdm::WebhookUpdateParams::SenderProfile::OrHash)
|
|
61
|
+
).void
|
|
62
|
+
end
|
|
63
|
+
attr_writer :sender_profile
|
|
64
|
+
|
|
52
65
|
sig { returns(T.nilable(Integer)) }
|
|
53
66
|
attr_reader :timeout_seconds
|
|
54
67
|
|
|
@@ -76,6 +89,8 @@ module Sentdm
|
|
|
76
89
|
event_types: T::Array[String],
|
|
77
90
|
retry_count: Integer,
|
|
78
91
|
sandbox: T::Boolean,
|
|
92
|
+
sender_profile:
|
|
93
|
+
T.nilable(Sentdm::WebhookUpdateParams::SenderProfile::OrHash),
|
|
79
94
|
timeout_seconds: Integer,
|
|
80
95
|
idempotency_key: String,
|
|
81
96
|
x_profile_id: String,
|
|
@@ -92,6 +107,9 @@ module Sentdm
|
|
|
92
107
|
# Sandbox flag - when true, the operation is simulated without side effects Useful
|
|
93
108
|
# for testing integrations without actual execution
|
|
94
109
|
sandbox: nil,
|
|
110
|
+
# Request-only: the events an organization webhook's sender profile clones
|
|
111
|
+
# receive, one clone per existing and future profile. Responses never return it.
|
|
112
|
+
sender_profile: nil,
|
|
95
113
|
timeout_seconds: nil,
|
|
96
114
|
idempotency_key: nil,
|
|
97
115
|
x_profile_id: nil,
|
|
@@ -109,6 +127,8 @@ module Sentdm
|
|
|
109
127
|
event_types: T::Array[String],
|
|
110
128
|
retry_count: Integer,
|
|
111
129
|
sandbox: T::Boolean,
|
|
130
|
+
sender_profile:
|
|
131
|
+
T.nilable(Sentdm::WebhookUpdateParams::SenderProfile),
|
|
112
132
|
timeout_seconds: Integer,
|
|
113
133
|
idempotency_key: String,
|
|
114
134
|
x_profile_id: String,
|
|
@@ -118,6 +138,47 @@ module Sentdm
|
|
|
118
138
|
end
|
|
119
139
|
def to_hash
|
|
120
140
|
end
|
|
141
|
+
|
|
142
|
+
class SenderProfile < Sentdm::Internal::Type::BaseModel
|
|
143
|
+
OrHash =
|
|
144
|
+
T.type_alias do
|
|
145
|
+
T.any(
|
|
146
|
+
Sentdm::WebhookUpdateParams::SenderProfile,
|
|
147
|
+
Sentdm::Internal::AnyHash
|
|
148
|
+
)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
sig { returns(T.nilable(T::Hash[Symbol, T::Array[String]])) }
|
|
152
|
+
attr_accessor :event_filters
|
|
153
|
+
|
|
154
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
155
|
+
attr_reader :event_types
|
|
156
|
+
|
|
157
|
+
sig { params(event_types: T::Array[String]).void }
|
|
158
|
+
attr_writer :event_types
|
|
159
|
+
|
|
160
|
+
# Request-only: the events an organization webhook's sender profile clones
|
|
161
|
+
# receive, one clone per existing and future profile. Responses never return it.
|
|
162
|
+
sig do
|
|
163
|
+
params(
|
|
164
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
165
|
+
event_types: T::Array[String]
|
|
166
|
+
).returns(T.attached_class)
|
|
167
|
+
end
|
|
168
|
+
def self.new(event_filters: nil, event_types: nil)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
sig do
|
|
172
|
+
override.returns(
|
|
173
|
+
{
|
|
174
|
+
event_filters: T.nilable(T::Hash[Symbol, T::Array[String]]),
|
|
175
|
+
event_types: T::Array[String]
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
end
|
|
179
|
+
def to_hash
|
|
180
|
+
end
|
|
181
|
+
end
|
|
121
182
|
end
|
|
122
183
|
end
|
|
123
184
|
end
|
data/rbi/sentdm/resources/me.rbi
CHANGED
|
@@ -35,6 +35,11 @@ module Sentdm
|
|
|
35
35
|
# `sending_phone_number_profile_id` names the account that holds that number in
|
|
36
36
|
# inventory — normally this account, and a different one where a number is shared.
|
|
37
37
|
# Both are `null` when the account has no US SMS sender.
|
|
38
|
+
#
|
|
39
|
+
# **Template auto-creation:** `enable_template_auto_creation_for_sp` reports
|
|
40
|
+
# whether this account may mark a template for automatic creation on its sender
|
|
41
|
+
# profiles. It is granted by Sent and off by default. A `profile` reports `false`,
|
|
42
|
+
# having no sender profiles of its own to create anything on.
|
|
38
43
|
sig do
|
|
39
44
|
params(
|
|
40
45
|
x_profile_id: String,
|
|
@@ -17,6 +17,7 @@ module Sentdm
|
|
|
17
17
|
# `PUT /v3/templates/{id}`.
|
|
18
18
|
sig do
|
|
19
19
|
params(
|
|
20
|
+
auto_create_for_sp: T::Boolean,
|
|
20
21
|
category: T.nilable(String),
|
|
21
22
|
creation_source: T.nilable(String),
|
|
22
23
|
definition: Sentdm::TemplateDefinition::OrHash,
|
|
@@ -29,6 +30,11 @@ module Sentdm
|
|
|
29
30
|
).returns(Sentdm::APIResponseTemplate)
|
|
30
31
|
end
|
|
31
32
|
def create(
|
|
33
|
+
# Body param: Create this template automatically on every sender profile of the
|
|
34
|
+
# organization, now and in future (default: false). Accepted only from an
|
|
35
|
+
# organization that has been enabled for it, and only at creation — it cannot be
|
|
36
|
+
# changed afterwards.
|
|
37
|
+
auto_create_for_sp: nil,
|
|
32
38
|
# Body param: Template category: MARKETING, UTILITY, AUTHENTICATION (optional,
|
|
33
39
|
# auto-detected if not provided)
|
|
34
40
|
category: nil,
|
|
@@ -23,6 +23,8 @@ module Sentdm
|
|
|
23
23
|
event_types: T::Array[String],
|
|
24
24
|
retry_count: Integer,
|
|
25
25
|
sandbox: T::Boolean,
|
|
26
|
+
sender_profile:
|
|
27
|
+
T.nilable(Sentdm::WebhookCreateParams::SenderProfile::OrHash),
|
|
26
28
|
timeout_seconds: Integer,
|
|
27
29
|
idempotency_key: String,
|
|
28
30
|
x_profile_id: String,
|
|
@@ -43,6 +45,10 @@ module Sentdm
|
|
|
43
45
|
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
44
46
|
# effects Useful for testing integrations without actual execution
|
|
45
47
|
sandbox: nil,
|
|
48
|
+
# Body param: Request-only: the events an organization webhook's sender profile
|
|
49
|
+
# clones receive, one clone per existing and future profile. Responses never
|
|
50
|
+
# return it.
|
|
51
|
+
sender_profile: nil,
|
|
46
52
|
# Body param
|
|
47
53
|
timeout_seconds: nil,
|
|
48
54
|
# Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
@@ -84,6 +90,8 @@ module Sentdm
|
|
|
84
90
|
event_types: T::Array[String],
|
|
85
91
|
retry_count: Integer,
|
|
86
92
|
sandbox: T::Boolean,
|
|
93
|
+
sender_profile:
|
|
94
|
+
T.nilable(Sentdm::WebhookUpdateParams::SenderProfile::OrHash),
|
|
87
95
|
timeout_seconds: Integer,
|
|
88
96
|
idempotency_key: String,
|
|
89
97
|
x_profile_id: String,
|
|
@@ -106,6 +114,10 @@ module Sentdm
|
|
|
106
114
|
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
107
115
|
# effects Useful for testing integrations without actual execution
|
|
108
116
|
sandbox: nil,
|
|
117
|
+
# Body param: Request-only: the events an organization webhook's sender profile
|
|
118
|
+
# clones receive, one clone per existing and future profile. Responses never
|
|
119
|
+
# return it.
|
|
120
|
+
sender_profile: nil,
|
|
109
121
|
# Body param
|
|
110
122
|
timeout_seconds: nil,
|
|
111
123
|
# Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
@@ -180,7 +192,9 @@ module Sentdm
|
|
|
180
192
|
)
|
|
181
193
|
end
|
|
182
194
|
|
|
183
|
-
# Retrieves a paginated list of delivery events for the specified webhook.
|
|
195
|
+
# Retrieves a paginated list of delivery events for the specified webhook. If the
|
|
196
|
+
# webhook is cloned onto your sender profiles, the list includes what those clones
|
|
197
|
+
# received; read payload.account_id to tell whose event it is.
|
|
184
198
|
sig do
|
|
185
199
|
params(
|
|
186
200
|
id: String,
|
|
@@ -8,6 +8,7 @@ module Sentdm
|
|
|
8
8
|
compliance: Sentdm::ChannelEventPayload::Compliance?,
|
|
9
9
|
number_type: String?,
|
|
10
10
|
reason: String?,
|
|
11
|
+
reason_code: String?,
|
|
11
12
|
sender_value: String?,
|
|
12
13
|
status: String,
|
|
13
14
|
updated_at: String
|
|
@@ -30,6 +31,8 @@ module Sentdm
|
|
|
30
31
|
|
|
31
32
|
attr_accessor reason: String?
|
|
32
33
|
|
|
34
|
+
attr_accessor reason_code: String?
|
|
35
|
+
|
|
33
36
|
attr_accessor sender_value: String?
|
|
34
37
|
|
|
35
38
|
attr_reader status: String?
|
|
@@ -47,6 +50,7 @@ module Sentdm
|
|
|
47
50
|
?compliance: Sentdm::ChannelEventPayload::Compliance?,
|
|
48
51
|
?number_type: String?,
|
|
49
52
|
?reason: String?,
|
|
53
|
+
?reason_code: String?,
|
|
50
54
|
?sender_value: String?,
|
|
51
55
|
?status: String,
|
|
52
56
|
?updated_at: String
|
|
@@ -59,6 +63,7 @@ module Sentdm
|
|
|
59
63
|
compliance: Sentdm::ChannelEventPayload::Compliance?,
|
|
60
64
|
number_type: String?,
|
|
61
65
|
reason: String?,
|
|
66
|
+
reason_code: String?,
|
|
62
67
|
sender_value: String?,
|
|
63
68
|
status: String,
|
|
64
69
|
updated_at: String
|
|
@@ -41,6 +41,8 @@ module Sentdm
|
|
|
41
41
|
phone: String,
|
|
42
42
|
phone_international: String,
|
|
43
43
|
price: Float?,
|
|
44
|
+
reason: String?,
|
|
45
|
+
reason_code: String?,
|
|
44
46
|
region_code: String,
|
|
45
47
|
status: String,
|
|
46
48
|
template_category: String?,
|
|
@@ -89,6 +91,10 @@ module Sentdm
|
|
|
89
91
|
|
|
90
92
|
attr_accessor price: Float?
|
|
91
93
|
|
|
94
|
+
attr_accessor reason: String?
|
|
95
|
+
|
|
96
|
+
attr_accessor reason_code: String?
|
|
97
|
+
|
|
92
98
|
attr_reader region_code: String?
|
|
93
99
|
|
|
94
100
|
def region_code=: (String) -> String
|
|
@@ -116,6 +122,8 @@ module Sentdm
|
|
|
116
122
|
?phone: String,
|
|
117
123
|
?phone_international: String,
|
|
118
124
|
?price: Float?,
|
|
125
|
+
?reason: String?,
|
|
126
|
+
?reason_code: String?,
|
|
119
127
|
?region_code: String,
|
|
120
128
|
?status: String,
|
|
121
129
|
?template_category: String?,
|
|
@@ -136,6 +144,8 @@ module Sentdm
|
|
|
136
144
|
phone: String,
|
|
137
145
|
phone_international: String,
|
|
138
146
|
price: Float?,
|
|
147
|
+
reason: String?,
|
|
148
|
+
reason_code: String?,
|
|
139
149
|
region_code: String,
|
|
140
150
|
status: String,
|
|
141
151
|
template_category: String?,
|
|
@@ -143,7 +153,14 @@ module Sentdm
|
|
|
143
153
|
template_name: String?
|
|
144
154
|
}
|
|
145
155
|
|
|
146
|
-
type event =
|
|
156
|
+
type event =
|
|
157
|
+
{
|
|
158
|
+
status: String,
|
|
159
|
+
timestamp: Time,
|
|
160
|
+
description: String?,
|
|
161
|
+
reason: String?,
|
|
162
|
+
reason_code: String?
|
|
163
|
+
}
|
|
147
164
|
|
|
148
165
|
class Event < Sentdm::Internal::Type::BaseModel
|
|
149
166
|
attr_accessor status: String
|
|
@@ -152,16 +169,24 @@ module Sentdm
|
|
|
152
169
|
|
|
153
170
|
attr_accessor description: String?
|
|
154
171
|
|
|
172
|
+
attr_accessor reason: String?
|
|
173
|
+
|
|
174
|
+
attr_accessor reason_code: String?
|
|
175
|
+
|
|
155
176
|
def initialize: (
|
|
156
177
|
status: String,
|
|
157
178
|
timestamp: Time,
|
|
158
|
-
?description: String
|
|
179
|
+
?description: String?,
|
|
180
|
+
?reason: String?,
|
|
181
|
+
?reason_code: String?
|
|
159
182
|
) -> void
|
|
160
183
|
|
|
161
184
|
def to_hash: -> {
|
|
162
185
|
status: String,
|
|
163
186
|
timestamp: Time,
|
|
164
|
-
description: String
|
|
187
|
+
description: String?,
|
|
188
|
+
reason: String?,
|
|
189
|
+
reason_code: String?
|
|
165
190
|
}
|
|
166
191
|
end
|
|
167
192
|
|
|
@@ -265,18 +290,41 @@ module Sentdm
|
|
|
265
290
|
def to_hash: -> { type: String, url: String }
|
|
266
291
|
end
|
|
267
292
|
|
|
268
|
-
type media =
|
|
293
|
+
type media =
|
|
294
|
+
{
|
|
295
|
+
media_type: String?,
|
|
296
|
+
mime_type: String?,
|
|
297
|
+
size_bytes: Integer?,
|
|
298
|
+
:source_hash_sha256 => String?,
|
|
299
|
+
url: String?
|
|
300
|
+
}
|
|
269
301
|
|
|
270
302
|
class Media < Sentdm::Internal::Type::BaseModel
|
|
271
303
|
attr_accessor media_type: String?
|
|
272
304
|
|
|
273
|
-
|
|
305
|
+
attr_accessor mime_type: String?
|
|
274
306
|
|
|
275
|
-
|
|
307
|
+
attr_accessor size_bytes: Integer?
|
|
276
308
|
|
|
277
|
-
|
|
309
|
+
attr_accessor source_hash_sha256: String?
|
|
278
310
|
|
|
279
|
-
|
|
311
|
+
attr_accessor url: String?
|
|
312
|
+
|
|
313
|
+
def initialize: (
|
|
314
|
+
?media_type: String?,
|
|
315
|
+
?mime_type: String?,
|
|
316
|
+
?size_bytes: Integer?,
|
|
317
|
+
?source_hash_sha256: String?,
|
|
318
|
+
?url: String?
|
|
319
|
+
) -> void
|
|
320
|
+
|
|
321
|
+
def to_hash: -> {
|
|
322
|
+
media_type: String?,
|
|
323
|
+
mime_type: String?,
|
|
324
|
+
size_bytes: Integer?,
|
|
325
|
+
:source_hash_sha256 => String?,
|
|
326
|
+
url: String?
|
|
327
|
+
}
|
|
280
328
|
end
|
|
281
329
|
end
|
|
282
330
|
end
|
|
@@ -6,6 +6,7 @@ module Sentdm
|
|
|
6
6
|
received_at: String,
|
|
7
7
|
account_id: String,
|
|
8
8
|
channel: String,
|
|
9
|
+
media: ::Array[Sentdm::InboundMessageEventPayload::Media]?,
|
|
9
10
|
message_id: String,
|
|
10
11
|
outbound_number: String,
|
|
11
12
|
text: String?,
|
|
@@ -25,6 +26,8 @@ module Sentdm
|
|
|
25
26
|
|
|
26
27
|
def channel=: (String) -> String
|
|
27
28
|
|
|
29
|
+
attr_accessor media: ::Array[Sentdm::InboundMessageEventPayload::Media]?
|
|
30
|
+
|
|
28
31
|
attr_reader message_id: String?
|
|
29
32
|
|
|
30
33
|
def message_id=: (String) -> String
|
|
@@ -44,6 +47,7 @@ module Sentdm
|
|
|
44
47
|
received_at: String,
|
|
45
48
|
?account_id: String,
|
|
46
49
|
?channel: String,
|
|
50
|
+
?media: ::Array[Sentdm::InboundMessageEventPayload::Media]?,
|
|
47
51
|
?message_id: String,
|
|
48
52
|
?outbound_number: String,
|
|
49
53
|
?text: String?,
|
|
@@ -55,11 +59,44 @@ module Sentdm
|
|
|
55
59
|
received_at: String,
|
|
56
60
|
account_id: String,
|
|
57
61
|
channel: String,
|
|
62
|
+
media: ::Array[Sentdm::InboundMessageEventPayload::Media]?,
|
|
58
63
|
message_id: String,
|
|
59
64
|
outbound_number: String,
|
|
60
65
|
text: String?,
|
|
61
66
|
updated_at: String
|
|
62
67
|
}
|
|
68
|
+
|
|
69
|
+
type media =
|
|
70
|
+
{
|
|
71
|
+
:hash_sha256 => String?,
|
|
72
|
+
mime_type: String?,
|
|
73
|
+
size_bytes: Integer?,
|
|
74
|
+
url: String?
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
class Media < Sentdm::Internal::Type::BaseModel
|
|
78
|
+
attr_accessor hash_sha256: String?
|
|
79
|
+
|
|
80
|
+
attr_accessor mime_type: String?
|
|
81
|
+
|
|
82
|
+
attr_accessor size_bytes: Integer?
|
|
83
|
+
|
|
84
|
+
attr_accessor url: String?
|
|
85
|
+
|
|
86
|
+
def initialize: (
|
|
87
|
+
?hash_sha256: String?,
|
|
88
|
+
?mime_type: String?,
|
|
89
|
+
?size_bytes: Integer?,
|
|
90
|
+
?url: String?
|
|
91
|
+
) -> void
|
|
92
|
+
|
|
93
|
+
def to_hash: -> {
|
|
94
|
+
:hash_sha256 => String?,
|
|
95
|
+
mime_type: String?,
|
|
96
|
+
size_bytes: Integer?,
|
|
97
|
+
url: String?
|
|
98
|
+
}
|
|
99
|
+
end
|
|
63
100
|
end
|
|
64
101
|
end
|
|
65
102
|
end
|
|
@@ -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,
|