Class: GetStream::Generated::VideoClient

Inherits:
Object
  • Object
show all
Defined in:
lib/getstream_ruby/generated/video_client.rb

Overview

Video API client with generated methods

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ VideoClient

Returns a new instance of VideoClient.



12
13
14
# File 'lib/getstream_ruby/generated/video_client.rb', line 12

def initialize(client)
  @client = client
end

Instance Method Details

#block_user(_type, _id, block_user_request) ⇒ Models::BlockUserResponse

Block a user, preventing them from joining the call until they are unblocked.Sends events:- call.blocked_user

Parameters:

  • _type (String)
  • _id (String)
  • block_user_request (BlockUserRequest)

Returns:



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# File 'lib/getstream_ruby/generated/video_client.rb', line 180

def block_user(_type, _id, block_user_request)
  path = '/api/v2/video/call/{type}/{id}/block'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = block_user_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#collect_user_feedback(_type, _id, collect_user_feedback_request) ⇒ Models::CollectUserFeedbackResponse

Sends events:- call.user_feedback_submitted

Parameters:

  • _type (String)
  • _id (String)
  • collect_user_feedback_request (CollectUserFeedbackRequest)

Returns:



268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# File 'lib/getstream_ruby/generated/video_client.rb', line 268

def collect_user_feedback(_type, _id, collect_user_feedback_request)
  path = '/api/v2/video/call/{type}/{id}/feedback'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = collect_user_feedback_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#create_call_type(create_call_type_request) ⇒ Models::CreateCallTypeResponse

Parameters:

  • create_call_type_request (CreateCallTypeRequest)

Returns:



1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
# File 'lib/getstream_ruby/generated/video_client.rb', line 1190

def create_call_type(create_call_type_request)
  path = '/api/v2/video/calltypes'
  # Build request body
  body = create_call_type_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#create_sip_inbound_routing_rule(sip_inbound_routing_rule_request) ⇒ Models::SIPInboundRoutingRuleResponse

Create a new SIP Inbound Routing Rule with either direct routing or PIN routing configuration

Parameters:

  • sip_inbound_routing_rule_request (SIPInboundRoutingRuleRequest)

Returns:



1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'lib/getstream_ruby/generated/video_client.rb', line 1302

def create_sip_inbound_routing_rule(sip_inbound_routing_rule_request)
  path = '/api/v2/video/sip/inbound_routing_rules'
  # Build request body
  body = sip_inbound_routing_rule_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#create_sip_trunk(create_sip_trunk_request) ⇒ Models::CreateSIPTrunkResponse

Create a new SIP trunk for the application

Parameters:

  • create_sip_trunk_request (CreateSIPTrunkRequest)

Returns:



1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
# File 'lib/getstream_ruby/generated/video_client.rb', line 1368

def create_sip_trunk(create_sip_trunk_request)
  path = '/api/v2/video/sip/inbound_trunks'
  # Build request body
  body = create_sip_trunk_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#delete_call(_type, _id, delete_call_request = nil) ⇒ Models::DeleteCallResponse

Sends events:- call.deleted

Parameters:

  • _type (String)
  • _id (String)
  • delete_call_request (DeleteCallRequest) (defaults to: nil)

Returns:



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
# File 'lib/getstream_ruby/generated/video_client.rb', line 224

def delete_call(_type, _id, delete_call_request = nil)
  path = '/api/v2/video/call/{type}/{id}/delete'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = delete_call_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#delete_call_type(name) ⇒ Models::Response

Parameters:

  • name (String)

Returns:



1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
# File 'lib/getstream_ruby/generated/video_client.rb', line 1207

def delete_call_type(name)
  path = '/api/v2/video/calltypes/{name}'
  # Replace path parameters
  path = path.gsub('{name}', name.to_s)

  # Make the API request
  @client.make_request(
    :delete,
    path
  )
end

#delete_recording(_type, _id, session, filename) ⇒ Models::DeleteRecordingResponse

Deletes recording

Parameters:

  • _type (String)
  • _id (String)
  • session (String)
  • filename (String)

Returns:



953
954
955
956
957
958
959
960
961
962
963
964
965
966
# File 'lib/getstream_ruby/generated/video_client.rb', line 953

def delete_recording(_type, _id, session, filename)
  path = '/api/v2/video/call/{type}/{id}/{session}/recordings/{filename}'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  path = path.gsub('{session}', session.to_s)
  path = path.gsub('{filename}', filename.to_s)

  # Make the API request
  @client.make_request(
    :delete,
    path
  )
end

#delete_sip_inbound_routing_rule(_id) ⇒ Models::DeleteSIPInboundRoutingRuleResponse

Delete a SIP Inbound Routing Rule for the application

Parameters:

  • _id (String)

Returns:



1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
# File 'lib/getstream_ruby/generated/video_client.rb', line 1319

def delete_sip_inbound_routing_rule(_id)
  path = '/api/v2/video/sip/inbound_routing_rules/{id}'
  # Replace path parameters
  path = path.gsub('{id}', _id.to_s)

  # Make the API request
  @client.make_request(
    :delete,
    path
  )
end

#delete_sip_trunk(_id) ⇒ Models::DeleteSIPTrunkResponse

Delete a SIP trunk for the application

Parameters:

  • _id (String)

Returns:



1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
# File 'lib/getstream_ruby/generated/video_client.rb', line 1385

def delete_sip_trunk(_id)
  path = '/api/v2/video/sip/inbound_trunks/{id}'
  # Replace path parameters
  path = path.gsub('{id}', _id.to_s)

  # Make the API request
  @client.make_request(
    :delete,
    path
  )
