twilio-ruby 6.0.0 → 6.0.1
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/CHANGES.md +20 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -7
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +24 -24
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +6 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +11 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +27 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +27 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -2
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +18 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -18
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +9 -9
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +30 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +24 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +24 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +9 -9
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -2
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +31 -3
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +28 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +196 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +224 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +49 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -4
- data/lib/twilio-ruby/rest/numbers_base.rb +6 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +4 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +3 -3
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +5 -5
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +2 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +7 -7
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +4 -4
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +3 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +7 -7
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/room.rb +3 -3
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -2
- data/lib/twilio-ruby/rest.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +5 -2
|
@@ -244,7 +244,7 @@ module Twilio
|
|
|
244
244
|
|
|
245
245
|
unless @members
|
|
246
246
|
@members = MemberList.new(
|
|
247
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
247
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
248
248
|
end
|
|
249
249
|
|
|
250
250
|
@members
|
|
@@ -263,7 +263,7 @@ module Twilio
|
|
|
263
263
|
|
|
264
264
|
unless @messages
|
|
265
265
|
@messages = MessageList.new(
|
|
266
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
266
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
@messages
|
|
@@ -282,7 +282,7 @@ module Twilio
|
|
|
282
282
|
|
|
283
283
|
unless @invites
|
|
284
284
|
@invites = InviteList.new(
|
|
285
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
285
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
286
286
|
end
|
|
287
287
|
|
|
288
288
|
@invites
|
|
@@ -228,7 +228,7 @@ module Twilio
|
|
|
228
228
|
def user_channels
|
|
229
229
|
unless @user_channels
|
|
230
230
|
@user_channels = UserChannelList.new(
|
|
231
|
-
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid],
|
|
231
|
+
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
|
|
232
232
|
end
|
|
233
233
|
@user_channels
|
|
234
234
|
end
|
|
@@ -375,7 +375,7 @@ module Twilio
|
|
|
375
375
|
|
|
376
376
|
unless @channels
|
|
377
377
|
@channels = ChannelList.new(
|
|
378
|
-
@version, service_sid: @solution[:sid],
|
|
378
|
+
@version, service_sid: @solution[:sid], )
|
|
379
379
|
end
|
|
380
380
|
|
|
381
381
|
@channels
|
|
@@ -394,7 +394,7 @@ module Twilio
|
|
|
394
394
|
|
|
395
395
|
unless @roles
|
|
396
396
|
@roles = RoleList.new(
|
|
397
|
-
@version, service_sid: @solution[:sid],
|
|
397
|
+
@version, service_sid: @solution[:sid], )
|
|
398
398
|
end
|
|
399
399
|
|
|
400
400
|
@roles
|
|
@@ -413,7 +413,7 @@ module Twilio
|
|
|
413
413
|
|
|
414
414
|
unless @users
|
|
415
415
|
@users = UserList.new(
|
|
416
|
-
@version, service_sid: @solution[:sid],
|
|
416
|
+
@version, service_sid: @solution[:sid], )
|
|
417
417
|
end
|
|
418
418
|
|
|
419
419
|
@users
|
|
@@ -273,7 +273,7 @@ module Twilio
|
|
|
273
273
|
|
|
274
274
|
unless @webhooks
|
|
275
275
|
@webhooks = WebhookList.new(
|
|
276
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
276
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
277
277
|
end
|
|
278
278
|
|
|
279
279
|
@webhooks
|
|
@@ -292,7 +292,7 @@ module Twilio
|
|
|
292
292
|
|
|
293
293
|
unless @members
|
|
294
294
|
@members = MemberList.new(
|
|
295
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
295
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
296
296
|
end
|
|
297
297
|
|
|
298
298
|
@members
|
|
@@ -311,7 +311,7 @@ module Twilio
|
|
|
311
311
|
|
|
312
312
|
unless @messages
|
|
313
313
|
@messages = MessageList.new(
|
|
314
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
314
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
315
315
|
end
|
|
316
316
|
|
|
317
317
|
@messages
|
|
@@ -330,7 +330,7 @@ module Twilio
|
|
|
330
330
|
|
|
331
331
|
unless @invites
|
|
332
332
|
@invites = InviteList.new(
|
|
333
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
333
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
334
334
|
end
|
|
335
335
|
|
|
336
336
|
@invites
|
|
@@ -242,7 +242,7 @@ module Twilio
|
|
|
242
242
|
|
|
243
243
|
unless @user_channels
|
|
244
244
|
@user_channels = UserChannelList.new(
|
|
245
|
-
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid],
|
|
245
|
+
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
|
|
246
246
|
end
|
|
247
247
|
|
|
248
248
|
@user_channels
|
|
@@ -261,7 +261,7 @@ module Twilio
|
|
|
261
261
|
|
|
262
262
|
unless @user_bindings
|
|
263
263
|
@user_bindings = UserBindingList.new(
|
|
264
|
-
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid],
|
|
264
|
+
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
|
|
265
265
|
end
|
|
266
266
|
|
|
267
267
|
@user_bindings
|
|
@@ -307,7 +307,7 @@ module Twilio
|
|
|
307
307
|
|
|
308
308
|
unless @bindings
|
|
309
309
|
@bindings = BindingList.new(
|
|
310
|
-
@version, service_sid: @solution[:sid],
|
|
310
|
+
@version, service_sid: @solution[:sid], )
|
|
311
311
|
end
|
|
312
312
|
|
|
313
313
|
@bindings
|
|
@@ -326,7 +326,7 @@ module Twilio
|
|
|
326
326
|
|
|
327
327
|
unless @channels
|
|
328
328
|
@channels = ChannelList.new(
|
|
329
|
-
@version, service_sid: @solution[:sid],
|
|
329
|
+
@version, service_sid: @solution[:sid], )
|
|
330
330
|
end
|
|
331
331
|
|
|
332
332
|
@channels
|
|
@@ -345,7 +345,7 @@ module Twilio
|
|
|
345
345
|
|
|
346
346
|
unless @roles
|
|
347
347
|
@roles = RoleList.new(
|
|
348
|
-
@version, service_sid: @solution[:sid],
|
|
348
|
+
@version, service_sid: @solution[:sid], )
|
|
349
349
|
end
|
|
350
350
|
|
|
351
351
|
@roles
|
|
@@ -364,7 +364,7 @@ module Twilio
|
|
|
364
364
|
|
|
365
365
|
unless @users
|
|
366
366
|
@users = UserList.new(
|
|
367
|
-
@version, service_sid: @solution[:sid],
|
|
367
|
+
@version, service_sid: @solution[:sid], )
|
|
368
368
|
end
|
|
369
369
|
|
|
370
370
|
@users
|
|
@@ -42,6 +42,7 @@ module Twilio
|
|
|
42
42
|
# @param [Array[String]] auto_creation_webhook_filters The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated`
|
|
43
43
|
# @param [String] auto_creation_studio_flow_sid For type `studio`, the studio flow SID where the webhook should be sent to.
|
|
44
44
|
# @param [String] auto_creation_studio_retry_count For type `studio`, number of times to retry the webhook request
|
|
45
|
+
# @param [String] address_country An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.
|
|
45
46
|
# @return [AddressConfigurationInstance] Created AddressConfigurationInstance
|
|
46
47
|
def create(
|
|
47
48
|
type: nil,
|
|
@@ -54,7 +55,8 @@ module Twilio
|
|
|
54
55
|
auto_creation_webhook_method: :unset,
|
|
55
56
|
auto_creation_webhook_filters: :unset,
|
|
56
57
|
auto_creation_studio_flow_sid: :unset,
|
|
57
|
-
auto_creation_studio_retry_count: :unset
|
|
58
|
+
auto_creation_studio_retry_count: :unset,
|
|
59
|
+
address_country: :unset
|
|
58
60
|
)
|
|
59
61
|
|
|
60
62
|
data = Twilio::Values.of({
|
|
@@ -69,6 +71,7 @@ module Twilio
|
|
|
69
71
|
'AutoCreation.WebhookFilters' => Twilio.serialize_list(auto_creation_webhook_filters) { |e| e },
|
|
70
72
|
'AutoCreation.StudioFlowSid' => auto_creation_studio_flow_sid,
|
|
71
73
|
'AutoCreation.StudioRetryCount' => auto_creation_studio_retry_count,
|
|
74
|
+
'AddressCountry' => address_country,
|
|
72
75
|
})
|
|
73
76
|
|
|
74
77
|
payload = @version.create('POST', @uri, data: data)
|
|
@@ -328,6 +331,7 @@ module Twilio
|
|
|
328
331
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
329
332
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
330
333
|
'url' => payload['url'],
|
|
334
|
+
'address_country' => payload['address_country'],
|
|
331
335
|
}
|
|
332
336
|
|
|
333
337
|
# Context
|
|
@@ -400,6 +404,12 @@ module Twilio
|
|
|
400
404
|
@properties['url']
|
|
401
405
|
end
|
|
402
406
|
|
|
407
|
+
##
|
|
408
|
+
# @return [String] An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.
|
|
409
|
+
def address_country
|
|
410
|
+
@properties['address_country']
|
|
411
|
+
end
|
|
412
|
+
|
|
403
413
|
##
|
|
404
414
|
# Delete the AddressConfigurationInstance
|
|
405
415
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
@@ -270,7 +270,7 @@ module Twilio
|
|
|
270
270
|
|
|
271
271
|
unless @delivery_receipts
|
|
272
272
|
@delivery_receipts = DeliveryReceiptList.new(
|
|
273
|
-
@version, conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid],
|
|
273
|
+
@version, conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid], )
|
|
274
274
|
end
|
|
275
275
|
|
|
276
276
|
@delivery_receipts
|
|
@@ -80,6 +80,9 @@ module Twilio
|
|
|
80
80
|
# Lists ConversationInstance records from the API as a list.
|
|
81
81
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
82
82
|
# memory before returning.
|
|
83
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
|
84
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
|
85
|
+
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
|
83
86
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
84
87
|
# guarantees to never return more than limit. Default is no limit
|
|
85
88
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -87,8 +90,11 @@ module Twilio
|
|
|
87
90
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
88
91
|
# efficient page size, i.e. min(limit, 1000)
|
|
89
92
|
# @return [Array] Array of up to limit results
|
|
90
|
-
def list(limit: nil, page_size: nil)
|
|
93
|
+
def list(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
|
|
91
94
|
self.stream(
|
|
95
|
+
start_date: start_date,
|
|
96
|
+
end_date: end_date,
|
|
97
|
+
state: state,
|
|
92
98
|
limit: limit,
|
|
93
99
|
page_size: page_size
|
|
94
100
|
).entries
|
|
@@ -98,6 +104,9 @@ module Twilio
|
|
|
98
104
|
# Streams Instance records from the API as an Enumerable.
|
|
99
105
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
100
106
|
# is reached.
|
|
107
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
|
108
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
|
109
|
+
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
|
101
110
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
102
111
|
# guarantees to never return more than limit. Default is no limit
|
|
103
112
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -105,10 +114,13 @@ module Twilio
|
|
|
105
114
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
106
115
|
# efficient page size, i.e. min(limit, 1000)
|
|
107
116
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
108
|
-
def stream(limit: nil, page_size: nil)
|
|
117
|
+
def stream(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
|
|
109
118
|
limits = @version.read_limits(limit, page_size)
|
|
110
119
|
|
|
111
120
|
page = self.page(
|
|
121
|
+
start_date: start_date,
|
|
122
|
+
end_date: end_date,
|
|
123
|
+
state: state,
|
|
112
124
|
page_size: limits[:page_size], )
|
|
113
125
|
|
|
114
126
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
@@ -131,13 +143,22 @@ module Twilio
|
|
|
131
143
|
##
|
|
132
144
|
# Retrieve a single page of ConversationInstance records from the API.
|
|
133
145
|
# Request is executed immediately.
|
|
146
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
|
147
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
|
148
|
+
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
|
134
149
|
# @param [String] page_token PageToken provided by the API
|
|
135
150
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
136
151
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
137
152
|
# @return [Page] Page of ConversationInstance
|
|
138
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
153
|
+
def page(start_date: :unset, end_date: :unset, state: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
139
154
|
params = Twilio::Values.of({
|
|
140
155
|
|
|
156
|
+
'StartDate' => start_date,
|
|
157
|
+
|
|
158
|
+
'EndDate' => end_date,
|
|
159
|
+
|
|
160
|
+
'State' => state,
|
|
161
|
+
|
|
141
162
|
'PageToken' => page_token,
|
|
142
163
|
'Page' => page_number,
|
|
143
164
|
'PageSize' => page_size,
|
|
@@ -274,7 +295,7 @@ module Twilio
|
|
|
274
295
|
|
|
275
296
|
unless @webhooks
|
|
276
297
|
@webhooks = WebhookList.new(
|
|
277
|
-
@version, conversation_sid: @solution[:sid],
|
|
298
|
+
@version, conversation_sid: @solution[:sid], )
|
|
278
299
|
end
|
|
279
300
|
|
|
280
301
|
@webhooks
|
|
@@ -293,7 +314,7 @@ module Twilio
|
|
|
293
314
|
|
|
294
315
|
unless @messages
|
|
295
316
|
@messages = MessageList.new(
|
|
296
|
-
@version, conversation_sid: @solution[:sid],
|
|
317
|
+
@version, conversation_sid: @solution[:sid], )
|
|
297
318
|
end
|
|
298
319
|
|
|
299
320
|
@messages
|
|
@@ -312,7 +333,7 @@ module Twilio
|
|
|
312
333
|
|
|
313
334
|
unless @participants
|
|
314
335
|
@participants = ParticipantList.new(
|
|
315
|
-
@version, conversation_sid: @solution[:sid],
|
|
336
|
+
@version, conversation_sid: @solution[:sid], )
|
|
316
337
|
end
|
|
317
338
|
|
|
318
339
|
@participants
|
|
@@ -275,7 +275,7 @@ module Twilio
|
|
|
275
275
|
|
|
276
276
|
unless @delivery_receipts
|
|
277
277
|
@delivery_receipts = DeliveryReceiptList.new(
|
|
278
|
-
@version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid],
|
|
278
|
+
@version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid], )
|
|
279
279
|
end
|
|
280
280
|
|
|
281
281
|
@delivery_receipts
|
|
@@ -83,6 +83,9 @@ module Twilio
|
|
|
83
83
|
# Lists ConversationInstance records from the API as a list.
|
|
84
84
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
85
85
|
# memory before returning.
|
|
86
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
|
87
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
|
88
|
+
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
|
86
89
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
87
90
|
# guarantees to never return more than limit. Default is no limit
|
|
88
91
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -90,8 +93,11 @@ module Twilio
|
|
|
90
93
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
91
94
|
# efficient page size, i.e. min(limit, 1000)
|
|
92
95
|
# @return [Array] Array of up to limit results
|
|
93
|
-
def list(limit: nil, page_size: nil)
|
|
96
|
+
def list(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
|
|
94
97
|
self.stream(
|
|
98
|
+
start_date: start_date,
|
|
99
|
+
end_date: end_date,
|
|
100
|
+
state: state,
|
|
95
101
|
limit: limit,
|
|
96
102
|
page_size: page_size
|
|
97
103
|
).entries
|
|
@@ -101,6 +107,9 @@ module Twilio
|
|
|
101
107
|
# Streams Instance records from the API as an Enumerable.
|
|
102
108
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
103
109
|
# is reached.
|
|
110
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
|
111
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
|
112
|
+
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
|
104
113
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
105
114
|
# guarantees to never return more than limit. Default is no limit
|
|
106
115
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -108,10 +117,13 @@ module Twilio
|
|
|
108
117
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
109
118
|
# efficient page size, i.e. min(limit, 1000)
|
|
110
119
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
111
|
-
def stream(limit: nil, page_size: nil)
|
|
120
|
+
def stream(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
|
|
112
121
|
limits = @version.read_limits(limit, page_size)
|
|
113
122
|
|
|
114
123
|
page = self.page(
|
|
124
|
+
start_date: start_date,
|
|
125
|
+
end_date: end_date,
|
|
126
|
+
state: state,
|
|
115
127
|
page_size: limits[:page_size], )
|
|
116
128
|
|
|
117
129
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
@@ -134,13 +146,22 @@ module Twilio
|
|
|
134
146
|
##
|
|
135
147
|
# Retrieve a single page of ConversationInstance records from the API.
|
|
136
148
|
# Request is executed immediately.
|
|
149
|
+
# @param [String] start_date Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
|
|
150
|
+
# @param [String] end_date End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
|
|
151
|
+
# @param [State] state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
|
|
137
152
|
# @param [String] page_token PageToken provided by the API
|
|
138
153
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
139
154
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
140
155
|
# @return [Page] Page of ConversationInstance
|
|
141
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
156
|
+
def page(start_date: :unset, end_date: :unset, state: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
|
142
157
|
params = Twilio::Values.of({
|
|
143
158
|
|
|
159
|
+
'StartDate' => start_date,
|
|
160
|
+
|
|
161
|
+
'EndDate' => end_date,
|
|
162
|
+
|
|
163
|
+
'State' => state,
|
|
164
|
+
|
|
144
165
|
'PageToken' => page_token,
|
|
145
166
|
'Page' => page_number,
|
|
146
167
|
'PageSize' => page_size,
|
|
@@ -280,7 +301,7 @@ module Twilio
|
|
|
280
301
|
|
|
281
302
|
unless @participants
|
|
282
303
|
@participants = ParticipantList.new(
|
|
283
|
-
@version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid],
|
|
304
|
+
@version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
|
|
284
305
|
end
|
|
285
306
|
|
|
286
307
|
@participants
|
|
@@ -299,7 +320,7 @@ module Twilio
|
|
|
299
320
|
|
|
300
321
|
unless @messages
|
|
301
322
|
@messages = MessageList.new(
|
|
302
|
-
@version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid],
|
|
323
|
+
@version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
|
|
303
324
|
end
|
|
304
325
|
|
|
305
326
|
@messages
|
|
@@ -318,7 +339,7 @@ module Twilio
|
|
|
318
339
|
|
|
319
340
|
unless @webhooks
|
|
320
341
|
@webhooks = WebhookList.new(
|
|
321
|
-
@version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid],
|
|
342
|
+
@version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:sid], )
|
|
322
343
|
end
|
|
323
344
|
|
|
324
345
|
@webhooks
|
|
@@ -245,7 +245,7 @@ module Twilio
|
|
|
245
245
|
|
|
246
246
|
unless @user_conversations
|
|
247
247
|
@user_conversations = UserConversationList.new(
|
|
248
|
-
@version, chat_service_sid: @solution[:chat_service_sid], user_sid: @solution[:sid],
|
|
248
|
+
@version, chat_service_sid: @solution[:chat_service_sid], user_sid: @solution[:sid], )
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
@user_conversations
|
|
@@ -192,7 +192,7 @@ module Twilio
|
|
|
192
192
|
def participant_conversations
|
|
193
193
|
unless @participant_conversations
|
|
194
194
|
@participant_conversations = ParticipantConversationList.new(
|
|
195
|
-
@version, chat_service_sid: @solution[:sid],
|
|
195
|
+
@version, chat_service_sid: @solution[:sid], )
|
|
196
196
|
end
|
|
197
197
|
@participant_conversations
|
|
198
198
|
end
|
|
@@ -210,7 +210,7 @@ module Twilio
|
|
|
210
210
|
|
|
211
211
|
unless @users
|
|
212
212
|
@users = UserList.new(
|
|
213
|
-
@version, chat_service_sid: @solution[:sid],
|
|
213
|
+
@version, chat_service_sid: @solution[:sid], )
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
@users
|
|
@@ -229,7 +229,7 @@ module Twilio
|
|
|
229
229
|
|
|
230
230
|
unless @roles
|
|
231
231
|
@roles = RoleList.new(
|
|
232
|
-
@version, chat_service_sid: @solution[:sid],
|
|
232
|
+
@version, chat_service_sid: @solution[:sid], )
|
|
233
233
|
end
|
|
234
234
|
|
|
235
235
|
@roles
|
|
@@ -258,7 +258,7 @@ module Twilio
|
|
|
258
258
|
|
|
259
259
|
unless @bindings
|
|
260
260
|
@bindings = BindingList.new(
|
|
261
|
-
@version, chat_service_sid: @solution[:sid],
|
|
261
|
+
@version, chat_service_sid: @solution[:sid], )
|
|
262
262
|
end
|
|
263
263
|
|
|
264
264
|
@bindings
|
|
@@ -277,7 +277,7 @@ module Twilio
|
|
|
277
277
|
|
|
278
278
|
unless @conversations
|
|
279
279
|
@conversations = ConversationList.new(
|
|
280
|
-
@version, chat_service_sid: @solution[:sid],
|
|
280
|
+
@version, chat_service_sid: @solution[:sid], )
|
|
281
281
|
end
|
|
282
282
|
|
|
283
283
|
@conversations
|
|
@@ -230,7 +230,7 @@ module Twilio
|
|
|
230
230
|
def sink_test
|
|
231
231
|
unless @sink_test
|
|
232
232
|
@sink_test = SinkTestList.new(
|
|
233
|
-
@version, sid: @solution[:sid],
|
|
233
|
+
@version, sid: @solution[:sid], )
|
|
234
234
|
end
|
|
235
235
|
@sink_test
|
|
236
236
|
end
|
|
@@ -241,7 +241,7 @@ module Twilio
|
|
|
241
241
|
def sink_validate
|
|
242
242
|
unless @sink_validate
|
|
243
243
|
@sink_validate = SinkValidateList.new(
|
|
244
|
-
@version, sid: @solution[:sid],
|
|
244
|
+
@version, sid: @solution[:sid], )
|
|
245
245
|
end
|
|
246
246
|
@sink_validate
|
|
247
247
|
end
|