Skip to content

Commit e6d9a76

Browse files
authored
chore(llc): open api regeneration (#1177)
* Regenerated open API models * fix * fix
1 parent 4918368 commit e6d9a76

41 files changed

Lines changed: 2972 additions & 67 deletions

Some content is hidden

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

packages/stream_video/lib/globals.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'protobuf/video/sfu/models/models.pb.dart';
55

66
const String streamSdkName = 'stream-flutter';
77
const String streamVideoVersion = '1.2.4';
8-
const String openapiModelsVersion = '202.0.0';
8+
const String openapiModelsVersion = '219.11.0';
99
const String protocolModelsVersion = '1.40.1';
1010
const String androidWebRTCVersion = webrtc.androidWebRTCVersion;
1111
const String iosWebRTCVersion = webrtc.iosWebRTCVersion;

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ part 'model/call_member_removed_event.dart';
6868
part 'model/call_member_updated_event.dart';
6969
part 'model/call_member_updated_permission_event.dart';
7070
part 'model/call_missed_event.dart';
71+
part 'model/call_moderation_blur_event.dart';
72+
part 'model/call_moderation_warning_event.dart';
7173
part 'model/call_notification_event.dart';
7274
part 'model/call_participant_count_report.dart';
7375
part 'model/call_participant_count_report_response.dart';
@@ -135,6 +137,7 @@ part 'model/egress_hls_response.dart';
135137
part 'model/egress_rtmp_response.dart';
136138
part 'model/egress_response.dart';
137139
part 'model/end_call_response.dart';
140+
part 'model/feeds_preferences_response.dart';
138141
part 'model/file_upload_config.dart';
139142
part 'model/frame_recording_response.dart';
140143
part 'model/frame_recording_settings_request.dart';
@@ -153,6 +156,9 @@ part 'model/hls_settings_request.dart';
153156
part 'model/hls_settings_response.dart';
154157
part 'model/health_check_event.dart';
155158
part 'model/ice_server.dart';
159+
part 'model/individual_recording_response.dart';
160+
part 'model/individual_recording_settings_request.dart';
161+
part 'model/individual_recording_settings_response.dart';
156162
part 'model/ingress_audio_encoding_options_request.dart';
157163
part 'model/ingress_audio_encoding_response.dart';
158164
part 'model/ingress_settings_request.dart';
@@ -191,7 +197,7 @@ part 'model/pin_response.dart';
191197
part 'model/privacy_settings.dart';
192198
part 'model/published_track_flags.dart';
193199
part 'model/publisher_stats_response.dart';
194-
part 'model/push_preferences.dart';
200+
part 'model/push_preferences_response.dart';
195201
part 'model/quality_score_report.dart';
196202
part 'model/quality_score_report_response.dart';
197203
part 'model/query_aggregate_call_stats_request.dart';
@@ -208,6 +214,8 @@ part 'model/rtmp_broadcast_request.dart';
208214
part 'model/rtmp_ingress.dart';
209215
part 'model/rtmp_settings_request.dart';
210216
part 'model/rtmp_settings_response.dart';
217+
part 'model/raw_recording_settings_request.dart';
218+
part 'model/raw_recording_settings_response.dart';
211219
part 'model/reaction_response.dart';
212220
part 'model/read_receipts.dart';
213221
part 'model/record_settings_request.dart';

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

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2765,17 +2765,21 @@ class ProductvideoApi {
27652765
///
27662766
/// * [String] id (required):
27672767
///
2768+
/// * [String] recordingType (required):
2769+
///
27682770
/// * [StartRecordingRequest] startRecordingRequest (required):
27692771
/// StartRecordingRequest
27702772
Future<Response> startRecordingWithHttpInfo(
27712773
String type,
27722774
String id,
2775+
String recordingType,
27732776
StartRecordingRequest startRecordingRequest,
27742777
) async {
27752778
// ignore: prefer_const_declarations
2776-
final path = r'/video/call/{type}/{id}/start_recording'
2779+
final path = r'/video/call/{type}/{id}/recordings/{recording_type}/start'
27772780
.replaceAll('{type}', type)
2778-
.replaceAll('{id}', id);
2781+
.replaceAll('{id}', id)
2782+
.replaceAll('{recording_type}', recordingType);
27792783

27802784
// ignore: prefer_final_locals
27812785
Object? postBody = startRecordingRequest;
@@ -2807,16 +2811,20 @@ class ProductvideoApi {
28072811
///
28082812
/// * [String] id (required):
28092813
///
2814+
/// * [String] recordingType (required):
2815+
///
28102816
/// * [StartRecordingRequest] startRecordingRequest (required):
28112817
/// StartRecordingRequest
28122818
Future<StartRecordingResponse?> startRecording(
28132819
String type,
28142820
String id,
2821+
String recordingType,
28152822
StartRecordingRequest startRecordingRequest,
28162823
) async {
28172824
final response = await startRecordingWithHttpInfo(
28182825
type,
28192826
id,
2827+
recordingType,
28202828
startRecordingRequest,
28212829
);
28222830
if (response.statusCode >= HttpStatus.badRequest) {
@@ -3397,23 +3405,30 @@ class ProductvideoApi {
33973405
/// * [String] type (required):
33983406
///
33993407
/// * [String] id (required):
3408+
///
3409+
/// * [String] recordingType (required):
3410+
///
3411+
/// * [Object] body (required):
34003412
Future<Response> stopRecordingWithHttpInfo(
34013413
String type,
34023414
String id,
3415+
String recordingType,
3416+
Object body,
34033417
) async {
34043418
// ignore: prefer_const_declarations
3405-
final path = r'/video/call/{type}/{id}/stop_recording'
3419+
final path = r'/video/call/{type}/{id}/recordings/{recording_type}/stop'
34063420
.replaceAll('{type}', type)
3407-
.replaceAll('{id}', id);
3421+
.replaceAll('{id}', id)
3422+
.replaceAll('{recording_type}', recordingType);
34083423

34093424
// ignore: prefer_final_locals
3410-
Object? postBody;
3425+
Object? postBody = body;
34113426

34123427
final queryParams = <QueryParam>[];
34133428
final headerParams = <String, String>{};
34143429
final formParams = <String, String>{};
34153430

3416-
const contentTypes = <String>[];
3431+
const contentTypes = <String>['application/json'];
34173432

34183433
return apiClient.invokeAPI(
34193434
path,
@@ -3435,13 +3450,21 @@ class ProductvideoApi {
34353450
/// * [String] type (required):
34363451
///
34373452
/// * [String] id (required):
3453+
///
3454+
/// * [String] recordingType (required):
3455+
///
3456+
/// * [Object] body (required):
34383457
Future<StopRecordingResponse?> stopRecording(
34393458
String type,
34403459
String id,
3460+
String recordingType,
3461+
Object body,
34413462
) async {
34423463
final response = await stopRecordingWithHttpInfo(
34433464
type,
34443465
id,
3466+
recordingType,
3467+
body,
34453468
);
34463469
if (response.statusCode >= HttpStatus.badRequest) {
34473470
throw ApiException(response.statusCode, await _decodeBodyBytes(response));

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ class ApiClient {
305305
return CallMemberUpdatedPermissionEvent.fromJson(value);
306306
case 'CallMissedEvent':
307307
return CallMissedEvent.fromJson(value);
308+
case 'CallModerationBlurEvent':
309+
return CallModerationBlurEvent.fromJson(value);
310+
case 'CallModerationWarningEvent':
311+
return CallModerationWarningEvent.fromJson(value);
308312
case 'CallNotificationEvent':
309313
return CallNotificationEvent.fromJson(value);
310314
case 'CallParticipantCountReport':
@@ -476,6 +480,12 @@ class ApiClient {
476480
return HealthCheckEvent.fromJson(value);
477481
case 'ICEServer':
478482
return ICEServer.fromJson(value);
483+
case 'IndividualRecordingResponse':
484+
return IndividualRecordingResponse.fromJson(value);
485+
case 'IndividualRecordingSettingsRequest':
486+
return IndividualRecordingSettingsRequest.fromJson(value);
487+
case 'IndividualRecordingSettingsResponse':
488+
return IndividualRecordingSettingsResponse.fromJson(value);
479489
case 'IngressAudioEncodingOptionsRequest':
480490
return IngressAudioEncodingOptionsRequest.fromJson(value);
481491
case 'IngressAudioEncodingResponse':
@@ -552,8 +562,8 @@ class ApiClient {
552562
return PublishedTrackFlags.fromJson(value);
553563
case 'PublisherStatsResponse':
554564
return PublisherStatsResponse.fromJson(value);
555-
case 'PushPreferences':
556-
return PushPreferences.fromJson(value);
565+
case 'PushPreferencesResponse':
566+
return PushPreferencesResponse.fromJson(value);
557567
case 'QualityScoreReport':
558568
return QualityScoreReport.fromJson(value);
559569
case 'QualityScoreReportResponse':
@@ -586,6 +596,10 @@ class ApiClient {
586596
return RTMPSettingsRequest.fromJson(value);
587597
case 'RTMPSettingsResponse':
588598
return RTMPSettingsResponse.fromJson(value);
599+
case 'RawRecordingSettingsRequest':
600+
return RawRecordingSettingsRequest.fromJson(value);
601+
case 'RawRecordingSettingsResponse':
602+
return RawRecordingSettingsResponse.fromJson(value);
589603
case 'ReactionResponse':
590604
return ReactionResponse.fromJson(value);
591605
case 'ReadReceipts':
@@ -606,6 +620,7 @@ class ApiClient {
606620
return RequestPermissionRequest.fromJson(value);
607621
case 'RequestPermissionResponse':
608622
return RequestPermissionResponse.fromJson(value);
623+
//MANUAL_EDIT
609624
case 'DurationResponse':
610625
return DurationResponse.fromJson(value);
611626
case 'RingCallRequest':
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
//
2+
// AUTO-GENERATED FILE, DO NOT MODIFY!
3+
//
4+
// @dart=2.18
5+
6+
// ignore_for_file: unused_element, unused_import
7+
// ignore_for_file: always_put_required_named_parameters_first
8+
// ignore_for_file: constant_identifier_names
9+
// ignore_for_file: lines_longer_than_80_chars
10+
11+
part of openapi.api;
12+
13+
class CallModerationBlurEvent {
14+
/// Returns a new [CallModerationBlurEvent] instance.
15+
CallModerationBlurEvent({
16+
required this.callCid,
17+
required this.createdAt,
18+
this.custom = const {},
19+
this.type = 'call.moderation_blur',
20+
required this.userId,
21+
});
22+
23+
String callCid;
24+
25+
DateTime createdAt;
26+
27+
/// Custom data associated with the moderation action
28+
Map<String, Object> custom;
29+
30+
/// The type of event: \"call.moderation_blur\" in this case
31+
String type;
32+
33+
/// The user ID whose video stream is being blurred
34+
String userId;
35+
36+
@override
37+
bool operator ==(Object other) =>
38+
identical(this, other) ||
39+
other is CallModerationBlurEvent &&
40+
other.callCid == callCid &&
41+
other.createdAt == createdAt &&
42+
_deepEquality.equals(other.custom, custom) &&
43+
other.type == type &&
44+
other.userId == userId;
45+
46+
@override
47+
int get hashCode =>
48+
// ignore: unnecessary_parenthesis
49+
(callCid.hashCode) +
50+
(createdAt.hashCode) +
51+
(custom.hashCode) +
52+
(type.hashCode) +
53+
(userId.hashCode);
54+
55+
@override
56+
String toString() =>
57+
'CallModerationBlurEvent[callCid=$callCid, createdAt=$createdAt, custom=$custom, type=$type, userId=$userId]';
58+
59+
Map<String, dynamic> toJson() {
60+
final json = <String, dynamic>{};
61+
json[r'call_cid'] = this.callCid;
62+
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
63+
json[r'custom'] = this.custom;
64+
json[r'type'] = this.type;
65+
json[r'user_id'] = this.userId;
66+
return json;
67+
}
68+
69+
/// Returns a new [CallModerationBlurEvent] instance and imports its values from
70+
/// [value] if it's a [Map], null otherwise.
71+
// ignore: prefer_constructors_over_static_methods
72+
static CallModerationBlurEvent? fromJson(dynamic value) {
73+
if (value is Map) {
74+
final json = value.cast<String, dynamic>();
75+
76+
// Ensure that the map contains the required keys.
77+
// Note 1: the values aren't checked for validity beyond being non-null.
78+
// Note 2: this code is stripped in release mode!
79+
assert(() {
80+
requiredKeys.forEach((key) {
81+
assert(json.containsKey(key),
82+
'Required key "CallModerationBlurEvent[$key]" is missing from JSON.');
83+
assert(json[key] != null,
84+
'Required key "CallModerationBlurEvent[$key]" has a null value in JSON.');
85+
});
86+
return true;
87+
}());
88+
89+
return CallModerationBlurEvent(
90+
callCid: mapValueOfType<String>(json, r'call_cid')!,
91+
createdAt: mapDateTime(json, r'created_at', r'')!,
92+
custom: mapCastOfType<String, Object>(json, r'custom')!,
93+
type: mapValueOfType<String>(json, r'type')!,
94+
userId: mapValueOfType<String>(json, r'user_id')!,
95+
);
96+
}
97+
return null;
98+
}
99+
100+
static List<CallModerationBlurEvent> listFromJson(
101+
dynamic json, {
102+
bool growable = false,
103+
}) {
104+
final result = <CallModerationBlurEvent>[];
105+
if (json is List && json.isNotEmpty) {
106+
for (final row in json) {
107+
final value = CallModerationBlurEvent.fromJson(row);
108+
if (value != null) {
109+
result.add(value);
110+
}
111+
}
112+
}
113+
return result.toList(growable: growable);
114+
}
115+
116+
static Map<String, CallModerationBlurEvent> mapFromJson(dynamic json) {
117+
final map = <String, CallModerationBlurEvent>{};
118+
if (json is Map && json.isNotEmpty) {
119+
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
120+
for (final entry in json.entries) {
121+
final value = CallModerationBlurEvent.fromJson(entry.value);
122+
if (value != null) {
123+
map[entry.key] = value;
124+
}
125+
}
126+
}
127+
return map;
128+
}
129+
130+
// maps a json object with a list of CallModerationBlurEvent-objects as value to a dart map
131+
static Map<String, List<CallModerationBlurEvent>> mapListFromJson(
132+
dynamic json, {
133+
bool growable = false,
134+
}) {
135+
final map = <String, List<CallModerationBlurEvent>>{};
136+
if (json is Map && json.isNotEmpty) {
137+
// ignore: parameter_assignments
138+
json = json.cast<String, dynamic>();
139+
for (final entry in json.entries) {
140+
map[entry.key] = CallModerationBlurEvent.listFromJson(
141+
entry.value,
142+
growable: growable,
143+
);
144+
}
145+
}
146+
return map;
147+
}
148+
149+
/// The list of required keys that must be present in a JSON.
150+
static const requiredKeys = <String>{
151+
'call_cid',
152+
'created_at',
153+
'custom',
154+
'type',
155+
'user_id',
156+
};
157+
}

0 commit comments

Comments
 (0)