end

#delete_transcription(_type, _id, session, filename) ⇒ Models::DeleteTranscriptionResponse

Deletes transcription

Parameters:

  • _type (String)
  • _id (String)
  • session (String)
  • filename (String)

Returns:



975
976
977
978
979
980
981
982
983
984
985
986
987
988
# File 'lib/getstream_ruby/generated/video_client.rb', line 975

def delete_transcription(_type, _id, session, filename)
  path = '/api/v2/video/call/{type}/{id}/{session}/transcriptions/{filename}'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  path = path.gsub('{session}', session.to_s)
  path = path.gsub('{filename}', filename.to_s)

  # Make the API request
  @client.make_request(
    :delete,
    path
  )
end

#end_call(_type, _id) ⇒ Models::EndCallResponse

Sends events:- call.ended

Parameters:

  • _type (String)
  • _id (String)

Returns:



333
334
335
336
337
338
339
340
341
342
343
344
# File 'lib/getstream_ruby/generated/video_client.rb', line 333

def end_call(_type, _id)
  path = '/api/v2/video/call/{type}/{id}/mark_ended'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)

  # Make the API request
  @client.make_request(
    :post,
    path
  )
end

#get_active_calls_status ⇒ Models::GetActiveCallsStatusResponse

Get the current status of all active calls including metrics and summary information



18
19
20
21
22
23
24
25
26
# File 'lib/getstream_ruby/generated/video_client.rb', line 18

def get_active_calls_status()
  path = '/api/v2/video/active_calls_status'

  # Make the API request
  @client.make_request(
    :get,
    path
  )
end

#get_call(_type, _id, members_limit = nil, ring = nil, notify = nil, video = nil) ⇒ Models::GetCallResponse

Parameters:

  • _type (String)
  • _id (String)
  • members_limit (Integer) (defaults to: nil)
  • ring (Boolean) (defaults to: nil)
  • notify (Boolean) (defaults to: nil)
  • video (Boolean) (defaults to: nil)

Returns:



110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/getstream_ruby/generated/video_client.rb', line 110

def get_call(_type, _id, members_limit = nil, ring = nil, notify = nil, video = nil)
  path = '/api/v2/video/call/{type}/{id}'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build query parameters
  query_params = {}
  query_params['members_limit'] = members_limit unless members_limit.nil?
  query_params['ring'] = ring unless ring.nil?
  query_params['notify'] = notify unless notify.nil?
  query_params['video'] = video unless video.nil?

  # Make the API request
  @client.make_request(
    :get,
    path,
    query_params: query_params
  )
end

#get_call_participant_session_metrics(_type, _id, session, user, user_session, since = nil, _until = nil) ⇒ Models::GetCallParticipantSessionMetricsResponse

Parameters:

  • _type (String)
  • _id (String)
  • session (String)
  • user (String)
  • user_session (String)
  • since (DateTime) (defaults to: nil)
  • _until (DateTime) (defaults to: nil)

Returns:



624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
# File 'lib/getstream_ruby/generated/video_client.rb', line 624

def get_call_participant_session_metrics(_type, _id, session, user, user_session, since = nil, _until = nil)
  path = '/api/v2/video/call/{type}/{id}/session/{session}/participant/{user}/{user_session}/details/track'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  path = path.gsub('{session}', session.to_s)
  path = path.gsub('{user}', user.to_s)
  path = path.gsub('{user_session}', user_session.to_s)
  # Build query parameters
  query_params = {}
  query_params['since'] = since unless since.nil?
  query_params['until'] = _until unless _until.nil?

  # Make the API request
  @client.make_request(
    :get,
    path,
    query_params: query_params
  )
end

#get_call_report(_type, _id, session_id = nil) ⇒ Models::GetCallReportResponse

Parameters:

  • _type (String)
  • _id (String)
  • session_id (String) (defaults to: nil)

Returns:



511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
# File 'lib/getstream_ruby/generated/video_client.rb', line 511

def get_call_report(_type, _id, session_id = nil)
  path = '/api/v2/video/call/{type}/{id}/report'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build query parameters
  query_params = {}
  query_params['session_id'] = session_id unless session_id.nil?

  # Make the API request
  @client.make_request(
    :get,
    path,
    query_params: query_params
  )
end

#get_call_session_participant_stats_details(call_type, call_id, session, user, user_session, since = nil, _until = nil, max_points = nil) ⇒ Models::GetCallSessionParticipantStatsDetailsResponse

Parameters:

  • call_type (String)
  • call_id (String)
  • session (String)
  • user (String)
  • user_session (String)
  • since (String) (defaults to: nil)
  • _until (String) (defaults to: nil)
  • max_points (Integer) (defaults to: nil)

Returns:



1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
# File 'lib/getstream_ruby/generated/video_client.rb', line 1068

def get_call_session_participant_stats_details(call_type, call_id, session, user, user_session, since = nil, _until = nil, max_points = nil)
  path = '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/participant/{user}/{user_session}/details'
  # Replace path parameters
  path = path.gsub('{call_type}', call_type.to_s)
  path = path.gsub('{call_id}', call_id.to_s)
  path = path.gsub('{session}', session.to_s)
  path = path.gsub('{user}', user.to_s)
  path = path.gsub('{user_session}', user_session.to_s)
  # Build query parameters
  query_params = {}
  query_params['since'] = since unless since.nil?
  query_params['until'] = _until unless _until.nil?
  query_params['max_points'] = max_points unless max_points.nil?

  # Make the API request
  @client.make_request(
    :get,
    path,
    query_params: query_params
  )
