twilio-ruby 5.22.3 → 5.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +27 -0
- data/README.md +2 -4
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +14 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +68 -47
- data/lib/twilio-ruby/rest/chat/v1/service.rb +311 -320
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +59 -41
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +52 -40
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +71 -64
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +58 -40
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +39 -29
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +51 -48
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +16 -12
- data/lib/twilio-ruby/rest/insights/v1/summary.rb +13 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +4 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +68 -47
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +311 -320
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +59 -41
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +52 -40
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +71 -64
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +58 -40
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +39 -29
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +51 -48
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +16 -12
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +25 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +49 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +217 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +146 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +169 -0
- data/lib/twilio-ruby/rest/serverless/v1.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +4 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +30 -9
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +39 -6
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +191 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +133 -99
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -3
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/conference_spec.rb +86 -2
- data/spec/integration/api/v2010/account/connect_app_spec.rb +28 -6
- data/spec/integration/api/v2010/account/queue/member_spec.rb +4 -4
- data/spec/integration/insights/v1/summary_spec.rb +1 -0
- data/spec/integration/preview/trusted_comms/current_call_spec.rb +46 -0
- data/spec/integration/preview/trusted_comms/device_spec.rb +45 -0
- data/spec/integration/preview/trusted_comms/phone_call_spec.rb +48 -0
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +6 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribe_rule_spec.rb +92 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +31 -68
- data/spec/integration/video/v1/room/room_participant_spec.rb +6 -3
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
- metadata +15 -2
@@ -16,8 +16,10 @@ module Twilio
|
|
16
16
|
##
|
17
17
|
# Initialize the UserChannelList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
|
-
# @param [String] service_sid The
|
20
|
-
#
|
19
|
+
# @param [String] service_sid The SID of the
|
20
|
+
# [Service](https://www.twilio.com/docs/api/chat/rest/services) the resource is
|
21
|
+
# associated with.
|
22
|
+
# @param [String] user_sid The unique string that we created to identify the User
|
21
23
|
# resource.
|
22
24
|
# @return [UserChannelList] UserChannelList
|
23
25
|
def initialize(version, service_sid: nil, user_sid: nil)
|
@@ -156,8 +158,10 @@ module Twilio
|
|
156
158
|
# Initialize the UserChannelInstance
|
157
159
|
# @param [Version] version Version that contains the resource
|
158
160
|
# @param [Hash] payload payload that contains response from Twilio
|
159
|
-
# @param [String] service_sid The
|
160
|
-
#
|
161
|
+
# @param [String] service_sid The SID of the
|
162
|
+
# [Service](https://www.twilio.com/docs/api/chat/rest/services) the resource is
|
163
|
+
# associated with.
|
164
|
+
# @param [String] user_sid The unique string that we created to identify the User
|
161
165
|
# resource.
|
162
166
|
# @return [UserChannelInstance] UserChannelInstance
|
163
167
|
def initialize(version, payload, service_sid: nil, user_sid: nil)
|
@@ -177,49 +181,49 @@ module Twilio
|
|
177
181
|
end
|
178
182
|
|
179
183
|
##
|
180
|
-
# @return [String] The
|
184
|
+
# @return [String] The SID of the Account that created the resource
|
181
185
|
def account_sid
|
182
186
|
@properties['account_sid']
|
183
187
|
end
|
184
188
|
|
185
189
|
##
|
186
|
-
# @return [String] The
|
190
|
+
# @return [String] The SID of the Service that the resource is associated with
|
187
191
|
def service_sid
|
188
192
|
@properties['service_sid']
|
189
193
|
end
|
190
194
|
|
191
195
|
##
|
192
|
-
# @return [String] The
|
196
|
+
# @return [String] The SID of the Channel the resource belongs to
|
193
197
|
def channel_sid
|
194
198
|
@properties['channel_sid']
|
195
199
|
end
|
196
200
|
|
197
201
|
##
|
198
|
-
# @return [String] The
|
202
|
+
# @return [String] The SID of the User as a Member in the Channel
|
199
203
|
def member_sid
|
200
204
|
@properties['member_sid']
|
201
205
|
end
|
202
206
|
|
203
207
|
##
|
204
|
-
# @return [user_channel.ChannelStatus] The status
|
208
|
+
# @return [user_channel.ChannelStatus] The status of the User on the Channel
|
205
209
|
def status
|
206
210
|
@properties['status']
|
207
211
|
end
|
208
212
|
|
209
213
|
##
|
210
|
-
# @return [String] The
|
214
|
+
# @return [String] The index of the last Message in the Channel the Member has read
|
211
215
|
def last_consumed_message_index
|
212
216
|
@properties['last_consumed_message_index']
|
213
217
|
end
|
214
218
|
|
215
219
|
##
|
216
|
-
# @return [String] The
|
220
|
+
# @return [String] The number of unread Messages in the Channel for the User
|
217
221
|
def unread_messages_count
|
218
222
|
@properties['unread_messages_count']
|
219
223
|
end
|
220
224
|
|
221
225
|
##
|
222
|
-
# @return [String]
|
226
|
+
# @return [String] Absolute URLs to access the Members, Messages , Invites and, if it exists, the last Message for the Channel
|
223
227
|
def links
|
224
228
|
@properties['links']
|
225
229
|
end
|
@@ -80,9 +80,10 @@ module Twilio
|
|
80
80
|
|
81
81
|
##
|
82
82
|
# Fetch a CallSummaryInstance
|
83
|
+
# @param [call_summary.ProcessingState] processing_state The processing_state
|
83
84
|
# @return [CallSummaryInstance] Fetched CallSummaryInstance
|
84
|
-
def fetch
|
85
|
-
params = Twilio::Values.of({})
|
85
|
+
def fetch(processing_state: :unset)
|
86
|
+
params = Twilio::Values.of({'ProcessingState' => processing_state, })
|
86
87
|
|
87
88
|
payload = @version.fetch(
|
88
89
|
'GET',
|
@@ -137,6 +138,7 @@ module Twilio
|
|
137
138
|
'to' => payload['to'],
|
138
139
|
'carrier_edge' => payload['carrier_edge'],
|
139
140
|
'client_edge' => payload['client_edge'],
|
141
|
+
'sdk_edge' => payload['sdk_edge'],
|
140
142
|
'sip_edge' => payload['sip_edge'],
|
141
143
|
'tags' => payload['tags'],
|
142
144
|
'url' => payload['url'],
|
@@ -248,6 +250,12 @@ module Twilio
|
|
248
250
|
@properties['client_edge']
|
249
251
|
end
|
250
252
|
|
253
|
+
##
|
254
|
+
# @return [Hash] The sdk_edge
|
255
|
+
def sdk_edge
|
256
|
+
@properties['sdk_edge']
|
257
|
+
end
|
258
|
+
|
251
259
|
##
|
252
260
|
# @return [Hash] The sip_edge
|
253
261
|
def sip_edge
|
@@ -268,9 +276,10 @@ module Twilio
|
|
268
276
|
|
269
277
|
##
|
270
278
|
# Fetch a CallSummaryInstance
|
279
|
+
# @param [call_summary.ProcessingState] processing_state The processing_state
|
271
280
|
# @return [CallSummaryInstance] Fetched CallSummaryInstance
|
272
|
-
def fetch
|
273
|
-
context.fetch
|
281
|
+
def fetch(processing_state: :unset)
|
282
|
+
context.fetch(processing_state: processing_state, )
|
274
283
|
end
|
275
284
|
|
276
285
|
##
|
@@ -20,7 +20,8 @@ module Twilio
|
|
20
20
|
end
|
21
21
|
|
22
22
|
##
|
23
|
-
# @param [String] sid The
|
23
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
24
|
+
# Credential resource to fetch.
|
24
25
|
# @return [Twilio::REST::Chat::V1::CredentialContext] if sid was passed.
|
25
26
|
# @return [Twilio::REST::Chat::V1::CredentialList]
|
26
27
|
def credentials(sid=:unset)
|
@@ -34,7 +35,8 @@ module Twilio
|
|
34
35
|
end
|
35
36
|
|
36
37
|
##
|
37
|
-
# @param [String] sid The
|
38
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
39
|
+
# Service resource to fetch.
|
38
40
|
# @return [Twilio::REST::Chat::V1::ServiceContext] if sid was passed.
|
39
41
|
# @return [Twilio::REST::Chat::V1::ServiceList]
|
40
42
|
def services(sid=:unset)
|
@@ -108,19 +108,26 @@ module Twilio
|
|
108
108
|
##
|
109
109
|
# Retrieve a single page of CredentialInstance records from the API.
|
110
110
|
# Request is executed immediately.
|
111
|
-
# @param [credential.PushService] type
|
112
|
-
#
|
113
|
-
# @param [String]
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
111
|
+
# @param [credential.PushService] type The type of push-notification service the
|
112
|
+
# credential is for. Can be: `gcm`, `fcm`, or `apn`.
|
113
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
114
|
+
# the new resource. It can be up to 64 characters long.
|
115
|
+
# @param [String] certificate [APN only] The URL encoded representation of the
|
116
|
+
# certificate. For example,
|
117
|
+
# `-----BEGIN CERTIFICATE-----
|
118
|
+
# MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
|
119
|
+
# -----END CERTIFICATE-----`
|
120
|
+
# @param [String] private_key [APN only] The URL encoded representation of the
|
121
|
+
# private key. For example,
|
122
|
+
# `-----BEGIN RSA PRIVATE KEY-----
|
123
|
+
# MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
|
124
|
+
# -----END RSA PRIVATE KEY-----`
|
125
|
+
# @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox
|
126
|
+
# APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
|
127
|
+
# @param [String] api_key [GCM only] The API key for the project that was obtained
|
128
|
+
# from the Google Developer console for your GCM Service application credential.
|
129
|
+
# @param [String] secret [FCM only] The **Server key** of your project from the
|
130
|
+
# Firebase console, found under Settings / Cloud messaging.
|
124
131
|
# @return [CredentialInstance] Newly created CredentialInstance
|
125
132
|
def create(type: nil, friendly_name: :unset, certificate: :unset, private_key: :unset, sandbox: :unset, api_key: :unset, secret: :unset)
|
126
133
|
data = Twilio::Values.of({
|
@@ -182,7 +189,8 @@ module Twilio
|
|
182
189
|
##
|
183
190
|
# Initialize the CredentialContext
|
184
191
|
# @param [Version] version Version that contains the resource
|
185
|
-
# @param [String] sid The
|
192
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
193
|
+
# Credential resource to fetch.
|
186
194
|
# @return [CredentialContext] CredentialContext
|
187
195
|
def initialize(version, sid)
|
188
196
|
super(version)
|
@@ -209,18 +217,24 @@ module Twilio
|
|
209
217
|
|
210
218
|
##
|
211
219
|
# Update the CredentialInstance
|
212
|
-
# @param [String] friendly_name
|
213
|
-
#
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
# @param [
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
220
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
221
|
+
# the resource. It can be up to 64 characters long.
|
222
|
+
# @param [String] certificate [APN only] The URL encoded representation of the
|
223
|
+
# certificate. For example,
|
224
|
+
# `-----BEGIN CERTIFICATE-----
|
225
|
+
# MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
|
226
|
+
# -----END CERTIFICATE-----`
|
227
|
+
# @param [String] private_key [APN only] The URL encoded representation of the
|
228
|
+
# private key. For example,
|
229
|
+
# `-----BEGIN RSA PRIVATE KEY-----
|
230
|
+
# MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
|
231
|
+
# -----END RSA PRIVATE KEY-----`
|
232
|
+
# @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox
|
233
|
+
# APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
|
234
|
+
# @param [String] api_key [GCM only] The API key for the project that was obtained
|
235
|
+
# from the Google Developer console for your GCM Service application credential.
|
236
|
+
# @param [String] secret [FCM only] The **Server key** of your project from the
|
237
|
+
# Firebase console, found under Settings / Cloud messaging.
|
224
238
|
# @return [CredentialInstance] Updated CredentialInstance
|
225
239
|
def update(friendly_name: :unset, certificate: :unset, private_key: :unset, sandbox: :unset, api_key: :unset, secret: :unset)
|
226
240
|
data = Twilio::Values.of({
|
@@ -268,7 +282,8 @@ module Twilio
|
|
268
282
|
# Initialize the CredentialInstance
|
269
283
|
# @param [Version] version Version that contains the resource
|
270
284
|
# @param [Hash] payload payload that contains response from Twilio
|
271
|
-
# @param [String] sid The
|
285
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
286
|
+
# Credential resource to fetch.
|
272
287
|
# @return [CredentialInstance] CredentialInstance
|
273
288
|
def initialize(version, payload, sid: nil)
|
274
289
|
super(version)
|
@@ -302,49 +317,49 @@ module Twilio
|
|
302
317
|
end
|
303
318
|
|
304
319
|
##
|
305
|
-
# @return [String]
|
320
|
+
# @return [String] The unique string that identifies the resource
|
306
321
|
def sid
|
307
322
|
@properties['sid']
|
308
323
|
end
|
309
324
|
|
310
325
|
##
|
311
|
-
# @return [String] The
|
326
|
+
# @return [String] The SID of the Account that created the resource
|
312
327
|
def account_sid
|
313
328
|
@properties['account_sid']
|
314
329
|
end
|
315
330
|
|
316
331
|
##
|
317
|
-
# @return [String] The
|
332
|
+
# @return [String] The string that you assigned to describe the resource
|
318
333
|
def friendly_name
|
319
334
|
@properties['friendly_name']
|
320
335
|
end
|
321
336
|
|
322
337
|
##
|
323
|
-
# @return [credential.PushService]
|
338
|
+
# @return [credential.PushService] The type of push-notification service the credential is for
|
324
339
|
def type
|
325
340
|
@properties['type']
|
326
341
|
end
|
327
342
|
|
328
343
|
##
|
329
|
-
# @return [String] [APN only]
|
344
|
+
# @return [String] [APN only] Whether to send the credential to sandbox APNs
|
330
345
|
def sandbox
|
331
346
|
@properties['sandbox']
|
332
347
|
end
|
333
348
|
|
334
349
|
##
|
335
|
-
# @return [Time] The date
|
350
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
336
351
|
def date_created
|
337
352
|
@properties['date_created']
|
338
353
|
end
|
339
354
|
|
340
355
|
##
|
341
|
-
# @return [Time] The date
|
356
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
342
357
|
def date_updated
|
343
358
|
@properties['date_updated']
|
344
359
|
end
|
345
360
|
|
346
361
|
##
|
347
|
-
# @return [String]
|
362
|
+
# @return [String] The absolute URL of the Credential resource
|
348
363
|
def url
|
349
364
|
@properties['url']
|
350
365
|
end
|
@@ -358,18 +373,24 @@ module Twilio
|
|
358
373
|
|
359
374
|
##
|
360
375
|
# Update the CredentialInstance
|
361
|
-
# @param [String] friendly_name
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
# @param [
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
372
|
-
#
|
376
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
377
|
+
# the resource. It can be up to 64 characters long.
|
378
|
+
# @param [String] certificate [APN only] The URL encoded representation of the
|
379
|
+
# certificate. For example,
|
380
|
+
# `-----BEGIN CERTIFICATE-----
|
381
|
+
# MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
|
382
|
+
# -----END CERTIFICATE-----`
|
383
|
+
# @param [String] private_key [APN only] The URL encoded representation of the
|
384
|
+
# private key. For example,
|
385
|
+
# `-----BEGIN RSA PRIVATE KEY-----
|
386
|
+
# MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
|
387
|
+
# -----END RSA PRIVATE KEY-----`
|
388
|
+
# @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox
|
389
|
+
# APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
|
390
|
+
# @param [String] api_key [GCM only] The API key for the project that was obtained
|
391
|
+
# from the Google Developer console for your GCM Service application credential.
|
392
|
+
# @param [String] secret [FCM only] The **Server key** of your project from the
|
393
|
+
# Firebase console, found under Settings / Cloud messaging.
|
373
394
|
# @return [CredentialInstance] Updated CredentialInstance
|
374
395
|
def update(friendly_name: :unset, certificate: :unset, private_key: :unset, sandbox: :unset, api_key: :unset, secret: :unset)
|
375
396
|
context.update(
|
@@ -26,7 +26,8 @@ module Twilio
|
|
26
26
|
##
|
27
27
|
# Retrieve a single page of ServiceInstance records from the API.
|
28
28
|
# Request is executed immediately.
|
29
|
-
# @param [String] friendly_name
|
29
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
30
|
+
# the resource. It can be up to 64 characters long.
|
30
31
|
# @return [ServiceInstance] Newly created ServiceInstance
|
31
32
|
def create(friendly_name: nil)
|
32
33
|
data = Twilio::Values.of({'FriendlyName' => friendly_name, })
|
@@ -162,7 +163,8 @@ module Twilio
|
|
162
163
|
##
|
163
164
|
# Initialize the ServiceContext
|
164
165
|
# @param [Version] version Version that contains the resource
|
165
|
-
# @param [String] sid The
|
166
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
167
|
+
# Service resource to fetch.
|
166
168
|
# @return [ServiceContext] ServiceContext
|
167
169
|
def initialize(version, sid)
|
168
170
|
super(version)
|
@@ -201,141 +203,151 @@ module Twilio
|
|
201
203
|
|
202
204
|
##
|
203
205
|
# Update the ServiceInstance
|
204
|
-
# @param [String] friendly_name
|
205
|
-
#
|
206
|
-
# @param [String]
|
207
|
-
#
|
208
|
-
#
|
209
|
-
# @param [String]
|
210
|
-
#
|
211
|
-
#
|
212
|
-
#
|
213
|
-
#
|
214
|
-
#
|
215
|
-
# @param [
|
216
|
-
#
|
217
|
-
#
|
218
|
-
# @param [
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
# @param [
|
225
|
-
#
|
226
|
-
# @param [
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
# notifications.
|
232
|
-
# @param [Boolean]
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
206
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
207
|
+
# the resource. It can be up to 64 characters long.
|
208
|
+
# @param [String] default_service_role_sid The service role assigned to users when
|
209
|
+
# they are added to the service. See the [Roles
|
210
|
+
# endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
|
211
|
+
# @param [String] default_channel_role_sid The channel role assigned to users when
|
212
|
+
# they are added to a channel. See the [Roles
|
213
|
+
# endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
|
214
|
+
# @param [String] default_channel_creator_role_sid The channel role assigned to a
|
215
|
+
# channel creator when they join a new channel. See the [Roles
|
216
|
+
# endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
|
217
|
+
# @param [Boolean] read_status_enabled Whether to enable the [Message Consumption
|
218
|
+
# Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The
|
219
|
+
# default is `true`.
|
220
|
+
# @param [Boolean] reachability_enabled Whether to enable the [Reachability
|
221
|
+
# Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this
|
222
|
+
# Service instance. The default is `false`.
|
223
|
+
# @param [String] typing_indicator_timeout How long in seconds after a `started
|
224
|
+
# typing` event until clients should assume that user is no longer typing, even if
|
225
|
+
# no `ended typing` message was received. The default is 5 seconds.
|
226
|
+
# @param [String] consumption_report_interval DEPRECATED. The interval in seconds
|
227
|
+
# between consumption reports submission batches from client endpoints.
|
228
|
+
# @param [Boolean] notifications_new_message_enabled Whether to send a
|
229
|
+
# notification when a new message is added to a channel. Can be: `true` or `false`
|
230
|
+
# and the default is `false`.
|
231
|
+
# @param [String] notifications_new_message_template The template to use to create
|
232
|
+
# the notification text displayed when a new message is added to a channel and
|
233
|
+
# `notifications.new_message.enabled` is `true`.
|
234
|
+
# @param [Boolean] notifications_added_to_channel_enabled Whether to send a
|
235
|
+
# notification when a member is added to a channel. Can be: `true` or `false` and
|
236
|
+
# the default is `false`.
|
237
|
+
# @param [String] notifications_added_to_channel_template The template to use to
|
238
|
+
# create the notification text displayed when a member is added to a channel and
|
239
|
+
# `notifications.added_to_channel.enabled` is `true`.
|
240
|
+
# @param [Boolean] notifications_removed_from_channel_enabled Whether to send a
|
241
|
+
# notification to a user when they are removed from a channel. Can be: `true` or
|
242
|
+
# `false` and the default is `false`.
|
243
|
+
# @param [String] notifications_removed_from_channel_template The template to use
|
244
|
+
# to create the notification text displayed to a user when they are removed from a
|
245
|
+
# channel and `notifications.removed_from_channel.enabled` is `true`.
|
246
|
+
# @param [Boolean] notifications_invited_to_channel_enabled Whether to send a
|
247
|
+
# notification when a user is invited to a channel. Can be: `true` or `false` and
|
248
|
+
# the default is `false`.
|
249
|
+
# @param [String] notifications_invited_to_channel_template The template to use to
|
250
|
+
# create the notification text displayed when a user is invited to a channel and
|
251
|
+
# `notifications.invited_to_channel.enabled` is `true`.
|
252
|
+
# @param [String] pre_webhook_url The URL for pre-event webhooks, which are called
|
253
|
+
# by using the `webhook_method`. See [Webhook
|
254
|
+
# Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
|
255
|
+
# @param [String] post_webhook_url The URL for post-event webhooks, which are
|
256
|
+
# called by using the `webhook_method`. See [Webhook
|
257
|
+
# Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
|
258
|
+
# @param [String] webhook_method The HTTP method to use for calls to the
|
259
|
+
# `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
|
260
|
+
# the default is `POST`. See [Webhook
|
261
|
+
# Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
|
245
262
|
# @param [String] webhook_filters The list of WebHook events that are enabled for
|
246
263
|
# this Service instance. See [Webhook
|
247
|
-
# Events](https://www.twilio.com/docs/
|
248
|
-
# @param [String] webhooks_on_message_send_url The
|
249
|
-
#
|
250
|
-
# webhooks.on_message_send.method
|
251
|
-
# @param [String]
|
252
|
-
# webhooks.on_message_send.
|
253
|
-
# @param [String] webhooks_on_message_update_url The
|
254
|
-
#
|
255
|
-
#
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
# webhooks.on_message_remove.
|
261
|
-
# @param [String] webhooks_on_message_remove_method The
|
262
|
-
# webhooks.on_message_remove.
|
263
|
-
# @param [String]
|
264
|
-
#
|
265
|
-
#
|
266
|
-
# @param [String] webhooks_on_channel_add_method The
|
267
|
-
# webhooks.on_channel_add.
|
268
|
-
# @param [String]
|
269
|
-
#
|
270
|
-
#
|
271
|
-
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
275
|
-
# webhooks.
|
276
|
-
# @param [String]
|
277
|
-
# webhooks.on_channel_update.url
|
278
|
-
# @param [String]
|
279
|
-
# webhooks.
|
280
|
-
#
|
281
|
-
#
|
282
|
-
#
|
283
|
-
# @param [String]
|
284
|
-
#
|
285
|
-
#
|
286
|
-
# @param [String] webhooks_on_member_remove_method The
|
287
|
-
# webhooks.on_member_remove.
|
288
|
-
# @param [String]
|
289
|
-
#
|
290
|
-
#
|
291
|
-
# @param [String] webhooks_on_message_sent_method The
|
292
|
-
#
|
293
|
-
# @param [String]
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
#
|
298
|
-
#
|
299
|
-
#
|
300
|
-
# webhooks.
|
301
|
-
# @param [String]
|
302
|
-
# webhooks.on_message_removed.url
|
303
|
-
# @param [String]
|
304
|
-
#
|
305
|
-
#
|
306
|
-
#
|
307
|
-
#
|
308
|
-
# @param [String]
|
309
|
-
#
|
310
|
-
#
|
311
|
-
#
|
312
|
-
#
|
313
|
-
#
|
314
|
-
#
|
315
|
-
# webhooks.
|
316
|
-
# @param [String]
|
317
|
-
# webhooks.
|
318
|
-
# @param [String]
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
#
|
331
|
-
#
|
332
|
-
# webhooks.on_member_removed.method
|
333
|
-
# @param [String] webhooks_on_member_removed_format The
|
334
|
-
# webhooks.on_member_removed.format
|
335
|
-
# @param [String] limits_channel_members The limits.channel_members
|
336
|
-
# @param [String] limits_user_channels The limits.user_channels
|
264
|
+
# Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
|
265
|
+
# @param [String] webhooks_on_message_send_url The URL of the webhook to call in
|
266
|
+
# response to the `on_message_send` event using the
|
267
|
+
# `webhooks.on_message_send.method` HTTP method.
|
268
|
+
# @param [String] webhooks_on_message_send_method The HTTP method to use when
|
269
|
+
# calling the `webhooks.on_message_send.url`.
|
270
|
+
# @param [String] webhooks_on_message_update_url The URL of the webhook to call in
|
271
|
+
# response to the `on_message_update` event using the
|
272
|
+
# `webhooks.on_message_update.method` HTTP method.
|
273
|
+
# @param [String] webhooks_on_message_update_method The HTTP method to use when
|
274
|
+
# calling the `webhooks.on_message_update.url`.
|
275
|
+
# @param [String] webhooks_on_message_remove_url The URL of the webhook to call in
|
276
|
+
# response to the `on_message_remove` event using the
|
277
|
+
# `webhooks.on_message_remove.method` HTTP method.
|
278
|
+
# @param [String] webhooks_on_message_remove_method The HTTP method to use when
|
279
|
+
# calling the `webhooks.on_message_remove.url`.
|
280
|
+
# @param [String] webhooks_on_channel_add_url The URL of the webhook to call in
|
281
|
+
# response to the `on_channel_add` event using the
|
282
|
+
# `webhooks.on_channel_add.method` HTTP method.
|
283
|
+
# @param [String] webhooks_on_channel_add_method The HTTP method to use when
|
284
|
+
# calling the `webhooks.on_channel_add.url`.
|
285
|
+
# @param [String] webhooks_on_channel_destroy_url The URL of the webhook to call
|
286
|
+
# in response to the `on_channel_destroy` event using the
|
287
|
+
# `webhooks.on_channel_destroy.method` HTTP method.
|
288
|
+
# @param [String] webhooks_on_channel_destroy_method The HTTP method to use when
|
289
|
+
# calling the `webhooks.on_channel_destroy.url`.
|
290
|
+
# @param [String] webhooks_on_channel_update_url The URL of the webhook to call in
|
291
|
+
# response to the `on_channel_update` event using the
|
292
|
+
# `webhooks.on_channel_update.method` HTTP method.
|
293
|
+
# @param [String] webhooks_on_channel_update_method The HTTP method to use when
|
294
|
+
# calling the `webhooks.on_channel_update.url`.
|
295
|
+
# @param [String] webhooks_on_member_add_url The URL of the webhook to call in
|
296
|
+
# response to the `on_member_add` event using the `webhooks.on_member_add.method`
|
297
|
+
# HTTP method.
|
298
|
+
# @param [String] webhooks_on_member_add_method The HTTP method to use when
|
299
|
+
# calling the `webhooks.on_member_add.url`.
|
300
|
+
# @param [String] webhooks_on_member_remove_url The URL of the webhook to call in
|
301
|
+
# response to the `on_member_remove` event using the
|
302
|
+
# `webhooks.on_member_remove.method` HTTP method.
|
303
|
+
# @param [String] webhooks_on_member_remove_method The HTTP method to use when
|
304
|
+
# calling the `webhooks.on_member_remove.url`.
|
305
|
+
# @param [String] webhooks_on_message_sent_url The URL of the webhook to call in
|
306
|
+
# response to the `on_message_sent` event using the
|
307
|
+
# `webhooks.on_message_sent.method` HTTP method.
|
308
|
+
# @param [String] webhooks_on_message_sent_method The URL of the webhook to call
|
309
|
+
# in response to the `on_message_sent` event`.
|
310
|
+
# @param [String] webhooks_on_message_updated_url The URL of the webhook to call
|
311
|
+
# in response to the `on_message_updated` event using the
|
312
|
+
# `webhooks.on_message_updated.method` HTTP method.
|
313
|
+
# @param [String] webhooks_on_message_updated_method The HTTP method to use when
|
314
|
+
# calling the `webhooks.on_message_updated.url`.
|
315
|
+
# @param [String] webhooks_on_message_removed_url The URL of the webhook to call
|
316
|
+
# in response to the `on_message_removed` event using the
|
317
|
+
# `webhooks.on_message_removed.method` HTTP method.
|
318
|
+
# @param [String] webhooks_on_message_removed_method The HTTP method to use when
|
319
|
+
# calling the `webhooks.on_message_removed.url`.
|
320
|
+
# @param [String] webhooks_on_channel_added_url The URL of the webhook to call in
|
321
|
+
# response to the `on_channel_added` event using the
|
322
|
+
# `webhooks.on_channel_added.method` HTTP method.
|
323
|
+
# @param [String] webhooks_on_channel_added_method The URL of the webhook to call
|
324
|
+
# in response to the `on_channel_added` event`.
|
325
|
+
# @param [String] webhooks_on_channel_destroyed_url The URL of the webhook to call
|
326
|
+
# in response to the `on_channel_added` event using the
|
327
|
+
# `webhooks.on_channel_destroyed.method` HTTP method.
|
328
|
+
# @param [String] webhooks_on_channel_destroyed_method The HTTP method to use when
|
329
|
+
# calling the `webhooks.on_channel_destroyed.url`.
|
330
|
+
# @param [String] webhooks_on_channel_updated_url The URL of the webhook to call
|
331
|
+
# in response to the `on_channel_updated` event using the
|
332
|
+
# `webhooks.on_channel_updated.method` HTTP method.
|
333
|
+
# @param [String] webhooks_on_channel_updated_method The HTTP method to use when
|
334
|
+
# calling the `webhooks.on_channel_updated.url`.
|
335
|
+
# @param [String] webhooks_on_member_added_url The URL of the webhook to call in
|
336
|
+
# response to the `on_channel_updated` event using the
|
337
|
+
# `webhooks.on_channel_updated.method` HTTP method.
|
338
|
+
# @param [String] webhooks_on_member_added_method The HTTP method to use when
|
339
|
+
# calling the `webhooks.on_channel_updated.url`.
|
340
|
+
# @param [String] webhooks_on_member_removed_url The URL of the webhook to call in
|
341
|
+
# response to the `on_member_removed` event using the
|
342
|
+
# `webhooks.on_member_removed.method` HTTP method.
|
343
|
+
# @param [String] webhooks_on_member_removed_method The HTTP method to use when
|
344
|
+
# calling the `webhooks.on_member_removed.url`.
|
345
|
+
# @param [String] limits_channel_members The maximum number of Members that can be
|
346
|
+
# added to Channels within this Service. Can be up to 1,000.
|
347
|
+
# @param [String] limits_user_channels The maximum number of Channels Users can be
|
348
|
+
# a Member of within this Service. Can be up to 1,000.
|
337
349
|
# @return [ServiceInstance] Updated ServiceInstance
|
338
|
-
def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, webhooks_on_message_send_url: :unset, webhooks_on_message_send_method: :unset,
|
350
|
+
def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, webhooks_on_message_send_url: :unset, webhooks_on_message_send_method: :unset, webhooks_on_message_update_url: :unset, webhooks_on_message_update_method: :unset, webhooks_on_message_remove_url: :unset, webhooks_on_message_remove_method: :unset, webhooks_on_channel_add_url: :unset, webhooks_on_channel_add_method: :unset, webhooks_on_channel_destroy_url: :unset, webhooks_on_channel_destroy_method: :unset, webhooks_on_channel_update_url: :unset, webhooks_on_channel_update_method: :unset, webhooks_on_member_add_url: :unset, webhooks_on_member_add_method: :unset, webhooks_on_member_remove_url: :unset, webhooks_on_member_remove_method: :unset, webhooks_on_message_sent_url: :unset, webhooks_on_message_sent_method: :unset, webhooks_on_message_updated_url: :unset, webhooks_on_message_updated_method: :unset, webhooks_on_message_removed_url: :unset, webhooks_on_message_removed_method: :unset, webhooks_on_channel_added_url: :unset, webhooks_on_channel_added_method: :unset, webhooks_on_channel_destroyed_url: :unset, webhooks_on_channel_destroyed_method: :unset, webhooks_on_channel_updated_url: :unset, webhooks_on_channel_updated_method: :unset, webhooks_on_member_added_url: :unset, webhooks_on_member_added_method: :unset, webhooks_on_member_removed_url: :unset, webhooks_on_member_removed_method: :unset, limits_channel_members: :unset, limits_user_channels: :unset)
|
339
351
|
data = Twilio::Values.of({
|
340
352
|
'FriendlyName' => friendly_name,
|
341
353
|
'DefaultServiceRoleSid' => default_service_role_sid,
|
@@ -359,52 +371,36 @@ module Twilio
|
|
359
371
|
'WebhookFilters' => Twilio.serialize_list(webhook_filters) { |e| e },
|
360
372
|
'Webhooks.OnMessageSend.Url' => webhooks_on_message_send_url,
|
361
373
|
'Webhooks.OnMessageSend.Method' => webhooks_on_message_send_method,
|
362
|
-
'Webhooks.OnMessageSend.Format' => webhooks_on_message_send_format,
|
363
374
|
'Webhooks.OnMessageUpdate.Url' => webhooks_on_message_update_url,
|
364
375
|
'Webhooks.OnMessageUpdate.Method' => webhooks_on_message_update_method,
|
365
|
-
'Webhooks.OnMessageUpdate.Format' => webhooks_on_message_update_format,
|
366
376
|
'Webhooks.OnMessageRemove.Url' => webhooks_on_message_remove_url,
|
367
377
|
'Webhooks.OnMessageRemove.Method' => webhooks_on_message_remove_method,
|
368
|
-
'Webhooks.OnMessageRemove.Format' => webhooks_on_message_remove_format,
|
369
378
|
'Webhooks.OnChannelAdd.Url' => webhooks_on_channel_add_url,
|
370
379
|
'Webhooks.OnChannelAdd.Method' => webhooks_on_channel_add_method,
|
371
|
-
'Webhooks.OnChannelAdd.Format' => webhooks_on_channel_add_format,
|
372
380
|
'Webhooks.OnChannelDestroy.Url' => webhooks_on_channel_destroy_url,
|
373
381
|
'Webhooks.OnChannelDestroy.Method' => webhooks_on_channel_destroy_method,
|
374
|
-
'Webhooks.OnChannelDestroy.Format' => webhooks_on_channel_destroy_format,
|
375
382
|
'Webhooks.OnChannelUpdate.Url' => webhooks_on_channel_update_url,
|
376
383
|
'Webhooks.OnChannelUpdate.Method' => webhooks_on_channel_update_method,
|
377
|
-
'Webhooks.OnChannelUpdate.Format' => webhooks_on_channel_update_format,
|
378
384
|
'Webhooks.OnMemberAdd.Url' => webhooks_on_member_add_url,
|
379
385
|
'Webhooks.OnMemberAdd.Method' => webhooks_on_member_add_method,
|
380
|
-
'Webhooks.OnMemberAdd.Format' => webhooks_on_member_add_format,
|
381
386
|
'Webhooks.OnMemberRemove.Url' => webhooks_on_member_remove_url,
|
382
387
|
'Webhooks.OnMemberRemove.Method' => webhooks_on_member_remove_method,
|
383
|
-
'Webhooks.OnMemberRemove.Format' => webhooks_on_member_remove_format,
|
384
388
|
'Webhooks.OnMessageSent.Url' => webhooks_on_message_sent_url,
|
385
389
|
'Webhooks.OnMessageSent.Method' => webhooks_on_message_sent_method,
|
386
|
-
'Webhooks.OnMessageSent.Format' => webhooks_on_message_sent_format,
|
387
390
|
'Webhooks.OnMessageUpdated.Url' => webhooks_on_message_updated_url,
|
388
391
|
'Webhooks.OnMessageUpdated.Method' => webhooks_on_message_updated_method,
|
389
|
-
'Webhooks.OnMessageUpdated.Format' => webhooks_on_message_updated_format,
|
390
392
|
'Webhooks.OnMessageRemoved.Url' => webhooks_on_message_removed_url,
|
391
393
|
'Webhooks.OnMessageRemoved.Method' => webhooks_on_message_removed_method,
|
392
|
-
'Webhooks.OnMessageRemoved.Format' => webhooks_on_message_removed_format,
|
393
394
|
'Webhooks.OnChannelAdded.Url' => webhooks_on_channel_added_url,
|
394
395
|
'Webhooks.OnChannelAdded.Method' => webhooks_on_channel_added_method,
|
395
|
-
'Webhooks.OnChannelAdded.Format' => webhooks_on_channel_added_format,
|
396
396
|
'Webhooks.OnChannelDestroyed.Url' => webhooks_on_channel_destroyed_url,
|
397
397
|
'Webhooks.OnChannelDestroyed.Method' => webhooks_on_channel_destroyed_method,
|
398
|
-
'Webhooks.OnChannelDestroyed.Format' => webhooks_on_channel_destroyed_format,
|
399
398
|
'Webhooks.OnChannelUpdated.Url' => webhooks_on_channel_updated_url,
|
400
399
|
'Webhooks.OnChannelUpdated.Method' => webhooks_on_channel_updated_method,
|
401
|
-
'Webhooks.OnChannelUpdated.Format' => webhooks_on_channel_updated_format,
|
402
400
|
'Webhooks.OnMemberAdded.Url' => webhooks_on_member_added_url,
|
403
401
|
'Webhooks.OnMemberAdded.Method' => webhooks_on_member_added_method,
|
404
|
-
'Webhooks.OnMemberAdded.Format' => webhooks_on_member_added_format,
|
405
402
|
'Webhooks.OnMemberRemoved.Url' => webhooks_on_member_removed_url,
|
406
403
|
'Webhooks.OnMemberRemoved.Method' => webhooks_on_member_removed_method,
|
407
|
-
'Webhooks.OnMemberRemoved.Format' => webhooks_on_member_removed_format,
|
408
404
|
'Limits.ChannelMembers' => limits_channel_members,
|
409
405
|
'Limits.UserChannels' => limits_user_channels,
|
410
406
|
})
|
@@ -492,7 +488,8 @@ module Twilio
|
|
492
488
|
# Initialize the ServiceInstance
|
493
489
|
# @param [Version] version Version that contains the resource
|
494
490
|
# @param [Hash] payload payload that contains response from Twilio
|
495
|
-
# @param [String] sid The
|
491
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
492
|
+
# Service resource to fetch.
|
496
493
|
# @return [ServiceInstance] ServiceInstance
|
497
494
|
def initialize(version, payload, sid: nil)
|
498
495
|
super(version)
|
@@ -539,127 +536,127 @@ module Twilio
|
|
539
536
|
end
|
540
537
|
|
541
538
|
##
|
542
|
-
# @return [String]
|
539
|
+
# @return [String] The unique string that identifies the resource
|
543
540
|
def sid
|
544
541
|
@properties['sid']
|
545
542
|
end
|
546
543
|
|
547
544
|
##
|
548
|
-
# @return [String] The
|
545
|
+
# @return [String] The SID of the Account that created the resource
|
549
546
|
def account_sid
|
550
547
|
@properties['account_sid']
|
551
548
|
end
|
552
549
|
|
553
550
|
##
|
554
|
-
# @return [String] The
|
551
|
+
# @return [String] The string that you assigned to describe the resource
|
555
552
|
def friendly_name
|
556
553
|
@properties['friendly_name']
|
557
554
|
end
|
558
555
|
|
559
556
|
##
|
560
|
-
# @return [Time] The date
|
557
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
561
558
|
def date_created
|
562
559
|
@properties['date_created']
|
563
560
|
end
|
564
561
|
|
565
562
|
##
|
566
|
-
# @return [Time] The date
|
563
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
567
564
|
def date_updated
|
568
565
|
@properties['date_updated']
|
569
566
|
end
|
570
567
|
|
571
568
|
##
|
572
|
-
# @return [String] The service role assigned to users when they are added to the service
|
569
|
+
# @return [String] The service role assigned to users when they are added to the service
|
573
570
|
def default_service_role_sid
|
574
571
|
@properties['default_service_role_sid']
|
575
572
|
end
|
576
573
|
|
577
574
|
##
|
578
|
-
# @return [String] The channel role assigned to users when they are added to a channel
|
575
|
+
# @return [String] The channel role assigned to users when they are added to a channel
|
579
576
|
def default_channel_role_sid
|
580
577
|
@properties['default_channel_role_sid']
|
581
578
|
end
|
582
579
|
|
583
580
|
##
|
584
|
-
# @return [String] The channel role assigned to a channel creator when
|
581
|
+
# @return [String] The channel role assigned to a channel creator when they join a new channel
|
585
582
|
def default_channel_creator_role_sid
|
586
583
|
@properties['default_channel_creator_role_sid']
|
587
584
|
end
|
588
585
|
|
589
586
|
##
|
590
|
-
# @return [Boolean]
|
587
|
+
# @return [Boolean] Whether the Message Consumption Horizon feature is enabled
|
591
588
|
def read_status_enabled
|
592
589
|
@properties['read_status_enabled']
|
593
590
|
end
|
594
591
|
|
595
592
|
##
|
596
|
-
# @return [Boolean]
|
593
|
+
# @return [Boolean] Whether the Reachability Indicator feature is enabled for this Service instance
|
597
594
|
def reachability_enabled
|
598
595
|
@properties['reachability_enabled']
|
599
596
|
end
|
600
597
|
|
601
598
|
##
|
602
|
-
# @return [String]
|
599
|
+
# @return [String] How long in seconds to wait before assuming the user is no longer typing
|
603
600
|
def typing_indicator_timeout
|
604
601
|
@properties['typing_indicator_timeout']
|
605
602
|
end
|
606
603
|
|
607
604
|
##
|
608
|
-
# @return [String]
|
605
|
+
# @return [String] DEPRECATED
|
609
606
|
def consumption_report_interval
|
610
607
|
@properties['consumption_report_interval']
|
611
608
|
end
|
612
609
|
|
613
610
|
##
|
614
|
-
# @return [Hash]
|
611
|
+
# @return [Hash] An object that describes the limits of the service instance
|
615
612
|
def limits
|
616
613
|
@properties['limits']
|
617
614
|
end
|
618
615
|
|
619
616
|
##
|
620
|
-
# @return [Hash]
|
617
|
+
# @return [Hash] An object that contains information about the webhooks configured for this service
|
621
618
|
def webhooks
|
622
619
|
@properties['webhooks']
|
623
620
|
end
|
624
621
|
|
625
622
|
##
|
626
|
-
# @return [String] The webhook URL for
|
623
|
+
# @return [String] The webhook URL for pre-event webhooks
|
627
624
|
def pre_webhook_url
|
628
625
|
@properties['pre_webhook_url']
|
629
626
|
end
|
630
627
|
|
631
628
|
##
|
632
|
-
# @return [String] The
|
629
|
+
# @return [String] The URL for post-event webhooks
|
633
630
|
def post_webhook_url
|
634
631
|
@properties['post_webhook_url']
|
635
632
|
end
|
636
633
|
|
637
634
|
##
|
638
|
-
# @return [String] The
|
635
|
+
# @return [String] The HTTP method to use for both PRE and POST webhooks
|
639
636
|
def webhook_method
|
640
637
|
@properties['webhook_method']
|
641
638
|
end
|
642
639
|
|
643
640
|
##
|
644
|
-
# @return [String] The list of WebHook events that are enabled for this Service instance
|
641
|
+
# @return [String] The list of WebHook events that are enabled for this Service instance
|
645
642
|
def webhook_filters
|
646
643
|
@properties['webhook_filters']
|
647
644
|
end
|
648
645
|
|
649
646
|
##
|
650
|
-
# @return [Hash]
|
647
|
+
# @return [Hash] The notification configuration for the Service instance
|
651
648
|
def notifications
|
652
649
|
@properties['notifications']
|
653
650
|
end
|
654
651
|
|
655
652
|
##
|
656
|
-
# @return [String]
|
653
|
+
# @return [String] The absolute URL of the Service resource
|
657
654
|
def url
|
658
655
|
@properties['url']
|
659
656
|
end
|
660
657
|
|
661
658
|
##
|
662
|
-
# @return [String] URLs
|
659
|
+
# @return [String] The absolute URLs of the Service's Channels, Roles, and Users
|
663
660
|
def links
|
664
661
|
@properties['links']
|
665
662
|
end
|
@@ -680,141 +677,151 @@ module Twilio
|
|
680
677
|
|
681
678
|
##
|
682
679
|
# Update the ServiceInstance
|
683
|
-
# @param [String] friendly_name
|
684
|
-
#
|
685
|
-
# @param [String]
|
686
|
-
#
|
687
|
-
#
|
688
|
-
# @param [String]
|
689
|
-
#
|
690
|
-
#
|
691
|
-
#
|
692
|
-
#
|
693
|
-
#
|
694
|
-
# @param [
|
695
|
-
#
|
696
|
-
#
|
697
|
-
# @param [
|
698
|
-
#
|
699
|
-
#
|
700
|
-
#
|
701
|
-
#
|
702
|
-
#
|
703
|
-
# @param [
|
704
|
-
#
|
705
|
-
# @param [
|
706
|
-
#
|
707
|
-
#
|
708
|
-
#
|
709
|
-
#
|
710
|
-
# notifications.
|
711
|
-
# @param [Boolean]
|
712
|
-
#
|
713
|
-
#
|
714
|
-
#
|
715
|
-
#
|
716
|
-
#
|
717
|
-
#
|
718
|
-
#
|
719
|
-
#
|
720
|
-
#
|
721
|
-
#
|
722
|
-
#
|
723
|
-
#
|
680
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
681
|
+
# the resource. It can be up to 64 characters long.
|
682
|
+
# @param [String] default_service_role_sid The service role assigned to users when
|
683
|
+
# they are added to the service. See the [Roles
|
684
|
+
# endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
|
685
|
+
# @param [String] default_channel_role_sid The channel role assigned to users when
|
686
|
+
# they are added to a channel. See the [Roles
|
687
|
+
# endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
|
688
|
+
# @param [String] default_channel_creator_role_sid The channel role assigned to a
|
689
|
+
# channel creator when they join a new channel. See the [Roles
|
690
|
+
# endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
|
691
|
+
# @param [Boolean] read_status_enabled Whether to enable the [Message Consumption
|
692
|
+
# Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The
|
693
|
+
# default is `true`.
|
694
|
+
# @param [Boolean] reachability_enabled Whether to enable the [Reachability
|
695
|
+
# Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this
|
696
|
+
# Service instance. The default is `false`.
|
697
|
+
# @param [String] typing_indicator_timeout How long in seconds after a `started
|
698
|
+
# typing` event until clients should assume that user is no longer typing, even if
|
699
|
+
# no `ended typing` message was received. The default is 5 seconds.
|
700
|
+
# @param [String] consumption_report_interval DEPRECATED. The interval in seconds
|
701
|
+
# between consumption reports submission batches from client endpoints.
|
702
|
+
# @param [Boolean] notifications_new_message_enabled Whether to send a
|
703
|
+
# notification when a new message is added to a channel. Can be: `true` or `false`
|
704
|
+
# and the default is `false`.
|
705
|
+
# @param [String] notifications_new_message_template The template to use to create
|
706
|
+
# the notification text displayed when a new message is added to a channel and
|
707
|
+
# `notifications.new_message.enabled` is `true`.
|
708
|
+
# @param [Boolean] notifications_added_to_channel_enabled Whether to send a
|
709
|
+
# notification when a member is added to a channel. Can be: `true` or `false` and
|
710
|
+
# the default is `false`.
|
711
|
+
# @param [String] notifications_added_to_channel_template The template to use to
|
712
|
+
# create the notification text displayed when a member is added to a channel and
|
713
|
+
# `notifications.added_to_channel.enabled` is `true`.
|
714
|
+
# @param [Boolean] notifications_removed_from_channel_enabled Whether to send a
|
715
|
+
# notification to a user when they are removed from a channel. Can be: `true` or
|
716
|
+
# `false` and the default is `false`.
|
717
|
+
# @param [String] notifications_removed_from_channel_template The template to use
|
718
|
+
# to create the notification text displayed to a user when they are removed from a
|
719
|
+
# channel and `notifications.removed_from_channel.enabled` is `true`.
|
720
|
+
# @param [Boolean] notifications_invited_to_channel_enabled Whether to send a
|
721
|
+
# notification when a user is invited to a channel. Can be: `true` or `false` and
|
722
|
+
# the default is `false`.
|
723
|
+
# @param [String] notifications_invited_to_channel_template The template to use to
|
724
|
+
# create the notification text displayed when a user is invited to a channel and
|
725
|
+
# `notifications.invited_to_channel.enabled` is `true`.
|
726
|
+
# @param [String] pre_webhook_url The URL for pre-event webhooks, which are called
|
727
|
+
# by using the `webhook_method`. See [Webhook
|
728
|
+
# Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
|
729
|
+
# @param [String] post_webhook_url The URL for post-event webhooks, which are
|
730
|
+
# called by using the `webhook_method`. See [Webhook
|
731
|
+
# Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
|
732
|
+
# @param [String] webhook_method The HTTP method to use for calls to the
|
733
|
+
# `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
|
734
|
+
# the default is `POST`. See [Webhook
|
735
|
+
# Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
|
724
736
|
# @param [String] webhook_filters The list of WebHook events that are enabled for
|
725
737
|
# this Service instance. See [Webhook
|
726
|
-
# Events](https://www.twilio.com/docs/
|
727
|
-
# @param [String] webhooks_on_message_send_url The
|
728
|
-
#
|
729
|
-
# webhooks.on_message_send.method
|
730
|
-
# @param [String]
|
731
|
-
# webhooks.on_message_send.
|
732
|
-
# @param [String] webhooks_on_message_update_url The
|
733
|
-
#
|
734
|
-
#
|
735
|
-
#
|
736
|
-
#
|
737
|
-
#
|
738
|
-
#
|
739
|
-
# webhooks.on_message_remove.
|
740
|
-
# @param [String] webhooks_on_message_remove_method The
|
741
|
-
# webhooks.on_message_remove.
|
742
|
-
# @param [String]
|
743
|
-
#
|
744
|
-
#
|
745
|
-
# @param [String] webhooks_on_channel_add_method The
|
746
|
-
# webhooks.on_channel_add.
|
747
|
-
# @param [String]
|
748
|
-
#
|
749
|
-
#
|
750
|
-
#
|
751
|
-
#
|
752
|
-
#
|
753
|
-
#
|
754
|
-
# webhooks.
|
755
|
-
# @param [String]
|
756
|
-
# webhooks.on_channel_update.url
|
757
|
-
# @param [String]
|
758
|
-
# webhooks.
|
759
|
-
#
|
760
|
-
#
|
761
|
-
#
|
762
|
-
# @param [String]
|
763
|
-
#
|
764
|
-
#
|
765
|
-
# @param [String] webhooks_on_member_remove_method The
|
766
|
-
# webhooks.on_member_remove.
|
767
|
-
# @param [String]
|
768
|
-
#
|
769
|
-
#
|
770
|
-
# @param [String] webhooks_on_message_sent_method The
|
771
|
-
#
|
772
|
-
# @param [String]
|
773
|
-
#
|
774
|
-
#
|
775
|
-
#
|
776
|
-
#
|
777
|
-
#
|
778
|
-
#
|
779
|
-
# webhooks.
|
780
|
-
# @param [String]
|
781
|
-
# webhooks.on_message_removed.url
|
782
|
-
# @param [String]
|
783
|
-
#
|
784
|
-
#
|
785
|
-
#
|
786
|
-
#
|
787
|
-
# @param [String]
|
788
|
-
#
|
789
|
-
#
|
790
|
-
#
|
791
|
-
#
|
792
|
-
#
|
793
|
-
#
|
794
|
-
# webhooks.
|
795
|
-
# @param [String]
|
796
|
-
# webhooks.
|
797
|
-
# @param [String]
|
798
|
-
#
|
799
|
-
#
|
800
|
-
#
|
801
|
-
#
|
802
|
-
#
|
803
|
-
#
|
804
|
-
#
|
805
|
-
#
|
806
|
-
#
|
807
|
-
#
|
808
|
-
#
|
809
|
-
#
|
810
|
-
#
|
811
|
-
# webhooks.on_member_removed.method
|
812
|
-
# @param [String] webhooks_on_member_removed_format The
|
813
|
-
# webhooks.on_member_removed.format
|
814
|
-
# @param [String] limits_channel_members The limits.channel_members
|
815
|
-
# @param [String] limits_user_channels The limits.user_channels
|
738
|
+
# Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
|
739
|
+
# @param [String] webhooks_on_message_send_url The URL of the webhook to call in
|
740
|
+
# response to the `on_message_send` event using the
|
741
|
+
# `webhooks.on_message_send.method` HTTP method.
|
742
|
+
# @param [String] webhooks_on_message_send_method The HTTP method to use when
|
743
|
+
# calling the `webhooks.on_message_send.url`.
|
744
|
+
# @param [String] webhooks_on_message_update_url The URL of the webhook to call in
|
745
|
+
# response to the `on_message_update` event using the
|
746
|
+
# `webhooks.on_message_update.method` HTTP method.
|
747
|
+
# @param [String] webhooks_on_message_update_method The HTTP method to use when
|
748
|
+
# calling the `webhooks.on_message_update.url`.
|
749
|
+
# @param [String] webhooks_on_message_remove_url The URL of the webhook to call in
|
750
|
+
# response to the `on_message_remove` event using the
|
751
|
+
# `webhooks.on_message_remove.method` HTTP method.
|
752
|
+
# @param [String] webhooks_on_message_remove_method The HTTP method to use when
|
753
|
+
# calling the `webhooks.on_message_remove.url`.
|
754
|
+
# @param [String] webhooks_on_channel_add_url The URL of the webhook to call in
|
755
|
+
# response to the `on_channel_add` event using the
|
756
|
+
# `webhooks.on_channel_add.method` HTTP method.
|
757
|
+
# @param [String] webhooks_on_channel_add_method The HTTP method to use when
|
758
|
+
# calling the `webhooks.on_channel_add.url`.
|
759
|
+
# @param [String] webhooks_on_channel_destroy_url The URL of the webhook to call
|
760
|
+
# in response to the `on_channel_destroy` event using the
|
761
|
+
# `webhooks.on_channel_destroy.method` HTTP method.
|
762
|
+
# @param [String] webhooks_on_channel_destroy_method The HTTP method to use when
|
763
|
+
# calling the `webhooks.on_channel_destroy.url`.
|
764
|
+
# @param [String] webhooks_on_channel_update_url The URL of the webhook to call in
|
765
|
+
# response to the `on_channel_update` event using the
|
766
|
+
# `webhooks.on_channel_update.method` HTTP method.
|
767
|
+
# @param [String] webhooks_on_channel_update_method The HTTP method to use when
|
768
|
+
# calling the `webhooks.on_channel_update.url`.
|
769
|
+
# @param [String] webhooks_on_member_add_url The URL of the webhook to call in
|
770
|
+
# response to the `on_member_add` event using the `webhooks.on_member_add.method`
|
771
|
+
# HTTP method.
|
772
|
+
# @param [String] webhooks_on_member_add_method The HTTP method to use when
|
773
|
+
# calling the `webhooks.on_member_add.url`.
|
774
|
+
# @param [String] webhooks_on_member_remove_url The URL of the webhook to call in
|
775
|
+
# response to the `on_member_remove` event using the
|
776
|
+
# `webhooks.on_member_remove.method` HTTP method.
|
777
|
+
# @param [String] webhooks_on_member_remove_method The HTTP method to use when
|
778
|
+
# calling the `webhooks.on_member_remove.url`.
|
779
|
+
# @param [String] webhooks_on_message_sent_url The URL of the webhook to call in
|
780
|
+
# response to the `on_message_sent` event using the
|
781
|
+
# `webhooks.on_message_sent.method` HTTP method.
|
782
|
+
# @param [String] webhooks_on_message_sent_method The URL of the webhook to call
|
783
|
+
# in response to the `on_message_sent` event`.
|
784
|
+
# @param [String] webhooks_on_message_updated_url The URL of the webhook to call
|
785
|
+
# in response to the `on_message_updated` event using the
|
786
|
+
# `webhooks.on_message_updated.method` HTTP method.
|
787
|
+
# @param [String] webhooks_on_message_updated_method The HTTP method to use when
|
788
|
+
# calling the `webhooks.on_message_updated.url`.
|
789
|
+
# @param [String] webhooks_on_message_removed_url The URL of the webhook to call
|
790
|
+
# in response to the `on_message_removed` event using the
|
791
|
+
# `webhooks.on_message_removed.method` HTTP method.
|
792
|
+
# @param [String] webhooks_on_message_removed_method The HTTP method to use when
|
793
|
+
# calling the `webhooks.on_message_removed.url`.
|
794
|
+
# @param [String] webhooks_on_channel_added_url The URL of the webhook to call in
|
795
|
+
# response to the `on_channel_added` event using the
|
796
|
+
# `webhooks.on_channel_added.method` HTTP method.
|
797
|
+
# @param [String] webhooks_on_channel_added_method The URL of the webhook to call
|
798
|
+
# in response to the `on_channel_added` event`.
|
799
|
+
# @param [String] webhooks_on_channel_destroyed_url The URL of the webhook to call
|
800
|
+
# in response to the `on_channel_added` event using the
|
801
|
+
# `webhooks.on_channel_destroyed.method` HTTP method.
|
802
|
+
# @param [String] webhooks_on_channel_destroyed_method The HTTP method to use when
|
803
|
+
# calling the `webhooks.on_channel_destroyed.url`.
|
804
|
+
# @param [String] webhooks_on_channel_updated_url The URL of the webhook to call
|
805
|
+
# in response to the `on_channel_updated` event using the
|
806
|
+
# `webhooks.on_channel_updated.method` HTTP method.
|
807
|
+
# @param [String] webhooks_on_channel_updated_method The HTTP method to use when
|
808
|
+
# calling the `webhooks.on_channel_updated.url`.
|
809
|
+
# @param [String] webhooks_on_member_added_url The URL of the webhook to call in
|
810
|
+
# response to the `on_channel_updated` event using the
|
811
|
+
# `webhooks.on_channel_updated.method` HTTP method.
|
812
|
+
# @param [String] webhooks_on_member_added_method The HTTP method to use when
|
813
|
+
# calling the `webhooks.on_channel_updated.url`.
|
814
|
+
# @param [String] webhooks_on_member_removed_url The URL of the webhook to call in
|
815
|
+
# response to the `on_member_removed` event using the
|
816
|
+
# `webhooks.on_member_removed.method` HTTP method.
|
817
|
+
# @param [String] webhooks_on_member_removed_method The HTTP method to use when
|
818
|
+
# calling the `webhooks.on_member_removed.url`.
|
819
|
+
# @param [String] limits_channel_members The maximum number of Members that can be
|
820
|
+
# added to Channels within this Service. Can be up to 1,000.
|
821
|
+
# @param [String] limits_user_channels The maximum number of Channels Users can be
|
822
|
+
# a Member of within this Service. Can be up to 1,000.
|
816
823
|
# @return [ServiceInstance] Updated ServiceInstance
|
817
|
-
def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, webhooks_on_message_send_url: :unset, webhooks_on_message_send_method: :unset,
|
824
|
+
def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, webhooks_on_message_send_url: :unset, webhooks_on_message_send_method: :unset, webhooks_on_message_update_url: :unset, webhooks_on_message_update_method: :unset, webhooks_on_message_remove_url: :unset, webhooks_on_message_remove_method: :unset, webhooks_on_channel_add_url: :unset, webhooks_on_channel_add_method: :unset, webhooks_on_channel_destroy_url: :unset, webhooks_on_channel_destroy_method: :unset, webhooks_on_channel_update_url: :unset, webhooks_on_channel_update_method: :unset, webhooks_on_member_add_url: :unset, webhooks_on_member_add_method: :unset, webhooks_on_member_remove_url: :unset, webhooks_on_member_remove_method: :unset, webhooks_on_message_sent_url: :unset, webhooks_on_message_sent_method: :unset, webhooks_on_message_updated_url: :unset, webhooks_on_message_updated_method: :unset, webhooks_on_message_removed_url: :unset, webhooks_on_message_removed_method: :unset, webhooks_on_channel_added_url: :unset, webhooks_on_channel_added_method: :unset, webhooks_on_channel_destroyed_url: :unset, webhooks_on_channel_destroyed_method: :unset, webhooks_on_channel_updated_url: :unset, webhooks_on_channel_updated_method: :unset, webhooks_on_member_added_url: :unset, webhooks_on_member_added_method: :unset, webhooks_on_member_removed_url: :unset, webhooks_on_member_removed_method: :unset, limits_channel_members: :unset, limits_user_channels: :unset)
|
818
825
|
context.update(
|
819
826
|
friendly_name: friendly_name,
|
820
827
|
default_service_role_sid: default_service_role_sid,
|
@@ -838,52 +845,36 @@ module Twilio
|
|
838
845
|
webhook_filters: webhook_filters,
|
839
846
|
webhooks_on_message_send_url: webhooks_on_message_send_url,
|
840
847
|
webhooks_on_message_send_method: webhooks_on_message_send_method,
|
841
|
-
webhooks_on_message_send_format: webhooks_on_message_send_format,
|
842
848
|
webhooks_on_message_update_url: webhooks_on_message_update_url,
|
843
849
|
webhooks_on_message_update_method: webhooks_on_message_update_method,
|
844
|
-
webhooks_on_message_update_format: webhooks_on_message_update_format,
|
845
850
|
webhooks_on_message_remove_url: webhooks_on_message_remove_url,
|
846
851
|
webhooks_on_message_remove_method: webhooks_on_message_remove_method,
|
847
|
-
webhooks_on_message_remove_format: webhooks_on_message_remove_format,
|
848
852
|
webhooks_on_channel_add_url: webhooks_on_channel_add_url,
|
849
853
|
webhooks_on_channel_add_method: webhooks_on_channel_add_method,
|
850
|
-
webhooks_on_channel_add_format: webhooks_on_channel_add_format,
|
851
854
|
webhooks_on_channel_destroy_url: webhooks_on_channel_destroy_url,
|
852
855
|
webhooks_on_channel_destroy_method: webhooks_on_channel_destroy_method,
|
853
|
-
webhooks_on_channel_destroy_format: webhooks_on_channel_destroy_format,
|
854
856
|
webhooks_on_channel_update_url: webhooks_on_channel_update_url,
|
855
857
|
webhooks_on_channel_update_method: webhooks_on_channel_update_method,
|
856
|
-
webhooks_on_channel_update_format: webhooks_on_channel_update_format,
|
857
858
|
webhooks_on_member_add_url: webhooks_on_member_add_url,
|
858
859
|
webhooks_on_member_add_method: webhooks_on_member_add_method,
|
859
|
-
webhooks_on_member_add_format: webhooks_on_member_add_format,
|
860
860
|
webhooks_on_member_remove_url: webhooks_on_member_remove_url,
|
861
861
|
webhooks_on_member_remove_method: webhooks_on_member_remove_method,
|
862
|
-
webhooks_on_member_remove_format: webhooks_on_member_remove_format,
|
863
862
|
webhooks_on_message_sent_url: webhooks_on_message_sent_url,
|
864
863
|
webhooks_on_message_sent_method: webhooks_on_message_sent_method,
|
865
|
-
webhooks_on_message_sent_format: webhooks_on_message_sent_format,
|
866
864
|
webhooks_on_message_updated_url: webhooks_on_message_updated_url,
|
867
865
|
webhooks_on_message_updated_method: webhooks_on_message_updated_method,
|
868
|
-
webhooks_on_message_updated_format: webhooks_on_message_updated_format,
|
869
866
|
webhooks_on_message_removed_url: webhooks_on_message_removed_url,
|
870
867
|
webhooks_on_message_removed_method: webhooks_on_message_removed_method,
|
871
|
-
webhooks_on_message_removed_format: webhooks_on_message_removed_format,
|
872
868
|
webhooks_on_channel_added_url: webhooks_on_channel_added_url,
|
873
869
|
webhooks_on_channel_added_method: webhooks_on_channel_added_method,
|
874
|
-
webhooks_on_channel_added_format: webhooks_on_channel_added_format,
|
875
870
|
webhooks_on_channel_destroyed_url: webhooks_on_channel_destroyed_url,
|
876
871
|
webhooks_on_channel_destroyed_method: webhooks_on_channel_destroyed_method,
|
877
|
-
webhooks_on_channel_destroyed_format: webhooks_on_channel_destroyed_format,
|
878
872
|
webhooks_on_channel_updated_url: webhooks_on_channel_updated_url,
|
879
873
|
webhooks_on_channel_updated_method: webhooks_on_channel_updated_method,
|
880
|
-
webhooks_on_channel_updated_format: webhooks_on_channel_updated_format,
|
881
874
|
webhooks_on_member_added_url: webhooks_on_member_added_url,
|
882
875
|
webhooks_on_member_added_method: webhooks_on_member_added_method,
|
883
|
-
webhooks_on_member_added_format: webhooks_on_member_added_format,
|
884
876
|
webhooks_on_member_removed_url: webhooks_on_member_removed_url,
|
885
877
|
webhooks_on_member_removed_method: webhooks_on_member_removed_method,
|
886
|
-
webhooks_on_member_removed_format: webhooks_on_member_removed_format,
|
887
878
|
limits_channel_members: limits_channel_members,
|
888
879
|
limits_user_channels: limits_user_channels,
|
889
880
|
)
|