Skip to content

Commit 24cb87d

Browse files
authored
chore(llc): regenerated open api models (v180.1.0) (#1000)
* regenerated open api models (v180.1.0) * fix * fix * fix * linter fixes * removed the exclude that broke golden tests
1 parent fc219c4 commit 24cb87d

File tree

62 files changed

+2933
-3297
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2933
-3297
lines changed

analysis_options.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ analyzer:
1010
# We explicitly enabled even conflicting rules and are fixing the conflict
1111
# in this file.
1212
included_file_warning: ignore
13-
13+
1414
todo: ignore
1515
exclude:
1616
# exclude all the generated files
1717
- packages/*/lib/**/*.*.dart
1818
- packages/stream_video/lib/open_api/**
1919
- packages/stream_video/lib/protobuf/**
2020

21-
2221
linter:
2322
rules:
2423
## Disabled rules because the repository doesn't respect them (yet)
@@ -97,4 +96,4 @@ linter:
9796
no_default_cases: false
9897

9998
# Would be a breaking change in some cases, no need to add those just for lintl cleanup
100-
avoid_positional_boolean_parameters: false
99+
avoid_positional_boolean_parameters: false

packages/stream_video/lib/globals.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:meta/meta.dart';
22

33
const String streamSdkName = 'stream-flutter';
44
const String streamVideoVersion = '0.9.6';
5-
const String openapiModelsVersion = '167.9.1';
5+
const String openapiModelsVersion = '180.1.0';
66
const String protocolModelsVersion = '1.38.0';
77
const String androidWebRTCVersion = '1.3.8';
88
const String iosWebRTCVersion = '125.6422.65';

packages/stream_video/lib/open_api/video/coordinator/api.dart

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ part 'api/productvideo_api.dart';
3232

3333
part 'model/api_error.dart';
3434
part 'model/accept_call_response.dart';
35-
part 'model/aggregated_stats.dart';
3635
part 'model/app_event_response.dart';
3736
part 'model/app_updated_event.dart';
3837
part 'model/audio_settings_request.dart';
@@ -55,7 +54,6 @@ part 'model/call_deleted_event.dart';
5554
part 'model/call_duration_report.dart';
5655
part 'model/call_duration_report_response.dart';
5756
part 'model/call_ended_event.dart';
58-
part 'model/call_event.dart';
5957
part 'model/call_frame_recording_failed_event.dart';
6058
part 'model/call_frame_recording_frame_ready_event.dart';
6159
part 'model/call_frame_recording_started_event.dart';
@@ -81,6 +79,7 @@ part 'model/call_recording_ready_event.dart';
8179
part 'model/call_recording_started_event.dart';
8280
part 'model/call_recording_stopped_event.dart';
8381
part 'model/call_rejected_event.dart';
82+
part 'model/call_report_response.dart';
8483
part 'model/call_request.dart';
8584
part 'model/call_response.dart';
8685
part 'model/call_ring_event.dart';
@@ -96,8 +95,8 @@ part 'model/call_session_started_event.dart';
9695
part 'model/call_settings_request.dart';
9796
part 'model/call_settings_response.dart';
9897
part 'model/call_state_response_fields.dart';
98+
part 'model/call_stats_report_ready_event.dart';
9999
part 'model/call_stats_report_summary_response.dart';
100-
part 'model/call_timeline.dart';
101100
part 'model/call_transcription.dart';
102101
part 'model/call_transcription_failed_event.dart';
103102
part 'model/call_transcription_ready_event.dart';
@@ -107,14 +106,14 @@ part 'model/call_updated_event.dart';
107106
part 'model/call_user_muted_event.dart';
108107
part 'model/calls_per_day_report.dart';
109108
part 'model/calls_per_day_report_response.dart';
109+
part 'model/chat_activity_stats_response.dart';
110110
part 'model/closed_caption_event.dart';
111111
part 'model/collect_user_feedback_request.dart';
112112
part 'model/collect_user_feedback_response.dart';
113113
part 'model/connect_user_details_request.dart';
114114
part 'model/connected_event.dart';
115115
part 'model/connection_error_event.dart';
116-
part 'model/coordinates.dart';
117-
part 'model/count.dart';
116+
part 'model/count_by_minute_response.dart';
118117
part 'model/create_device_request.dart';
119118
part 'model/create_guest_request.dart';
120119
part 'model/create_guest_response.dart';
@@ -136,21 +135,20 @@ part 'model/egress_hls_response.dart';
136135
part 'model/egress_rtmp_response.dart';
137136
part 'model/egress_response.dart';
138137
part 'model/end_call_response.dart';
139-
part 'model/fps_stats.dart';
140138
part 'model/file_upload_config.dart';
141139
part 'model/frame_recording_response.dart';
142140
part 'model/frame_recording_settings_request.dart';
143141
part 'model/frame_recording_settings_response.dart';
144142
part 'model/geofence_settings_request.dart';
145143
part 'model/geofence_settings_response.dart';
146-
part 'model/geolocation_result.dart';
144+
part 'model/get_call_report_response.dart';
147145
part 'model/get_call_response.dart';
148-
part 'model/get_call_stats_response.dart';
149146
part 'model/get_edges_response.dart';
150147
part 'model/get_or_create_call_request.dart';
151148
part 'model/get_or_create_call_response.dart';
152149
part 'model/go_live_request.dart';
153150
part 'model/go_live_response.dart';
151+
part 'model/grouped_stats_response.dart';
154152
part 'model/hls_settings_request.dart';
155153
part 'model/hls_settings_response.dart';
156154
part 'model/health_check_event.dart';
@@ -163,30 +161,33 @@ part 'model/limits_settings_response.dart';
163161
part 'model/list_devices_response.dart';
164162
part 'model/list_recordings_response.dart';
165163
part 'model/list_transcriptions_response.dart';
166-
part 'model/location.dart';
167-
part 'model/media_pub_sub_hint.dart';
168164
part 'model/member_request.dart';
169165
part 'model/member_response.dart';
166+
part 'model/message_stats_response.dart';
170167
part 'model/mute_users_request.dart';
171168
part 'model/mute_users_response.dart';
172169
part 'model/network_metrics_report_response.dart';
173170
part 'model/noise_cancellation_settings.dart';
174171
part 'model/own_capability.dart';
175172
part 'model/own_user_response.dart';
173+
part 'model/participant_count_by_minute_response.dart';
174+
part 'model/participant_count_over_time_response.dart';
175+
part 'model/participant_report_response.dart';
176176
part 'model/per_sdk_usage_report.dart';
177177
part 'model/permission_request_event.dart';
178178
part 'model/pin_request.dart';
179179
part 'model/pin_response.dart';
180180
part 'model/privacy_settings.dart';
181-
part 'model/published_track_info.dart';
182-
part 'model/publisher_aggregate_stats.dart';
181+
part 'model/publisher_stats_response.dart';
183182
part 'model/push_preferences.dart';
184183
part 'model/quality_score_report.dart';
185184
part 'model/quality_score_report_response.dart';
186185
part 'model/query_aggregate_call_stats_request.dart';
187186
part 'model/query_aggregate_call_stats_response.dart';
188187
part 'model/query_call_members_request.dart';
189188
part 'model/query_call_members_response.dart';
189+
part 'model/query_call_participants_request.dart';
190+
part 'model/query_call_participants_response.dart';
190191
part 'model/query_call_stats_request.dart';
191192
part 'model/query_call_stats_response.dart';
192193
part 'model/query_calls_request.dart';
@@ -202,14 +203,14 @@ part 'model/record_settings_response.dart';
202203
part 'model/reject_call_request.dart';
203204
part 'model/reject_call_response.dart';
204205
part 'model/report_by_histogram_bucket.dart';
206+
part 'model/report_response.dart';
205207
part 'model/request_permission_request.dart';
206208
part 'model/request_permission_response.dart';
207209
part 'model/response.dart';
208210
part 'model/ring_settings_request.dart';
209211
part 'model/ring_settings_response.dart';
210212
part 'model/sdk_usage_report.dart';
211213
part 'model/sdk_usage_report_response.dart';
212-
part 'model/sfu_location_response.dart';
213214
part 'model/sfu_response.dart';
214215
part 'model/screensharing_settings_request.dart';
215216
part 'model/screensharing_settings_response.dart';
@@ -243,13 +244,12 @@ part 'model/stop_rtmp_broadcasts_response.dart';
243244
part 'model/stop_recording_response.dart';
244245
part 'model/stop_transcription_request.dart';
245246
part 'model/stop_transcription_response.dart';
246-
part 'model/subsession.dart';
247-
part 'model/turn_aggregated_stats.dart';
247+
part 'model/subscriber_stats_response.dart';
248248
part 'model/target_resolution.dart';
249249
part 'model/thumbnail_response.dart';
250250
part 'model/thumbnails_settings_request.dart';
251251
part 'model/thumbnails_settings_response.dart';
252-
part 'model/time_stats.dart';
252+
part 'model/track_stats_response.dart';
253253
part 'model/transcription_settings_request.dart';
254254
part 'model/transcription_settings_response.dart';
255255
part 'model/typing_indicators.dart';
@@ -270,18 +270,17 @@ part 'model/user_banned_event.dart';
270270
part 'model/user_deactivated_event.dart';
271271
part 'model/user_feedback_report.dart';
272272
part 'model/user_feedback_report_response.dart';
273-
part 'model/user_info_response.dart';
274273
part 'model/user_muted_event.dart';
274+
part 'model/user_rating_report_response.dart';
275275
part 'model/user_reactivated_event.dart';
276276
part 'model/user_request.dart';
277277
part 'model/user_response.dart';
278278
part 'model/user_response_privacy_fields.dart';
279-
part 'model/user_session_stats.dart';
280-
part 'model/user_stats.dart';
281279
part 'model/user_updated_event.dart';
282280
part 'model/video_dimension.dart';
283281
part 'model/video_event.dart';
284-
part 'model/video_quality.dart';
282+
part 'model/video_reaction_over_time_response.dart';
283+
part 'model/video_reactions_response.dart';
285284
part 'model/video_settings_request.dart';
286285
part 'model/video_settings_response.dart';
287286
part 'model/ws_auth_message.dart';

packages/stream_video/lib/open_api/video/coordinator/api/productvideo_api.dart

Lines changed: 113 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ class ProductvideoApi {
906906
return null;
907907
}
908908

909-
/// Get Call Stats
909+
/// Get call report
910910
///
911911
///
912912
///
@@ -918,17 +918,16 @@ class ProductvideoApi {
918918
///
919919
/// * [String] id (required):
920920
///
921-
/// * [String] session (required):
922-
Future<Response> getCallStatsWithHttpInfo(
921+
/// * [String] sessionId:
922+
Future<Response> getCallReportWithHttpInfo(
923923
String type,
924-
String id,
925-
String session,
926-
) async {
924+
String id, {
925+
String? sessionId,
926+
}) async {
927927
// ignore: prefer_const_declarations
928-
final path = r'/video/call/{type}/{id}/stats/{session}'
928+
final path = r'/video/call/{type}/{id}/report'
929929
.replaceAll('{type}', type)
930-
.replaceAll('{id}', id)
931-
.replaceAll('{session}', session);
930+
.replaceAll('{id}', id);
932931

933932
// ignore: prefer_final_locals
934933
Object? postBody;
@@ -937,6 +936,10 @@ class ProductvideoApi {
937936
final headerParams = <String, String>{};
938937
final formParams = <String, String>{};
939938

939+
if (sessionId != null) {
940+
queryParams.addAll(_queryParams('', 'session_id', sessionId));
941+
}
942+
940943
const contentTypes = <String>[];
941944

942945
return apiClient.invokeAPI(
@@ -950,7 +953,7 @@ class ProductvideoApi {
950953
);
951954
}
952955

953-
/// Get Call Stats
956+
/// Get call report
954957
///
955958
///
956959
///
@@ -960,16 +963,16 @@ class ProductvideoApi {
960963
///
961964
/// * [String] id (required):
962965
///
963-
/// * [String] session (required):
964-
Future<GetCallStatsResponse?> getCallStats(
966+
/// * [String] sessionId:
967+
Future<GetCallReportResponse?> getCallReport(
965968
String type,
966-
String id,
967-
String session,
968-
) async {
969-
final response = await getCallStatsWithHttpInfo(
969+
String id, {
970+
String? sessionId,
971+
}) async {
972+
final response = await getCallReportWithHttpInfo(
970973
type,
971974
id,
972-
session,
975+
sessionId: sessionId,
973976
);
974977
if (response.statusCode >= HttpStatus.badRequest) {
975978
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
@@ -981,8 +984,8 @@ class ProductvideoApi {
981984
response.statusCode != HttpStatus.noContent) {
982985
return await apiClient.deserializeAsync(
983986
await _decodeBodyBytes(response),
984-
'GetCallStatsResponse',
985-
) as GetCallStatsResponse;
987+
'GetCallReportResponse',
988+
) as GetCallReportResponse;
986989
}
987990
return null;
988991
}
@@ -1711,6 +1714,97 @@ class ProductvideoApi {
17111714
return null;
17121715
}
17131716

1717+
/// Query call participants
1718+
///
1719+
/// Returns a list of participants connected to the call
1720+
///
1721+
/// Note: This method returns the HTTP [Response].
1722+
///
1723+
/// Parameters:
1724+
///
1725+
/// * [String] id (required):
1726+
///
1727+
/// * [String] type (required):
1728+
///
1729+
/// * [QueryCallParticipantsRequest] queryCallParticipantsRequest (required):
1730+
///
1731+
/// * [int] limit:
1732+
Future<Response> queryCallParticipantsWithHttpInfo(
1733+
String id,
1734+
String type,
1735+
QueryCallParticipantsRequest queryCallParticipantsRequest, {
1736+
int? limit,
1737+
}) async {
1738+
// ignore: prefer_const_declarations
1739+
final path = r'/video/call/{type}/{id}/participants'
1740+
.replaceAll('{id}', id)
1741+
.replaceAll('{type}', type);
1742+
1743+
// ignore: prefer_final_locals
1744+
Object? postBody = queryCallParticipantsRequest;
1745+
1746+
final queryParams = <QueryParam>[];
1747+
final headerParams = <String, String>{};
1748+
final formParams = <String, String>{};
1749+
1750+
if (limit != null) {
1751+
queryParams.addAll(_queryParams('', 'limit', limit));
1752+
}
1753+
1754+
const contentTypes = <String>['application/json'];
1755+
1756+
return apiClient.invokeAPI(
1757+
path,
1758+
'POST',
1759+
queryParams,
1760+
postBody,
1761+
headerParams,
1762+
formParams,
1763+
contentTypes.isEmpty ? null : contentTypes.first,
1764+
);
1765+
}
1766+
1767+
/// Query call participants
1768+
///
1769+
/// Returns a list of participants connected to the call
1770+
///
1771+
/// Parameters:
1772+
///
1773+
/// * [String] id (required):
1774+
///
1775+
/// * [String] type (required):
1776+
///
1777+
/// * [QueryCallParticipantsRequest] queryCallParticipantsRequest (required):
1778+
///
1779+
/// * [int] limit:
1780+
Future<QueryCallParticipantsResponse?> queryCallParticipants(
1781+
String id,
1782+
String type,
1783+
QueryCallParticipantsRequest queryCallParticipantsRequest, {
1784+
int? limit,
1785+
}) async {
1786+
final response = await queryCallParticipantsWithHttpInfo(
1787+
id,
1788+
type,
1789+
queryCallParticipantsRequest,
1790+
limit: limit,
1791+
);
1792+
if (response.statusCode >= HttpStatus.badRequest) {
1793+
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
1794+
}
1795+
// When a remote server returns no body with a status of 204, we shall not decode it.
1796+
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
1797+
// FormatException when trying to decode an empty string.
1798+
if (response.body.isNotEmpty &&
1799+
response.statusCode != HttpStatus.noContent) {
1800+
return await apiClient.deserializeAsync(
1801+
await _decodeBodyBytes(response),
1802+
'QueryCallParticipantsResponse',
1803+
) as QueryCallParticipantsResponse;
1804+
}
1805+
return null;
1806+
}
1807+
17141808
/// Query Call Stats
17151809
///
17161810
///

0 commit comments

Comments
 (0)