end

#get_call_session_participant_stats_timeline(call_type, call_id, session, user, user_session, start_time = nil, end_time = nil, severity = nil) ⇒ Models::QueryCallSessionParticipantStatsTimelineResponse

Parameters:

  • call_type (String)
  • call_id (String)
  • session (String)
  • user (String)
  • user_session (String)
  • start_time (String) (defaults to: nil)
  • end_time (String) (defaults to: nil)
  • severity (Array<String>) (defaults to: nil)

Returns:



1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
# File 'lib/getstream_ruby/generated/video_client.rb', line 1134

def get_call_session_participant_stats_timeline(call_type, call_id, session, user, user_session, start_time = nil, end_time = nil, severity = nil)
  path = '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/participants/{user}/{user_session}/timeline'
  # Replace path parameters
  path = path.gsub('{call_type}', call_type.to_s)
  path = path.gsub('{call_id}', call_id.to_s)
  path = path.gsub('{session}', session.to_s)
  path = path.gsub('{user}', user.to_s)
  path = path.gsub('{user_session}', user_session.to_s)
  # Build query parameters
  query_params = {}
  query_params['start_time'] = start_time unless start_time.nil?
  query_params['end_time'] = end_time unless end_time.nil?
  query_params['severity'] = severity unless severity.nil?

  # Make the API request
  @client.make_request(
    :get,
    path,
    query_params: query_params
  )
end

#get_call_stats_map(call_type, call_id, session, start_time = nil, end_time = nil, exclude_publishers = nil, exclude_subscribers = nil, exclude_sfus = nil) ⇒ Models::QueryCallStatsMapResponse

Parameters:

  • call_type (String)
  • call_id (String)
  • session (String)
  • start_time (DateTime) (defaults to: nil)
  • end_time (DateTime) (defaults to: nil)
  • exclude_publishers (Boolean) (defaults to: nil)
  • exclude_subscribers (Boolean) (defaults to: nil)
  • exclude_sfus (Boolean) (defaults to: nil)

Returns:



1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
# File 'lib/getstream_ruby/generated/video_client.rb', line 1035

def get_call_stats_map(call_type, call_id, session, start_time = nil, end_time = nil, exclude_publishers = nil, exclude_subscribers = nil, exclude_sfus = nil)
  path = '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/map'
  # Replace path parameters
  path = path.gsub('{call_type}', call_type.to_s)
  path = path.gsub('{call_id}', call_id.to_s)
  path = path.gsub('{session}', session.to_s)
  # Build query parameters
  query_params = {}
  query_params['start_time'] = start_time unless start_time.nil?
  query_params['end_time'] = end_time unless end_time.nil?
  query_params['exclude_publishers'] = exclude_publishers unless exclude_publishers.nil?
  query_params['exclude_subscribers'] = exclude_subscribers unless exclude_subscribers.nil?
  query_params['exclude_sfus'] = exclude_sfus unless exclude_sfus.nil?

  # Make the API request
  @client.make_request(
    :get,
    path,
    query_params: query_params
  )
end

#get_call_type(name) ⇒ Models::GetCallTypeResponse

Parameters:

  • name (String)

Returns:



1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
# File 'lib/getstream_ruby/generated/video_client.rb', line 1223

def get_call_type(name)
  path = '/api/v2/video/calltypes/{name}'
  # Replace path parameters
  path = path.gsub('{name}', name.to_s)

  # Make the API request
  @client.make_request(
    :get,
    path
  )
end

#get_daily_digest(date = nil, target_app_id = nil) ⇒ Models::GetDailyDigestResponse

Returns the app's per-broadcast daily digest bundle for one UTC day, with an explicit readiness status (ready, pending, failed, future_date, expired). Payload keys are only present when status is ready.

Parameters:

  • date (String) (defaults to: nil)
  • target_app_id (String) (defaults to: nil)

Returns:



1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
# File 'lib/getstream_ruby/generated/video_client.rb', line 1456

def get_daily_digest(date = nil, target_app_id = nil)
  path = '/api/v2/video/stats/daily_digest'
  # Build query parameters
  query_params = {}
  query_params['date'] = date unless date.nil?
  query_params['target_app_id'] = target_app_id unless target_app_id.nil?

  # Make the API request
  @client.make_request(
    :get,
    path,
    query_params: query_params
  )
end

#get_edges ⇒ Models::GetEdgesResponse

Returns the list of all edges available for video calls.



1258
1259
1260
1261
1262
1263
1264
1265
1266
# File 'lib/getstream_ruby/generated/video_client.rb', line 1258

def get_edges()
  path = '/api/v2/video/edges'

  # Make the API request
  @client.make_request(
    :get,
    path
  )
end

#get_or_create_call(_type, _id, get_or_create_call_request = nil) ⇒ Models::GetOrCreateCallResponse

Gets or creates a new callSends events:- call.created- call.notification- call.ring

Parameters:

  • _type (String)
  • _id (String)
  • get_or_create_call_request (GetOrCreateCallRequest) (defaults to: nil)

Returns:



158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/getstream_ruby/generated/video_client.rb', line 158

def get_or_create_call(_type, _id, get_or_create_call_request = nil)
  path = '/api/v2/video/call/{type}/{id}'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = get_or_create_call_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#go_live(_type, _id, go_live_request = nil) ⇒ Models::GoLiveResponse

Sends events:- call.live_started

Parameters:

  • _type (String)
  • _id (String)
  • go_live_request (GoLiveRequest) (defaults to: nil)

Returns:



290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
# File 'lib/getstream_ruby/generated/video_client.rb', line 290

def go_live(_type, _id, go_live_request = nil)
  path = '/api/v2/video/call/{type}/{id}/go_live'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = go_live_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#kick_user(_type, _id, kick_user_request) ⇒ Models::KickUserResponse

Kicks a user from the call. Optionally block the user from rejoining by setting block=true.Sends events:- call.blocked_user- call.kicked_user

Parameters:

  • _type (String)
  • _id (String)
  • kick_user_request (KickUserRequest)

Returns:



312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
# File 'lib/getstream_ruby/generated/video_client.rb', line 312

def kick_user(_type, _id, kick_user_request)
  path = '/api/v2/video/call/{type}/{id}/kick'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = kick_user_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#list_call_types ⇒ Models::ListCallTypeResponse



1176
1177
1178
1179
1180
1181
1182
1183
1184
# File 'lib/getstream_ruby/generated/video_client.rb', line 1176

def list_call_types()
  path = '/api/v2/video/calltypes'

  # Make the API request
  @client.make_request(
    :get,
    path
  )
end

#list_recordings(_type, _id) ⇒ Models::ListRecordingsResponse

Lists recordings

Parameters:

  • _type (String)
  • _id (String)

Returns:



444
445
446
447
448
449
450
451
452
453
454
455
# File 'lib/getstream_ruby/generated/video_client.rb', line 444

def list_recordings(_type, _id)
  path = '/api/v2/video/call/{type}/{id}/recordings'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)

  # Make the API request
  @client.make_request(
    :get,
    path
  )
end

#list_sip_inbound_routing_rule ⇒ Models::ListSIPInboundRoutingRuleResponse

List all SIP Inbound Routing Rules for the application



1288
1289
1290
1291
1292
1293
1294
1295
1296
# File 'lib/getstream_ruby/generated/video_client.rb', line 1288

def list_sip_inbound_routing_rule()
  path = '/api/v2/video/sip/inbound_routing_rules'

  # Make the API request
  @client.make_request(
    :get,
    path
  )
end

#list_sip_trunks ⇒ Models::ListSIPTrunksResponse

List all SIP trunks for the application



1354
1355
1356
1357
1358
1359
1360
1361
1362
# File 'lib/getstream_ruby/generated/video_client.rb', line 1354

def list_sip_trunks()
  path = '/api/v2/video/sip/inbound_trunks'

  # Make the API request
  @client.make_request(
    :get,
    path
  )
end

#list_transcriptions(_type, _id) ⇒ Models::ListTranscriptionsResponse

Lists transcriptions

Parameters:

  • _type (String)
  • _id (String)

Returns:



867
868
869
870
871
872
873
874
875
876
877
878
# File 'lib/getstream_ruby/generated/video_client.rb', line 867

def list_transcriptions(_type, _id)
  path = '/api/v2/video/call/{type}/{id}/transcriptions'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)

  # Make the API request
  @client.make_request(
    :get,
    path
  )
end

#mute_users(_type, _id, mute_users_request = nil) ⇒ Models::MuteUsersResponse

Mutes users in a call

Parameters:

  • _type (String)
  • _id (String)
  • mute_users_request (MuteUsersRequest) (defaults to: nil)

Returns:



374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
# File 'lib/getstream_ruby/generated/video_client.rb', line 374

def mute_users(_type, _id, mute_users_request = nil)
  path = '/api/v2/video/call/{type}/{id}/mute_users'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = mute_users_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#query_aggregate_call_stats(query_aggregate_call_stats_request = nil) ⇒ Models::QueryAggregateCallStatsResponse

Parameters:

  • query_aggregate_call_stats_request (QueryAggregateCallStatsRequest) (defaults to: nil)

Returns:



1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
# File 'lib/getstream_ruby/generated/video_client.rb', line 1438

def query_aggregate_call_stats(query_aggregate_call_stats_request = nil)
  path = '/api/v2/video/stats'
  # Build request body
  body = query_aggregate_call_stats_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#query_call_members(query_call_members_request) ⇒ Models::QueryCallMembersResponse

Query call members with filter query

Parameters:

  • query_call_members_request (QueryCallMembersRequest)

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/getstream_ruby/generated/video_client.rb', line 54

def query_call_members(query_call_members_request)
  path = '/api/v2/video/call/members'
  # Build request body
  body = query_call_members_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#query_call_participant_sessions(_type, _id, session, limit = nil, prev = nil, _next = nil, filter_conditions = nil) ⇒ Models::QueryCallParticipantSessionsResponse

Parameters:

  • _type (String)
  • _id (String)
  • session (String)
  • limit (Integer) (defaults to: nil)
  • prev (String) (defaults to: nil)
  • _next (String) (defaults to: nil)
  • filter_conditions (Object) (defaults to: nil)

Returns:



655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
# File 'lib/getstream_ruby/generated/video_client.rb', line 655

def query_call_participant_sessions(_type, _id, session, limit = nil, prev = nil, _next = nil, filter_conditions = nil)
  path = '/api/v2/video/call/{type}/{id}/session/{session}/participant_sessions'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  path = path.gsub('{session}', session.to_s)
  # Build query parameters
  query_params = {}
  query_params['limit'] = limit unless limit.nil?
  query_params['prev'] = prev unless prev.nil?
  query_params['next'] = _next unless _next.nil?
  query_params['filter_conditions'] = filter_conditions unless filter_conditions.nil?

  # Make the API request
  @client.make_request(
    :get,
    path,
    query_params: query_params
  )
end

#query_call_participants(_id, _type, query_call_participants_request = nil, limit = nil) ⇒ Models::QueryCallParticipantsResponse

Returns a list of participants connected to the call

Parameters:

  • _id (String)
  • _type (String)
  • query_call_participants_request (QueryCallParticipantsRequest) (defaults to: nil)
  • limit (Integer) (defaults to: nil)

Returns:



397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
# File 'lib/getstream_ruby/generated/video_client.rb', line 397

def query_call_participants(_id, _type, query_call_participants_request = nil, limit = nil)
  path = '/api/v2/video/call/{type}/{id}/participants'
  # Replace path parameters
  path = path.gsub('{id}', _id.to_s)
  path = path.gsub('{type}', _type.to_s)
  # Build query parameters
  query_params = {}
  query_params['limit'] = limit unless limit.nil?
  # Build request body
  body = query_call_participants_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    query_params: query_params,
    body: body
  )
end

#query_call_ring_attempts(query_call_ring_attempts_request) ⇒ Models::QueryCallRingAttemptsResponse

Returns a call's ring attempts, newest first. A session can be rung more than once, and the session-level accepted_by / rejected_by / missed_by maps flatten every ring together; an attempt says which ring a user acted on, which devices it reached, and who settled it and why. Pass call_session_id to limit the read to one session.

Parameters:

  • query_call_ring_attempts_request (QueryCallRingAttemptsRequest)

Returns:



71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/getstream_ruby/generated/video_client.rb', line 71

def query_call_ring_attempts(query_call_ring_attempts_request)
  path = '/api/v2/video/call/ring_attempts'
  # Build request body
  body = query_call_ring_attempts_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#query_call_session_participant_stats(call_type, call_id, session, limit = nil, prev = nil, _next = nil, sort = nil, filter_conditions = nil) ⇒ Models::QueryCallSessionParticipantStatsResponse

Parameters:

  • call_type (String)
  • call_id (String)
  • session (String)
  • limit (Integer) (defaults to: nil)
  • prev (String) (defaults to: nil)
  • _next (String) (defaults to: nil)
  • sort (Array<SortParamRequest>) (defaults to: nil)
  • filter_conditions (Object) (defaults to: nil)

Returns:



1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
# File 'lib/getstream_ruby/generated/video_client.rb', line 1101

def query_call_session_participant_stats(call_type, call_id, session, limit = nil, prev = nil, _next = nil, sort = nil, filter_conditions = nil)
  path = '/api/v2/video/call_stats/{call_type}/{call_id}/{session}/participants'
  # Replace path parameters
  path = path.gsub('{call_type}', call_type.to_s)
  path = path.gsub('{call_id}', call_id.to_s)
  path = path.gsub('{session}', session.to_s)
  # Build query parameters
  query_params = {}
  query_params['limit'] = limit unless limit.nil?
  query_params['prev'] = prev unless prev.nil?
  query_params['next'] = _next unless _next.nil?
  query_params['sort'] = sort unless sort.nil?
  query_params['filter_conditions'] = filter_conditions unless filter_conditions.nil?

  # Make the API request
  @client.make_request(
    :get,
    path,
    query_params: query_params
  )
end

#query_call_session_stats(query_call_session_stats_request = nil) ⇒ Models::QueryCallSessionStatsResponse

Parameters:

  • query_call_session_stats_request (QueryCallSessionStatsRequest) (defaults to: nil)

Returns:



1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
# File 'lib/getstream_ruby/generated/video_client.rb', line 1011

def query_call_session_stats(query_call_session_stats_request = nil)
  path = '/api/v2/video/call_stats'
  # Build request body
  body = query_call_session_stats_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#query_call_stats(query_call_stats_request = nil) ⇒ Models::QueryCallStatsResponse

Parameters:

  • query_call_stats_request (QueryCallStatsRequest) (defaults to: nil)

Returns:



88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/getstream_ruby/generated/video_client.rb', line 88

def query_call_stats(query_call_stats_request = nil)
  path = '/api/v2/video/call/stats'
  # Build request body
  body = query_call_stats_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#query_calls(query_calls_request = nil) ⇒ Models::QueryCallsResponse

Query calls with filter query

Parameters:

  • query_calls_request (QueryCallsRequest) (defaults to: nil)

Returns:



1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
# File 'lib/getstream_ruby/generated/video_client.rb', line 1160

def query_calls(query_calls_request = nil)
  path = '/api/v2/video/calls'
  # Build request body
  body = query_calls_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#query_user_feedback(query_user_feedback_request = nil, full = nil) ⇒ Models::QueryUserFeedbackResponse

Parameters:

  • query_user_feedback_request (QueryUserFeedbackRequest) (defaults to: nil)
  • full (Boolean) (defaults to: nil)

Returns:



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/getstream_ruby/generated/video_client.rb', line 33

def query_user_feedback(query_user_feedback_request = nil, full = nil)
  path = '/api/v2/video/call/feedback'
  # Build query parameters
  query_params = {}
  query_params['full'] = full unless full.nil?
  # Build request body
  body = query_user_feedback_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    query_params: query_params,
    body: body
  )
end

#report_client_call_event(report_client_event_request) ⇒ Models::ReportClientEventResponse

Reports a batch of client-side telemetry events. Events are processed independently; one invalid event does not block the rest of the batch, but the request fails if any event is invalid.

Parameters:

  • report_client_event_request (ReportClientEventRequest)

Returns:



994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
# File 'lib/getstream_ruby/generated/video_client.rb', line 994

def report_client_call_event(report_client_event_request)
  path = '/api/v2/video/call_client_event'
  # Build request body
  body = report_client_event_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#resolve_sip_auth(resolve_sip_auth_request) ⇒ Models::ResolveSipAuthResponse

Determine authentication requirements for an inbound SIP call before sending a digest challenge

Parameters:

  • resolve_sip_auth_request (ResolveSipAuthRequest)

Returns:



1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
# File 'lib/getstream_ruby/generated/video_client.rb', line 1272

def resolve_sip_auth(resolve_sip_auth_request)
  path = '/api/v2/video/sip/auth'
  # Build request body
  body = resolve_sip_auth_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#resolve_sip_inbound(resolve_sip_inbound_request) ⇒ Models::ResolveSipInboundResponse

Resolve SIP inbound routing based on trunk number, caller number, and challenge authentication

Parameters:

  • resolve_sip_inbound_request (ResolveSipInboundRequest)

Returns:



1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
# File 'lib/getstream_ruby/generated/video_client.rb', line 1421

def resolve_sip_inbound(resolve_sip_inbound_request)
  path = '/api/v2/video/sip/resolve'
  # Build request body
  body = resolve_sip_inbound_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#ring_call(_type, _id, ring_call_request = nil) ⇒ Models::RingCallResponse

Sends a ring notification to the provided users who are not already in the call. All users should be members of the callSends events:- call.ring

Parameters:

  • _type (String)
  • _id (String)
  • ring_call_request (RingCallRequest) (defaults to: nil)

Returns:



534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
# File 'lib/getstream_ruby/generated/video_client.rb', line 534

def ring_call(_type, _id, ring_call_request = nil)
  path = '/api/v2/video/call/{type}/{id}/ring'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = ring_call_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#send_call_event(_type, _id, send_call_event_request = nil) ⇒ Models::SendCallEventResponse

Sends custom event to the callSends events:- custom

Parameters:

  • _type (String)
  • _id (String)
  • send_call_event_request (SendCallEventRequest) (defaults to: nil)

Returns:



246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# File 'lib/getstream_ruby/generated/video_client.rb', line 246

def send_call_event(_type, _id, send_call_event_request = nil)
  path = '/api/v2/video/call/{type}/{id}/event'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = send_call_event_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#send_closed_caption(_type, _id, send_closed_caption_request) ⇒ Models::SendClosedCaptionResponse

Sends a closed caption event to the callSends events:- call.closed_caption

Parameters:

  • _type (String)
  • _id (String)
  • send_closed_caption_request (SendClosedCaptionRequest)

Returns:



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'lib/getstream_ruby/generated/video_client.rb', line 202

def send_closed_caption(_type, _id, send_closed_caption_request)
  path = '/api/v2/video/call/{type}/{id}/closed_captions'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = send_closed_caption_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#start_closed_captions(_type, _id, start_closed_captions_request = nil) ⇒ Models::StartClosedCaptionsResponse

Starts closed captions

Parameters:

  • _type (String)
  • _id (String)
  • start_closed_captions_request (StartClosedCaptionsRequest) (defaults to: nil)

Returns:



700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
# File 'lib/getstream_ruby/generated/video_client.rb', line 700

def start_closed_captions(_type, _id, start_closed_captions_request = nil)
  path = '/api/v2/video/call/{type}/{id}/start_closed_captions'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = start_closed_captions_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#start_frame_recording(_type, _id, start_frame_recording_request = nil) ⇒ Models::StartFrameRecordingResponse

Starts frame by frame recordingSends events:- call.frame_recording_started

Parameters:

  • _type (String)
  • _id (String)
  • start_frame_recording_request (StartFrameRecordingRequest) (defaults to: nil)

Returns:



722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
# File 'lib/getstream_ruby/generated/video_client.rb', line 722

def start_frame_recording(_type, _id, start_frame_recording_request = nil)
  path = '/api/v2/video/call/{type}/{id}/start_frame_recording'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = start_frame_recording_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#start_hls_broadcasting(_type, _id) ⇒ Models::StartHLSBroadcastingResponse

Starts HLS broadcasting

Parameters:

  • _type (String)
  • _id (String)

Returns:



681
682
683
684
685
686
687
688
689
690
691
692
# File 'lib/getstream_ruby/generated/video_client.rb', line 681

def start_hls_broadcasting(_type, _id)
  path = '/api/v2/video/call/{type}/{id}/start_broadcasting'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)

  # Make the API request
  @client.make_request(
    :post,
    path
  )
end

#start_recording(_type, _id, recording_type, start_recording_request = nil) ⇒ Models::StartRecordingResponse

Starts recordingSends events:- call.recording_started

Parameters:

  • _type (String)
  • _id (String)
  • recording_type (RecordingType)
  • start_recording_request (StartRecordingRequest) (defaults to: nil)

Returns:



464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
# File 'lib/getstream_ruby/generated/video_client.rb', line 464

def start_recording(_type, _id, recording_type, start_recording_request = nil)
  path = '/api/v2/video/call/{type}/{id}/recordings/{recording_type}/start'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  path = path.gsub('{recording_type}', recording_type.to_s)
  # Build request body
  body = start_recording_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#start_rtmp_broadcasts(_type, _id, start_rtmp_broadcasts_request) ⇒ Models::StartRTMPBroadcastsResponse

Starts RTMP broadcasts for the provided RTMP destinations

Parameters:

  • _type (String)
  • _id (String)
  • start_rtmp_broadcasts_request (StartRTMPBroadcastsRequest)

Returns:



556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
# File 'lib/getstream_ruby/generated/video_client.rb', line 556

def start_rtmp_broadcasts(_type, _id, start_rtmp_broadcasts_request)
  path = '/api/v2/video/call/{type}/{id}/rtmp_broadcasts'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = start_rtmp_broadcasts_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#start_transcription(_type, _id, start_transcription_request = nil) ⇒ Models::StartTranscriptionResponse

Starts transcription

Parameters:

  • _type (String)
  • _id (String)
  • start_transcription_request (StartTranscriptionRequest) (defaults to: nil)

Returns:



744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
# File 'lib/getstream_ruby/generated/video_client.rb', line 744

def start_transcription(_type, _id, start_transcription_request = nil)
  path = '/api/v2/video/call/{type}/{id}/start_transcription'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = start_transcription_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#stop_all_rtmp_broadcasts(_type, _id) ⇒ Models::StopAllRTMPBroadcastsResponse

Stop all RTMP broadcasts for the provided call

Parameters:

  • _type (String)
  • _id (String)

Returns:



577
578
579
580
581
582
583
584
585
586
587
588
# File 'lib/getstream_ruby/generated/video_client.rb', line 577

def stop_all_rtmp_broadcasts(_type, _id)
  path = '/api/v2/video/call/{type}/{id}/rtmp_broadcasts/stop'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)

  # Make the API request
  @client.make_request(
    :post,
    path
  )
end

#stop_closed_captions(_type, _id, stop_closed_captions_request = nil) ⇒ Models::StopClosedCaptionsResponse

Stops closed captionsSends events:- call.transcription_stopped

Parameters:

  • _type (String)
  • _id (String)
  • stop_closed_captions_request (StopClosedCaptionsRequest) (defaults to: nil)

Returns:



784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
# File 'lib/getstream_ruby/generated/video_client.rb', line 784

def stop_closed_captions(_type, _id, stop_closed_captions_request = nil)
  path = '/api/v2/video/call/{type}/{id}/stop_closed_captions'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = stop_closed_captions_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#stop_frame_recording(_type, _id) ⇒ Models::StopFrameRecordingResponse

Stops frame recordingSends events:- call.frame_recording_stopped

Parameters:

  • _type (String)
  • _id (String)

Returns:



805
806
807
808
809
810
811
812
813
814
815
816
# File 'lib/getstream_ruby/generated/video_client.rb', line 805

def stop_frame_recording(_type, _id)
  path = '/api/v2/video/call/{type}/{id}/stop_frame_recording'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)

  # Make the API request
  @client.make_request(
    :post,
    path
  )
end

#stop_hls_broadcasting(_type, _id) ⇒ Models::StopHLSBroadcastingResponse

Stops HLS broadcasting

Parameters:

  • _type (String)
  • _id (String)

Returns:



765
766
767
768
769
770
771
772
773
774
775
776
# File 'lib/getstream_ruby/generated/video_client.rb', line 765

def stop_hls_broadcasting(_type, _id)
  path = '/api/v2/video/call/{type}/{id}/stop_broadcasting'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)

  # Make the API request
  @client.make_request(
    :post,
    path
  )
end

#stop_live(_type, _id, stop_live_request = nil) ⇒ Models::StopLiveResponse

Sends events:- call.updated

Parameters:

  • _type (String)
  • _id (String)
  • stop_live_request (StopLiveRequest) (defaults to: nil)

Returns:



824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
# File 'lib/getstream_ruby/generated/video_client.rb', line 824

def stop_live(_type, _id, stop_live_request = nil)
  path = '/api/v2/video/call/{type}/{id}/stop_live'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = stop_live_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#stop_recording(_type, _id, recording_type, stop_recording_request = nil) ⇒ Models::StopRecordingResponse

Stops recordingSends events:- call.recording_stopped

Parameters:

  • _type (String)
  • _id (String)
  • recording_type (RecordingType)
  • stop_recording_request (StopRecordingRequest) (defaults to: nil)

Returns:



488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
# File 'lib/getstream_ruby/generated/video_client.rb', line 488

def stop_recording(_type, _id, recording_type, stop_recording_request = nil)
  path = '/api/v2/video/call/{type}/{id}/recordings/{recording_type}/stop'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  path = path.gsub('{recording_type}', recording_type.to_s)
  # Build request body
  body = stop_recording_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#stop_rtmp_broadcast(_type, _id, name, stop_rtmp_broadcasts_request = nil) ⇒ Models::StopRTMPBroadcastsResponse

Stop RTMP broadcasts for the provided RTMP destinations

Parameters:

  • _type (String)
  • _id (String)
  • name (String)
  • stop_rtmp_broadcasts_request (StopRTMPBroadcastsRequest) (defaults to: nil)

Returns:



597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
# File 'lib/getstream_ruby/generated/video_client.rb', line 597

def stop_rtmp_broadcast(_type, _id, name, stop_rtmp_broadcasts_request = nil)
  path = '/api/v2/video/call/{type}/{id}/rtmp_broadcasts/{name}/stop'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  path = path.gsub('{name}', name.to_s)
  # Build request body
  body = stop_rtmp_broadcasts_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#stop_transcription(_type, _id, stop_transcription_request = nil) ⇒ Models::StopTranscriptionResponse

Stops transcriptionSends events:- call.transcription_stopped

Parameters:

  • _type (String)
  • _id (String)
  • stop_transcription_request (StopTranscriptionRequest) (defaults to: nil)

Returns:



846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
# File 'lib/getstream_ruby/generated/video_client.rb', line 846

def stop_transcription(_type, _id, stop_transcription_request = nil)
  path = '/api/v2/video/call/{type}/{id}/stop_transcription'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = stop_transcription_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#unblock_user(_type, _id, unblock_user_request) ⇒ Models::UnblockUserResponse

Removes the block for a user on a call. The user will be able to join the call again.Sends events:- call.unblocked_user

Parameters:

  • _type (String)
  • _id (String)
  • unblock_user_request (UnblockUserRequest)

Returns:



886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
# File 'lib/getstream_ruby/generated/video_client.rb', line 886

def unblock_user(_type, _id, unblock_user_request)
  path = '/api/v2/video/call/{type}/{id}/unblock'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = unblock_user_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#update_call(_type, _id, update_call_request = nil) ⇒ Models::UpdateCallResponse

Sends events:- call.updated

Parameters:

  • _type (String)
  • _id (String)
  • update_call_request (UpdateCallRequest) (defaults to: nil)

Returns:



136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/getstream_ruby/generated/video_client.rb', line 136

def update_call(_type, _id, update_call_request = nil)
  path = '/api/v2/video/call/{type}/{id}'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = update_call_request || {}

  # Make the API request
  @client.make_request(
    :patch,
    path,
    body: body
  )
end

#update_call_members(_type, _id, update_call_members_request = nil) ⇒ Models::UpdateCallMembersResponse

Sends events:- call.member_added- call.member_removed- call.member_updated

Parameters:

  • _type (String)
  • _id (String)
  • update_call_members_request (UpdateCallMembersRequest) (defaults to: nil)

Returns:



352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
# File 'lib/getstream_ruby/generated/video_client.rb', line 352

def update_call_members(_type, _id, update_call_members_request = nil)
  path = '/api/v2/video/call/{type}/{id}/members'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = update_call_members_request || {}

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#update_call_type(name, update_call_type_request = nil) ⇒ Models::UpdateCallTypeResponse

Parameters:

  • name (String)
  • update_call_type_request (UpdateCallTypeRequest) (defaults to: nil)

Returns:



1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
# File 'lib/getstream_ruby/generated/video_client.rb', line 1240

def update_call_type(name, update_call_type_request = nil)
  path = '/api/v2/video/calltypes/{name}'
  # Replace path parameters
  path = path.gsub('{name}', name.to_s)
  # Build request body
  body = update_call_type_request || {}

  # Make the API request
  @client.make_request(
    :put,
    path,
    body: body
  )
end

#update_sip_inbound_routing_rule(_id, update_sip_inbound_routing_rule_request) ⇒ Models::UpdateSIPInboundRoutingRuleResponse

Update an existing SIP Inbound Routing Rule with new configuration

Parameters:

  • _id (String)
  • update_sip_inbound_routing_rule_request (UpdateSIPInboundRoutingRuleRequest)

Returns:



1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
# File 'lib/getstream_ruby/generated/video_client.rb', line 1336

def update_sip_inbound_routing_rule(_id, update_sip_inbound_routing_rule_request)
  path = '/api/v2/video/sip/inbound_routing_rules/{id}'
  # Replace path parameters
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = update_sip_inbound_routing_rule_request

  # Make the API request
  @client.make_request(
    :put,
    path,
    body: body
  )
end

#update_sip_trunk(_id, update_sip_trunk_request) ⇒ Models::UpdateSIPTrunkResponse

Update a SIP trunk for the application

Parameters:

  • _id (String)
  • update_sip_trunk_request (UpdateSIPTrunkRequest)

Returns:



1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
# File 'lib/getstream_ruby/generated/video_client.rb', line 1402

def update_sip_trunk(_id, update_sip_trunk_request)
  path = '/api/v2/video/sip/inbound_trunks/{id}'
  # Replace path parameters
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = update_sip_trunk_request

  # Make the API request
  @client.make_request(
    :put,
    path,
    body: body
  )
end

#update_user_permissions(_type, _id, update_user_permissions_request) ⇒ Models::UpdateUserPermissionsResponse

Updates user permissionsSends events:- call.permissions_updated

Parameters:

  • _type (String)
  • _id (String)
  • update_user_permissions_request (UpdateUserPermissionsRequest)

Returns:



930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
# File 'lib/getstream_ruby/generated/video_client.rb', line 930

def update_user_permissions(_type, _id, update_user_permissions_request)
  path = '/api/v2/video/call/{type}/{id}/user_permissions'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = update_user_permissions_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#video_pin(_type, _id, pin_request) ⇒ Models::PinResponse

Pins a track for all users in the call.

Parameters:

  • _type (String)
  • _id (String)
  • pin_request (PinRequest)

Returns:



423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
# File 'lib/getstream_ruby/generated/video_client.rb', line 423

def video_pin(_type, _id, pin_request)
  path = '/api/v2/video/call/{type}/{id}/pin'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = pin_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end

#video_unpin(_type, _id, unpin_request) ⇒ Models::UnpinResponse

Unpins a track for all users in the call.

Parameters:

  • _type (String)
  • _id (String)
  • unpin_request (UnpinRequest)

Returns:



908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
# File 'lib/getstream_ruby/generated/video_client.rb', line 908

def video_unpin(_type, _id, unpin_request)
  path = '/api/v2/video/call/{type}/{id}/unpin'
  # Replace path parameters
  path = path.gsub('{type}', _type.to_s)
  path = path.gsub('{id}', _id.to_s)
  # Build request body
  body = unpin_request

  # Make the API request
  @client.make_request(
    :post,
    path,
    body: body
  )
end