diff --git a/docs/code_snippets/01_01_quickstart.dart b/docs/code_snippets/01_01_quickstart.dart index b2d5e24f..61103e5c 100644 --- a/docs/code_snippets/01_01_quickstart.dart +++ b/docs/code_snippets/01_01_quickstart.dart @@ -36,7 +36,7 @@ Future socialMediaFeed() async { await timeline.getOrCreate(); // Add a reaction to activity - await timeline.addReaction( + await timeline.addActivityReaction( activityId: 'activity_123', request: const AddReactionRequest(type: 'like'), ); diff --git a/docs/code_snippets/05_06_notification_feeds.dart b/docs/code_snippets/05_06_notification_feeds.dart index d13d131b..006c45dd 100644 --- a/docs/code_snippets/05_06_notification_feeds.dart +++ b/docs/code_snippets/05_06_notification_feeds.dart @@ -25,7 +25,7 @@ Future creatingNotificationActivities() async { ), ); // Eric reacts to Jane's activity - await ericFeed.addReaction( + await ericFeed.addActivityReaction( activityId: janeActivity.activityId, request: const AddReactionRequest( type: 'like', diff --git a/docs/code_snippets/06_01_reactions.dart b/docs/code_snippets/06_01_reactions.dart index 72bba720..183f609a 100644 --- a/docs/code_snippets/06_01_reactions.dart +++ b/docs/code_snippets/06_01_reactions.dart @@ -5,12 +5,17 @@ late Feed feed; Future overview() async { // Add a reaction to an activity - final reaction = await feed.addReaction( + final reaction = await feed.addActivityReaction( activityId: 'activity_123', - request: const AddReactionRequest(custom: {'emoji': '❤️'}, type: 'like'), + request: const AddReactionRequest( + custom: {'emoji': '❤️'}, + type: 'like', + // Optionally override existing reaction + enforceUnique: true, + ), ); // Remove a reaction - await feed.deleteReaction(activityId: 'activity_123', type: 'like'); + await feed.deleteActivityReaction(activityId: 'activity_123', type: 'like'); } Future overviewRead() async { diff --git a/docs/code_snippets/06_03_comments.dart b/docs/code_snippets/06_03_comments.dart index e1fcaa02..73e98162 100644 --- a/docs/code_snippets/06_03_comments.dart +++ b/docs/code_snippets/06_03_comments.dart @@ -92,7 +92,11 @@ Future commentReactions() async { // Add a reaction to a comment await feed.addCommentReaction( commentId: 'comment_123', - request: const AddCommentReactionRequest(type: 'like'), + request: const AddCommentReactionRequest( + type: 'like', + // Optionally override existing reaction + enforceUnique: true, + ), ); // Remove a reaction from a comment await feed.deleteCommentReaction(commentId: 'comment_123', type: 'like'); diff --git a/packages/stream_feeds/CHANGELOG.md b/packages/stream_feeds/CHANGELOG.md index 38ee1844..d5516cd8 100644 --- a/packages/stream_feeds/CHANGELOG.md +++ b/packages/stream_feeds/CHANGELOG.md @@ -1,3 +1,6 @@ +## Next release +- Update API client with renaming `addReaction` to `addActivityReaction` and `deleteReaction` to `deleteActivityReaction`. + ## 0.3.0 - [BREAKING] Renamed `AppLifecycleStateProvider` to `LifecycleStateProvider` and `AppLifecycleState` to `LifecycleState`. - Re-watch websocket events for feeds when the websocket reconnects. diff --git a/packages/stream_feeds/lib/src/generated/api/api/default_api.dart b/packages/stream_feeds/lib/src/generated/api/api/default_api.dart index 349e3232..e889ce79 100644 --- a/packages/stream_feeds/lib/src/generated/api/api/default_api.dart +++ b/packages/stream_feeds/lib/src/generated/api/api/default_api.dart @@ -40,6 +40,12 @@ abstract interface class DefaultApi { @Body() required AddActivityRequest addActivityRequest, }); + @POST('/api/v2/feeds/activities/{activity_id}/reactions') + Future> addActivityReaction({ + @Path('activity_id') required String activityId, + @Body() required AddReactionRequest addReactionRequest, + }); + @POST('/api/v2/feeds/activities/{activity_id}/bookmarks') Future> addBookmark({ @Path('activity_id') required String activityId, @@ -62,12 +68,6 @@ abstract interface class DefaultApi { @Body() required AddCommentsBatchRequest addCommentsBatchRequest, }); - @POST('/api/v2/feeds/activities/{activity_id}/reactions') - Future> addReaction({ - @Path('activity_id') required String activityId, - @Body() required AddReactionRequest addReactionRequest, - }); - @POST('/api/v2/moderation/ban') Future> ban({ @Body() required BanRequest banRequest, @@ -332,6 +332,11 @@ abstract interface class DefaultApi { @Body() required MuteRequest muteRequest, }); + @POST('/api/v2/feeds/feeds/own_capabilities/batch') + Future> ownCapabilitiesBatch({ + @Body() required OwnCapabilitiesBatchRequest ownCapabilitiesBatchRequest, + }); + @POST( '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/activities/{activity_id}/pin') Future> pinActivity({ diff --git a/packages/stream_feeds/lib/src/generated/api/api/default_api.g.dart b/packages/stream_feeds/lib/src/generated/api/api/default_api.g.dart index 797e0f4e..c4a43851 100644 --- a/packages/stream_feeds/lib/src/generated/api/api/default_api.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/api/default_api.g.dart @@ -176,6 +176,49 @@ class _DefaultApi implements DefaultApi { ); } + Future _addActivityReaction({ + required String activityId, + required AddReactionRequest addReactionRequest, + }) async { + final _extra = {}; + final queryParameters = {}; + final _headers = {}; + final _data = {}; + _data.addAll(addReactionRequest.toJson()); + final _options = _setStreamType>( + Options(method: 'POST', headers: _headers, extra: _extra) + .compose( + _dio.options, + '/api/v2/feeds/activities/${activityId}/reactions', + queryParameters: queryParameters, + data: _data, + ) + .copyWith(baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl)), + ); + final _result = await _dio.fetch>(_options); + late AddReactionResponse _value; + try { + _value = AddReactionResponse.fromJson(_result.data!); + } on Object catch (e, s) { + errorLogger?.logError(e, s, _options); + rethrow; + } + return _value; + } + + @override + Future> addActivityReaction({ + required String activityId, + required AddReactionRequest addReactionRequest, + }) { + return _ResultCallAdapter().adapt( + () => _addActivityReaction( + activityId: activityId, + addReactionRequest: addReactionRequest, + ), + ); + } + Future _addBookmark({ required String activityId, AddBookmarkRequest? addBookmarkRequest, @@ -339,49 +382,6 @@ class _DefaultApi implements DefaultApi { ); } - Future _addReaction({ - required String activityId, - required AddReactionRequest addReactionRequest, - }) async { - final _extra = {}; - final queryParameters = {}; - final _headers = {}; - final _data = {}; - _data.addAll(addReactionRequest.toJson()); - final _options = _setStreamType>( - Options(method: 'POST', headers: _headers, extra: _extra) - .compose( - _dio.options, - '/api/v2/feeds/activities/${activityId}/reactions', - queryParameters: queryParameters, - data: _data, - ) - .copyWith(baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl)), - ); - final _result = await _dio.fetch>(_options); - late AddReactionResponse _value; - try { - _value = AddReactionResponse.fromJson(_result.data!); - } on Object catch (e, s) { - errorLogger?.logError(e, s, _options); - rethrow; - } - return _value; - } - - @override - Future> addReaction({ - required String activityId, - required AddReactionRequest addReactionRequest, - }) { - return _ResultCallAdapter().adapt( - () => _addReaction( - activityId: activityId, - addReactionRequest: addReactionRequest, - ), - ); - } - Future _ban({required BanRequest banRequest}) async { final _extra = {}; final queryParameters = {}; @@ -2186,6 +2186,46 @@ class _DefaultApi implements DefaultApi { ); } + Future _ownCapabilitiesBatch({ + required OwnCapabilitiesBatchRequest ownCapabilitiesBatchRequest, + }) async { + final _extra = {}; + final queryParameters = {}; + final _headers = {}; + final _data = {}; + _data.addAll(ownCapabilitiesBatchRequest.toJson()); + final _options = _setStreamType>( + Options(method: 'POST', headers: _headers, extra: _extra) + .compose( + _dio.options, + '/api/v2/feeds/feeds/own_capabilities/batch', + queryParameters: queryParameters, + data: _data, + ) + .copyWith(baseUrl: _combineBaseUrls(_dio.options.baseUrl, baseUrl)), + ); + final _result = await _dio.fetch>(_options); + late OwnCapabilitiesBatchResponse _value; + try { + _value = OwnCapabilitiesBatchResponse.fromJson(_result.data!); + } on Object catch (e, s) { + errorLogger?.logError(e, s, _options); + rethrow; + } + return _value; + } + + @override + Future> ownCapabilitiesBatch({ + required OwnCapabilitiesBatchRequest ownCapabilitiesBatchRequest, + }) { + return _ResultCallAdapter().adapt( + () => _ownCapabilitiesBatch( + ownCapabilitiesBatchRequest: ownCapabilitiesBatchRequest, + ), + ); + } + Future _pinActivity({ required String feedGroupId, required String feedId, diff --git a/packages/stream_feeds/lib/src/generated/api/model/action_log.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/action_log.freezed.dart deleted file mode 100644 index fa1d0be9..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/action_log.freezed.dart +++ /dev/null @@ -1,174 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'action_log.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$ActionLog { - DateTime get createdAt; - Map get custom; - String get id; - String get reason; - String get reporterType; - ReviewQueueItem? get reviewQueueItem; - String get reviewQueueItemId; - User? get targetUser; - String get targetUserId; - String get type; - User? get user; - - /// Create a copy of ActionLog - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $ActionLogCopyWith get copyWith => - _$ActionLogCopyWithImpl(this as ActionLog, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is ActionLog && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - const DeepCollectionEquality().equals(other.custom, custom) && - (identical(other.id, id) || other.id == id) && - (identical(other.reason, reason) || other.reason == reason) && - (identical(other.reporterType, reporterType) || - other.reporterType == reporterType) && - (identical(other.reviewQueueItem, reviewQueueItem) || - other.reviewQueueItem == reviewQueueItem) && - (identical(other.reviewQueueItemId, reviewQueueItemId) || - other.reviewQueueItemId == reviewQueueItemId) && - (identical(other.targetUser, targetUser) || - other.targetUser == targetUser) && - (identical(other.targetUserId, targetUserId) || - other.targetUserId == targetUserId) && - (identical(other.type, type) || other.type == type) && - (identical(other.user, user) || other.user == user)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - createdAt, - const DeepCollectionEquality().hash(custom), - id, - reason, - reporterType, - reviewQueueItem, - reviewQueueItemId, - targetUser, - targetUserId, - type, - user); - - @override - String toString() { - return 'ActionLog(createdAt: $createdAt, custom: $custom, id: $id, reason: $reason, reporterType: $reporterType, reviewQueueItem: $reviewQueueItem, reviewQueueItemId: $reviewQueueItemId, targetUser: $targetUser, targetUserId: $targetUserId, type: $type, user: $user)'; - } -} - -/// @nodoc -abstract mixin class $ActionLogCopyWith<$Res> { - factory $ActionLogCopyWith(ActionLog value, $Res Function(ActionLog) _then) = - _$ActionLogCopyWithImpl; - @useResult - $Res call( - {DateTime createdAt, - Map custom, - String id, - String reason, - String reporterType, - ReviewQueueItem? reviewQueueItem, - String reviewQueueItemId, - User? targetUser, - String targetUserId, - String type, - User? user}); -} - -/// @nodoc -class _$ActionLogCopyWithImpl<$Res> implements $ActionLogCopyWith<$Res> { - _$ActionLogCopyWithImpl(this._self, this._then); - - final ActionLog _self; - final $Res Function(ActionLog) _then; - - /// Create a copy of ActionLog - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? createdAt = null, - Object? custom = null, - Object? id = null, - Object? reason = null, - Object? reporterType = null, - Object? reviewQueueItem = freezed, - Object? reviewQueueItemId = null, - Object? targetUser = freezed, - Object? targetUserId = null, - Object? type = null, - Object? user = freezed, - }) { - return _then(ActionLog( - createdAt: null == createdAt - ? _self.createdAt - : createdAt // ignore: cast_nullable_to_non_nullable - as DateTime, - custom: null == custom - ? _self.custom - : custom // ignore: cast_nullable_to_non_nullable - as Map, - id: null == id - ? _self.id - : id // ignore: cast_nullable_to_non_nullable - as String, - reason: null == reason - ? _self.reason - : reason // ignore: cast_nullable_to_non_nullable - as String, - reporterType: null == reporterType - ? _self.reporterType - : reporterType // ignore: cast_nullable_to_non_nullable - as String, - reviewQueueItem: freezed == reviewQueueItem - ? _self.reviewQueueItem - : reviewQueueItem // ignore: cast_nullable_to_non_nullable - as ReviewQueueItem?, - reviewQueueItemId: null == reviewQueueItemId - ? _self.reviewQueueItemId - : reviewQueueItemId // ignore: cast_nullable_to_non_nullable - as String, - targetUser: freezed == targetUser - ? _self.targetUser - : targetUser // ignore: cast_nullable_to_non_nullable - as User?, - targetUserId: null == targetUserId - ? _self.targetUserId - : targetUserId // ignore: cast_nullable_to_non_nullable - as String, - type: null == type - ? _self.type - : type // ignore: cast_nullable_to_non_nullable - as String, - user: freezed == user - ? _self.user - : user // ignore: cast_nullable_to_non_nullable - as User?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/action_log.g.dart b/packages/stream_feeds/lib/src/generated/api/model/action_log.g.dart deleted file mode 100644 index ea6db599..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/action_log.g.dart +++ /dev/null @@ -1,43 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'action_log.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -ActionLog _$ActionLogFromJson(Map json) => ActionLog( - createdAt: const EpochDateTimeConverter() - .fromJson((json['created_at'] as num).toInt()), - custom: json['custom'] as Map, - id: json['id'] as String, - reason: json['reason'] as String, - reporterType: json['reporter_type'] as String, - reviewQueueItem: json['review_queue_item'] == null - ? null - : ReviewQueueItem.fromJson( - json['review_queue_item'] as Map), - reviewQueueItemId: json['review_queue_item_id'] as String, - targetUser: json['target_user'] == null - ? null - : User.fromJson(json['target_user'] as Map), - targetUserId: json['target_user_id'] as String, - type: json['type'] as String, - user: json['user'] == null - ? null - : User.fromJson(json['user'] as Map), - ); - -Map _$ActionLogToJson(ActionLog instance) => { - 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), - 'custom': instance.custom, - 'id': instance.id, - 'reason': instance.reason, - 'reporter_type': instance.reporterType, - 'review_queue_item': instance.reviewQueueItem?.toJson(), - 'review_queue_item_id': instance.reviewQueueItemId, - 'target_user': instance.targetUser?.toJson(), - 'target_user_id': instance.targetUserId, - 'type': instance.type, - 'user': instance.user?.toJson(), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/action_log_response.dart b/packages/stream_feeds/lib/src/generated/api/model/action_log_response.dart index f8bdd850..25ecf554 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/action_log_response.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/action_log_response.dart @@ -18,6 +18,7 @@ part 'action_log_response.freezed.dart'; @JsonSerializable() class ActionLogResponse with _$ActionLogResponse { const ActionLogResponse({ + required this.aiProviders, required this.createdAt, required this.custom, required this.id, @@ -30,6 +31,9 @@ class ActionLogResponse with _$ActionLogResponse { required this.userId, }); + @override + final List aiProviders; + @override @EpochDateTimeConverter() final DateTime createdAt; diff --git a/packages/stream_feeds/lib/src/generated/api/model/action_log_response.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/action_log_response.freezed.dart index 79249c57..77bc620d 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/action_log_response.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/action_log_response.freezed.dart @@ -15,6 +15,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$ActionLogResponse { + List get aiProviders; DateTime get createdAt; Map get custom; String get id; @@ -39,6 +40,8 @@ mixin _$ActionLogResponse { return identical(this, other) || (other.runtimeType == runtimeType && other is ActionLogResponse && + const DeepCollectionEquality() + .equals(other.aiProviders, aiProviders) && (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && const DeepCollectionEquality().equals(other.custom, custom) && @@ -58,6 +61,7 @@ mixin _$ActionLogResponse { @override int get hashCode => Object.hash( runtimeType, + const DeepCollectionEquality().hash(aiProviders), createdAt, const DeepCollectionEquality().hash(custom), id, @@ -71,7 +75,7 @@ mixin _$ActionLogResponse { @override String toString() { - return 'ActionLogResponse(createdAt: $createdAt, custom: $custom, id: $id, reason: $reason, reviewQueueItem: $reviewQueueItem, targetUser: $targetUser, targetUserId: $targetUserId, type: $type, user: $user, userId: $userId)'; + return 'ActionLogResponse(aiProviders: $aiProviders, createdAt: $createdAt, custom: $custom, id: $id, reason: $reason, reviewQueueItem: $reviewQueueItem, targetUser: $targetUser, targetUserId: $targetUserId, type: $type, user: $user, userId: $userId)'; } } @@ -82,7 +86,8 @@ abstract mixin class $ActionLogResponseCopyWith<$Res> { _$ActionLogResponseCopyWithImpl; @useResult $Res call( - {DateTime createdAt, + {List aiProviders, + DateTime createdAt, Map custom, String id, String reason, @@ -107,6 +112,7 @@ class _$ActionLogResponseCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ + Object? aiProviders = null, Object? createdAt = null, Object? custom = null, Object? id = null, @@ -119,6 +125,10 @@ class _$ActionLogResponseCopyWithImpl<$Res> Object? userId = null, }) { return _then(ActionLogResponse( + aiProviders: null == aiProviders + ? _self.aiProviders + : aiProviders // ignore: cast_nullable_to_non_nullable + as List, createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/action_log_response.g.dart b/packages/stream_feeds/lib/src/generated/api/model/action_log_response.g.dart index b6b259f3..54718aed 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/action_log_response.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/action_log_response.g.dart @@ -8,6 +8,9 @@ part of 'action_log_response.dart'; ActionLogResponse _$ActionLogResponseFromJson(Map json) => ActionLogResponse( + aiProviders: (json['ai_providers'] as List) + .map((e) => e as String) + .toList(), createdAt: const EpochDateTimeConverter() .fromJson((json['created_at'] as num).toInt()), custom: json['custom'] as Map, @@ -30,6 +33,7 @@ ActionLogResponse _$ActionLogResponseFromJson(Map json) => Map _$ActionLogResponseToJson(ActionLogResponse instance) => { + 'ai_providers': instance.aiProviders, 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), 'custom': instance.custom, 'id': instance.id, diff --git a/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.dart b/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.dart index d7eed7f2..0c3fad41 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.dart @@ -23,6 +23,7 @@ class ActivityFeedbackRequest with _$ActivityFeedbackRequest { this.reason, this.report, this.showLess, + this.showMore, }); @override @@ -40,6 +41,9 @@ class ActivityFeedbackRequest with _$ActivityFeedbackRequest { @override final bool? showLess; + @override + final bool? showMore; + Map toJson() => _$ActivityFeedbackRequestToJson(this); static ActivityFeedbackRequest fromJson(Map json) => diff --git a/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.freezed.dart index 290eee13..40184cf7 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.freezed.dart @@ -20,6 +20,7 @@ mixin _$ActivityFeedbackRequest { String? get reason; bool? get report; bool? get showLess; + bool? get showMore; /// Create a copy of ActivityFeedbackRequest /// with the given fields replaced by the non-null parameter values. @@ -40,16 +41,18 @@ mixin _$ActivityFeedbackRequest { (identical(other.reason, reason) || other.reason == reason) && (identical(other.report, report) || other.report == report) && (identical(other.showLess, showLess) || - other.showLess == showLess)); + other.showLess == showLess) && + (identical(other.showMore, showMore) || + other.showMore == showMore)); } @override - int get hashCode => - Object.hash(runtimeType, hide, muteUser, reason, report, showLess); + int get hashCode => Object.hash( + runtimeType, hide, muteUser, reason, report, showLess, showMore); @override String toString() { - return 'ActivityFeedbackRequest(hide: $hide, muteUser: $muteUser, reason: $reason, report: $report, showLess: $showLess)'; + return 'ActivityFeedbackRequest(hide: $hide, muteUser: $muteUser, reason: $reason, report: $report, showLess: $showLess, showMore: $showMore)'; } } @@ -64,7 +67,8 @@ abstract mixin class $ActivityFeedbackRequestCopyWith<$Res> { bool? muteUser, String? reason, bool? report, - bool? showLess}); + bool? showLess, + bool? showMore}); } /// @nodoc @@ -85,6 +89,7 @@ class _$ActivityFeedbackRequestCopyWithImpl<$Res> Object? reason = freezed, Object? report = freezed, Object? showLess = freezed, + Object? showMore = freezed, }) { return _then(ActivityFeedbackRequest( hide: freezed == hide @@ -107,6 +112,10 @@ class _$ActivityFeedbackRequestCopyWithImpl<$Res> ? _self.showLess : showLess // ignore: cast_nullable_to_non_nullable as bool?, + showMore: freezed == showMore + ? _self.showMore + : showMore // ignore: cast_nullable_to_non_nullable + as bool?, )); } } diff --git a/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.g.dart b/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.g.dart index 6ea43f45..fce6c234 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/activity_feedback_request.g.dart @@ -14,6 +14,7 @@ ActivityFeedbackRequest _$ActivityFeedbackRequestFromJson( reason: json['reason'] as String?, report: json['report'] as bool?, showLess: json['show_less'] as bool?, + showMore: json['show_more'] as bool?, ); Map _$ActivityFeedbackRequestToJson( @@ -24,4 +25,5 @@ Map _$ActivityFeedbackRequestToJson( 'reason': instance.reason, 'report': instance.report, 'show_less': instance.showLess, + 'show_more': instance.showMore, }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/activity_response.dart b/packages/stream_feeds/lib/src/generated/api/model/activity_response.dart index 5f4a1090..73f988c3 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/activity_response.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/activity_response.dart @@ -45,6 +45,7 @@ class ActivityResponse with _$ActivityResponse { this.hidden, required this.id, required this.interestTags, + this.isWatched, required this.latestReactions, this.location, required this.mentionedUsers, @@ -117,6 +118,9 @@ class ActivityResponse with _$ActivityResponse { @override final List interestTags; + @override + final bool? isWatched; + @override final List latestReactions; diff --git a/packages/stream_feeds/lib/src/generated/api/model/activity_response.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/activity_response.freezed.dart index e86b1961..3f052ebe 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/activity_response.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/activity_response.freezed.dart @@ -30,6 +30,7 @@ mixin _$ActivityResponse { bool? get hidden; String get id; List get interestTags; + bool? get isWatched; List get latestReactions; ActivityLocation? get location; List get mentionedUsers; @@ -90,6 +91,8 @@ mixin _$ActivityResponse { (identical(other.id, id) || other.id == id) && const DeepCollectionEquality() .equals(other.interestTags, interestTags) && + (identical(other.isWatched, isWatched) || + other.isWatched == isWatched) && const DeepCollectionEquality() .equals(other.latestReactions, latestReactions) && (identical(other.location, location) || @@ -146,6 +149,7 @@ mixin _$ActivityResponse { hidden, id, const DeepCollectionEquality().hash(interestTags), + isWatched, const DeepCollectionEquality().hash(latestReactions), location, const DeepCollectionEquality().hash(mentionedUsers), @@ -171,7 +175,7 @@ mixin _$ActivityResponse { @override String toString() { - return 'ActivityResponse(attachments: $attachments, bookmarkCount: $bookmarkCount, commentCount: $commentCount, comments: $comments, createdAt: $createdAt, currentFeed: $currentFeed, custom: $custom, deletedAt: $deletedAt, editedAt: $editedAt, expiresAt: $expiresAt, feeds: $feeds, filterTags: $filterTags, hidden: $hidden, id: $id, interestTags: $interestTags, latestReactions: $latestReactions, location: $location, mentionedUsers: $mentionedUsers, moderation: $moderation, notificationContext: $notificationContext, ownBookmarks: $ownBookmarks, ownReactions: $ownReactions, parent: $parent, poll: $poll, popularity: $popularity, reactionCount: $reactionCount, reactionGroups: $reactionGroups, score: $score, searchData: $searchData, shareCount: $shareCount, text: $text, type: $type, updatedAt: $updatedAt, user: $user, visibility: $visibility, visibilityTag: $visibilityTag)'; + return 'ActivityResponse(attachments: $attachments, bookmarkCount: $bookmarkCount, commentCount: $commentCount, comments: $comments, createdAt: $createdAt, currentFeed: $currentFeed, custom: $custom, deletedAt: $deletedAt, editedAt: $editedAt, expiresAt: $expiresAt, feeds: $feeds, filterTags: $filterTags, hidden: $hidden, id: $id, interestTags: $interestTags, isWatched: $isWatched, latestReactions: $latestReactions, location: $location, mentionedUsers: $mentionedUsers, moderation: $moderation, notificationContext: $notificationContext, ownBookmarks: $ownBookmarks, ownReactions: $ownReactions, parent: $parent, poll: $poll, popularity: $popularity, reactionCount: $reactionCount, reactionGroups: $reactionGroups, score: $score, searchData: $searchData, shareCount: $shareCount, text: $text, type: $type, updatedAt: $updatedAt, user: $user, visibility: $visibility, visibilityTag: $visibilityTag)'; } } @@ -197,6 +201,7 @@ abstract mixin class $ActivityResponseCopyWith<$Res> { bool? hidden, String id, List interestTags, + bool? isWatched, List latestReactions, ActivityLocation? location, List mentionedUsers, @@ -248,6 +253,7 @@ class _$ActivityResponseCopyWithImpl<$Res> Object? hidden = freezed, Object? id = null, Object? interestTags = null, + Object? isWatched = freezed, Object? latestReactions = null, Object? location = freezed, Object? mentionedUsers = null, @@ -331,6 +337,10 @@ class _$ActivityResponseCopyWithImpl<$Res> ? _self.interestTags : interestTags // ignore: cast_nullable_to_non_nullable as List, + isWatched: freezed == isWatched + ? _self.isWatched + : isWatched // ignore: cast_nullable_to_non_nullable + as bool?, latestReactions: null == latestReactions ? _self.latestReactions : latestReactions // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/activity_response.g.dart b/packages/stream_feeds/lib/src/generated/api/model/activity_response.g.dart index e10a51f7..c64c2bd7 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/activity_response.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/activity_response.g.dart @@ -37,6 +37,7 @@ ActivityResponse _$ActivityResponseFromJson(Map json) => interestTags: (json['interest_tags'] as List) .map((e) => e as String) .toList(), + isWatched: json['is_watched'] as bool?, latestReactions: (json['latest_reactions'] as List) .map((e) => FeedsReactionResponse.fromJson(e as Map)) .toList(), @@ -106,6 +107,7 @@ Map _$ActivityResponseToJson(ActivityResponse instance) => 'hidden': instance.hidden, 'id': instance.id, 'interest_tags': instance.interestTags, + 'is_watched': instance.isWatched, 'latest_reactions': instance.latestReactions.map((e) => e.toJson()).toList(), 'location': instance.location?.toJson(), diff --git a/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.dart b/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.dart index 08d6c450..f32ed3ca 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.dart @@ -19,7 +19,7 @@ part 'add_comment_request.freezed.dart'; class AddCommentRequest with _$AddCommentRequest { const AddCommentRequest({ this.attachments, - required this.comment, + this.comment, this.createNotificationActivity, this.custom, this.mentionedUserIds, @@ -33,7 +33,7 @@ class AddCommentRequest with _$AddCommentRequest { final List? attachments; @override - final String comment; + final String? comment; @override final bool? createNotificationActivity; diff --git a/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.freezed.dart index 9c2438bf..bff8f80b 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.freezed.dart @@ -16,7 +16,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$AddCommentRequest { List? get attachments; - String get comment; + String? get comment; bool? get createNotificationActivity; Map? get custom; List? get mentionedUserIds; @@ -85,7 +85,7 @@ abstract mixin class $AddCommentRequestCopyWith<$Res> { @useResult $Res call( {List? attachments, - String comment, + String? comment, bool? createNotificationActivity, Map? custom, List? mentionedUserIds, @@ -109,7 +109,7 @@ class _$AddCommentRequestCopyWithImpl<$Res> @override $Res call({ Object? attachments = freezed, - Object? comment = null, + Object? comment = freezed, Object? createNotificationActivity = freezed, Object? custom = freezed, Object? mentionedUserIds = freezed, @@ -123,10 +123,10 @@ class _$AddCommentRequestCopyWithImpl<$Res> ? _self.attachments : attachments // ignore: cast_nullable_to_non_nullable as List?, - comment: null == comment + comment: freezed == comment ? _self.comment : comment // ignore: cast_nullable_to_non_nullable - as String, + as String?, createNotificationActivity: freezed == createNotificationActivity ? _self.createNotificationActivity : createNotificationActivity // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.g.dart b/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.g.dart index 73776128..37391553 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/add_comment_request.g.dart @@ -11,7 +11,7 @@ AddCommentRequest _$AddCommentRequestFromJson(Map json) => attachments: (json['attachments'] as List?) ?.map((e) => Attachment.fromJson(e as Map)) .toList(), - comment: json['comment'] as String, + comment: json['comment'] as String?, createNotificationActivity: json['create_notification_activity'] as bool?, custom: json['custom'] as Map?, mentionedUserIds: (json['mentioned_user_ids'] as List?) diff --git a/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.dart b/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.dart index 0df5d76a..ea511252 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.dart @@ -22,6 +22,7 @@ class AggregatedActivityResponse with _$AggregatedActivityResponse { required this.activityCount, required this.createdAt, required this.group, + this.isWatched, required this.score, required this.updatedAt, required this.userCount, @@ -41,6 +42,9 @@ class AggregatedActivityResponse with _$AggregatedActivityResponse { @override final String group; + @override + final bool? isWatched; + @override final double score; diff --git a/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.freezed.dart index ca0ac884..f59ce83c 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.freezed.dart @@ -19,6 +19,7 @@ mixin _$AggregatedActivityResponse { int get activityCount; DateTime get createdAt; String get group; + bool? get isWatched; double get score; DateTime get updatedAt; int get userCount; @@ -45,6 +46,8 @@ mixin _$AggregatedActivityResponse { (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && (identical(other.group, group) || other.group == group) && + (identical(other.isWatched, isWatched) || + other.isWatched == isWatched) && (identical(other.score, score) || other.score == score) && (identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt) && @@ -61,6 +64,7 @@ mixin _$AggregatedActivityResponse { activityCount, createdAt, group, + isWatched, score, updatedAt, userCount, @@ -68,7 +72,7 @@ mixin _$AggregatedActivityResponse { @override String toString() { - return 'AggregatedActivityResponse(activities: $activities, activityCount: $activityCount, createdAt: $createdAt, group: $group, score: $score, updatedAt: $updatedAt, userCount: $userCount, userCountTruncated: $userCountTruncated)'; + return 'AggregatedActivityResponse(activities: $activities, activityCount: $activityCount, createdAt: $createdAt, group: $group, isWatched: $isWatched, score: $score, updatedAt: $updatedAt, userCount: $userCount, userCountTruncated: $userCountTruncated)'; } } @@ -83,6 +87,7 @@ abstract mixin class $AggregatedActivityResponseCopyWith<$Res> { int activityCount, DateTime createdAt, String group, + bool? isWatched, double score, DateTime updatedAt, int userCount, @@ -106,6 +111,7 @@ class _$AggregatedActivityResponseCopyWithImpl<$Res> Object? activityCount = null, Object? createdAt = null, Object? group = null, + Object? isWatched = freezed, Object? score = null, Object? updatedAt = null, Object? userCount = null, @@ -128,6 +134,10 @@ class _$AggregatedActivityResponseCopyWithImpl<$Res> ? _self.group : group // ignore: cast_nullable_to_non_nullable as String, + isWatched: freezed == isWatched + ? _self.isWatched + : isWatched // ignore: cast_nullable_to_non_nullable + as bool?, score: null == score ? _self.score : score // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.g.dart b/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.g.dart index ecd67e6e..d95d379d 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/aggregated_activity_response.g.dart @@ -16,6 +16,7 @@ AggregatedActivityResponse _$AggregatedActivityResponseFromJson( createdAt: const EpochDateTimeConverter() .fromJson((json['created_at'] as num).toInt()), group: json['group'] as String, + isWatched: json['is_watched'] as bool?, score: (json['score'] as num).toDouble(), updatedAt: const EpochDateTimeConverter() .fromJson((json['updated_at'] as num).toInt()), @@ -30,6 +31,7 @@ Map _$AggregatedActivityResponseToJson( 'activity_count': instance.activityCount, 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), 'group': instance.group, + 'is_watched': instance.isWatched, 'score': instance.score, 'updated_at': const EpochDateTimeConverter().toJson(instance.updatedAt), 'user_count': instance.userCount, diff --git a/packages/stream_feeds/lib/src/generated/api/model/apns.dart b/packages/stream_feeds/lib/src/generated/api/model/apns.dart deleted file mode 100644 index 04ef9153..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/apns.dart +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'apns.g.dart'; -part 'apns.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class APNS with _$APNS { - const APNS({ - required this.body, - this.contentAvailable, - this.data, - this.mutableContent, - this.sound, - required this.title, - }); - - @override - final String body; - - @override - final int? contentAvailable; - - @override - final Map? data; - - @override - final int? mutableContent; - - @override - final String? sound; - - @override - final String title; - - Map toJson() => _$APNSToJson(this); - - static APNS fromJson(Map json) => _$APNSFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/apns.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/apns.freezed.dart deleted file mode 100644 index 8f9e64a1..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/apns.freezed.dart +++ /dev/null @@ -1,119 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'apns.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$APNS { - String get body; - int? get contentAvailable; - Map? get data; - int? get mutableContent; - String? get sound; - String get title; - - /// Create a copy of APNS - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $APNSCopyWith get copyWith => - _$APNSCopyWithImpl(this as APNS, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is APNS && - (identical(other.body, body) || other.body == body) && - (identical(other.contentAvailable, contentAvailable) || - other.contentAvailable == contentAvailable) && - const DeepCollectionEquality().equals(other.data, data) && - (identical(other.mutableContent, mutableContent) || - other.mutableContent == mutableContent) && - (identical(other.sound, sound) || other.sound == sound) && - (identical(other.title, title) || other.title == title)); - } - - @override - int get hashCode => Object.hash(runtimeType, body, contentAvailable, - const DeepCollectionEquality().hash(data), mutableContent, sound, title); - - @override - String toString() { - return 'APNS(body: $body, contentAvailable: $contentAvailable, data: $data, mutableContent: $mutableContent, sound: $sound, title: $title)'; - } -} - -/// @nodoc -abstract mixin class $APNSCopyWith<$Res> { - factory $APNSCopyWith(APNS value, $Res Function(APNS) _then) = - _$APNSCopyWithImpl; - @useResult - $Res call( - {String body, - int? contentAvailable, - Map? data, - int? mutableContent, - String? sound, - String title}); -} - -/// @nodoc -class _$APNSCopyWithImpl<$Res> implements $APNSCopyWith<$Res> { - _$APNSCopyWithImpl(this._self, this._then); - - final APNS _self; - final $Res Function(APNS) _then; - - /// Create a copy of APNS - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? body = null, - Object? contentAvailable = freezed, - Object? data = freezed, - Object? mutableContent = freezed, - Object? sound = freezed, - Object? title = null, - }) { - return _then(APNS( - body: null == body - ? _self.body - : body // ignore: cast_nullable_to_non_nullable - as String, - contentAvailable: freezed == contentAvailable - ? _self.contentAvailable - : contentAvailable // ignore: cast_nullable_to_non_nullable - as int?, - data: freezed == data - ? _self.data - : data // ignore: cast_nullable_to_non_nullable - as Map?, - mutableContent: freezed == mutableContent - ? _self.mutableContent - : mutableContent // ignore: cast_nullable_to_non_nullable - as int?, - sound: freezed == sound - ? _self.sound - : sound // ignore: cast_nullable_to_non_nullable - as String?, - title: null == title - ? _self.title - : title // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/apns.g.dart b/packages/stream_feeds/lib/src/generated/api/model/apns.g.dart deleted file mode 100644 index 2ade04c4..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/apns.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'apns.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -APNS _$APNSFromJson(Map json) => APNS( - body: json['body'] as String, - contentAvailable: (json['content_available'] as num?)?.toInt(), - data: json['data'] as Map?, - mutableContent: (json['mutable_content'] as num?)?.toInt(), - sound: json['sound'] as String?, - title: json['title'] as String, - ); - -Map _$APNSToJson(APNS instance) => { - 'body': instance.body, - 'content_available': instance.contentAvailable, - 'data': instance.data, - 'mutable_content': instance.mutableContent, - 'sound': instance.sound, - 'title': instance.title, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.dart b/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.dart index 5b066954..ac10995f 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.dart @@ -23,6 +23,8 @@ class AppResponseFields with _$AppResponseFields { required this.fileUploadConfig, required this.imageUploadConfig, required this.name, + required this.region, + required this.shard, }); @override @@ -40,6 +42,12 @@ class AppResponseFields with _$AppResponseFields { @override final String name; + @override + final String region; + + @override + final String shard; + Map toJson() => _$AppResponseFieldsToJson(this); static AppResponseFields fromJson(Map json) => diff --git a/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.freezed.dart index 249ce630..0cf9f2d5 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.freezed.dart @@ -20,6 +20,8 @@ mixin _$AppResponseFields { FileUploadConfig get fileUploadConfig; FileUploadConfig get imageUploadConfig; String get name; + String get region; + String get shard; /// Create a copy of AppResponseFields /// with the given fields replaced by the non-null parameter values. @@ -42,16 +44,25 @@ mixin _$AppResponseFields { other.fileUploadConfig == fileUploadConfig) && (identical(other.imageUploadConfig, imageUploadConfig) || other.imageUploadConfig == imageUploadConfig) && - (identical(other.name, name) || other.name == name)); + (identical(other.name, name) || other.name == name) && + (identical(other.region, region) || other.region == region) && + (identical(other.shard, shard) || other.shard == shard)); } @override - int get hashCode => Object.hash(runtimeType, asyncUrlEnrichEnabled, - autoTranslationEnabled, fileUploadConfig, imageUploadConfig, name); + int get hashCode => Object.hash( + runtimeType, + asyncUrlEnrichEnabled, + autoTranslationEnabled, + fileUploadConfig, + imageUploadConfig, + name, + region, + shard); @override String toString() { - return 'AppResponseFields(asyncUrlEnrichEnabled: $asyncUrlEnrichEnabled, autoTranslationEnabled: $autoTranslationEnabled, fileUploadConfig: $fileUploadConfig, imageUploadConfig: $imageUploadConfig, name: $name)'; + return 'AppResponseFields(asyncUrlEnrichEnabled: $asyncUrlEnrichEnabled, autoTranslationEnabled: $autoTranslationEnabled, fileUploadConfig: $fileUploadConfig, imageUploadConfig: $imageUploadConfig, name: $name, region: $region, shard: $shard)'; } } @@ -66,7 +77,9 @@ abstract mixin class $AppResponseFieldsCopyWith<$Res> { bool autoTranslationEnabled, FileUploadConfig fileUploadConfig, FileUploadConfig imageUploadConfig, - String name}); + String name, + String region, + String shard}); } /// @nodoc @@ -87,6 +100,8 @@ class _$AppResponseFieldsCopyWithImpl<$Res> Object? fileUploadConfig = null, Object? imageUploadConfig = null, Object? name = null, + Object? region = null, + Object? shard = null, }) { return _then(AppResponseFields( asyncUrlEnrichEnabled: null == asyncUrlEnrichEnabled @@ -109,6 +124,14 @@ class _$AppResponseFieldsCopyWithImpl<$Res> ? _self.name : name // ignore: cast_nullable_to_non_nullable as String, + region: null == region + ? _self.region + : region // ignore: cast_nullable_to_non_nullable + as String, + shard: null == shard + ? _self.shard + : shard // ignore: cast_nullable_to_non_nullable + as String, )); } } diff --git a/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.g.dart b/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.g.dart index 73f6c1e4..3e7221ac 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/app_response_fields.g.dart @@ -15,6 +15,8 @@ AppResponseFields _$AppResponseFieldsFromJson(Map json) => imageUploadConfig: FileUploadConfig.fromJson( json['image_upload_config'] as Map), name: json['name'] as String, + region: json['region'] as String, + shard: json['shard'] as String, ); Map _$AppResponseFieldsToJson(AppResponseFields instance) => @@ -24,4 +26,6 @@ Map _$AppResponseFieldsToJson(AppResponseFields instance) => 'file_upload_config': instance.fileUploadConfig.toJson(), 'image_upload_config': instance.imageUploadConfig.toJson(), 'name': instance.name, + 'region': instance.region, + 'shard': instance.shard, }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/audio_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/audio_settings.dart deleted file mode 100644 index e514241d..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/audio_settings.dart +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'audio_settings.g.dart'; -part 'audio_settings.freezed.dart'; - -@JsonEnum(alwaysCreate: true) -enum AudioSettingsDefaultDevice { - @JsonValue('earpiece') - earpiece, - @JsonValue('speaker') - speaker, - @JsonValue('_unknown') - unknown; -} - -@freezed -@immutable -@JsonSerializable() -class AudioSettings with _$AudioSettings { - const AudioSettings({ - required this.accessRequestEnabled, - required this.defaultDevice, - required this.micDefaultOn, - this.noiseCancellation, - required this.opusDtxEnabled, - required this.redundantCodingEnabled, - required this.speakerDefaultOn, - }); - - @override - final bool accessRequestEnabled; - - @override - @JsonKey(unknownEnumValue: AudioSettingsDefaultDevice.unknown) - final AudioSettingsDefaultDevice defaultDevice; - - @override - final bool micDefaultOn; - - @override - final NoiseCancellationSettings? noiseCancellation; - - @override - final bool opusDtxEnabled; - - @override - final bool redundantCodingEnabled; - - @override - final bool speakerDefaultOn; - - Map toJson() => _$AudioSettingsToJson(this); - - static AudioSettings fromJson(Map json) => - _$AudioSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/audio_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/audio_settings.freezed.dart deleted file mode 100644 index 8cc72e23..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/audio_settings.freezed.dart +++ /dev/null @@ -1,142 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'audio_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$AudioSettings { - bool get accessRequestEnabled; - AudioSettingsDefaultDevice get defaultDevice; - bool get micDefaultOn; - NoiseCancellationSettings? get noiseCancellation; - bool get opusDtxEnabled; - bool get redundantCodingEnabled; - bool get speakerDefaultOn; - - /// Create a copy of AudioSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $AudioSettingsCopyWith get copyWith => - _$AudioSettingsCopyWithImpl( - this as AudioSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is AudioSettings && - (identical(other.accessRequestEnabled, accessRequestEnabled) || - other.accessRequestEnabled == accessRequestEnabled) && - (identical(other.defaultDevice, defaultDevice) || - other.defaultDevice == defaultDevice) && - (identical(other.micDefaultOn, micDefaultOn) || - other.micDefaultOn == micDefaultOn) && - (identical(other.noiseCancellation, noiseCancellation) || - other.noiseCancellation == noiseCancellation) && - (identical(other.opusDtxEnabled, opusDtxEnabled) || - other.opusDtxEnabled == opusDtxEnabled) && - (identical(other.redundantCodingEnabled, redundantCodingEnabled) || - other.redundantCodingEnabled == redundantCodingEnabled) && - (identical(other.speakerDefaultOn, speakerDefaultOn) || - other.speakerDefaultOn == speakerDefaultOn)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - accessRequestEnabled, - defaultDevice, - micDefaultOn, - noiseCancellation, - opusDtxEnabled, - redundantCodingEnabled, - speakerDefaultOn); - - @override - String toString() { - return 'AudioSettings(accessRequestEnabled: $accessRequestEnabled, defaultDevice: $defaultDevice, micDefaultOn: $micDefaultOn, noiseCancellation: $noiseCancellation, opusDtxEnabled: $opusDtxEnabled, redundantCodingEnabled: $redundantCodingEnabled, speakerDefaultOn: $speakerDefaultOn)'; - } -} - -/// @nodoc -abstract mixin class $AudioSettingsCopyWith<$Res> { - factory $AudioSettingsCopyWith( - AudioSettings value, $Res Function(AudioSettings) _then) = - _$AudioSettingsCopyWithImpl; - @useResult - $Res call( - {bool accessRequestEnabled, - AudioSettingsDefaultDevice defaultDevice, - bool micDefaultOn, - NoiseCancellationSettings? noiseCancellation, - bool opusDtxEnabled, - bool redundantCodingEnabled, - bool speakerDefaultOn}); -} - -/// @nodoc -class _$AudioSettingsCopyWithImpl<$Res> - implements $AudioSettingsCopyWith<$Res> { - _$AudioSettingsCopyWithImpl(this._self, this._then); - - final AudioSettings _self; - final $Res Function(AudioSettings) _then; - - /// Create a copy of AudioSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? accessRequestEnabled = null, - Object? defaultDevice = null, - Object? micDefaultOn = null, - Object? noiseCancellation = freezed, - Object? opusDtxEnabled = null, - Object? redundantCodingEnabled = null, - Object? speakerDefaultOn = null, - }) { - return _then(AudioSettings( - accessRequestEnabled: null == accessRequestEnabled - ? _self.accessRequestEnabled - : accessRequestEnabled // ignore: cast_nullable_to_non_nullable - as bool, - defaultDevice: null == defaultDevice - ? _self.defaultDevice - : defaultDevice // ignore: cast_nullable_to_non_nullable - as AudioSettingsDefaultDevice, - micDefaultOn: null == micDefaultOn - ? _self.micDefaultOn - : micDefaultOn // ignore: cast_nullable_to_non_nullable - as bool, - noiseCancellation: freezed == noiseCancellation - ? _self.noiseCancellation - : noiseCancellation // ignore: cast_nullable_to_non_nullable - as NoiseCancellationSettings?, - opusDtxEnabled: null == opusDtxEnabled - ? _self.opusDtxEnabled - : opusDtxEnabled // ignore: cast_nullable_to_non_nullable - as bool, - redundantCodingEnabled: null == redundantCodingEnabled - ? _self.redundantCodingEnabled - : redundantCodingEnabled // ignore: cast_nullable_to_non_nullable - as bool, - speakerDefaultOn: null == speakerDefaultOn - ? _self.speakerDefaultOn - : speakerDefaultOn // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/audio_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/audio_settings.g.dart deleted file mode 100644 index 0b0f6e29..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/audio_settings.g.dart +++ /dev/null @@ -1,41 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'audio_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -AudioSettings _$AudioSettingsFromJson(Map json) => - AudioSettings( - accessRequestEnabled: json['access_request_enabled'] as bool, - defaultDevice: $enumDecode( - _$AudioSettingsDefaultDeviceEnumMap, json['default_device'], - unknownValue: AudioSettingsDefaultDevice.unknown), - micDefaultOn: json['mic_default_on'] as bool, - noiseCancellation: json['noise_cancellation'] == null - ? null - : NoiseCancellationSettings.fromJson( - json['noise_cancellation'] as Map), - opusDtxEnabled: json['opus_dtx_enabled'] as bool, - redundantCodingEnabled: json['redundant_coding_enabled'] as bool, - speakerDefaultOn: json['speaker_default_on'] as bool, - ); - -Map _$AudioSettingsToJson(AudioSettings instance) => - { - 'access_request_enabled': instance.accessRequestEnabled, - 'default_device': - _$AudioSettingsDefaultDeviceEnumMap[instance.defaultDevice]!, - 'mic_default_on': instance.micDefaultOn, - 'noise_cancellation': instance.noiseCancellation?.toJson(), - 'opus_dtx_enabled': instance.opusDtxEnabled, - 'redundant_coding_enabled': instance.redundantCodingEnabled, - 'speaker_default_on': instance.speakerDefaultOn, - }; - -const _$AudioSettingsDefaultDeviceEnumMap = { - AudioSettingsDefaultDevice.earpiece: 'earpiece', - AudioSettingsDefaultDevice.speaker: 'speaker', - AudioSettingsDefaultDevice.unknown: '_unknown', -}; diff --git a/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.dart b/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.dart index d038737c..ae177a17 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.dart @@ -30,6 +30,7 @@ class AudioSettingsResponse with _$AudioSettingsResponse { const AudioSettingsResponse({ required this.accessRequestEnabled, required this.defaultDevice, + required this.hifiAudioEnabled, required this.micDefaultOn, this.noiseCancellation, required this.opusDtxEnabled, @@ -44,6 +45,9 @@ class AudioSettingsResponse with _$AudioSettingsResponse { @JsonKey(unknownEnumValue: AudioSettingsResponseDefaultDevice.unknown) final AudioSettingsResponseDefaultDevice defaultDevice; + @override + final bool hifiAudioEnabled; + @override final bool micDefaultOn; diff --git a/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.freezed.dart index 7ae30ba1..834b8b0c 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.freezed.dart @@ -17,6 +17,7 @@ T _$identity(T value) => value; mixin _$AudioSettingsResponse { bool get accessRequestEnabled; AudioSettingsResponseDefaultDevice get defaultDevice; + bool get hifiAudioEnabled; bool get micDefaultOn; NoiseCancellationSettings? get noiseCancellation; bool get opusDtxEnabled; @@ -40,6 +41,8 @@ mixin _$AudioSettingsResponse { other.accessRequestEnabled == accessRequestEnabled) && (identical(other.defaultDevice, defaultDevice) || other.defaultDevice == defaultDevice) && + (identical(other.hifiAudioEnabled, hifiAudioEnabled) || + other.hifiAudioEnabled == hifiAudioEnabled) && (identical(other.micDefaultOn, micDefaultOn) || other.micDefaultOn == micDefaultOn) && (identical(other.noiseCancellation, noiseCancellation) || @@ -57,6 +60,7 @@ mixin _$AudioSettingsResponse { runtimeType, accessRequestEnabled, defaultDevice, + hifiAudioEnabled, micDefaultOn, noiseCancellation, opusDtxEnabled, @@ -65,7 +69,7 @@ mixin _$AudioSettingsResponse { @override String toString() { - return 'AudioSettingsResponse(accessRequestEnabled: $accessRequestEnabled, defaultDevice: $defaultDevice, micDefaultOn: $micDefaultOn, noiseCancellation: $noiseCancellation, opusDtxEnabled: $opusDtxEnabled, redundantCodingEnabled: $redundantCodingEnabled, speakerDefaultOn: $speakerDefaultOn)'; + return 'AudioSettingsResponse(accessRequestEnabled: $accessRequestEnabled, defaultDevice: $defaultDevice, hifiAudioEnabled: $hifiAudioEnabled, micDefaultOn: $micDefaultOn, noiseCancellation: $noiseCancellation, opusDtxEnabled: $opusDtxEnabled, redundantCodingEnabled: $redundantCodingEnabled, speakerDefaultOn: $speakerDefaultOn)'; } } @@ -78,6 +82,7 @@ abstract mixin class $AudioSettingsResponseCopyWith<$Res> { $Res call( {bool accessRequestEnabled, AudioSettingsResponseDefaultDevice defaultDevice, + bool hifiAudioEnabled, bool micDefaultOn, NoiseCancellationSettings? noiseCancellation, bool opusDtxEnabled, @@ -100,6 +105,7 @@ class _$AudioSettingsResponseCopyWithImpl<$Res> $Res call({ Object? accessRequestEnabled = null, Object? defaultDevice = null, + Object? hifiAudioEnabled = null, Object? micDefaultOn = null, Object? noiseCancellation = freezed, Object? opusDtxEnabled = null, @@ -115,6 +121,10 @@ class _$AudioSettingsResponseCopyWithImpl<$Res> ? _self.defaultDevice : defaultDevice // ignore: cast_nullable_to_non_nullable as AudioSettingsResponseDefaultDevice, + hifiAudioEnabled: null == hifiAudioEnabled + ? _self.hifiAudioEnabled + : hifiAudioEnabled // ignore: cast_nullable_to_non_nullable + as bool, micDefaultOn: null == micDefaultOn ? _self.micDefaultOn : micDefaultOn // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.g.dart b/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.g.dart index b3d46398..20f8f8c6 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/audio_settings_response.g.dart @@ -13,6 +13,7 @@ AudioSettingsResponse _$AudioSettingsResponseFromJson( defaultDevice: $enumDecode( _$AudioSettingsResponseDefaultDeviceEnumMap, json['default_device'], unknownValue: AudioSettingsResponseDefaultDevice.unknown), + hifiAudioEnabled: json['hifi_audio_enabled'] as bool, micDefaultOn: json['mic_default_on'] as bool, noiseCancellation: json['noise_cancellation'] == null ? null @@ -29,6 +30,7 @@ Map _$AudioSettingsResponseToJson( 'access_request_enabled': instance.accessRequestEnabled, 'default_device': _$AudioSettingsResponseDefaultDeviceEnumMap[instance.defaultDevice]!, + 'hifi_audio_enabled': instance.hifiAudioEnabled, 'mic_default_on': instance.micDefaultOn, 'noise_cancellation': instance.noiseCancellation?.toJson(), 'opus_dtx_enabled': instance.opusDtxEnabled, diff --git a/packages/stream_feeds/lib/src/generated/api/model/backstage_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/backstage_settings.g.dart deleted file mode 100644 index bf0bbc89..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/backstage_settings.g.dart +++ /dev/null @@ -1,19 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'backstage_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -BackstageSettings _$BackstageSettingsFromJson(Map json) => - BackstageSettings( - enabled: json['enabled'] as bool, - joinAheadTimeSeconds: (json['join_ahead_time_seconds'] as num?)?.toInt(), - ); - -Map _$BackstageSettingsToJson(BackstageSettings instance) => - { - 'enabled': instance.enabled, - 'join_ahead_time_seconds': instance.joinAheadTimeSeconds, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/block_list_response.dart b/packages/stream_feeds/lib/src/generated/api/model/block_list_response.dart index 82e0e450..47a8599c 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/block_list_response.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/block_list_response.dart @@ -20,6 +20,8 @@ class BlockListResponse with _$BlockListResponse { const BlockListResponse({ this.createdAt, this.id, + required this.isLeetCheckEnabled, + required this.isPluralCheckEnabled, required this.name, this.team, required this.type, @@ -34,6 +36,12 @@ class BlockListResponse with _$BlockListResponse { @override final String? id; + @override + final bool isLeetCheckEnabled; + + @override + final bool isPluralCheckEnabled; + @override final String name; diff --git a/packages/stream_feeds/lib/src/generated/api/model/block_list_response.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/block_list_response.freezed.dart index d3b74dee..1fb1b261 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/block_list_response.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/block_list_response.freezed.dart @@ -17,6 +17,8 @@ T _$identity(T value) => value; mixin _$BlockListResponse { DateTime? get createdAt; String? get id; + bool get isLeetCheckEnabled; + bool get isPluralCheckEnabled; String get name; String? get team; String get type; @@ -39,6 +41,10 @@ mixin _$BlockListResponse { (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && (identical(other.id, id) || other.id == id) && + (identical(other.isLeetCheckEnabled, isLeetCheckEnabled) || + other.isLeetCheckEnabled == isLeetCheckEnabled) && + (identical(other.isPluralCheckEnabled, isPluralCheckEnabled) || + other.isPluralCheckEnabled == isPluralCheckEnabled) && (identical(other.name, name) || other.name == name) && (identical(other.team, team) || other.team == team) && (identical(other.type, type) || other.type == type) && @@ -48,12 +54,21 @@ mixin _$BlockListResponse { } @override - int get hashCode => Object.hash(runtimeType, createdAt, id, name, team, type, - updatedAt, const DeepCollectionEquality().hash(words)); + int get hashCode => Object.hash( + runtimeType, + createdAt, + id, + isLeetCheckEnabled, + isPluralCheckEnabled, + name, + team, + type, + updatedAt, + const DeepCollectionEquality().hash(words)); @override String toString() { - return 'BlockListResponse(createdAt: $createdAt, id: $id, name: $name, team: $team, type: $type, updatedAt: $updatedAt, words: $words)'; + return 'BlockListResponse(createdAt: $createdAt, id: $id, isLeetCheckEnabled: $isLeetCheckEnabled, isPluralCheckEnabled: $isPluralCheckEnabled, name: $name, team: $team, type: $type, updatedAt: $updatedAt, words: $words)'; } } @@ -66,6 +81,8 @@ abstract mixin class $BlockListResponseCopyWith<$Res> { $Res call( {DateTime? createdAt, String? id, + bool isLeetCheckEnabled, + bool isPluralCheckEnabled, String name, String? team, String type, @@ -88,6 +105,8 @@ class _$BlockListResponseCopyWithImpl<$Res> $Res call({ Object? createdAt = freezed, Object? id = freezed, + Object? isLeetCheckEnabled = null, + Object? isPluralCheckEnabled = null, Object? name = null, Object? team = freezed, Object? type = null, @@ -103,6 +122,14 @@ class _$BlockListResponseCopyWithImpl<$Res> ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?, + isLeetCheckEnabled: null == isLeetCheckEnabled + ? _self.isLeetCheckEnabled + : isLeetCheckEnabled // ignore: cast_nullable_to_non_nullable + as bool, + isPluralCheckEnabled: null == isPluralCheckEnabled + ? _self.isPluralCheckEnabled + : isPluralCheckEnabled // ignore: cast_nullable_to_non_nullable + as bool, name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/block_list_response.g.dart b/packages/stream_feeds/lib/src/generated/api/model/block_list_response.g.dart index 7a7e5f19..4ca89b16 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/block_list_response.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/block_list_response.g.dart @@ -11,6 +11,8 @@ BlockListResponse _$BlockListResponseFromJson(Map json) => createdAt: _$JsonConverterFromJson( json['created_at'], const EpochDateTimeConverter().fromJson), id: json['id'] as String?, + isLeetCheckEnabled: json['is_leet_check_enabled'] as bool, + isPluralCheckEnabled: json['is_plural_check_enabled'] as bool, name: json['name'] as String, team: json['team'] as String?, type: json['type'] as String, @@ -24,6 +26,8 @@ Map _$BlockListResponseToJson(BlockListResponse instance) => 'created_at': _$JsonConverterToJson( instance.createdAt, const EpochDateTimeConverter().toJson), 'id': instance.id, + 'is_leet_check_enabled': instance.isLeetCheckEnabled, + 'is_plural_check_enabled': instance.isPluralCheckEnabled, 'name': instance.name, 'team': instance.team, 'type': instance.type, diff --git a/packages/stream_feeds/lib/src/generated/api/model/broadcast_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/broadcast_settings.dart deleted file mode 100644 index 3ed70b4c..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/broadcast_settings.dart +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'broadcast_settings.g.dart'; -part 'broadcast_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class BroadcastSettings with _$BroadcastSettings { - const BroadcastSettings({ - required this.enabled, - this.hls, - this.rtmp, - }); - - @override - final bool enabled; - - @override - final HLSSettings? hls; - - @override - final RTMPSettings? rtmp; - - Map toJson() => _$BroadcastSettingsToJson(this); - - static BroadcastSettings fromJson(Map json) => - _$BroadcastSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/broadcast_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/broadcast_settings.freezed.dart deleted file mode 100644 index c3fa7352..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/broadcast_settings.freezed.dart +++ /dev/null @@ -1,92 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'broadcast_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$BroadcastSettings { - bool get enabled; - HLSSettings? get hls; - RTMPSettings? get rtmp; - - /// Create a copy of BroadcastSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $BroadcastSettingsCopyWith get copyWith => - _$BroadcastSettingsCopyWithImpl( - this as BroadcastSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is BroadcastSettings && - (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.hls, hls) || other.hls == hls) && - (identical(other.rtmp, rtmp) || other.rtmp == rtmp)); - } - - @override - int get hashCode => Object.hash(runtimeType, enabled, hls, rtmp); - - @override - String toString() { - return 'BroadcastSettings(enabled: $enabled, hls: $hls, rtmp: $rtmp)'; - } -} - -/// @nodoc -abstract mixin class $BroadcastSettingsCopyWith<$Res> { - factory $BroadcastSettingsCopyWith( - BroadcastSettings value, $Res Function(BroadcastSettings) _then) = - _$BroadcastSettingsCopyWithImpl; - @useResult - $Res call({bool enabled, HLSSettings? hls, RTMPSettings? rtmp}); -} - -/// @nodoc -class _$BroadcastSettingsCopyWithImpl<$Res> - implements $BroadcastSettingsCopyWith<$Res> { - _$BroadcastSettingsCopyWithImpl(this._self, this._then); - - final BroadcastSettings _self; - final $Res Function(BroadcastSettings) _then; - - /// Create a copy of BroadcastSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? enabled = null, - Object? hls = freezed, - Object? rtmp = freezed, - }) { - return _then(BroadcastSettings( - enabled: null == enabled - ? _self.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - hls: freezed == hls - ? _self.hls - : hls // ignore: cast_nullable_to_non_nullable - as HLSSettings?, - rtmp: freezed == rtmp - ? _self.rtmp - : rtmp // ignore: cast_nullable_to_non_nullable - as RTMPSettings?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/broadcast_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/broadcast_settings.g.dart deleted file mode 100644 index 017f2c71..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/broadcast_settings.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'broadcast_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -BroadcastSettings _$BroadcastSettingsFromJson(Map json) => - BroadcastSettings( - enabled: json['enabled'] as bool, - hls: json['hls'] == null - ? null - : HLSSettings.fromJson(json['hls'] as Map), - rtmp: json['rtmp'] == null - ? null - : RTMPSettings.fromJson(json['rtmp'] as Map), - ); - -Map _$BroadcastSettingsToJson(BroadcastSettings instance) => - { - 'enabled': instance.enabled, - 'hls': instance.hls?.toJson(), - 'rtmp': instance.rtmp?.toJson(), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/call.dart b/packages/stream_feeds/lib/src/generated/api/model/call.dart deleted file mode 100644 index fa367016..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call.dart +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'call.g.dart'; -part 'call.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class Call with _$Call { - const Call({ - required this.appPK, - required this.backstage, - required this.blockedUserIDs, - required this.blockedUsers, - required this.cID, - this.callType, - required this.channelCID, - required this.createdAt, - this.createdBy, - required this.createdByUserID, - required this.currentSessionID, - required this.custom, - this.deletedAt, - this.egressUpdatedAt, - required this.egresses, - this.endedAt, - required this.iD, - this.joinAheadTimeSeconds, - this.lastHeartbeatAt, - required this.lastSessionID, - this.memberCount, - this.memberLookup, - required this.members, - this.session, - this.settings, - this.settingsOverrides, - this.startsAt, - required this.team, - required this.thumbnailURL, - required this.type, - required this.updatedAt, - }); - - @override - final int appPK; - - @override - final bool backstage; - - @override - final List blockedUserIDs; - - @override - final List blockedUsers; - - @override - final String cID; - - @override - final CallType? callType; - - @override - final String channelCID; - - @override - @EpochDateTimeConverter() - final DateTime createdAt; - - @override - final User? createdBy; - - @override - final String createdByUserID; - - @override - final String currentSessionID; - - @override - final Map custom; - - @override - @EpochDateTimeConverter() - final DateTime? deletedAt; - - @override - @EpochDateTimeConverter() - final DateTime? egressUpdatedAt; - - @override - final List egresses; - - @override - @EpochDateTimeConverter() - final DateTime? endedAt; - - @override - final String iD; - - @override - final int? joinAheadTimeSeconds; - - @override - @EpochDateTimeConverter() - final DateTime? lastHeartbeatAt; - - @override - final String lastSessionID; - - @override - final int? memberCount; - - @override - final MemberLookup? memberLookup; - - @override - final List members; - - @override - final CallSession? session; - - @override - final CallSettings? settings; - - @override - final CallSettings? settingsOverrides; - - @override - @EpochDateTimeConverter() - final DateTime? startsAt; - - @override - final String team; - - @override - final String thumbnailURL; - - @override - final String type; - - @override - @EpochDateTimeConverter() - final DateTime updatedAt; - - Map toJson() => _$CallToJson(this); - - static Call fromJson(Map json) => _$CallFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/call.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/call.freezed.dart deleted file mode 100644 index 7f14a7ee..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call.freezed.dart +++ /dev/null @@ -1,370 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'call.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$Call { - int get appPK; - bool get backstage; - List get blockedUserIDs; - List get blockedUsers; - String get cID; - CallType? get callType; - String get channelCID; - DateTime get createdAt; - User? get createdBy; - String get createdByUserID; - String get currentSessionID; - Map get custom; - DateTime? get deletedAt; - DateTime? get egressUpdatedAt; - List get egresses; - DateTime? get endedAt; - String get iD; - int? get joinAheadTimeSeconds; - DateTime? get lastHeartbeatAt; - String get lastSessionID; - int? get memberCount; - MemberLookup? get memberLookup; - List get members; - CallSession? get session; - CallSettings? get settings; - CallSettings? get settingsOverrides; - DateTime? get startsAt; - String get team; - String get thumbnailURL; - String get type; - DateTime get updatedAt; - - /// Create a copy of Call - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $CallCopyWith get copyWith => - _$CallCopyWithImpl(this as Call, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is Call && - (identical(other.appPK, appPK) || other.appPK == appPK) && - (identical(other.backstage, backstage) || - other.backstage == backstage) && - const DeepCollectionEquality() - .equals(other.blockedUserIDs, blockedUserIDs) && - const DeepCollectionEquality() - .equals(other.blockedUsers, blockedUsers) && - (identical(other.cID, cID) || other.cID == cID) && - (identical(other.callType, callType) || - other.callType == callType) && - (identical(other.channelCID, channelCID) || - other.channelCID == channelCID) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - (identical(other.createdBy, createdBy) || - other.createdBy == createdBy) && - (identical(other.createdByUserID, createdByUserID) || - other.createdByUserID == createdByUserID) && - (identical(other.currentSessionID, currentSessionID) || - other.currentSessionID == currentSessionID) && - const DeepCollectionEquality().equals(other.custom, custom) && - (identical(other.deletedAt, deletedAt) || - other.deletedAt == deletedAt) && - (identical(other.egressUpdatedAt, egressUpdatedAt) || - other.egressUpdatedAt == egressUpdatedAt) && - const DeepCollectionEquality().equals(other.egresses, egresses) && - (identical(other.endedAt, endedAt) || other.endedAt == endedAt) && - (identical(other.iD, iD) || other.iD == iD) && - (identical(other.joinAheadTimeSeconds, joinAheadTimeSeconds) || - other.joinAheadTimeSeconds == joinAheadTimeSeconds) && - (identical(other.lastHeartbeatAt, lastHeartbeatAt) || - other.lastHeartbeatAt == lastHeartbeatAt) && - (identical(other.lastSessionID, lastSessionID) || - other.lastSessionID == lastSessionID) && - (identical(other.memberCount, memberCount) || - other.memberCount == memberCount) && - (identical(other.memberLookup, memberLookup) || - other.memberLookup == memberLookup) && - const DeepCollectionEquality().equals(other.members, members) && - (identical(other.session, session) || other.session == session) && - (identical(other.settings, settings) || - other.settings == settings) && - (identical(other.settingsOverrides, settingsOverrides) || - other.settingsOverrides == settingsOverrides) && - (identical(other.startsAt, startsAt) || - other.startsAt == startsAt) && - (identical(other.team, team) || other.team == team) && - (identical(other.thumbnailURL, thumbnailURL) || - other.thumbnailURL == thumbnailURL) && - (identical(other.type, type) || other.type == type) && - (identical(other.updatedAt, updatedAt) || - other.updatedAt == updatedAt)); - } - - @override - int get hashCode => Object.hashAll([ - runtimeType, - appPK, - backstage, - const DeepCollectionEquality().hash(blockedUserIDs), - const DeepCollectionEquality().hash(blockedUsers), - cID, - callType, - channelCID, - createdAt, - createdBy, - createdByUserID, - currentSessionID, - const DeepCollectionEquality().hash(custom), - deletedAt, - egressUpdatedAt, - const DeepCollectionEquality().hash(egresses), - endedAt, - iD, - joinAheadTimeSeconds, - lastHeartbeatAt, - lastSessionID, - memberCount, - memberLookup, - const DeepCollectionEquality().hash(members), - session, - settings, - settingsOverrides, - startsAt, - team, - thumbnailURL, - type, - updatedAt - ]); - - @override - String toString() { - return 'Call(appPK: $appPK, backstage: $backstage, blockedUserIDs: $blockedUserIDs, blockedUsers: $blockedUsers, cID: $cID, callType: $callType, channelCID: $channelCID, createdAt: $createdAt, createdBy: $createdBy, createdByUserID: $createdByUserID, currentSessionID: $currentSessionID, custom: $custom, deletedAt: $deletedAt, egressUpdatedAt: $egressUpdatedAt, egresses: $egresses, endedAt: $endedAt, iD: $iD, joinAheadTimeSeconds: $joinAheadTimeSeconds, lastHeartbeatAt: $lastHeartbeatAt, lastSessionID: $lastSessionID, memberCount: $memberCount, memberLookup: $memberLookup, members: $members, session: $session, settings: $settings, settingsOverrides: $settingsOverrides, startsAt: $startsAt, team: $team, thumbnailURL: $thumbnailURL, type: $type, updatedAt: $updatedAt)'; - } -} - -/// @nodoc -abstract mixin class $CallCopyWith<$Res> { - factory $CallCopyWith(Call value, $Res Function(Call) _then) = - _$CallCopyWithImpl; - @useResult - $Res call( - {int appPK, - bool backstage, - List blockedUserIDs, - List blockedUsers, - String cID, - CallType? callType, - String channelCID, - DateTime createdAt, - User? createdBy, - String createdByUserID, - String currentSessionID, - Map custom, - DateTime? deletedAt, - DateTime? egressUpdatedAt, - List egresses, - DateTime? endedAt, - String iD, - int? joinAheadTimeSeconds, - DateTime? lastHeartbeatAt, - String lastSessionID, - int? memberCount, - MemberLookup? memberLookup, - List members, - CallSession? session, - CallSettings? settings, - CallSettings? settingsOverrides, - DateTime? startsAt, - String team, - String thumbnailURL, - String type, - DateTime updatedAt}); -} - -/// @nodoc -class _$CallCopyWithImpl<$Res> implements $CallCopyWith<$Res> { - _$CallCopyWithImpl(this._self, this._then); - - final Call _self; - final $Res Function(Call) _then; - - /// Create a copy of Call - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? appPK = null, - Object? backstage = null, - Object? blockedUserIDs = null, - Object? blockedUsers = null, - Object? cID = null, - Object? callType = freezed, - Object? channelCID = null, - Object? createdAt = null, - Object? createdBy = freezed, - Object? createdByUserID = null, - Object? currentSessionID = null, - Object? custom = null, - Object? deletedAt = freezed, - Object? egressUpdatedAt = freezed, - Object? egresses = null, - Object? endedAt = freezed, - Object? iD = null, - Object? joinAheadTimeSeconds = freezed, - Object? lastHeartbeatAt = freezed, - Object? lastSessionID = null, - Object? memberCount = freezed, - Object? memberLookup = freezed, - Object? members = null, - Object? session = freezed, - Object? settings = freezed, - Object? settingsOverrides = freezed, - Object? startsAt = freezed, - Object? team = null, - Object? thumbnailURL = null, - Object? type = null, - Object? updatedAt = null, - }) { - return _then(Call( - appPK: null == appPK - ? _self.appPK - : appPK // ignore: cast_nullable_to_non_nullable - as int, - backstage: null == backstage - ? _self.backstage - : backstage // ignore: cast_nullable_to_non_nullable - as bool, - blockedUserIDs: null == blockedUserIDs - ? _self.blockedUserIDs - : blockedUserIDs // ignore: cast_nullable_to_non_nullable - as List, - blockedUsers: null == blockedUsers - ? _self.blockedUsers - : blockedUsers // ignore: cast_nullable_to_non_nullable - as List, - cID: null == cID - ? _self.cID - : cID // ignore: cast_nullable_to_non_nullable - as String, - callType: freezed == callType - ? _self.callType - : callType // ignore: cast_nullable_to_non_nullable - as CallType?, - channelCID: null == channelCID - ? _self.channelCID - : channelCID // ignore: cast_nullable_to_non_nullable - as String, - createdAt: null == createdAt - ? _self.createdAt - : createdAt // ignore: cast_nullable_to_non_nullable - as DateTime, - createdBy: freezed == createdBy - ? _self.createdBy - : createdBy // ignore: cast_nullable_to_non_nullable - as User?, - createdByUserID: null == createdByUserID - ? _self.createdByUserID - : createdByUserID // ignore: cast_nullable_to_non_nullable - as String, - currentSessionID: null == currentSessionID - ? _self.currentSessionID - : currentSessionID // ignore: cast_nullable_to_non_nullable - as String, - custom: null == custom - ? _self.custom - : custom // ignore: cast_nullable_to_non_nullable - as Map, - deletedAt: freezed == deletedAt - ? _self.deletedAt - : deletedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - egressUpdatedAt: freezed == egressUpdatedAt - ? _self.egressUpdatedAt - : egressUpdatedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - egresses: null == egresses - ? _self.egresses - : egresses // ignore: cast_nullable_to_non_nullable - as List, - endedAt: freezed == endedAt - ? _self.endedAt - : endedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - iD: null == iD - ? _self.iD - : iD // ignore: cast_nullable_to_non_nullable - as String, - joinAheadTimeSeconds: freezed == joinAheadTimeSeconds - ? _self.joinAheadTimeSeconds - : joinAheadTimeSeconds // ignore: cast_nullable_to_non_nullable - as int?, - lastHeartbeatAt: freezed == lastHeartbeatAt - ? _self.lastHeartbeatAt - : lastHeartbeatAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - lastSessionID: null == lastSessionID - ? _self.lastSessionID - : lastSessionID // ignore: cast_nullable_to_non_nullable - as String, - memberCount: freezed == memberCount - ? _self.memberCount - : memberCount // ignore: cast_nullable_to_non_nullable - as int?, - memberLookup: freezed == memberLookup - ? _self.memberLookup - : memberLookup // ignore: cast_nullable_to_non_nullable - as MemberLookup?, - members: null == members - ? _self.members - : members // ignore: cast_nullable_to_non_nullable - as List, - session: freezed == session - ? _self.session - : session // ignore: cast_nullable_to_non_nullable - as CallSession?, - settings: freezed == settings - ? _self.settings - : settings // ignore: cast_nullable_to_non_nullable - as CallSettings?, - settingsOverrides: freezed == settingsOverrides - ? _self.settingsOverrides - : settingsOverrides // ignore: cast_nullable_to_non_nullable - as CallSettings?, - startsAt: freezed == startsAt - ? _self.startsAt - : startsAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - team: null == team - ? _self.team - : team // ignore: cast_nullable_to_non_nullable - as String, - thumbnailURL: null == thumbnailURL - ? _self.thumbnailURL - : thumbnailURL // ignore: cast_nullable_to_non_nullable - as String, - type: null == type - ? _self.type - : type // ignore: cast_nullable_to_non_nullable - as String, - updatedAt: null == updatedAt - ? _self.updatedAt - : updatedAt // ignore: cast_nullable_to_non_nullable - as DateTime, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/call.g.dart b/packages/stream_feeds/lib/src/generated/api/model/call.g.dart deleted file mode 100644 index 4837854c..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call.g.dart +++ /dev/null @@ -1,121 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'call.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Call _$CallFromJson(Map json) => Call( - appPK: (json['app_p_k'] as num).toInt(), - backstage: json['backstage'] as bool, - blockedUserIDs: (json['blocked_user_i_ds'] as List) - .map((e) => e as String) - .toList(), - blockedUsers: (json['blocked_users'] as List) - .map((e) => User.fromJson(e as Map)) - .toList(), - cID: json['c_i_d'] as String, - callType: json['call_type'] == null - ? null - : CallType.fromJson(json['call_type'] as Map), - channelCID: json['channel_c_i_d'] as String, - createdAt: const EpochDateTimeConverter() - .fromJson((json['created_at'] as num).toInt()), - createdBy: json['created_by'] == null - ? null - : User.fromJson(json['created_by'] as Map), - createdByUserID: json['created_by_user_i_d'] as String, - currentSessionID: json['current_session_i_d'] as String, - custom: json['custom'] as Map, - deletedAt: _$JsonConverterFromJson( - json['deleted_at'], const EpochDateTimeConverter().fromJson), - egressUpdatedAt: _$JsonConverterFromJson( - json['egress_updated_at'], const EpochDateTimeConverter().fromJson), - egresses: (json['egresses'] as List) - .map((e) => CallEgress.fromJson(e as Map)) - .toList(), - endedAt: _$JsonConverterFromJson( - json['ended_at'], const EpochDateTimeConverter().fromJson), - iD: json['i_d'] as String, - joinAheadTimeSeconds: (json['join_ahead_time_seconds'] as num?)?.toInt(), - lastHeartbeatAt: _$JsonConverterFromJson( - json['last_heartbeat_at'], const EpochDateTimeConverter().fromJson), - lastSessionID: json['last_session_i_d'] as String, - memberCount: (json['member_count'] as num?)?.toInt(), - memberLookup: json['member_lookup'] == null - ? null - : MemberLookup.fromJson( - json['member_lookup'] as Map), - members: (json['members'] as List) - .map((e) => CallMember.fromJson(e as Map)) - .toList(), - session: json['session'] == null - ? null - : CallSession.fromJson(json['session'] as Map), - settings: json['settings'] == null - ? null - : CallSettings.fromJson(json['settings'] as Map), - settingsOverrides: json['settings_overrides'] == null - ? null - : CallSettings.fromJson( - json['settings_overrides'] as Map), - startsAt: _$JsonConverterFromJson( - json['starts_at'], const EpochDateTimeConverter().fromJson), - team: json['team'] as String, - thumbnailURL: json['thumbnail_u_r_l'] as String, - type: json['type'] as String, - updatedAt: const EpochDateTimeConverter() - .fromJson((json['updated_at'] as num).toInt()), - ); - -Map _$CallToJson(Call instance) => { - 'app_p_k': instance.appPK, - 'backstage': instance.backstage, - 'blocked_user_i_ds': instance.blockedUserIDs, - 'blocked_users': instance.blockedUsers.map((e) => e.toJson()).toList(), - 'c_i_d': instance.cID, - 'call_type': instance.callType?.toJson(), - 'channel_c_i_d': instance.channelCID, - 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), - 'created_by': instance.createdBy?.toJson(), - 'created_by_user_i_d': instance.createdByUserID, - 'current_session_i_d': instance.currentSessionID, - 'custom': instance.custom, - 'deleted_at': _$JsonConverterToJson( - instance.deletedAt, const EpochDateTimeConverter().toJson), - 'egress_updated_at': _$JsonConverterToJson( - instance.egressUpdatedAt, const EpochDateTimeConverter().toJson), - 'egresses': instance.egresses.map((e) => e.toJson()).toList(), - 'ended_at': _$JsonConverterToJson( - instance.endedAt, const EpochDateTimeConverter().toJson), - 'i_d': instance.iD, - 'join_ahead_time_seconds': instance.joinAheadTimeSeconds, - 'last_heartbeat_at': _$JsonConverterToJson( - instance.lastHeartbeatAt, const EpochDateTimeConverter().toJson), - 'last_session_i_d': instance.lastSessionID, - 'member_count': instance.memberCount, - 'member_lookup': instance.memberLookup?.toJson(), - 'members': instance.members.map((e) => e.toJson()).toList(), - 'session': instance.session?.toJson(), - 'settings': instance.settings?.toJson(), - 'settings_overrides': instance.settingsOverrides?.toJson(), - 'starts_at': _$JsonConverterToJson( - instance.startsAt, const EpochDateTimeConverter().toJson), - 'team': instance.team, - 'thumbnail_u_r_l': instance.thumbnailURL, - 'type': instance.type, - 'updated_at': const EpochDateTimeConverter().toJson(instance.updatedAt), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_egress.dart b/packages/stream_feeds/lib/src/generated/api/model/call_egress.dart deleted file mode 100644 index 34a9d0d6..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_egress.dart +++ /dev/null @@ -1,74 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'call_egress.g.dart'; -part 'call_egress.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class CallEgress with _$CallEgress { - const CallEgress({ - required this.appPk, - required this.callId, - required this.callType, - this.config, - required this.egressId, - required this.egressType, - required this.instanceIp, - required this.startedAt, - required this.state, - this.stoppedAt, - required this.updatedAt, - }); - - @override - final int appPk; - - @override - final String callId; - - @override - final String callType; - - @override - final EgressTaskConfig? config; - - @override - final String egressId; - - @override - final String egressType; - - @override - final String instanceIp; - - @override - @EpochDateTimeConverter() - final DateTime startedAt; - - @override - final String state; - - @override - @EpochDateTimeConverter() - final DateTime? stoppedAt; - - @override - @EpochDateTimeConverter() - final DateTime updatedAt; - - Map toJson() => _$CallEgressToJson(this); - - static CallEgress fromJson(Map json) => - _$CallEgressFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_egress.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/call_egress.freezed.dart deleted file mode 100644 index 63670c23..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_egress.freezed.dart +++ /dev/null @@ -1,165 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'call_egress.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$CallEgress { - int get appPk; - String get callId; - String get callType; - EgressTaskConfig? get config; - String get egressId; - String get egressType; - String get instanceIp; - DateTime get startedAt; - String get state; - DateTime? get stoppedAt; - DateTime get updatedAt; - - /// Create a copy of CallEgress - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $CallEgressCopyWith get copyWith => - _$CallEgressCopyWithImpl(this as CallEgress, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is CallEgress && - (identical(other.appPk, appPk) || other.appPk == appPk) && - (identical(other.callId, callId) || other.callId == callId) && - (identical(other.callType, callType) || - other.callType == callType) && - (identical(other.config, config) || other.config == config) && - (identical(other.egressId, egressId) || - other.egressId == egressId) && - (identical(other.egressType, egressType) || - other.egressType == egressType) && - (identical(other.instanceIp, instanceIp) || - other.instanceIp == instanceIp) && - (identical(other.startedAt, startedAt) || - other.startedAt == startedAt) && - (identical(other.state, state) || other.state == state) && - (identical(other.stoppedAt, stoppedAt) || - other.stoppedAt == stoppedAt) && - (identical(other.updatedAt, updatedAt) || - other.updatedAt == updatedAt)); - } - - @override - int get hashCode => Object.hash(runtimeType, appPk, callId, callType, config, - egressId, egressType, instanceIp, startedAt, state, stoppedAt, updatedAt); - - @override - String toString() { - return 'CallEgress(appPk: $appPk, callId: $callId, callType: $callType, config: $config, egressId: $egressId, egressType: $egressType, instanceIp: $instanceIp, startedAt: $startedAt, state: $state, stoppedAt: $stoppedAt, updatedAt: $updatedAt)'; - } -} - -/// @nodoc -abstract mixin class $CallEgressCopyWith<$Res> { - factory $CallEgressCopyWith( - CallEgress value, $Res Function(CallEgress) _then) = - _$CallEgressCopyWithImpl; - @useResult - $Res call( - {int appPk, - String callId, - String callType, - EgressTaskConfig? config, - String egressId, - String egressType, - String instanceIp, - DateTime startedAt, - String state, - DateTime? stoppedAt, - DateTime updatedAt}); -} - -/// @nodoc -class _$CallEgressCopyWithImpl<$Res> implements $CallEgressCopyWith<$Res> { - _$CallEgressCopyWithImpl(this._self, this._then); - - final CallEgress _self; - final $Res Function(CallEgress) _then; - - /// Create a copy of CallEgress - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? appPk = null, - Object? callId = null, - Object? callType = null, - Object? config = freezed, - Object? egressId = null, - Object? egressType = null, - Object? instanceIp = null, - Object? startedAt = null, - Object? state = null, - Object? stoppedAt = freezed, - Object? updatedAt = null, - }) { - return _then(CallEgress( - appPk: null == appPk - ? _self.appPk - : appPk // ignore: cast_nullable_to_non_nullable - as int, - callId: null == callId - ? _self.callId - : callId // ignore: cast_nullable_to_non_nullable - as String, - callType: null == callType - ? _self.callType - : callType // ignore: cast_nullable_to_non_nullable - as String, - config: freezed == config - ? _self.config - : config // ignore: cast_nullable_to_non_nullable - as EgressTaskConfig?, - egressId: null == egressId - ? _self.egressId - : egressId // ignore: cast_nullable_to_non_nullable - as String, - egressType: null == egressType - ? _self.egressType - : egressType // ignore: cast_nullable_to_non_nullable - as String, - instanceIp: null == instanceIp - ? _self.instanceIp - : instanceIp // ignore: cast_nullable_to_non_nullable - as String, - startedAt: null == startedAt - ? _self.startedAt - : startedAt // ignore: cast_nullable_to_non_nullable - as DateTime, - state: null == state - ? _self.state - : state // ignore: cast_nullable_to_non_nullable - as String, - stoppedAt: freezed == stoppedAt - ? _self.stoppedAt - : stoppedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - updatedAt: null == updatedAt - ? _self.updatedAt - : updatedAt // ignore: cast_nullable_to_non_nullable - as DateTime, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_egress.g.dart b/packages/stream_feeds/lib/src/generated/api/model/call_egress.g.dart deleted file mode 100644 index 94eda4e2..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_egress.g.dart +++ /dev/null @@ -1,54 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'call_egress.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -CallEgress _$CallEgressFromJson(Map json) => CallEgress( - appPk: (json['app_pk'] as num).toInt(), - callId: json['call_id'] as String, - callType: json['call_type'] as String, - config: json['config'] == null - ? null - : EgressTaskConfig.fromJson(json['config'] as Map), - egressId: json['egress_id'] as String, - egressType: json['egress_type'] as String, - instanceIp: json['instance_ip'] as String, - startedAt: const EpochDateTimeConverter() - .fromJson((json['started_at'] as num).toInt()), - state: json['state'] as String, - stoppedAt: _$JsonConverterFromJson( - json['stopped_at'], const EpochDateTimeConverter().fromJson), - updatedAt: const EpochDateTimeConverter() - .fromJson((json['updated_at'] as num).toInt()), - ); - -Map _$CallEgressToJson(CallEgress instance) => - { - 'app_pk': instance.appPk, - 'call_id': instance.callId, - 'call_type': instance.callType, - 'config': instance.config?.toJson(), - 'egress_id': instance.egressId, - 'egress_type': instance.egressType, - 'instance_ip': instance.instanceIp, - 'started_at': const EpochDateTimeConverter().toJson(instance.startedAt), - 'state': instance.state, - 'stopped_at': _$JsonConverterToJson( - instance.stoppedAt, const EpochDateTimeConverter().toJson), - 'updated_at': const EpochDateTimeConverter().toJson(instance.updatedAt), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_member.dart b/packages/stream_feeds/lib/src/generated/api/model/call_member.dart deleted file mode 100644 index beabeaa9..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_member.dart +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'call_member.g.dart'; -part 'call_member.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class CallMember with _$CallMember { - const CallMember({ - required this.createdAt, - required this.custom, - this.deletedAt, - required this.role, - required this.updatedAt, - this.user, - required this.userId, - }); - - @override - @EpochDateTimeConverter() - final DateTime createdAt; - - @override - final Map custom; - - @override - @EpochDateTimeConverter() - final DateTime? deletedAt; - - @override - final String role; - - @override - @EpochDateTimeConverter() - final DateTime updatedAt; - - @override - final User? user; - - @override - final String userId; - - Map toJson() => _$CallMemberToJson(this); - - static CallMember fromJson(Map json) => - _$CallMemberFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_member.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/call_member.freezed.dart deleted file mode 100644 index 9d9ed3bb..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_member.freezed.dart +++ /dev/null @@ -1,136 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'call_member.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$CallMember { - DateTime get createdAt; - Map get custom; - DateTime? get deletedAt; - String get role; - DateTime get updatedAt; - User? get user; - String get userId; - - /// Create a copy of CallMember - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $CallMemberCopyWith get copyWith => - _$CallMemberCopyWithImpl(this as CallMember, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is CallMember && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - const DeepCollectionEquality().equals(other.custom, custom) && - (identical(other.deletedAt, deletedAt) || - other.deletedAt == deletedAt) && - (identical(other.role, role) || other.role == role) && - (identical(other.updatedAt, updatedAt) || - other.updatedAt == updatedAt) && - (identical(other.user, user) || other.user == user) && - (identical(other.userId, userId) || other.userId == userId)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - createdAt, - const DeepCollectionEquality().hash(custom), - deletedAt, - role, - updatedAt, - user, - userId); - - @override - String toString() { - return 'CallMember(createdAt: $createdAt, custom: $custom, deletedAt: $deletedAt, role: $role, updatedAt: $updatedAt, user: $user, userId: $userId)'; - } -} - -/// @nodoc -abstract mixin class $CallMemberCopyWith<$Res> { - factory $CallMemberCopyWith( - CallMember value, $Res Function(CallMember) _then) = - _$CallMemberCopyWithImpl; - @useResult - $Res call( - {DateTime createdAt, - Map custom, - DateTime? deletedAt, - String role, - DateTime updatedAt, - User? user, - String userId}); -} - -/// @nodoc -class _$CallMemberCopyWithImpl<$Res> implements $CallMemberCopyWith<$Res> { - _$CallMemberCopyWithImpl(this._self, this._then); - - final CallMember _self; - final $Res Function(CallMember) _then; - - /// Create a copy of CallMember - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? createdAt = null, - Object? custom = null, - Object? deletedAt = freezed, - Object? role = null, - Object? updatedAt = null, - Object? user = freezed, - Object? userId = null, - }) { - return _then(CallMember( - createdAt: null == createdAt - ? _self.createdAt - : createdAt // ignore: cast_nullable_to_non_nullable - as DateTime, - custom: null == custom - ? _self.custom - : custom // ignore: cast_nullable_to_non_nullable - as Map, - deletedAt: freezed == deletedAt - ? _self.deletedAt - : deletedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - role: null == role - ? _self.role - : role // ignore: cast_nullable_to_non_nullable - as String, - updatedAt: null == updatedAt - ? _self.updatedAt - : updatedAt // ignore: cast_nullable_to_non_nullable - as DateTime, - user: freezed == user - ? _self.user - : user // ignore: cast_nullable_to_non_nullable - as User?, - userId: null == userId - ? _self.userId - : userId // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_member.g.dart b/packages/stream_feeds/lib/src/generated/api/model/call_member.g.dart deleted file mode 100644 index ba432e1b..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_member.g.dart +++ /dev/null @@ -1,46 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'call_member.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -CallMember _$CallMemberFromJson(Map json) => CallMember( - createdAt: const EpochDateTimeConverter() - .fromJson((json['created_at'] as num).toInt()), - custom: json['custom'] as Map, - deletedAt: _$JsonConverterFromJson( - json['deleted_at'], const EpochDateTimeConverter().fromJson), - role: json['role'] as String, - updatedAt: const EpochDateTimeConverter() - .fromJson((json['updated_at'] as num).toInt()), - user: json['user'] == null - ? null - : User.fromJson(json['user'] as Map), - userId: json['user_id'] as String, - ); - -Map _$CallMemberToJson(CallMember instance) => - { - 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), - 'custom': instance.custom, - 'deleted_at': _$JsonConverterToJson( - instance.deletedAt, const EpochDateTimeConverter().toJson), - 'role': instance.role, - 'updated_at': const EpochDateTimeConverter().toJson(instance.updatedAt), - 'user': instance.user?.toJson(), - 'user_id': instance.userId, - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_participant.dart b/packages/stream_feeds/lib/src/generated/api/model/call_participant.dart deleted file mode 100644 index 4ac3d57b..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_participant.dart +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'call_participant.g.dart'; -part 'call_participant.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class CallParticipant with _$CallParticipant { - const CallParticipant({ - this.avgResponseTime, - this.banExpires, - required this.banned, - this.createdAt, - required this.custom, - this.deactivatedAt, - this.deletedAt, - required this.id, - this.invisible, - required this.joinedAt, - this.language, - this.lastActive, - this.lastEngagedAt, - required this.online, - this.privacySettings, - this.revokeTokensIssuedBefore, - required this.role, - this.teams, - required this.teamsRole, - this.updatedAt, - required this.userSessionID, - }); - - @override - final int? avgResponseTime; - - @override - @EpochDateTimeConverter() - final DateTime? banExpires; - - @override - final bool banned; - - @override - @EpochDateTimeConverter() - final DateTime? createdAt; - - @override - final Map custom; - - @override - @EpochDateTimeConverter() - final DateTime? deactivatedAt; - - @override - @EpochDateTimeConverter() - final DateTime? deletedAt; - - @override - final String id; - - @override - final bool? invisible; - - @override - @EpochDateTimeConverter() - final DateTime joinedAt; - - @override - final String? language; - - @override - @EpochDateTimeConverter() - final DateTime? lastActive; - - @override - @EpochDateTimeConverter() - final DateTime? lastEngagedAt; - - @override - final bool online; - - @override - final PrivacySettings? privacySettings; - - @override - @EpochDateTimeConverter() - final DateTime? revokeTokensIssuedBefore; - - @override - final String role; - - @override - final List? teams; - - @override - final Map teamsRole; - - @override - @EpochDateTimeConverter() - final DateTime? updatedAt; - - @override - final String userSessionID; - - Map toJson() => _$CallParticipantToJson(this); - - static CallParticipant fromJson(Map json) => - _$CallParticipantFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_participant.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/call_participant.freezed.dart deleted file mode 100644 index 7d4ec390..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_participant.freezed.dart +++ /dev/null @@ -1,277 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'call_participant.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$CallParticipant { - int? get avgResponseTime; - DateTime? get banExpires; - bool get banned; - DateTime? get createdAt; - Map get custom; - DateTime? get deactivatedAt; - DateTime? get deletedAt; - String get id; - bool? get invisible; - DateTime get joinedAt; - String? get language; - DateTime? get lastActive; - DateTime? get lastEngagedAt; - bool get online; - PrivacySettings? get privacySettings; - DateTime? get revokeTokensIssuedBefore; - String get role; - List? get teams; - Map get teamsRole; - DateTime? get updatedAt; - String get userSessionID; - - /// Create a copy of CallParticipant - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $CallParticipantCopyWith get copyWith => - _$CallParticipantCopyWithImpl( - this as CallParticipant, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is CallParticipant && - (identical(other.avgResponseTime, avgResponseTime) || - other.avgResponseTime == avgResponseTime) && - (identical(other.banExpires, banExpires) || - other.banExpires == banExpires) && - (identical(other.banned, banned) || other.banned == banned) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - const DeepCollectionEquality().equals(other.custom, custom) && - (identical(other.deactivatedAt, deactivatedAt) || - other.deactivatedAt == deactivatedAt) && - (identical(other.deletedAt, deletedAt) || - other.deletedAt == deletedAt) && - (identical(other.id, id) || other.id == id) && - (identical(other.invisible, invisible) || - other.invisible == invisible) && - (identical(other.joinedAt, joinedAt) || - other.joinedAt == joinedAt) && - (identical(other.language, language) || - other.language == language) && - (identical(other.lastActive, lastActive) || - other.lastActive == lastActive) && - (identical(other.lastEngagedAt, lastEngagedAt) || - other.lastEngagedAt == lastEngagedAt) && - (identical(other.online, online) || other.online == online) && - (identical(other.privacySettings, privacySettings) || - other.privacySettings == privacySettings) && - (identical( - other.revokeTokensIssuedBefore, revokeTokensIssuedBefore) || - other.revokeTokensIssuedBefore == revokeTokensIssuedBefore) && - (identical(other.role, role) || other.role == role) && - const DeepCollectionEquality().equals(other.teams, teams) && - const DeepCollectionEquality().equals(other.teamsRole, teamsRole) && - (identical(other.updatedAt, updatedAt) || - other.updatedAt == updatedAt) && - (identical(other.userSessionID, userSessionID) || - other.userSessionID == userSessionID)); - } - - @override - int get hashCode => Object.hashAll([ - runtimeType, - avgResponseTime, - banExpires, - banned, - createdAt, - const DeepCollectionEquality().hash(custom), - deactivatedAt, - deletedAt, - id, - invisible, - joinedAt, - language, - lastActive, - lastEngagedAt, - online, - privacySettings, - revokeTokensIssuedBefore, - role, - const DeepCollectionEquality().hash(teams), - const DeepCollectionEquality().hash(teamsRole), - updatedAt, - userSessionID - ]); - - @override - String toString() { - return 'CallParticipant(avgResponseTime: $avgResponseTime, banExpires: $banExpires, banned: $banned, createdAt: $createdAt, custom: $custom, deactivatedAt: $deactivatedAt, deletedAt: $deletedAt, id: $id, invisible: $invisible, joinedAt: $joinedAt, language: $language, lastActive: $lastActive, lastEngagedAt: $lastEngagedAt, online: $online, privacySettings: $privacySettings, revokeTokensIssuedBefore: $revokeTokensIssuedBefore, role: $role, teams: $teams, teamsRole: $teamsRole, updatedAt: $updatedAt, userSessionID: $userSessionID)'; - } -} - -/// @nodoc -abstract mixin class $CallParticipantCopyWith<$Res> { - factory $CallParticipantCopyWith( - CallParticipant value, $Res Function(CallParticipant) _then) = - _$CallParticipantCopyWithImpl; - @useResult - $Res call( - {int? avgResponseTime, - DateTime? banExpires, - bool banned, - DateTime? createdAt, - Map custom, - DateTime? deactivatedAt, - DateTime? deletedAt, - String id, - bool? invisible, - DateTime joinedAt, - String? language, - DateTime? lastActive, - DateTime? lastEngagedAt, - bool online, - PrivacySettings? privacySettings, - DateTime? revokeTokensIssuedBefore, - String role, - List? teams, - Map teamsRole, - DateTime? updatedAt, - String userSessionID}); -} - -/// @nodoc -class _$CallParticipantCopyWithImpl<$Res> - implements $CallParticipantCopyWith<$Res> { - _$CallParticipantCopyWithImpl(this._self, this._then); - - final CallParticipant _self; - final $Res Function(CallParticipant) _then; - - /// Create a copy of CallParticipant - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? avgResponseTime = freezed, - Object? banExpires = freezed, - Object? banned = null, - Object? createdAt = freezed, - Object? custom = null, - Object? deactivatedAt = freezed, - Object? deletedAt = freezed, - Object? id = null, - Object? invisible = freezed, - Object? joinedAt = null, - Object? language = freezed, - Object? lastActive = freezed, - Object? lastEngagedAt = freezed, - Object? online = null, - Object? privacySettings = freezed, - Object? revokeTokensIssuedBefore = freezed, - Object? role = null, - Object? teams = freezed, - Object? teamsRole = null, - Object? updatedAt = freezed, - Object? userSessionID = null, - }) { - return _then(CallParticipant( - avgResponseTime: freezed == avgResponseTime - ? _self.avgResponseTime - : avgResponseTime // ignore: cast_nullable_to_non_nullable - as int?, - banExpires: freezed == banExpires - ? _self.banExpires - : banExpires // ignore: cast_nullable_to_non_nullable - as DateTime?, - banned: null == banned - ? _self.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - createdAt: freezed == createdAt - ? _self.createdAt - : createdAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - custom: null == custom - ? _self.custom - : custom // ignore: cast_nullable_to_non_nullable - as Map, - deactivatedAt: freezed == deactivatedAt - ? _self.deactivatedAt - : deactivatedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - deletedAt: freezed == deletedAt - ? _self.deletedAt - : deletedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - id: null == id - ? _self.id - : id // ignore: cast_nullable_to_non_nullable - as String, - invisible: freezed == invisible - ? _self.invisible - : invisible // ignore: cast_nullable_to_non_nullable - as bool?, - joinedAt: null == joinedAt - ? _self.joinedAt - : joinedAt // ignore: cast_nullable_to_non_nullable - as DateTime, - language: freezed == language - ? _self.language - : language // ignore: cast_nullable_to_non_nullable - as String?, - lastActive: freezed == lastActive - ? _self.lastActive - : lastActive // ignore: cast_nullable_to_non_nullable - as DateTime?, - lastEngagedAt: freezed == lastEngagedAt - ? _self.lastEngagedAt - : lastEngagedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - online: null == online - ? _self.online - : online // ignore: cast_nullable_to_non_nullable - as bool, - privacySettings: freezed == privacySettings - ? _self.privacySettings - : privacySettings // ignore: cast_nullable_to_non_nullable - as PrivacySettings?, - revokeTokensIssuedBefore: freezed == revokeTokensIssuedBefore - ? _self.revokeTokensIssuedBefore - : revokeTokensIssuedBefore // ignore: cast_nullable_to_non_nullable - as DateTime?, - role: null == role - ? _self.role - : role // ignore: cast_nullable_to_non_nullable - as String, - teams: freezed == teams - ? _self.teams - : teams // ignore: cast_nullable_to_non_nullable - as List?, - teamsRole: null == teamsRole - ? _self.teamsRole - : teamsRole // ignore: cast_nullable_to_non_nullable - as Map, - updatedAt: freezed == updatedAt - ? _self.updatedAt - : updatedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - userSessionID: null == userSessionID - ? _self.userSessionID - : userSessionID // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_participant.g.dart b/packages/stream_feeds/lib/src/generated/api/model/call_participant.g.dart deleted file mode 100644 index a8c120b4..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_participant.g.dart +++ /dev/null @@ -1,92 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'call_participant.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -CallParticipant _$CallParticipantFromJson(Map json) => - CallParticipant( - avgResponseTime: (json['avg_response_time'] as num?)?.toInt(), - banExpires: _$JsonConverterFromJson( - json['ban_expires'], const EpochDateTimeConverter().fromJson), - banned: json['banned'] as bool, - createdAt: _$JsonConverterFromJson( - json['created_at'], const EpochDateTimeConverter().fromJson), - custom: json['custom'] as Map, - deactivatedAt: _$JsonConverterFromJson( - json['deactivated_at'], const EpochDateTimeConverter().fromJson), - deletedAt: _$JsonConverterFromJson( - json['deleted_at'], const EpochDateTimeConverter().fromJson), - id: json['id'] as String, - invisible: json['invisible'] as bool?, - joinedAt: const EpochDateTimeConverter() - .fromJson((json['joined_at'] as num).toInt()), - language: json['language'] as String?, - lastActive: _$JsonConverterFromJson( - json['last_active'], const EpochDateTimeConverter().fromJson), - lastEngagedAt: _$JsonConverterFromJson( - json['last_engaged_at'], const EpochDateTimeConverter().fromJson), - online: json['online'] as bool, - privacySettings: json['privacy_settings'] == null - ? null - : PrivacySettings.fromJson( - json['privacy_settings'] as Map), - revokeTokensIssuedBefore: _$JsonConverterFromJson( - json['revoke_tokens_issued_before'], - const EpochDateTimeConverter().fromJson), - role: json['role'] as String, - teams: - (json['teams'] as List?)?.map((e) => e as String).toList(), - teamsRole: Map.from(json['teams_role'] as Map), - updatedAt: _$JsonConverterFromJson( - json['updated_at'], const EpochDateTimeConverter().fromJson), - userSessionID: json['user_session_i_d'] as String, - ); - -Map _$CallParticipantToJson(CallParticipant instance) => - { - 'avg_response_time': instance.avgResponseTime, - 'ban_expires': _$JsonConverterToJson( - instance.banExpires, const EpochDateTimeConverter().toJson), - 'banned': instance.banned, - 'created_at': _$JsonConverterToJson( - instance.createdAt, const EpochDateTimeConverter().toJson), - 'custom': instance.custom, - 'deactivated_at': _$JsonConverterToJson( - instance.deactivatedAt, const EpochDateTimeConverter().toJson), - 'deleted_at': _$JsonConverterToJson( - instance.deletedAt, const EpochDateTimeConverter().toJson), - 'id': instance.id, - 'invisible': instance.invisible, - 'joined_at': const EpochDateTimeConverter().toJson(instance.joinedAt), - 'language': instance.language, - 'last_active': _$JsonConverterToJson( - instance.lastActive, const EpochDateTimeConverter().toJson), - 'last_engaged_at': _$JsonConverterToJson( - instance.lastEngagedAt, const EpochDateTimeConverter().toJson), - 'online': instance.online, - 'privacy_settings': instance.privacySettings?.toJson(), - 'revoke_tokens_issued_before': _$JsonConverterToJson( - instance.revokeTokensIssuedBefore, - const EpochDateTimeConverter().toJson), - 'role': instance.role, - 'teams': instance.teams, - 'teams_role': instance.teamsRole, - 'updated_at': _$JsonConverterToJson( - instance.updatedAt, const EpochDateTimeConverter().toJson), - 'user_session_i_d': instance.userSessionID, - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_session.dart b/packages/stream_feeds/lib/src/generated/api/model/call_session.dart deleted file mode 100644 index f3d5f17d..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_session.dart +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'call_session.g.dart'; -part 'call_session.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class CallSession with _$CallSession { - const CallSession({ - required this.acceptedBy, - required this.activeSFUs, - required this.anonymousParticipantCount, - required this.appPK, - required this.callID, - required this.callType, - required this.createdAt, - this.deletedAt, - this.endedAt, - this.liveEndedAt, - this.liveStartedAt, - required this.missedBy, - required this.participants, - required this.participantsCountByRole, - required this.rejectedBy, - this.ringAt, - required this.sFUIDs, - required this.sessionID, - this.startedAt, - this.timerEndsAt, - required this.userPermissionOverrides, - }); - - @override - final Map acceptedBy; - - @override - final List activeSFUs; - - @override - final int anonymousParticipantCount; - - @override - final int appPK; - - @override - final String callID; - - @override - final String callType; - - @override - @EpochDateTimeConverter() - final DateTime createdAt; - - @override - @EpochDateTimeConverter() - final DateTime? deletedAt; - - @override - @EpochDateTimeConverter() - final DateTime? endedAt; - - @override - @EpochDateTimeConverter() - final DateTime? liveEndedAt; - - @override - @EpochDateTimeConverter() - final DateTime? liveStartedAt; - - @override - final Map missedBy; - - @override - final List participants; - - @override - final Map participantsCountByRole; - - @override - final Map rejectedBy; - - @override - @EpochDateTimeConverter() - final DateTime? ringAt; - - @override - final List sFUIDs; - - @override - final String sessionID; - - @override - @EpochDateTimeConverter() - final DateTime? startedAt; - - @override - @EpochDateTimeConverter() - final DateTime? timerEndsAt; - - @override - final Map> userPermissionOverrides; - - Map toJson() => _$CallSessionToJson(this); - - static CallSession fromJson(Map json) => - _$CallSessionFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_session.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/call_session.freezed.dart deleted file mode 100644 index 92e48b72..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_session.freezed.dart +++ /dev/null @@ -1,276 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'call_session.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$CallSession { - Map get acceptedBy; - List get activeSFUs; - int get anonymousParticipantCount; - int get appPK; - String get callID; - String get callType; - DateTime get createdAt; - DateTime? get deletedAt; - DateTime? get endedAt; - DateTime? get liveEndedAt; - DateTime? get liveStartedAt; - Map get missedBy; - List get participants; - Map get participantsCountByRole; - Map get rejectedBy; - DateTime? get ringAt; - List get sFUIDs; - String get sessionID; - DateTime? get startedAt; - DateTime? get timerEndsAt; - Map> get userPermissionOverrides; - - /// Create a copy of CallSession - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $CallSessionCopyWith get copyWith => - _$CallSessionCopyWithImpl(this as CallSession, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is CallSession && - const DeepCollectionEquality() - .equals(other.acceptedBy, acceptedBy) && - const DeepCollectionEquality() - .equals(other.activeSFUs, activeSFUs) && - (identical(other.anonymousParticipantCount, - anonymousParticipantCount) || - other.anonymousParticipantCount == anonymousParticipantCount) && - (identical(other.appPK, appPK) || other.appPK == appPK) && - (identical(other.callID, callID) || other.callID == callID) && - (identical(other.callType, callType) || - other.callType == callType) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - (identical(other.deletedAt, deletedAt) || - other.deletedAt == deletedAt) && - (identical(other.endedAt, endedAt) || other.endedAt == endedAt) && - (identical(other.liveEndedAt, liveEndedAt) || - other.liveEndedAt == liveEndedAt) && - (identical(other.liveStartedAt, liveStartedAt) || - other.liveStartedAt == liveStartedAt) && - const DeepCollectionEquality().equals(other.missedBy, missedBy) && - const DeepCollectionEquality() - .equals(other.participants, participants) && - const DeepCollectionEquality().equals( - other.participantsCountByRole, participantsCountByRole) && - const DeepCollectionEquality() - .equals(other.rejectedBy, rejectedBy) && - (identical(other.ringAt, ringAt) || other.ringAt == ringAt) && - const DeepCollectionEquality().equals(other.sFUIDs, sFUIDs) && - (identical(other.sessionID, sessionID) || - other.sessionID == sessionID) && - (identical(other.startedAt, startedAt) || - other.startedAt == startedAt) && - (identical(other.timerEndsAt, timerEndsAt) || - other.timerEndsAt == timerEndsAt) && - const DeepCollectionEquality().equals( - other.userPermissionOverrides, userPermissionOverrides)); - } - - @override - int get hashCode => Object.hashAll([ - runtimeType, - const DeepCollectionEquality().hash(acceptedBy), - const DeepCollectionEquality().hash(activeSFUs), - anonymousParticipantCount, - appPK, - callID, - callType, - createdAt, - deletedAt, - endedAt, - liveEndedAt, - liveStartedAt, - const DeepCollectionEquality().hash(missedBy), - const DeepCollectionEquality().hash(participants), - const DeepCollectionEquality().hash(participantsCountByRole), - const DeepCollectionEquality().hash(rejectedBy), - ringAt, - const DeepCollectionEquality().hash(sFUIDs), - sessionID, - startedAt, - timerEndsAt, - const DeepCollectionEquality().hash(userPermissionOverrides) - ]); - - @override - String toString() { - return 'CallSession(acceptedBy: $acceptedBy, activeSFUs: $activeSFUs, anonymousParticipantCount: $anonymousParticipantCount, appPK: $appPK, callID: $callID, callType: $callType, createdAt: $createdAt, deletedAt: $deletedAt, endedAt: $endedAt, liveEndedAt: $liveEndedAt, liveStartedAt: $liveStartedAt, missedBy: $missedBy, participants: $participants, participantsCountByRole: $participantsCountByRole, rejectedBy: $rejectedBy, ringAt: $ringAt, sFUIDs: $sFUIDs, sessionID: $sessionID, startedAt: $startedAt, timerEndsAt: $timerEndsAt, userPermissionOverrides: $userPermissionOverrides)'; - } -} - -/// @nodoc -abstract mixin class $CallSessionCopyWith<$Res> { - factory $CallSessionCopyWith( - CallSession value, $Res Function(CallSession) _then) = - _$CallSessionCopyWithImpl; - @useResult - $Res call( - {Map acceptedBy, - List activeSFUs, - int anonymousParticipantCount, - int appPK, - String callID, - String callType, - DateTime createdAt, - DateTime? deletedAt, - DateTime? endedAt, - DateTime? liveEndedAt, - DateTime? liveStartedAt, - Map missedBy, - List participants, - Map participantsCountByRole, - Map rejectedBy, - DateTime? ringAt, - List sFUIDs, - String sessionID, - DateTime? startedAt, - DateTime? timerEndsAt, - Map> userPermissionOverrides}); -} - -/// @nodoc -class _$CallSessionCopyWithImpl<$Res> implements $CallSessionCopyWith<$Res> { - _$CallSessionCopyWithImpl(this._self, this._then); - - final CallSession _self; - final $Res Function(CallSession) _then; - - /// Create a copy of CallSession - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? acceptedBy = null, - Object? activeSFUs = null, - Object? anonymousParticipantCount = null, - Object? appPK = null, - Object? callID = null, - Object? callType = null, - Object? createdAt = null, - Object? deletedAt = freezed, - Object? endedAt = freezed, - Object? liveEndedAt = freezed, - Object? liveStartedAt = freezed, - Object? missedBy = null, - Object? participants = null, - Object? participantsCountByRole = null, - Object? rejectedBy = null, - Object? ringAt = freezed, - Object? sFUIDs = null, - Object? sessionID = null, - Object? startedAt = freezed, - Object? timerEndsAt = freezed, - Object? userPermissionOverrides = null, - }) { - return _then(CallSession( - acceptedBy: null == acceptedBy - ? _self.acceptedBy - : acceptedBy // ignore: cast_nullable_to_non_nullable - as Map, - activeSFUs: null == activeSFUs - ? _self.activeSFUs - : activeSFUs // ignore: cast_nullable_to_non_nullable - as List, - anonymousParticipantCount: null == anonymousParticipantCount - ? _self.anonymousParticipantCount - : anonymousParticipantCount // ignore: cast_nullable_to_non_nullable - as int, - appPK: null == appPK - ? _self.appPK - : appPK // ignore: cast_nullable_to_non_nullable - as int, - callID: null == callID - ? _self.callID - : callID // ignore: cast_nullable_to_non_nullable - as String, - callType: null == callType - ? _self.callType - : callType // ignore: cast_nullable_to_non_nullable - as String, - createdAt: null == createdAt - ? _self.createdAt - : createdAt // ignore: cast_nullable_to_non_nullable - as DateTime, - deletedAt: freezed == deletedAt - ? _self.deletedAt - : deletedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - endedAt: freezed == endedAt - ? _self.endedAt - : endedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - liveEndedAt: freezed == liveEndedAt - ? _self.liveEndedAt - : liveEndedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - liveStartedAt: freezed == liveStartedAt - ? _self.liveStartedAt - : liveStartedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - missedBy: null == missedBy - ? _self.missedBy - : missedBy // ignore: cast_nullable_to_non_nullable - as Map, - participants: null == participants - ? _self.participants - : participants // ignore: cast_nullable_to_non_nullable - as List, - participantsCountByRole: null == participantsCountByRole - ? _self.participantsCountByRole - : participantsCountByRole // ignore: cast_nullable_to_non_nullable - as Map, - rejectedBy: null == rejectedBy - ? _self.rejectedBy - : rejectedBy // ignore: cast_nullable_to_non_nullable - as Map, - ringAt: freezed == ringAt - ? _self.ringAt - : ringAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - sFUIDs: null == sFUIDs - ? _self.sFUIDs - : sFUIDs // ignore: cast_nullable_to_non_nullable - as List, - sessionID: null == sessionID - ? _self.sessionID - : sessionID // ignore: cast_nullable_to_non_nullable - as String, - startedAt: freezed == startedAt - ? _self.startedAt - : startedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - timerEndsAt: freezed == timerEndsAt - ? _self.timerEndsAt - : timerEndsAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - userPermissionOverrides: null == userPermissionOverrides - ? _self.userPermissionOverrides - : userPermissionOverrides // ignore: cast_nullable_to_non_nullable - as Map>, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_session.g.dart b/packages/stream_feeds/lib/src/generated/api/model/call_session.g.dart deleted file mode 100644 index d3419550..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_session.g.dart +++ /dev/null @@ -1,103 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'call_session.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -CallSession _$CallSessionFromJson(Map json) => CallSession( - acceptedBy: (json['accepted_by'] as Map).map( - (k, e) => MapEntry(k, DateTime.parse(e as String)), - ), - activeSFUs: (json['active_s_f_us'] as List) - .map((e) => SFUIDLastSeen.fromJson(e as Map)) - .toList(), - anonymousParticipantCount: - (json['anonymous_participant_count'] as num).toInt(), - appPK: (json['app_p_k'] as num).toInt(), - callID: json['call_i_d'] as String, - callType: json['call_type'] as String, - createdAt: const EpochDateTimeConverter() - .fromJson((json['created_at'] as num).toInt()), - deletedAt: _$JsonConverterFromJson( - json['deleted_at'], const EpochDateTimeConverter().fromJson), - endedAt: _$JsonConverterFromJson( - json['ended_at'], const EpochDateTimeConverter().fromJson), - liveEndedAt: _$JsonConverterFromJson( - json['live_ended_at'], const EpochDateTimeConverter().fromJson), - liveStartedAt: _$JsonConverterFromJson( - json['live_started_at'], const EpochDateTimeConverter().fromJson), - missedBy: (json['missed_by'] as Map).map( - (k, e) => MapEntry(k, DateTime.parse(e as String)), - ), - participants: (json['participants'] as List) - .map((e) => CallParticipant.fromJson(e as Map)) - .toList(), - participantsCountByRole: - Map.from(json['participants_count_by_role'] as Map), - rejectedBy: (json['rejected_by'] as Map).map( - (k, e) => MapEntry(k, DateTime.parse(e as String)), - ), - ringAt: _$JsonConverterFromJson( - json['ring_at'], const EpochDateTimeConverter().fromJson), - sFUIDs: (json['s_f_u_i_ds'] as List) - .map((e) => e as String) - .toList(), - sessionID: json['session_i_d'] as String, - startedAt: _$JsonConverterFromJson( - json['started_at'], const EpochDateTimeConverter().fromJson), - timerEndsAt: _$JsonConverterFromJson( - json['timer_ends_at'], const EpochDateTimeConverter().fromJson), - userPermissionOverrides: - (json['user_permission_overrides'] as Map).map( - (k, e) => MapEntry(k, Map.from(e as Map)), - ), - ); - -Map _$CallSessionToJson(CallSession instance) => - { - 'accepted_by': - instance.acceptedBy.map((k, e) => MapEntry(k, e.toIso8601String())), - 'active_s_f_us': instance.activeSFUs.map((e) => e.toJson()).toList(), - 'anonymous_participant_count': instance.anonymousParticipantCount, - 'app_p_k': instance.appPK, - 'call_i_d': instance.callID, - 'call_type': instance.callType, - 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), - 'deleted_at': _$JsonConverterToJson( - instance.deletedAt, const EpochDateTimeConverter().toJson), - 'ended_at': _$JsonConverterToJson( - instance.endedAt, const EpochDateTimeConverter().toJson), - 'live_ended_at': _$JsonConverterToJson( - instance.liveEndedAt, const EpochDateTimeConverter().toJson), - 'live_started_at': _$JsonConverterToJson( - instance.liveStartedAt, const EpochDateTimeConverter().toJson), - 'missed_by': - instance.missedBy.map((k, e) => MapEntry(k, e.toIso8601String())), - 'participants': instance.participants.map((e) => e.toJson()).toList(), - 'participants_count_by_role': instance.participantsCountByRole, - 'rejected_by': - instance.rejectedBy.map((k, e) => MapEntry(k, e.toIso8601String())), - 'ring_at': _$JsonConverterToJson( - instance.ringAt, const EpochDateTimeConverter().toJson), - 's_f_u_i_ds': instance.sFUIDs, - 'session_i_d': instance.sessionID, - 'started_at': _$JsonConverterToJson( - instance.startedAt, const EpochDateTimeConverter().toJson), - 'timer_ends_at': _$JsonConverterToJson( - instance.timerEndsAt, const EpochDateTimeConverter().toJson), - 'user_permission_overrides': instance.userPermissionOverrides, - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/call_settings.dart deleted file mode 100644 index cfbe2ac9..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_settings.dart +++ /dev/null @@ -1,83 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'call_settings.g.dart'; -part 'call_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class CallSettings with _$CallSettings { - const CallSettings({ - this.audio, - this.backstage, - this.broadcasting, - this.frameRecording, - this.geofencing, - this.ingress, - this.limits, - this.recording, - this.ring, - this.screensharing, - this.session, - this.thumbnails, - this.transcription, - this.video, - }); - - @override - final AudioSettings? audio; - - @override - final BackstageSettings? backstage; - - @override - final BroadcastSettings? broadcasting; - - @override - final FrameRecordSettings? frameRecording; - - @override - final GeofenceSettings? geofencing; - - @override - final IngressSettings? ingress; - - @override - final LimitsSettings? limits; - - @override - final RecordSettings? recording; - - @override - final RingSettings? ring; - - @override - final ScreensharingSettings? screensharing; - - @override - final SessionSettings? session; - - @override - final ThumbnailsSettings? thumbnails; - - @override - final TranscriptionSettings? transcription; - - @override - final VideoSettings? video; - - Map toJson() => _$CallSettingsToJson(this); - - static CallSettings fromJson(Map json) => - _$CallSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/call_settings.freezed.dart deleted file mode 100644 index a06e61b4..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_settings.freezed.dart +++ /dev/null @@ -1,205 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'call_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$CallSettings { - AudioSettings? get audio; - BackstageSettings? get backstage; - BroadcastSettings? get broadcasting; - FrameRecordSettings? get frameRecording; - GeofenceSettings? get geofencing; - IngressSettings? get ingress; - LimitsSettings? get limits; - RecordSettings? get recording; - RingSettings? get ring; - ScreensharingSettings? get screensharing; - SessionSettings? get session; - ThumbnailsSettings? get thumbnails; - TranscriptionSettings? get transcription; - VideoSettings? get video; - - /// Create a copy of CallSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $CallSettingsCopyWith get copyWith => - _$CallSettingsCopyWithImpl( - this as CallSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is CallSettings && - (identical(other.audio, audio) || other.audio == audio) && - (identical(other.backstage, backstage) || - other.backstage == backstage) && - (identical(other.broadcasting, broadcasting) || - other.broadcasting == broadcasting) && - (identical(other.frameRecording, frameRecording) || - other.frameRecording == frameRecording) && - (identical(other.geofencing, geofencing) || - other.geofencing == geofencing) && - (identical(other.ingress, ingress) || other.ingress == ingress) && - (identical(other.limits, limits) || other.limits == limits) && - (identical(other.recording, recording) || - other.recording == recording) && - (identical(other.ring, ring) || other.ring == ring) && - (identical(other.screensharing, screensharing) || - other.screensharing == screensharing) && - (identical(other.session, session) || other.session == session) && - (identical(other.thumbnails, thumbnails) || - other.thumbnails == thumbnails) && - (identical(other.transcription, transcription) || - other.transcription == transcription) && - (identical(other.video, video) || other.video == video)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - audio, - backstage, - broadcasting, - frameRecording, - geofencing, - ingress, - limits, - recording, - ring, - screensharing, - session, - thumbnails, - transcription, - video); - - @override - String toString() { - return 'CallSettings(audio: $audio, backstage: $backstage, broadcasting: $broadcasting, frameRecording: $frameRecording, geofencing: $geofencing, ingress: $ingress, limits: $limits, recording: $recording, ring: $ring, screensharing: $screensharing, session: $session, thumbnails: $thumbnails, transcription: $transcription, video: $video)'; - } -} - -/// @nodoc -abstract mixin class $CallSettingsCopyWith<$Res> { - factory $CallSettingsCopyWith( - CallSettings value, $Res Function(CallSettings) _then) = - _$CallSettingsCopyWithImpl; - @useResult - $Res call( - {AudioSettings? audio, - BackstageSettings? backstage, - BroadcastSettings? broadcasting, - FrameRecordSettings? frameRecording, - GeofenceSettings? geofencing, - IngressSettings? ingress, - LimitsSettings? limits, - RecordSettings? recording, - RingSettings? ring, - ScreensharingSettings? screensharing, - SessionSettings? session, - ThumbnailsSettings? thumbnails, - TranscriptionSettings? transcription, - VideoSettings? video}); -} - -/// @nodoc -class _$CallSettingsCopyWithImpl<$Res> implements $CallSettingsCopyWith<$Res> { - _$CallSettingsCopyWithImpl(this._self, this._then); - - final CallSettings _self; - final $Res Function(CallSettings) _then; - - /// Create a copy of CallSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? audio = freezed, - Object? backstage = freezed, - Object? broadcasting = freezed, - Object? frameRecording = freezed, - Object? geofencing = freezed, - Object? ingress = freezed, - Object? limits = freezed, - Object? recording = freezed, - Object? ring = freezed, - Object? screensharing = freezed, - Object? session = freezed, - Object? thumbnails = freezed, - Object? transcription = freezed, - Object? video = freezed, - }) { - return _then(CallSettings( - audio: freezed == audio - ? _self.audio - : audio // ignore: cast_nullable_to_non_nullable - as AudioSettings?, - backstage: freezed == backstage - ? _self.backstage - : backstage // ignore: cast_nullable_to_non_nullable - as BackstageSettings?, - broadcasting: freezed == broadcasting - ? _self.broadcasting - : broadcasting // ignore: cast_nullable_to_non_nullable - as BroadcastSettings?, - frameRecording: freezed == frameRecording - ? _self.frameRecording - : frameRecording // ignore: cast_nullable_to_non_nullable - as FrameRecordSettings?, - geofencing: freezed == geofencing - ? _self.geofencing - : geofencing // ignore: cast_nullable_to_non_nullable - as GeofenceSettings?, - ingress: freezed == ingress - ? _self.ingress - : ingress // ignore: cast_nullable_to_non_nullable - as IngressSettings?, - limits: freezed == limits - ? _self.limits - : limits // ignore: cast_nullable_to_non_nullable - as LimitsSettings?, - recording: freezed == recording - ? _self.recording - : recording // ignore: cast_nullable_to_non_nullable - as RecordSettings?, - ring: freezed == ring - ? _self.ring - : ring // ignore: cast_nullable_to_non_nullable - as RingSettings?, - screensharing: freezed == screensharing - ? _self.screensharing - : screensharing // ignore: cast_nullable_to_non_nullable - as ScreensharingSettings?, - session: freezed == session - ? _self.session - : session // ignore: cast_nullable_to_non_nullable - as SessionSettings?, - thumbnails: freezed == thumbnails - ? _self.thumbnails - : thumbnails // ignore: cast_nullable_to_non_nullable - as ThumbnailsSettings?, - transcription: freezed == transcription - ? _self.transcription - : transcription // ignore: cast_nullable_to_non_nullable - as TranscriptionSettings?, - video: freezed == video - ? _self.video - : video // ignore: cast_nullable_to_non_nullable - as VideoSettings?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/call_settings.g.dart deleted file mode 100644 index f1ecfab0..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_settings.g.dart +++ /dev/null @@ -1,77 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'call_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -CallSettings _$CallSettingsFromJson(Map json) => CallSettings( - audio: json['audio'] == null - ? null - : AudioSettings.fromJson(json['audio'] as Map), - backstage: json['backstage'] == null - ? null - : BackstageSettings.fromJson( - json['backstage'] as Map), - broadcasting: json['broadcasting'] == null - ? null - : BroadcastSettings.fromJson( - json['broadcasting'] as Map), - frameRecording: json['frame_recording'] == null - ? null - : FrameRecordSettings.fromJson( - json['frame_recording'] as Map), - geofencing: json['geofencing'] == null - ? null - : GeofenceSettings.fromJson( - json['geofencing'] as Map), - ingress: json['ingress'] == null - ? null - : IngressSettings.fromJson(json['ingress'] as Map), - limits: json['limits'] == null - ? null - : LimitsSettings.fromJson(json['limits'] as Map), - recording: json['recording'] == null - ? null - : RecordSettings.fromJson(json['recording'] as Map), - ring: json['ring'] == null - ? null - : RingSettings.fromJson(json['ring'] as Map), - screensharing: json['screensharing'] == null - ? null - : ScreensharingSettings.fromJson( - json['screensharing'] as Map), - session: json['session'] == null - ? null - : SessionSettings.fromJson(json['session'] as Map), - thumbnails: json['thumbnails'] == null - ? null - : ThumbnailsSettings.fromJson( - json['thumbnails'] as Map), - transcription: json['transcription'] == null - ? null - : TranscriptionSettings.fromJson( - json['transcription'] as Map), - video: json['video'] == null - ? null - : VideoSettings.fromJson(json['video'] as Map), - ); - -Map _$CallSettingsToJson(CallSettings instance) => - { - 'audio': instance.audio?.toJson(), - 'backstage': instance.backstage?.toJson(), - 'broadcasting': instance.broadcasting?.toJson(), - 'frame_recording': instance.frameRecording?.toJson(), - 'geofencing': instance.geofencing?.toJson(), - 'ingress': instance.ingress?.toJson(), - 'limits': instance.limits?.toJson(), - 'recording': instance.recording?.toJson(), - 'ring': instance.ring?.toJson(), - 'screensharing': instance.screensharing?.toJson(), - 'session': instance.session?.toJson(), - 'thumbnails': instance.thumbnails?.toJson(), - 'transcription': instance.transcription?.toJson(), - 'video': instance.video?.toJson(), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_type.dart b/packages/stream_feeds/lib/src/generated/api/model/call_type.dart deleted file mode 100644 index a066cd48..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_type.dart +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'call_type.g.dart'; -part 'call_type.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class CallType with _$CallType { - const CallType({ - required this.appPK, - required this.createdAt, - required this.externalStorage, - required this.name, - this.notificationSettings, - required this.pK, - this.settings, - required this.updatedAt, - }); - - @override - final int appPK; - - @override - @EpochDateTimeConverter() - final DateTime createdAt; - - @override - final String externalStorage; - - @override - final String name; - - @override - final NotificationSettings? notificationSettings; - - @override - final int pK; - - @override - final CallSettings? settings; - - @override - @EpochDateTimeConverter() - final DateTime updatedAt; - - Map toJson() => _$CallTypeToJson(this); - - static CallType fromJson(Map json) => - _$CallTypeFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_type.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/call_type.freezed.dart deleted file mode 100644 index 89b214f8..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_type.freezed.dart +++ /dev/null @@ -1,138 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'call_type.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$CallType { - int get appPK; - DateTime get createdAt; - String get externalStorage; - String get name; - NotificationSettings? get notificationSettings; - int get pK; - CallSettings? get settings; - DateTime get updatedAt; - - /// Create a copy of CallType - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $CallTypeCopyWith get copyWith => - _$CallTypeCopyWithImpl(this as CallType, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is CallType && - (identical(other.appPK, appPK) || other.appPK == appPK) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - (identical(other.externalStorage, externalStorage) || - other.externalStorage == externalStorage) && - (identical(other.name, name) || other.name == name) && - (identical(other.notificationSettings, notificationSettings) || - other.notificationSettings == notificationSettings) && - (identical(other.pK, pK) || other.pK == pK) && - (identical(other.settings, settings) || - other.settings == settings) && - (identical(other.updatedAt, updatedAt) || - other.updatedAt == updatedAt)); - } - - @override - int get hashCode => Object.hash(runtimeType, appPK, createdAt, - externalStorage, name, notificationSettings, pK, settings, updatedAt); - - @override - String toString() { - return 'CallType(appPK: $appPK, createdAt: $createdAt, externalStorage: $externalStorage, name: $name, notificationSettings: $notificationSettings, pK: $pK, settings: $settings, updatedAt: $updatedAt)'; - } -} - -/// @nodoc -abstract mixin class $CallTypeCopyWith<$Res> { - factory $CallTypeCopyWith(CallType value, $Res Function(CallType) _then) = - _$CallTypeCopyWithImpl; - @useResult - $Res call( - {int appPK, - DateTime createdAt, - String externalStorage, - String name, - NotificationSettings? notificationSettings, - int pK, - CallSettings? settings, - DateTime updatedAt}); -} - -/// @nodoc -class _$CallTypeCopyWithImpl<$Res> implements $CallTypeCopyWith<$Res> { - _$CallTypeCopyWithImpl(this._self, this._then); - - final CallType _self; - final $Res Function(CallType) _then; - - /// Create a copy of CallType - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? appPK = null, - Object? createdAt = null, - Object? externalStorage = null, - Object? name = null, - Object? notificationSettings = freezed, - Object? pK = null, - Object? settings = freezed, - Object? updatedAt = null, - }) { - return _then(CallType( - appPK: null == appPK - ? _self.appPK - : appPK // ignore: cast_nullable_to_non_nullable - as int, - createdAt: null == createdAt - ? _self.createdAt - : createdAt // ignore: cast_nullable_to_non_nullable - as DateTime, - externalStorage: null == externalStorage - ? _self.externalStorage - : externalStorage // ignore: cast_nullable_to_non_nullable - as String, - name: null == name - ? _self.name - : name // ignore: cast_nullable_to_non_nullable - as String, - notificationSettings: freezed == notificationSettings - ? _self.notificationSettings - : notificationSettings // ignore: cast_nullable_to_non_nullable - as NotificationSettings?, - pK: null == pK - ? _self.pK - : pK // ignore: cast_nullable_to_non_nullable - as int, - settings: freezed == settings - ? _self.settings - : settings // ignore: cast_nullable_to_non_nullable - as CallSettings?, - updatedAt: null == updatedAt - ? _self.updatedAt - : updatedAt // ignore: cast_nullable_to_non_nullable - as DateTime, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/call_type.g.dart b/packages/stream_feeds/lib/src/generated/api/model/call_type.g.dart deleted file mode 100644 index 78ee70ae..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/call_type.g.dart +++ /dev/null @@ -1,36 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'call_type.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -CallType _$CallTypeFromJson(Map json) => CallType( - appPK: (json['app_p_k'] as num).toInt(), - createdAt: const EpochDateTimeConverter() - .fromJson((json['created_at'] as num).toInt()), - externalStorage: json['external_storage'] as String, - name: json['name'] as String, - notificationSettings: json['notification_settings'] == null - ? null - : NotificationSettings.fromJson( - json['notification_settings'] as Map), - pK: (json['p_k'] as num).toInt(), - settings: json['settings'] == null - ? null - : CallSettings.fromJson(json['settings'] as Map), - updatedAt: const EpochDateTimeConverter() - .fromJson((json['updated_at'] as num).toInt()), - ); - -Map _$CallTypeToJson(CallType instance) => { - 'app_p_k': instance.appPK, - 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), - 'external_storage': instance.externalStorage, - 'name': instance.name, - 'notification_settings': instance.notificationSettings?.toJson(), - 'p_k': instance.pK, - 'settings': instance.settings?.toJson(), - 'updated_at': const EpochDateTimeConverter().toJson(instance.updatedAt), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.dart b/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.dart index bf3840ae..245cb0b9 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.dart @@ -22,6 +22,7 @@ class ChannelMemberLookup with _$ChannelMemberLookup { this.archivedAt, this.banExpires, required this.banned, + required this.blocked, required this.hidden, required this.pinned, this.pinnedAt, @@ -41,6 +42,9 @@ class ChannelMemberLookup with _$ChannelMemberLookup { @override final bool banned; + @override + final bool blocked; + @override final bool hidden; diff --git a/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.freezed.dart index 88ef2a22..e1b9e7dd 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.freezed.dart @@ -19,6 +19,7 @@ mixin _$ChannelMemberLookup { DateTime? get archivedAt; DateTime? get banExpires; bool get banned; + bool get blocked; bool get hidden; bool get pinned; DateTime? get pinnedAt; @@ -43,6 +44,7 @@ mixin _$ChannelMemberLookup { (identical(other.banExpires, banExpires) || other.banExpires == banExpires) && (identical(other.banned, banned) || other.banned == banned) && + (identical(other.blocked, blocked) || other.blocked == blocked) && (identical(other.hidden, hidden) || other.hidden == hidden) && (identical(other.pinned, pinned) || other.pinned == pinned) && (identical(other.pinnedAt, pinnedAt) || @@ -51,11 +53,11 @@ mixin _$ChannelMemberLookup { @override int get hashCode => Object.hash(runtimeType, archived, archivedAt, banExpires, - banned, hidden, pinned, pinnedAt); + banned, blocked, hidden, pinned, pinnedAt); @override String toString() { - return 'ChannelMemberLookup(archived: $archived, archivedAt: $archivedAt, banExpires: $banExpires, banned: $banned, hidden: $hidden, pinned: $pinned, pinnedAt: $pinnedAt)'; + return 'ChannelMemberLookup(archived: $archived, archivedAt: $archivedAt, banExpires: $banExpires, banned: $banned, blocked: $blocked, hidden: $hidden, pinned: $pinned, pinnedAt: $pinnedAt)'; } } @@ -70,6 +72,7 @@ abstract mixin class $ChannelMemberLookupCopyWith<$Res> { DateTime? archivedAt, DateTime? banExpires, bool banned, + bool blocked, bool hidden, bool pinned, DateTime? pinnedAt}); @@ -92,6 +95,7 @@ class _$ChannelMemberLookupCopyWithImpl<$Res> Object? archivedAt = freezed, Object? banExpires = freezed, Object? banned = null, + Object? blocked = null, Object? hidden = null, Object? pinned = null, Object? pinnedAt = freezed, @@ -113,6 +117,10 @@ class _$ChannelMemberLookupCopyWithImpl<$Res> ? _self.banned : banned // ignore: cast_nullable_to_non_nullable as bool, + blocked: null == blocked + ? _self.blocked + : blocked // ignore: cast_nullable_to_non_nullable + as bool, hidden: null == hidden ? _self.hidden : hidden // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.g.dart b/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.g.dart index 2f08b8cf..2a524bc2 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/channel_member_lookup.g.dart @@ -14,6 +14,7 @@ ChannelMemberLookup _$ChannelMemberLookupFromJson(Map json) => banExpires: _$JsonConverterFromJson( json['ban_expires'], const EpochDateTimeConverter().fromJson), banned: json['banned'] as bool, + blocked: json['blocked'] as bool, hidden: json['hidden'] as bool, pinned: json['pinned'] as bool, pinnedAt: _$JsonConverterFromJson( @@ -29,6 +30,7 @@ Map _$ChannelMemberLookupToJson( 'ban_expires': _$JsonConverterToJson( instance.banExpires, const EpochDateTimeConverter().toJson), 'banned': instance.banned, + 'blocked': instance.blocked, 'hidden': instance.hidden, 'pinned': instance.pinned, 'pinned_at': _$JsonConverterToJson( diff --git a/packages/stream_feeds/lib/src/generated/api/model/composite_app_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/composite_app_settings.freezed.dart deleted file mode 100644 index 1cd4e288..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/composite_app_settings.freezed.dart +++ /dev/null @@ -1,86 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'composite_app_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$CompositeAppSettings { - String? get jsonEncodedSettings; - String? get url; - - /// Create a copy of CompositeAppSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $CompositeAppSettingsCopyWith get copyWith => - _$CompositeAppSettingsCopyWithImpl( - this as CompositeAppSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is CompositeAppSettings && - (identical(other.jsonEncodedSettings, jsonEncodedSettings) || - other.jsonEncodedSettings == jsonEncodedSettings) && - (identical(other.url, url) || other.url == url)); - } - - @override - int get hashCode => Object.hash(runtimeType, jsonEncodedSettings, url); - - @override - String toString() { - return 'CompositeAppSettings(jsonEncodedSettings: $jsonEncodedSettings, url: $url)'; - } -} - -/// @nodoc -abstract mixin class $CompositeAppSettingsCopyWith<$Res> { - factory $CompositeAppSettingsCopyWith(CompositeAppSettings value, - $Res Function(CompositeAppSettings) _then) = - _$CompositeAppSettingsCopyWithImpl; - @useResult - $Res call({String? jsonEncodedSettings, String? url}); -} - -/// @nodoc -class _$CompositeAppSettingsCopyWithImpl<$Res> - implements $CompositeAppSettingsCopyWith<$Res> { - _$CompositeAppSettingsCopyWithImpl(this._self, this._then); - - final CompositeAppSettings _self; - final $Res Function(CompositeAppSettings) _then; - - /// Create a copy of CompositeAppSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? jsonEncodedSettings = freezed, - Object? url = freezed, - }) { - return _then(CompositeAppSettings( - jsonEncodedSettings: freezed == jsonEncodedSettings - ? _self.jsonEncodedSettings - : jsonEncodedSettings // ignore: cast_nullable_to_non_nullable - as String?, - url: freezed == url - ? _self.url - : url // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/composite_app_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/composite_app_settings.g.dart deleted file mode 100644 index dfb99e66..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/composite_app_settings.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'composite_app_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -CompositeAppSettings _$CompositeAppSettingsFromJson( - Map json) => - CompositeAppSettings( - jsonEncodedSettings: json['json_encoded_settings'] as String?, - url: json['url'] as String?, - ); - -Map _$CompositeAppSettingsToJson( - CompositeAppSettings instance) => - { - 'json_encoded_settings': instance.jsonEncodedSettings, - 'url': instance.url, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.dart b/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.dart index 2b4f9496..e6381902 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.dart @@ -34,12 +34,20 @@ enum CreateBlockListRequestType { @JsonSerializable() class CreateBlockListRequest with _$CreateBlockListRequest { const CreateBlockListRequest({ + this.isLeetCheckEnabled, + this.isPluralCheckEnabled, required this.name, this.team, this.type, required this.words, }); + @override + final bool? isLeetCheckEnabled; + + @override + final bool? isPluralCheckEnabled; + @override final String name; diff --git a/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.freezed.dart index 886142e1..341470a6 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.freezed.dart @@ -15,6 +15,8 @@ T _$identity(T value) => value; /// @nodoc mixin _$CreateBlockListRequest { + bool? get isLeetCheckEnabled; + bool? get isPluralCheckEnabled; String get name; String? get team; CreateBlockListRequestType? get type; @@ -33,6 +35,10 @@ mixin _$CreateBlockListRequest { return identical(this, other) || (other.runtimeType == runtimeType && other is CreateBlockListRequest && + (identical(other.isLeetCheckEnabled, isLeetCheckEnabled) || + other.isLeetCheckEnabled == isLeetCheckEnabled) && + (identical(other.isPluralCheckEnabled, isPluralCheckEnabled) || + other.isPluralCheckEnabled == isPluralCheckEnabled) && (identical(other.name, name) || other.name == name) && (identical(other.team, team) || other.team == team) && (identical(other.type, type) || other.type == type) && @@ -40,12 +46,18 @@ mixin _$CreateBlockListRequest { } @override - int get hashCode => Object.hash(runtimeType, name, team, type, + int get hashCode => Object.hash( + runtimeType, + isLeetCheckEnabled, + isPluralCheckEnabled, + name, + team, + type, const DeepCollectionEquality().hash(words)); @override String toString() { - return 'CreateBlockListRequest(name: $name, team: $team, type: $type, words: $words)'; + return 'CreateBlockListRequest(isLeetCheckEnabled: $isLeetCheckEnabled, isPluralCheckEnabled: $isPluralCheckEnabled, name: $name, team: $team, type: $type, words: $words)'; } } @@ -56,7 +68,9 @@ abstract mixin class $CreateBlockListRequestCopyWith<$Res> { _$CreateBlockListRequestCopyWithImpl; @useResult $Res call( - {String name, + {bool? isLeetCheckEnabled, + bool? isPluralCheckEnabled, + String name, String? team, CreateBlockListRequestType? type, List words}); @@ -75,12 +89,22 @@ class _$CreateBlockListRequestCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ + Object? isLeetCheckEnabled = freezed, + Object? isPluralCheckEnabled = freezed, Object? name = null, Object? team = freezed, Object? type = freezed, Object? words = null, }) { return _then(CreateBlockListRequest( + isLeetCheckEnabled: freezed == isLeetCheckEnabled + ? _self.isLeetCheckEnabled + : isLeetCheckEnabled // ignore: cast_nullable_to_non_nullable + as bool?, + isPluralCheckEnabled: freezed == isPluralCheckEnabled + ? _self.isPluralCheckEnabled + : isPluralCheckEnabled // ignore: cast_nullable_to_non_nullable + as bool?, name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.g.dart b/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.g.dart index d47d319a..d46d48b2 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/create_block_list_request.g.dart @@ -9,6 +9,8 @@ part of 'create_block_list_request.dart'; CreateBlockListRequest _$CreateBlockListRequestFromJson( Map json) => CreateBlockListRequest( + isLeetCheckEnabled: json['is_leet_check_enabled'] as bool?, + isPluralCheckEnabled: json['is_plural_check_enabled'] as bool?, name: json['name'] as String, team: json['team'] as String?, type: $enumDecodeNullable( @@ -20,6 +22,8 @@ CreateBlockListRequest _$CreateBlockListRequestFromJson( Map _$CreateBlockListRequestToJson( CreateBlockListRequest instance) => { + 'is_leet_check_enabled': instance.isLeetCheckEnabled, + 'is_plural_check_enabled': instance.isPluralCheckEnabled, 'name': instance.name, 'team': instance.team, 'type': _$CreateBlockListRequestTypeEnumMap[instance.type], diff --git a/packages/stream_feeds/lib/src/generated/api/model/thumbnails_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts.dart similarity index 63% rename from packages/stream_feeds/lib/src/generated/api/model/thumbnails_settings.dart rename to packages/stream_feeds/lib/src/generated/api/model/delivery_receipts.dart index a4306da1..03aa07df 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/thumbnails_settings.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts.dart @@ -10,22 +10,22 @@ import 'package:stream_core/stream_core.dart' as core; import '../models.dart'; -part 'thumbnails_settings.g.dart'; -part 'thumbnails_settings.freezed.dart'; +part 'delivery_receipts.g.dart'; +part 'delivery_receipts.freezed.dart'; @freezed @immutable @JsonSerializable() -class ThumbnailsSettings with _$ThumbnailsSettings { - const ThumbnailsSettings({ +class DeliveryReceipts with _$DeliveryReceipts { + const DeliveryReceipts({ required this.enabled, }); @override final bool enabled; - Map toJson() => _$ThumbnailsSettingsToJson(this); + Map toJson() => _$DeliveryReceiptsToJson(this); - static ThumbnailsSettings fromJson(Map json) => - _$ThumbnailsSettingsFromJson(json); + static DeliveryReceipts fromJson(Map json) => + _$DeliveryReceiptsFromJson(json); } diff --git a/packages/stream_feeds/lib/src/generated/api/model/thumbnails_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts.freezed.dart similarity index 63% rename from packages/stream_feeds/lib/src/generated/api/model/thumbnails_settings.freezed.dart rename to packages/stream_feeds/lib/src/generated/api/model/delivery_receipts.freezed.dart index d78a4d86..a2453bbb 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/thumbnails_settings.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts.freezed.dart @@ -4,7 +4,7 @@ // ignore_for_file: type=lint // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark -part of 'thumbnails_settings.dart'; +part of 'delivery_receipts.dart'; // ************************************************************************** // FreezedGenerator @@ -14,22 +14,22 @@ part of 'thumbnails_settings.dart'; T _$identity(T value) => value; /// @nodoc -mixin _$ThumbnailsSettings { +mixin _$DeliveryReceipts { bool get enabled; - /// Create a copy of ThumbnailsSettings + /// Create a copy of DeliveryReceipts /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - $ThumbnailsSettingsCopyWith get copyWith => - _$ThumbnailsSettingsCopyWithImpl( - this as ThumbnailsSettings, _$identity); + $DeliveryReceiptsCopyWith get copyWith => + _$DeliveryReceiptsCopyWithImpl( + this as DeliveryReceipts, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is ThumbnailsSettings && + other is DeliveryReceipts && (identical(other.enabled, enabled) || other.enabled == enabled)); } @@ -38,35 +38,35 @@ mixin _$ThumbnailsSettings { @override String toString() { - return 'ThumbnailsSettings(enabled: $enabled)'; + return 'DeliveryReceipts(enabled: $enabled)'; } } /// @nodoc -abstract mixin class $ThumbnailsSettingsCopyWith<$Res> { - factory $ThumbnailsSettingsCopyWith( - ThumbnailsSettings value, $Res Function(ThumbnailsSettings) _then) = - _$ThumbnailsSettingsCopyWithImpl; +abstract mixin class $DeliveryReceiptsCopyWith<$Res> { + factory $DeliveryReceiptsCopyWith( + DeliveryReceipts value, $Res Function(DeliveryReceipts) _then) = + _$DeliveryReceiptsCopyWithImpl; @useResult $Res call({bool enabled}); } /// @nodoc -class _$ThumbnailsSettingsCopyWithImpl<$Res> - implements $ThumbnailsSettingsCopyWith<$Res> { - _$ThumbnailsSettingsCopyWithImpl(this._self, this._then); +class _$DeliveryReceiptsCopyWithImpl<$Res> + implements $DeliveryReceiptsCopyWith<$Res> { + _$DeliveryReceiptsCopyWithImpl(this._self, this._then); - final ThumbnailsSettings _self; - final $Res Function(ThumbnailsSettings) _then; + final DeliveryReceipts _self; + final $Res Function(DeliveryReceipts) _then; - /// Create a copy of ThumbnailsSettings + /// Create a copy of DeliveryReceipts /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? enabled = null, }) { - return _then(ThumbnailsSettings( + return _then(DeliveryReceipts( enabled: null == enabled ? _self.enabled : enabled // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/thumbnails_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts.g.dart similarity index 61% rename from packages/stream_feeds/lib/src/generated/api/model/thumbnails_settings.g.dart rename to packages/stream_feeds/lib/src/generated/api/model/delivery_receipts.g.dart index 16c3ed54..aaa1837f 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/thumbnails_settings.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts.g.dart @@ -1,17 +1,17 @@ // GENERATED CODE - DO NOT MODIFY BY HAND -part of 'thumbnails_settings.dart'; +part of 'delivery_receipts.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** -ThumbnailsSettings _$ThumbnailsSettingsFromJson(Map json) => - ThumbnailsSettings( +DeliveryReceipts _$DeliveryReceiptsFromJson(Map json) => + DeliveryReceipts( enabled: json['enabled'] as bool, ); -Map _$ThumbnailsSettingsToJson(ThumbnailsSettings instance) => +Map _$DeliveryReceiptsToJson(DeliveryReceipts instance) => { 'enabled': instance.enabled, }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/backstage_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts_response.dart similarity index 59% rename from packages/stream_feeds/lib/src/generated/api/model/backstage_settings.dart rename to packages/stream_feeds/lib/src/generated/api/model/delivery_receipts_response.dart index 0888a0a1..262b78f3 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/backstage_settings.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts_response.dart @@ -10,26 +10,22 @@ import 'package:stream_core/stream_core.dart' as core; import '../models.dart'; -part 'backstage_settings.g.dart'; -part 'backstage_settings.freezed.dart'; +part 'delivery_receipts_response.g.dart'; +part 'delivery_receipts_response.freezed.dart'; @freezed @immutable @JsonSerializable() -class BackstageSettings with _$BackstageSettings { - const BackstageSettings({ +class DeliveryReceiptsResponse with _$DeliveryReceiptsResponse { + const DeliveryReceiptsResponse({ required this.enabled, - this.joinAheadTimeSeconds, }); @override final bool enabled; - @override - final int? joinAheadTimeSeconds; - - Map toJson() => _$BackstageSettingsToJson(this); + Map toJson() => _$DeliveryReceiptsResponseToJson(this); - static BackstageSettings fromJson(Map json) => - _$BackstageSettingsFromJson(json); + static DeliveryReceiptsResponse fromJson(Map json) => + _$DeliveryReceiptsResponseFromJson(json); } diff --git a/packages/stream_feeds/lib/src/generated/api/model/backstage_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts_response.freezed.dart similarity index 50% rename from packages/stream_feeds/lib/src/generated/api/model/backstage_settings.freezed.dart rename to packages/stream_feeds/lib/src/generated/api/model/delivery_receipts_response.freezed.dart index 174189af..aacfdb4a 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/backstage_settings.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts_response.freezed.dart @@ -4,7 +4,7 @@ // ignore_for_file: type=lint // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark -part of 'backstage_settings.dart'; +part of 'delivery_receipts_response.dart'; // ************************************************************************** // FreezedGenerator @@ -14,71 +14,63 @@ part of 'backstage_settings.dart'; T _$identity(T value) => value; /// @nodoc -mixin _$BackstageSettings { +mixin _$DeliveryReceiptsResponse { bool get enabled; - int? get joinAheadTimeSeconds; - /// Create a copy of BackstageSettings + /// Create a copy of DeliveryReceiptsResponse /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - $BackstageSettingsCopyWith get copyWith => - _$BackstageSettingsCopyWithImpl( - this as BackstageSettings, _$identity); + $DeliveryReceiptsResponseCopyWith get copyWith => + _$DeliveryReceiptsResponseCopyWithImpl( + this as DeliveryReceiptsResponse, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is BackstageSettings && - (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.joinAheadTimeSeconds, joinAheadTimeSeconds) || - other.joinAheadTimeSeconds == joinAheadTimeSeconds)); + other is DeliveryReceiptsResponse && + (identical(other.enabled, enabled) || other.enabled == enabled)); } @override - int get hashCode => Object.hash(runtimeType, enabled, joinAheadTimeSeconds); + int get hashCode => Object.hash(runtimeType, enabled); @override String toString() { - return 'BackstageSettings(enabled: $enabled, joinAheadTimeSeconds: $joinAheadTimeSeconds)'; + return 'DeliveryReceiptsResponse(enabled: $enabled)'; } } /// @nodoc -abstract mixin class $BackstageSettingsCopyWith<$Res> { - factory $BackstageSettingsCopyWith( - BackstageSettings value, $Res Function(BackstageSettings) _then) = - _$BackstageSettingsCopyWithImpl; +abstract mixin class $DeliveryReceiptsResponseCopyWith<$Res> { + factory $DeliveryReceiptsResponseCopyWith(DeliveryReceiptsResponse value, + $Res Function(DeliveryReceiptsResponse) _then) = + _$DeliveryReceiptsResponseCopyWithImpl; @useResult - $Res call({bool enabled, int? joinAheadTimeSeconds}); + $Res call({bool enabled}); } /// @nodoc -class _$BackstageSettingsCopyWithImpl<$Res> - implements $BackstageSettingsCopyWith<$Res> { - _$BackstageSettingsCopyWithImpl(this._self, this._then); +class _$DeliveryReceiptsResponseCopyWithImpl<$Res> + implements $DeliveryReceiptsResponseCopyWith<$Res> { + _$DeliveryReceiptsResponseCopyWithImpl(this._self, this._then); - final BackstageSettings _self; - final $Res Function(BackstageSettings) _then; + final DeliveryReceiptsResponse _self; + final $Res Function(DeliveryReceiptsResponse) _then; - /// Create a copy of BackstageSettings + /// Create a copy of DeliveryReceiptsResponse /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? enabled = null, - Object? joinAheadTimeSeconds = freezed, }) { - return _then(BackstageSettings( + return _then(DeliveryReceiptsResponse( enabled: null == enabled ? _self.enabled : enabled // ignore: cast_nullable_to_non_nullable as bool, - joinAheadTimeSeconds: freezed == joinAheadTimeSeconds - ? _self.joinAheadTimeSeconds - : joinAheadTimeSeconds // ignore: cast_nullable_to_non_nullable - as int?, )); } } diff --git a/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts_response.g.dart b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts_response.g.dart new file mode 100644 index 00000000..7207a545 --- /dev/null +++ b/packages/stream_feeds/lib/src/generated/api/model/delivery_receipts_response.g.dart @@ -0,0 +1,19 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'delivery_receipts_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +DeliveryReceiptsResponse _$DeliveryReceiptsResponseFromJson( + Map json) => + DeliveryReceiptsResponse( + enabled: json['enabled'] as bool, + ); + +Map _$DeliveryReceiptsResponseToJson( + DeliveryReceiptsResponse instance) => + { + 'enabled': instance.enabled, + }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/egress_task_config.dart b/packages/stream_feeds/lib/src/generated/api/model/egress_task_config.dart deleted file mode 100644 index 1882dd75..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/egress_task_config.dart +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'egress_task_config.g.dart'; -part 'egress_task_config.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class EgressTaskConfig with _$EgressTaskConfig { - const EgressTaskConfig({ - this.egressUser, - this.frameRecordingEgressConfig, - this.hlsEgressConfig, - this.recordingEgressConfig, - this.rtmpEgressConfig, - this.sttEgressConfig, - }); - - @override - final EgressUser? egressUser; - - @override - final FrameRecordingEgressConfig? frameRecordingEgressConfig; - - @override - final HLSEgressConfig? hlsEgressConfig; - - @override - final RecordingEgressConfig? recordingEgressConfig; - - @override - final RTMPEgressConfig? rtmpEgressConfig; - - @override - final STTEgressConfig? sttEgressConfig; - - Map toJson() => _$EgressTaskConfigToJson(this); - - static EgressTaskConfig fromJson(Map json) => - _$EgressTaskConfigFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/egress_task_config.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/egress_task_config.freezed.dart deleted file mode 100644 index 4240a5d4..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/egress_task_config.freezed.dart +++ /dev/null @@ -1,134 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'egress_task_config.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$EgressTaskConfig { - EgressUser? get egressUser; - FrameRecordingEgressConfig? get frameRecordingEgressConfig; - HLSEgressConfig? get hlsEgressConfig; - RecordingEgressConfig? get recordingEgressConfig; - RTMPEgressConfig? get rtmpEgressConfig; - STTEgressConfig? get sttEgressConfig; - - /// Create a copy of EgressTaskConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $EgressTaskConfigCopyWith get copyWith => - _$EgressTaskConfigCopyWithImpl( - this as EgressTaskConfig, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is EgressTaskConfig && - (identical(other.egressUser, egressUser) || - other.egressUser == egressUser) && - (identical(other.frameRecordingEgressConfig, - frameRecordingEgressConfig) || - other.frameRecordingEgressConfig == - frameRecordingEgressConfig) && - (identical(other.hlsEgressConfig, hlsEgressConfig) || - other.hlsEgressConfig == hlsEgressConfig) && - (identical(other.recordingEgressConfig, recordingEgressConfig) || - other.recordingEgressConfig == recordingEgressConfig) && - (identical(other.rtmpEgressConfig, rtmpEgressConfig) || - other.rtmpEgressConfig == rtmpEgressConfig) && - (identical(other.sttEgressConfig, sttEgressConfig) || - other.sttEgressConfig == sttEgressConfig)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - egressUser, - frameRecordingEgressConfig, - hlsEgressConfig, - recordingEgressConfig, - rtmpEgressConfig, - sttEgressConfig); - - @override - String toString() { - return 'EgressTaskConfig(egressUser: $egressUser, frameRecordingEgressConfig: $frameRecordingEgressConfig, hlsEgressConfig: $hlsEgressConfig, recordingEgressConfig: $recordingEgressConfig, rtmpEgressConfig: $rtmpEgressConfig, sttEgressConfig: $sttEgressConfig)'; - } -} - -/// @nodoc -abstract mixin class $EgressTaskConfigCopyWith<$Res> { - factory $EgressTaskConfigCopyWith( - EgressTaskConfig value, $Res Function(EgressTaskConfig) _then) = - _$EgressTaskConfigCopyWithImpl; - @useResult - $Res call( - {EgressUser? egressUser, - FrameRecordingEgressConfig? frameRecordingEgressConfig, - HLSEgressConfig? hlsEgressConfig, - RecordingEgressConfig? recordingEgressConfig, - RTMPEgressConfig? rtmpEgressConfig, - STTEgressConfig? sttEgressConfig}); -} - -/// @nodoc -class _$EgressTaskConfigCopyWithImpl<$Res> - implements $EgressTaskConfigCopyWith<$Res> { - _$EgressTaskConfigCopyWithImpl(this._self, this._then); - - final EgressTaskConfig _self; - final $Res Function(EgressTaskConfig) _then; - - /// Create a copy of EgressTaskConfig - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? egressUser = freezed, - Object? frameRecordingEgressConfig = freezed, - Object? hlsEgressConfig = freezed, - Object? recordingEgressConfig = freezed, - Object? rtmpEgressConfig = freezed, - Object? sttEgressConfig = freezed, - }) { - return _then(EgressTaskConfig( - egressUser: freezed == egressUser - ? _self.egressUser - : egressUser // ignore: cast_nullable_to_non_nullable - as EgressUser?, - frameRecordingEgressConfig: freezed == frameRecordingEgressConfig - ? _self.frameRecordingEgressConfig - : frameRecordingEgressConfig // ignore: cast_nullable_to_non_nullable - as FrameRecordingEgressConfig?, - hlsEgressConfig: freezed == hlsEgressConfig - ? _self.hlsEgressConfig - : hlsEgressConfig // ignore: cast_nullable_to_non_nullable - as HLSEgressConfig?, - recordingEgressConfig: freezed == recordingEgressConfig - ? _self.recordingEgressConfig - : recordingEgressConfig // ignore: cast_nullable_to_non_nullable - as RecordingEgressConfig?, - rtmpEgressConfig: freezed == rtmpEgressConfig - ? _self.rtmpEgressConfig - : rtmpEgressConfig // ignore: cast_nullable_to_non_nullable - as RTMPEgressConfig?, - sttEgressConfig: freezed == sttEgressConfig - ? _self.sttEgressConfig - : sttEgressConfig // ignore: cast_nullable_to_non_nullable - as STTEgressConfig?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/egress_task_config.g.dart b/packages/stream_feeds/lib/src/generated/api/model/egress_task_config.g.dart deleted file mode 100644 index d0ea6448..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/egress_task_config.g.dart +++ /dev/null @@ -1,45 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'egress_task_config.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -EgressTaskConfig _$EgressTaskConfigFromJson(Map json) => - EgressTaskConfig( - egressUser: json['egress_user'] == null - ? null - : EgressUser.fromJson(json['egress_user'] as Map), - frameRecordingEgressConfig: json['frame_recording_egress_config'] == null - ? null - : FrameRecordingEgressConfig.fromJson( - json['frame_recording_egress_config'] as Map), - hlsEgressConfig: json['hls_egress_config'] == null - ? null - : HLSEgressConfig.fromJson( - json['hls_egress_config'] as Map), - recordingEgressConfig: json['recording_egress_config'] == null - ? null - : RecordingEgressConfig.fromJson( - json['recording_egress_config'] as Map), - rtmpEgressConfig: json['rtmp_egress_config'] == null - ? null - : RTMPEgressConfig.fromJson( - json['rtmp_egress_config'] as Map), - sttEgressConfig: json['stt_egress_config'] == null - ? null - : STTEgressConfig.fromJson( - json['stt_egress_config'] as Map), - ); - -Map _$EgressTaskConfigToJson(EgressTaskConfig instance) => - { - 'egress_user': instance.egressUser?.toJson(), - 'frame_recording_egress_config': - instance.frameRecordingEgressConfig?.toJson(), - 'hls_egress_config': instance.hlsEgressConfig?.toJson(), - 'recording_egress_config': instance.recordingEgressConfig?.toJson(), - 'rtmp_egress_config': instance.rtmpEgressConfig?.toJson(), - 'stt_egress_config': instance.sttEgressConfig?.toJson(), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/egress_user.dart b/packages/stream_feeds/lib/src/generated/api/model/egress_user.dart deleted file mode 100644 index fa50412a..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/egress_user.dart +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'egress_user.g.dart'; -part 'egress_user.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class EgressUser with _$EgressUser { - const EgressUser({ - this.token, - }); - - @override - final String? token; - - Map toJson() => _$EgressUserToJson(this); - - static EgressUser fromJson(Map json) => - _$EgressUserFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/egress_user.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/egress_user.freezed.dart deleted file mode 100644 index e1cd52c2..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/egress_user.freezed.dart +++ /dev/null @@ -1,76 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'egress_user.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$EgressUser { - String? get token; - - /// Create a copy of EgressUser - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $EgressUserCopyWith get copyWith => - _$EgressUserCopyWithImpl(this as EgressUser, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is EgressUser && - (identical(other.token, token) || other.token == token)); - } - - @override - int get hashCode => Object.hash(runtimeType, token); - - @override - String toString() { - return 'EgressUser(token: $token)'; - } -} - -/// @nodoc -abstract mixin class $EgressUserCopyWith<$Res> { - factory $EgressUserCopyWith( - EgressUser value, $Res Function(EgressUser) _then) = - _$EgressUserCopyWithImpl; - @useResult - $Res call({String? token}); -} - -/// @nodoc -class _$EgressUserCopyWithImpl<$Res> implements $EgressUserCopyWith<$Res> { - _$EgressUserCopyWithImpl(this._self, this._then); - - final EgressUser _self; - final $Res Function(EgressUser) _then; - - /// Create a copy of EgressUser - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? token = freezed, - }) { - return _then(EgressUser( - token: freezed == token - ? _self.token - : token // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/egress_user.g.dart b/packages/stream_feeds/lib/src/generated/api/model/egress_user.g.dart deleted file mode 100644 index b09eb720..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/egress_user.g.dart +++ /dev/null @@ -1,16 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'egress_user.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -EgressUser _$EgressUserFromJson(Map json) => EgressUser( - token: json['token'] as String?, - ); - -Map _$EgressUserToJson(EgressUser instance) => - { - 'token': instance.token, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/entity_creator.dart b/packages/stream_feeds/lib/src/generated/api/model/entity_creator.dart deleted file mode 100644 index 44f99f28..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/entity_creator.dart +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'entity_creator.g.dart'; -part 'entity_creator.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class EntityCreator with _$EntityCreator { - const EntityCreator({ - this.avgResponseTime, - required this.banCount, - this.banExpires, - required this.banned, - this.createdAt, - required this.custom, - this.deactivatedAt, - this.deletedAt, - required this.deletedContentCount, - required this.id, - this.invisible, - this.language, - this.lastActive, - this.lastEngagedAt, - required this.online, - this.privacySettings, - this.revokeTokensIssuedBefore, - required this.role, - this.teams, - required this.teamsRole, - this.updatedAt, - }); - - @override - final int? avgResponseTime; - - @override - final int banCount; - - @override - @EpochDateTimeConverter() - final DateTime? banExpires; - - @override - final bool banned; - - @override - @EpochDateTimeConverter() - final DateTime? createdAt; - - @override - final Map custom; - - @override - @EpochDateTimeConverter() - final DateTime? deactivatedAt; - - @override - @EpochDateTimeConverter() - final DateTime? deletedAt; - - @override - final int deletedContentCount; - - @override - final String id; - - @override - final bool? invisible; - - @override - final String? language; - - @override - @EpochDateTimeConverter() - final DateTime? lastActive; - - @override - @EpochDateTimeConverter() - final DateTime? lastEngagedAt; - - @override - final bool online; - - @override - final PrivacySettings? privacySettings; - - @override - @EpochDateTimeConverter() - final DateTime? revokeTokensIssuedBefore; - - @override - final String role; - - @override - final List? teams; - - @override - final Map teamsRole; - - @override - @EpochDateTimeConverter() - final DateTime? updatedAt; - - Map toJson() => _$EntityCreatorToJson(this); - - static EntityCreator fromJson(Map json) => - _$EntityCreatorFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/entity_creator.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/entity_creator.freezed.dart deleted file mode 100644 index 06d06458..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/entity_creator.freezed.dart +++ /dev/null @@ -1,277 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'entity_creator.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$EntityCreator { - int? get avgResponseTime; - int get banCount; - DateTime? get banExpires; - bool get banned; - DateTime? get createdAt; - Map get custom; - DateTime? get deactivatedAt; - DateTime? get deletedAt; - int get deletedContentCount; - String get id; - bool? get invisible; - String? get language; - DateTime? get lastActive; - DateTime? get lastEngagedAt; - bool get online; - PrivacySettings? get privacySettings; - DateTime? get revokeTokensIssuedBefore; - String get role; - List? get teams; - Map get teamsRole; - DateTime? get updatedAt; - - /// Create a copy of EntityCreator - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $EntityCreatorCopyWith get copyWith => - _$EntityCreatorCopyWithImpl( - this as EntityCreator, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is EntityCreator && - (identical(other.avgResponseTime, avgResponseTime) || - other.avgResponseTime == avgResponseTime) && - (identical(other.banCount, banCount) || - other.banCount == banCount) && - (identical(other.banExpires, banExpires) || - other.banExpires == banExpires) && - (identical(other.banned, banned) || other.banned == banned) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - const DeepCollectionEquality().equals(other.custom, custom) && - (identical(other.deactivatedAt, deactivatedAt) || - other.deactivatedAt == deactivatedAt) && - (identical(other.deletedAt, deletedAt) || - other.deletedAt == deletedAt) && - (identical(other.deletedContentCount, deletedContentCount) || - other.deletedContentCount == deletedContentCount) && - (identical(other.id, id) || other.id == id) && - (identical(other.invisible, invisible) || - other.invisible == invisible) && - (identical(other.language, language) || - other.language == language) && - (identical(other.lastActive, lastActive) || - other.lastActive == lastActive) && - (identical(other.lastEngagedAt, lastEngagedAt) || - other.lastEngagedAt == lastEngagedAt) && - (identical(other.online, online) || other.online == online) && - (identical(other.privacySettings, privacySettings) || - other.privacySettings == privacySettings) && - (identical( - other.revokeTokensIssuedBefore, revokeTokensIssuedBefore) || - other.revokeTokensIssuedBefore == revokeTokensIssuedBefore) && - (identical(other.role, role) || other.role == role) && - const DeepCollectionEquality().equals(other.teams, teams) && - const DeepCollectionEquality().equals(other.teamsRole, teamsRole) && - (identical(other.updatedAt, updatedAt) || - other.updatedAt == updatedAt)); - } - - @override - int get hashCode => Object.hashAll([ - runtimeType, - avgResponseTime, - banCount, - banExpires, - banned, - createdAt, - const DeepCollectionEquality().hash(custom), - deactivatedAt, - deletedAt, - deletedContentCount, - id, - invisible, - language, - lastActive, - lastEngagedAt, - online, - privacySettings, - revokeTokensIssuedBefore, - role, - const DeepCollectionEquality().hash(teams), - const DeepCollectionEquality().hash(teamsRole), - updatedAt - ]); - - @override - String toString() { - return 'EntityCreator(avgResponseTime: $avgResponseTime, banCount: $banCount, banExpires: $banExpires, banned: $banned, createdAt: $createdAt, custom: $custom, deactivatedAt: $deactivatedAt, deletedAt: $deletedAt, deletedContentCount: $deletedContentCount, id: $id, invisible: $invisible, language: $language, lastActive: $lastActive, lastEngagedAt: $lastEngagedAt, online: $online, privacySettings: $privacySettings, revokeTokensIssuedBefore: $revokeTokensIssuedBefore, role: $role, teams: $teams, teamsRole: $teamsRole, updatedAt: $updatedAt)'; - } -} - -/// @nodoc -abstract mixin class $EntityCreatorCopyWith<$Res> { - factory $EntityCreatorCopyWith( - EntityCreator value, $Res Function(EntityCreator) _then) = - _$EntityCreatorCopyWithImpl; - @useResult - $Res call( - {int? avgResponseTime, - int banCount, - DateTime? banExpires, - bool banned, - DateTime? createdAt, - Map custom, - DateTime? deactivatedAt, - DateTime? deletedAt, - int deletedContentCount, - String id, - bool? invisible, - String? language, - DateTime? lastActive, - DateTime? lastEngagedAt, - bool online, - PrivacySettings? privacySettings, - DateTime? revokeTokensIssuedBefore, - String role, - List? teams, - Map teamsRole, - DateTime? updatedAt}); -} - -/// @nodoc -class _$EntityCreatorCopyWithImpl<$Res> - implements $EntityCreatorCopyWith<$Res> { - _$EntityCreatorCopyWithImpl(this._self, this._then); - - final EntityCreator _self; - final $Res Function(EntityCreator) _then; - - /// Create a copy of EntityCreator - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? avgResponseTime = freezed, - Object? banCount = null, - Object? banExpires = freezed, - Object? banned = null, - Object? createdAt = freezed, - Object? custom = null, - Object? deactivatedAt = freezed, - Object? deletedAt = freezed, - Object? deletedContentCount = null, - Object? id = null, - Object? invisible = freezed, - Object? language = freezed, - Object? lastActive = freezed, - Object? lastEngagedAt = freezed, - Object? online = null, - Object? privacySettings = freezed, - Object? revokeTokensIssuedBefore = freezed, - Object? role = null, - Object? teams = freezed, - Object? teamsRole = null, - Object? updatedAt = freezed, - }) { - return _then(EntityCreator( - avgResponseTime: freezed == avgResponseTime - ? _self.avgResponseTime - : avgResponseTime // ignore: cast_nullable_to_non_nullable - as int?, - banCount: null == banCount - ? _self.banCount - : banCount // ignore: cast_nullable_to_non_nullable - as int, - banExpires: freezed == banExpires - ? _self.banExpires - : banExpires // ignore: cast_nullable_to_non_nullable - as DateTime?, - banned: null == banned - ? _self.banned - : banned // ignore: cast_nullable_to_non_nullable - as bool, - createdAt: freezed == createdAt - ? _self.createdAt - : createdAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - custom: null == custom - ? _self.custom - : custom // ignore: cast_nullable_to_non_nullable - as Map, - deactivatedAt: freezed == deactivatedAt - ? _self.deactivatedAt - : deactivatedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - deletedAt: freezed == deletedAt - ? _self.deletedAt - : deletedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - deletedContentCount: null == deletedContentCount - ? _self.deletedContentCount - : deletedContentCount // ignore: cast_nullable_to_non_nullable - as int, - id: null == id - ? _self.id - : id // ignore: cast_nullable_to_non_nullable - as String, - invisible: freezed == invisible - ? _self.invisible - : invisible // ignore: cast_nullable_to_non_nullable - as bool?, - language: freezed == language - ? _self.language - : language // ignore: cast_nullable_to_non_nullable - as String?, - lastActive: freezed == lastActive - ? _self.lastActive - : lastActive // ignore: cast_nullable_to_non_nullable - as DateTime?, - lastEngagedAt: freezed == lastEngagedAt - ? _self.lastEngagedAt - : lastEngagedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - online: null == online - ? _self.online - : online // ignore: cast_nullable_to_non_nullable - as bool, - privacySettings: freezed == privacySettings - ? _self.privacySettings - : privacySettings // ignore: cast_nullable_to_non_nullable - as PrivacySettings?, - revokeTokensIssuedBefore: freezed == revokeTokensIssuedBefore - ? _self.revokeTokensIssuedBefore - : revokeTokensIssuedBefore // ignore: cast_nullable_to_non_nullable - as DateTime?, - role: null == role - ? _self.role - : role // ignore: cast_nullable_to_non_nullable - as String, - teams: freezed == teams - ? _self.teams - : teams // ignore: cast_nullable_to_non_nullable - as List?, - teamsRole: null == teamsRole - ? _self.teamsRole - : teamsRole // ignore: cast_nullable_to_non_nullable - as Map, - updatedAt: freezed == updatedAt - ? _self.updatedAt - : updatedAt // ignore: cast_nullable_to_non_nullable - as DateTime?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/entity_creator.g.dart b/packages/stream_feeds/lib/src/generated/api/model/entity_creator.g.dart deleted file mode 100644 index dfc5edee..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/entity_creator.g.dart +++ /dev/null @@ -1,91 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'entity_creator.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -EntityCreator _$EntityCreatorFromJson(Map json) => - EntityCreator( - avgResponseTime: (json['avg_response_time'] as num?)?.toInt(), - banCount: (json['ban_count'] as num).toInt(), - banExpires: _$JsonConverterFromJson( - json['ban_expires'], const EpochDateTimeConverter().fromJson), - banned: json['banned'] as bool, - createdAt: _$JsonConverterFromJson( - json['created_at'], const EpochDateTimeConverter().fromJson), - custom: json['custom'] as Map, - deactivatedAt: _$JsonConverterFromJson( - json['deactivated_at'], const EpochDateTimeConverter().fromJson), - deletedAt: _$JsonConverterFromJson( - json['deleted_at'], const EpochDateTimeConverter().fromJson), - deletedContentCount: (json['deleted_content_count'] as num).toInt(), - id: json['id'] as String, - invisible: json['invisible'] as bool?, - language: json['language'] as String?, - lastActive: _$JsonConverterFromJson( - json['last_active'], const EpochDateTimeConverter().fromJson), - lastEngagedAt: _$JsonConverterFromJson( - json['last_engaged_at'], const EpochDateTimeConverter().fromJson), - online: json['online'] as bool, - privacySettings: json['privacy_settings'] == null - ? null - : PrivacySettings.fromJson( - json['privacy_settings'] as Map), - revokeTokensIssuedBefore: _$JsonConverterFromJson( - json['revoke_tokens_issued_before'], - const EpochDateTimeConverter().fromJson), - role: json['role'] as String, - teams: - (json['teams'] as List?)?.map((e) => e as String).toList(), - teamsRole: Map.from(json['teams_role'] as Map), - updatedAt: _$JsonConverterFromJson( - json['updated_at'], const EpochDateTimeConverter().fromJson), - ); - -Map _$EntityCreatorToJson(EntityCreator instance) => - { - 'avg_response_time': instance.avgResponseTime, - 'ban_count': instance.banCount, - 'ban_expires': _$JsonConverterToJson( - instance.banExpires, const EpochDateTimeConverter().toJson), - 'banned': instance.banned, - 'created_at': _$JsonConverterToJson( - instance.createdAt, const EpochDateTimeConverter().toJson), - 'custom': instance.custom, - 'deactivated_at': _$JsonConverterToJson( - instance.deactivatedAt, const EpochDateTimeConverter().toJson), - 'deleted_at': _$JsonConverterToJson( - instance.deletedAt, const EpochDateTimeConverter().toJson), - 'deleted_content_count': instance.deletedContentCount, - 'id': instance.id, - 'invisible': instance.invisible, - 'language': instance.language, - 'last_active': _$JsonConverterToJson( - instance.lastActive, const EpochDateTimeConverter().toJson), - 'last_engaged_at': _$JsonConverterToJson( - instance.lastEngagedAt, const EpochDateTimeConverter().toJson), - 'online': instance.online, - 'privacy_settings': instance.privacySettings?.toJson(), - 'revoke_tokens_issued_before': _$JsonConverterToJson( - instance.revokeTokensIssuedBefore, - const EpochDateTimeConverter().toJson), - 'role': instance.role, - 'teams': instance.teams, - 'teams_role': instance.teamsRole, - 'updated_at': _$JsonConverterToJson( - instance.updatedAt, const EpochDateTimeConverter().toJson), - }; - -Value? _$JsonConverterFromJson( - Object? json, - Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); - -Json? _$JsonConverterToJson( - Value? value, - Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); diff --git a/packages/stream_feeds/lib/src/generated/api/model/event_notification_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/event_notification_settings.dart deleted file mode 100644 index d7006f4a..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/event_notification_settings.dart +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'event_notification_settings.g.dart'; -part 'event_notification_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class EventNotificationSettings with _$EventNotificationSettings { - const EventNotificationSettings({ - required this.apns, - required this.enabled, - required this.fcm, - }); - - @override - final APNS apns; - - @override - final bool enabled; - - @override - final FCM fcm; - - Map toJson() => _$EventNotificationSettingsToJson(this); - - static EventNotificationSettings fromJson(Map json) => - _$EventNotificationSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/event_notification_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/event_notification_settings.freezed.dart deleted file mode 100644 index 81bf64d6..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/event_notification_settings.freezed.dart +++ /dev/null @@ -1,92 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'event_notification_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$EventNotificationSettings { - APNS get apns; - bool get enabled; - FCM get fcm; - - /// Create a copy of EventNotificationSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $EventNotificationSettingsCopyWith get copyWith => - _$EventNotificationSettingsCopyWithImpl( - this as EventNotificationSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is EventNotificationSettings && - (identical(other.apns, apns) || other.apns == apns) && - (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.fcm, fcm) || other.fcm == fcm)); - } - - @override - int get hashCode => Object.hash(runtimeType, apns, enabled, fcm); - - @override - String toString() { - return 'EventNotificationSettings(apns: $apns, enabled: $enabled, fcm: $fcm)'; - } -} - -/// @nodoc -abstract mixin class $EventNotificationSettingsCopyWith<$Res> { - factory $EventNotificationSettingsCopyWith(EventNotificationSettings value, - $Res Function(EventNotificationSettings) _then) = - _$EventNotificationSettingsCopyWithImpl; - @useResult - $Res call({APNS apns, bool enabled, FCM fcm}); -} - -/// @nodoc -class _$EventNotificationSettingsCopyWithImpl<$Res> - implements $EventNotificationSettingsCopyWith<$Res> { - _$EventNotificationSettingsCopyWithImpl(this._self, this._then); - - final EventNotificationSettings _self; - final $Res Function(EventNotificationSettings) _then; - - /// Create a copy of EventNotificationSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? apns = null, - Object? enabled = null, - Object? fcm = null, - }) { - return _then(EventNotificationSettings( - apns: null == apns - ? _self.apns - : apns // ignore: cast_nullable_to_non_nullable - as APNS, - enabled: null == enabled - ? _self.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - fcm: null == fcm - ? _self.fcm - : fcm // ignore: cast_nullable_to_non_nullable - as FCM, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/event_notification_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/event_notification_settings.g.dart deleted file mode 100644 index 30477924..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/event_notification_settings.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'event_notification_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -EventNotificationSettings _$EventNotificationSettingsFromJson( - Map json) => - EventNotificationSettings( - apns: APNS.fromJson(json['apns'] as Map), - enabled: json['enabled'] as bool, - fcm: FCM.fromJson(json['fcm'] as Map), - ); - -Map _$EventNotificationSettingsToJson( - EventNotificationSettings instance) => - { - 'apns': instance.apns.toJson(), - 'enabled': instance.enabled, - 'fcm': instance.fcm.toJson(), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/external_storage.dart b/packages/stream_feeds/lib/src/generated/api/model/external_storage.dart deleted file mode 100644 index 0948a87d..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/external_storage.dart +++ /dev/null @@ -1,79 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'external_storage.g.dart'; -part 'external_storage.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class ExternalStorage with _$ExternalStorage { - const ExternalStorage({ - this.absAccountName, - this.absClientId, - this.absClientSecret, - this.absTenantId, - this.bucket, - this.gcsCredentials, - this.path, - this.s3ApiKey, - this.s3CustomEndpoint, - this.s3Region, - this.s3SecretKey, - this.storageName, - this.storageType, - }); - - @override - final String? absAccountName; - - @override - final String? absClientId; - - @override - final String? absClientSecret; - - @override - final String? absTenantId; - - @override - final String? bucket; - - @override - final String? gcsCredentials; - - @override - final String? path; - - @override - final String? s3ApiKey; - - @override - final String? s3CustomEndpoint; - - @override - final String? s3Region; - - @override - final String? s3SecretKey; - - @override - final String? storageName; - - @override - final int? storageType; - - Map toJson() => _$ExternalStorageToJson(this); - - static ExternalStorage fromJson(Map json) => - _$ExternalStorageFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/external_storage.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/external_storage.freezed.dart deleted file mode 100644 index a4776cb7..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/external_storage.freezed.dart +++ /dev/null @@ -1,200 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'external_storage.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$ExternalStorage { - String? get absAccountName; - String? get absClientId; - String? get absClientSecret; - String? get absTenantId; - String? get bucket; - String? get gcsCredentials; - String? get path; - String? get s3ApiKey; - String? get s3CustomEndpoint; - String? get s3Region; - String? get s3SecretKey; - String? get storageName; - int? get storageType; - - /// Create a copy of ExternalStorage - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $ExternalStorageCopyWith get copyWith => - _$ExternalStorageCopyWithImpl( - this as ExternalStorage, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is ExternalStorage && - (identical(other.absAccountName, absAccountName) || - other.absAccountName == absAccountName) && - (identical(other.absClientId, absClientId) || - other.absClientId == absClientId) && - (identical(other.absClientSecret, absClientSecret) || - other.absClientSecret == absClientSecret) && - (identical(other.absTenantId, absTenantId) || - other.absTenantId == absTenantId) && - (identical(other.bucket, bucket) || other.bucket == bucket) && - (identical(other.gcsCredentials, gcsCredentials) || - other.gcsCredentials == gcsCredentials) && - (identical(other.path, path) || other.path == path) && - (identical(other.s3ApiKey, s3ApiKey) || - other.s3ApiKey == s3ApiKey) && - (identical(other.s3CustomEndpoint, s3CustomEndpoint) || - other.s3CustomEndpoint == s3CustomEndpoint) && - (identical(other.s3Region, s3Region) || - other.s3Region == s3Region) && - (identical(other.s3SecretKey, s3SecretKey) || - other.s3SecretKey == s3SecretKey) && - (identical(other.storageName, storageName) || - other.storageName == storageName) && - (identical(other.storageType, storageType) || - other.storageType == storageType)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - absAccountName, - absClientId, - absClientSecret, - absTenantId, - bucket, - gcsCredentials, - path, - s3ApiKey, - s3CustomEndpoint, - s3Region, - s3SecretKey, - storageName, - storageType); - - @override - String toString() { - return 'ExternalStorage(absAccountName: $absAccountName, absClientId: $absClientId, absClientSecret: $absClientSecret, absTenantId: $absTenantId, bucket: $bucket, gcsCredentials: $gcsCredentials, path: $path, s3ApiKey: $s3ApiKey, s3CustomEndpoint: $s3CustomEndpoint, s3Region: $s3Region, s3SecretKey: $s3SecretKey, storageName: $storageName, storageType: $storageType)'; - } -} - -/// @nodoc -abstract mixin class $ExternalStorageCopyWith<$Res> { - factory $ExternalStorageCopyWith( - ExternalStorage value, $Res Function(ExternalStorage) _then) = - _$ExternalStorageCopyWithImpl; - @useResult - $Res call( - {String? absAccountName, - String? absClientId, - String? absClientSecret, - String? absTenantId, - String? bucket, - String? gcsCredentials, - String? path, - String? s3ApiKey, - String? s3CustomEndpoint, - String? s3Region, - String? s3SecretKey, - String? storageName, - int? storageType}); -} - -/// @nodoc -class _$ExternalStorageCopyWithImpl<$Res> - implements $ExternalStorageCopyWith<$Res> { - _$ExternalStorageCopyWithImpl(this._self, this._then); - - final ExternalStorage _self; - final $Res Function(ExternalStorage) _then; - - /// Create a copy of ExternalStorage - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? absAccountName = freezed, - Object? absClientId = freezed, - Object? absClientSecret = freezed, - Object? absTenantId = freezed, - Object? bucket = freezed, - Object? gcsCredentials = freezed, - Object? path = freezed, - Object? s3ApiKey = freezed, - Object? s3CustomEndpoint = freezed, - Object? s3Region = freezed, - Object? s3SecretKey = freezed, - Object? storageName = freezed, - Object? storageType = freezed, - }) { - return _then(ExternalStorage( - absAccountName: freezed == absAccountName - ? _self.absAccountName - : absAccountName // ignore: cast_nullable_to_non_nullable - as String?, - absClientId: freezed == absClientId - ? _self.absClientId - : absClientId // ignore: cast_nullable_to_non_nullable - as String?, - absClientSecret: freezed == absClientSecret - ? _self.absClientSecret - : absClientSecret // ignore: cast_nullable_to_non_nullable - as String?, - absTenantId: freezed == absTenantId - ? _self.absTenantId - : absTenantId // ignore: cast_nullable_to_non_nullable - as String?, - bucket: freezed == bucket - ? _self.bucket - : bucket // ignore: cast_nullable_to_non_nullable - as String?, - gcsCredentials: freezed == gcsCredentials - ? _self.gcsCredentials - : gcsCredentials // ignore: cast_nullable_to_non_nullable - as String?, - path: freezed == path - ? _self.path - : path // ignore: cast_nullable_to_non_nullable - as String?, - s3ApiKey: freezed == s3ApiKey - ? _self.s3ApiKey - : s3ApiKey // ignore: cast_nullable_to_non_nullable - as String?, - s3CustomEndpoint: freezed == s3CustomEndpoint - ? _self.s3CustomEndpoint - : s3CustomEndpoint // ignore: cast_nullable_to_non_nullable - as String?, - s3Region: freezed == s3Region - ? _self.s3Region - : s3Region // ignore: cast_nullable_to_non_nullable - as String?, - s3SecretKey: freezed == s3SecretKey - ? _self.s3SecretKey - : s3SecretKey // ignore: cast_nullable_to_non_nullable - as String?, - storageName: freezed == storageName - ? _self.storageName - : storageName // ignore: cast_nullable_to_non_nullable - as String?, - storageType: freezed == storageType - ? _self.storageType - : storageType // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/external_storage.g.dart b/packages/stream_feeds/lib/src/generated/api/model/external_storage.g.dart deleted file mode 100644 index f4f3fd2c..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/external_storage.g.dart +++ /dev/null @@ -1,41 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'external_storage.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -ExternalStorage _$ExternalStorageFromJson(Map json) => - ExternalStorage( - absAccountName: json['abs_account_name'] as String?, - absClientId: json['abs_client_id'] as String?, - absClientSecret: json['abs_client_secret'] as String?, - absTenantId: json['abs_tenant_id'] as String?, - bucket: json['bucket'] as String?, - gcsCredentials: json['gcs_credentials'] as String?, - path: json['path'] as String?, - s3ApiKey: json['s3_api_key'] as String?, - s3CustomEndpoint: json['s3_custom_endpoint'] as String?, - s3Region: json['s3_region'] as String?, - s3SecretKey: json['s3_secret_key'] as String?, - storageName: json['storage_name'] as String?, - storageType: (json['storage_type'] as num?)?.toInt(), - ); - -Map _$ExternalStorageToJson(ExternalStorage instance) => - { - 'abs_account_name': instance.absAccountName, - 'abs_client_id': instance.absClientId, - 'abs_client_secret': instance.absClientSecret, - 'abs_tenant_id': instance.absTenantId, - 'bucket': instance.bucket, - 'gcs_credentials': instance.gcsCredentials, - 'path': instance.path, - 's3_api_key': instance.s3ApiKey, - 's3_custom_endpoint': instance.s3CustomEndpoint, - 's3_region': instance.s3Region, - 's3_secret_key': instance.s3SecretKey, - 'storage_name': instance.storageName, - 'storage_type': instance.storageType, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/fcm.dart b/packages/stream_feeds/lib/src/generated/api/model/fcm.dart deleted file mode 100644 index cfd509ae..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/fcm.dart +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'fcm.g.dart'; -part 'fcm.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class FCM with _$FCM { - const FCM({ - this.data, - }); - - @override - final Map? data; - - Map toJson() => _$FCMToJson(this); - - static FCM fromJson(Map json) => _$FCMFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/fcm.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/fcm.freezed.dart deleted file mode 100644 index 1240f85c..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/fcm.freezed.dart +++ /dev/null @@ -1,75 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'fcm.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$FCM { - Map? get data; - - /// Create a copy of FCM - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $FCMCopyWith get copyWith => - _$FCMCopyWithImpl(this as FCM, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is FCM && - const DeepCollectionEquality().equals(other.data, data)); - } - - @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(data)); - - @override - String toString() { - return 'FCM(data: $data)'; - } -} - -/// @nodoc -abstract mixin class $FCMCopyWith<$Res> { - factory $FCMCopyWith(FCM value, $Res Function(FCM) _then) = _$FCMCopyWithImpl; - @useResult - $Res call({Map? data}); -} - -/// @nodoc -class _$FCMCopyWithImpl<$Res> implements $FCMCopyWith<$Res> { - _$FCMCopyWithImpl(this._self, this._then); - - final FCM _self; - final $Res Function(FCM) _then; - - /// Create a copy of FCM - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? data = freezed, - }) { - return _then(FCM( - data: freezed == data - ? _self.data - : data // ignore: cast_nullable_to_non_nullable - as Map?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/fcm.g.dart b/packages/stream_feeds/lib/src/generated/api/model/fcm.g.dart deleted file mode 100644 index 65801a2a..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/fcm.g.dart +++ /dev/null @@ -1,15 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'fcm.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -FCM _$FCMFromJson(Map json) => FCM( - data: json['data'] as Map?, - ); - -Map _$FCMToJson(FCM instance) => { - 'data': instance.data, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/flag.dart b/packages/stream_feeds/lib/src/generated/api/model/flag.dart deleted file mode 100644 index d4a4bb28..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/flag.dart +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'flag.g.dart'; -part 'flag.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class Flag with _$Flag { - const Flag({ - required this.createdAt, - this.custom, - this.entityCreatorId, - required this.entityId, - required this.entityType, - this.isStreamedContent, - this.labels, - this.moderationPayload, - this.moderationPayloadHash, - this.reason, - required this.result, - this.reviewQueueItem, - this.reviewQueueItemId, - this.type, - required this.updatedAt, - this.user, - }); - - @override - @EpochDateTimeConverter() - final DateTime createdAt; - - @override - final Map? custom; - - @override - final String? entityCreatorId; - - @override - final String entityId; - - @override - final String entityType; - - @override - final bool? isStreamedContent; - - @override - final List? labels; - - @override - final ModerationPayload? moderationPayload; - - @override - final String? moderationPayloadHash; - - @override - final String? reason; - - @override - final List> result; - - @override - final ReviewQueueItem? reviewQueueItem; - - @override - final String? reviewQueueItemId; - - @override - final String? type; - - @override - @EpochDateTimeConverter() - final DateTime updatedAt; - - @override - final User? user; - - Map toJson() => _$FlagToJson(this); - - static Flag fromJson(Map json) => _$FlagFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/flag.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/flag.freezed.dart deleted file mode 100644 index c6441e8f..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/flag.freezed.dart +++ /dev/null @@ -1,223 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'flag.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$Flag { - DateTime get createdAt; - Map? get custom; - String? get entityCreatorId; - String get entityId; - String get entityType; - bool? get isStreamedContent; - List? get labels; - ModerationPayload? get moderationPayload; - String? get moderationPayloadHash; - String? get reason; - List> get result; - ReviewQueueItem? get reviewQueueItem; - String? get reviewQueueItemId; - String? get type; - DateTime get updatedAt; - User? get user; - - /// Create a copy of Flag - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $FlagCopyWith get copyWith => - _$FlagCopyWithImpl(this as Flag, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is Flag && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - const DeepCollectionEquality().equals(other.custom, custom) && - (identical(other.entityCreatorId, entityCreatorId) || - other.entityCreatorId == entityCreatorId) && - (identical(other.entityId, entityId) || - other.entityId == entityId) && - (identical(other.entityType, entityType) || - other.entityType == entityType) && - (identical(other.isStreamedContent, isStreamedContent) || - other.isStreamedContent == isStreamedContent) && - const DeepCollectionEquality().equals(other.labels, labels) && - (identical(other.moderationPayload, moderationPayload) || - other.moderationPayload == moderationPayload) && - (identical(other.moderationPayloadHash, moderationPayloadHash) || - other.moderationPayloadHash == moderationPayloadHash) && - (identical(other.reason, reason) || other.reason == reason) && - const DeepCollectionEquality().equals(other.result, result) && - (identical(other.reviewQueueItem, reviewQueueItem) || - other.reviewQueueItem == reviewQueueItem) && - (identical(other.reviewQueueItemId, reviewQueueItemId) || - other.reviewQueueItemId == reviewQueueItemId) && - (identical(other.type, type) || other.type == type) && - (identical(other.updatedAt, updatedAt) || - other.updatedAt == updatedAt) && - (identical(other.user, user) || other.user == user)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - createdAt, - const DeepCollectionEquality().hash(custom), - entityCreatorId, - entityId, - entityType, - isStreamedContent, - const DeepCollectionEquality().hash(labels), - moderationPayload, - moderationPayloadHash, - reason, - const DeepCollectionEquality().hash(result), - reviewQueueItem, - reviewQueueItemId, - type, - updatedAt, - user); - - @override - String toString() { - return 'Flag(createdAt: $createdAt, custom: $custom, entityCreatorId: $entityCreatorId, entityId: $entityId, entityType: $entityType, isStreamedContent: $isStreamedContent, labels: $labels, moderationPayload: $moderationPayload, moderationPayloadHash: $moderationPayloadHash, reason: $reason, result: $result, reviewQueueItem: $reviewQueueItem, reviewQueueItemId: $reviewQueueItemId, type: $type, updatedAt: $updatedAt, user: $user)'; - } -} - -/// @nodoc -abstract mixin class $FlagCopyWith<$Res> { - factory $FlagCopyWith(Flag value, $Res Function(Flag) _then) = - _$FlagCopyWithImpl; - @useResult - $Res call( - {DateTime createdAt, - Map? custom, - String? entityCreatorId, - String entityId, - String entityType, - bool? isStreamedContent, - List? labels, - ModerationPayload? moderationPayload, - String? moderationPayloadHash, - String? reason, - List> result, - ReviewQueueItem? reviewQueueItem, - String? reviewQueueItemId, - String? type, - DateTime updatedAt, - User? user}); -} - -/// @nodoc -class _$FlagCopyWithImpl<$Res> implements $FlagCopyWith<$Res> { - _$FlagCopyWithImpl(this._self, this._then); - - final Flag _self; - final $Res Function(Flag) _then; - - /// Create a copy of Flag - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? createdAt = null, - Object? custom = freezed, - Object? entityCreatorId = freezed, - Object? entityId = null, - Object? entityType = null, - Object? isStreamedContent = freezed, - Object? labels = freezed, - Object? moderationPayload = freezed, - Object? moderationPayloadHash = freezed, - Object? reason = freezed, - Object? result = null, - Object? reviewQueueItem = freezed, - Object? reviewQueueItemId = freezed, - Object? type = freezed, - Object? updatedAt = null, - Object? user = freezed, - }) { - return _then(Flag( - createdAt: null == createdAt - ? _self.createdAt - : createdAt // ignore: cast_nullable_to_non_nullable - as DateTime, - custom: freezed == custom - ? _self.custom - : custom // ignore: cast_nullable_to_non_nullable - as Map?, - entityCreatorId: freezed == entityCreatorId - ? _self.entityCreatorId - : entityCreatorId // ignore: cast_nullable_to_non_nullable - as String?, - entityId: null == entityId - ? _self.entityId - : entityId // ignore: cast_nullable_to_non_nullable - as String, - entityType: null == entityType - ? _self.entityType - : entityType // ignore: cast_nullable_to_non_nullable - as String, - isStreamedContent: freezed == isStreamedContent - ? _self.isStreamedContent - : isStreamedContent // ignore: cast_nullable_to_non_nullable - as bool?, - labels: freezed == labels - ? _self.labels - : labels // ignore: cast_nullable_to_non_nullable - as List?, - moderationPayload: freezed == moderationPayload - ? _self.moderationPayload - : moderationPayload // ignore: cast_nullable_to_non_nullable - as ModerationPayload?, - moderationPayloadHash: freezed == moderationPayloadHash - ? _self.moderationPayloadHash - : moderationPayloadHash // ignore: cast_nullable_to_non_nullable - as String?, - reason: freezed == reason - ? _self.reason - : reason // ignore: cast_nullable_to_non_nullable - as String?, - result: null == result - ? _self.result - : result // ignore: cast_nullable_to_non_nullable - as List>, - reviewQueueItem: freezed == reviewQueueItem - ? _self.reviewQueueItem - : reviewQueueItem // ignore: cast_nullable_to_non_nullable - as ReviewQueueItem?, - reviewQueueItemId: freezed == reviewQueueItemId - ? _self.reviewQueueItemId - : reviewQueueItemId // ignore: cast_nullable_to_non_nullable - as String?, - type: freezed == type - ? _self.type - : type // ignore: cast_nullable_to_non_nullable - as String?, - updatedAt: null == updatedAt - ? _self.updatedAt - : updatedAt // ignore: cast_nullable_to_non_nullable - as DateTime, - user: freezed == user - ? _self.user - : user // ignore: cast_nullable_to_non_nullable - as User?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/flag.g.dart b/packages/stream_feeds/lib/src/generated/api/model/flag.g.dart deleted file mode 100644 index f5e59be4..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/flag.g.dart +++ /dev/null @@ -1,58 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'flag.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Flag _$FlagFromJson(Map json) => Flag( - createdAt: const EpochDateTimeConverter() - .fromJson((json['created_at'] as num).toInt()), - custom: json['custom'] as Map?, - entityCreatorId: json['entity_creator_id'] as String?, - entityId: json['entity_id'] as String, - entityType: json['entity_type'] as String, - isStreamedContent: json['is_streamed_content'] as bool?, - labels: - (json['labels'] as List?)?.map((e) => e as String).toList(), - moderationPayload: json['moderation_payload'] == null - ? null - : ModerationPayload.fromJson( - json['moderation_payload'] as Map), - moderationPayloadHash: json['moderation_payload_hash'] as String?, - reason: json['reason'] as String?, - result: (json['result'] as List) - .map((e) => e as Map) - .toList(), - reviewQueueItem: json['review_queue_item'] == null - ? null - : ReviewQueueItem.fromJson( - json['review_queue_item'] as Map), - reviewQueueItemId: json['review_queue_item_id'] as String?, - type: json['type'] as String?, - updatedAt: const EpochDateTimeConverter() - .fromJson((json['updated_at'] as num).toInt()), - user: json['user'] == null - ? null - : User.fromJson(json['user'] as Map), - ); - -Map _$FlagToJson(Flag instance) => { - 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), - 'custom': instance.custom, - 'entity_creator_id': instance.entityCreatorId, - 'entity_id': instance.entityId, - 'entity_type': instance.entityType, - 'is_streamed_content': instance.isStreamedContent, - 'labels': instance.labels, - 'moderation_payload': instance.moderationPayload?.toJson(), - 'moderation_payload_hash': instance.moderationPayloadHash, - 'reason': instance.reason, - 'result': instance.result, - 'review_queue_item': instance.reviewQueueItem?.toJson(), - 'review_queue_item_id': instance.reviewQueueItemId, - 'type': instance.type, - 'updated_at': const EpochDateTimeConverter().toJson(instance.updatedAt), - 'user': instance.user?.toJson(), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/frame_record_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/frame_record_settings.dart deleted file mode 100644 index cfbdea5d..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/frame_record_settings.dart +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'frame_record_settings.g.dart'; -part 'frame_record_settings.freezed.dart'; - -@JsonEnum(alwaysCreate: true) -enum FrameRecordSettingsMode { - @JsonValue('auto-on') - autoOn, - @JsonValue('available') - available, - @JsonValue('disabled') - disabled, - @JsonValue('_unknown') - unknown; -} - -@freezed -@immutable -@JsonSerializable() -class FrameRecordSettings with _$FrameRecordSettings { - const FrameRecordSettings({ - required this.captureIntervalInSeconds, - required this.mode, - this.quality, - }); - - @override - final int captureIntervalInSeconds; - - @override - @JsonKey(unknownEnumValue: FrameRecordSettingsMode.unknown) - final FrameRecordSettingsMode mode; - - @override - final String? quality; - - Map toJson() => _$FrameRecordSettingsToJson(this); - - static FrameRecordSettings fromJson(Map json) => - _$FrameRecordSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/frame_record_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/frame_record_settings.freezed.dart deleted file mode 100644 index 8f747dfb..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/frame_record_settings.freezed.dart +++ /dev/null @@ -1,98 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'frame_record_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$FrameRecordSettings { - int get captureIntervalInSeconds; - FrameRecordSettingsMode get mode; - String? get quality; - - /// Create a copy of FrameRecordSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $FrameRecordSettingsCopyWith get copyWith => - _$FrameRecordSettingsCopyWithImpl( - this as FrameRecordSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is FrameRecordSettings && - (identical( - other.captureIntervalInSeconds, captureIntervalInSeconds) || - other.captureIntervalInSeconds == captureIntervalInSeconds) && - (identical(other.mode, mode) || other.mode == mode) && - (identical(other.quality, quality) || other.quality == quality)); - } - - @override - int get hashCode => - Object.hash(runtimeType, captureIntervalInSeconds, mode, quality); - - @override - String toString() { - return 'FrameRecordSettings(captureIntervalInSeconds: $captureIntervalInSeconds, mode: $mode, quality: $quality)'; - } -} - -/// @nodoc -abstract mixin class $FrameRecordSettingsCopyWith<$Res> { - factory $FrameRecordSettingsCopyWith( - FrameRecordSettings value, $Res Function(FrameRecordSettings) _then) = - _$FrameRecordSettingsCopyWithImpl; - @useResult - $Res call( - {int captureIntervalInSeconds, - FrameRecordSettingsMode mode, - String? quality}); -} - -/// @nodoc -class _$FrameRecordSettingsCopyWithImpl<$Res> - implements $FrameRecordSettingsCopyWith<$Res> { - _$FrameRecordSettingsCopyWithImpl(this._self, this._then); - - final FrameRecordSettings _self; - final $Res Function(FrameRecordSettings) _then; - - /// Create a copy of FrameRecordSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? captureIntervalInSeconds = null, - Object? mode = null, - Object? quality = freezed, - }) { - return _then(FrameRecordSettings( - captureIntervalInSeconds: null == captureIntervalInSeconds - ? _self.captureIntervalInSeconds - : captureIntervalInSeconds // ignore: cast_nullable_to_non_nullable - as int, - mode: null == mode - ? _self.mode - : mode // ignore: cast_nullable_to_non_nullable - as FrameRecordSettingsMode, - quality: freezed == quality - ? _self.quality - : quality // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/frame_record_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/frame_record_settings.g.dart deleted file mode 100644 index 913637d4..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/frame_record_settings.g.dart +++ /dev/null @@ -1,31 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'frame_record_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -FrameRecordSettings _$FrameRecordSettingsFromJson(Map json) => - FrameRecordSettings( - captureIntervalInSeconds: - (json['capture_interval_in_seconds'] as num).toInt(), - mode: $enumDecode(_$FrameRecordSettingsModeEnumMap, json['mode'], - unknownValue: FrameRecordSettingsMode.unknown), - quality: json['quality'] as String?, - ); - -Map _$FrameRecordSettingsToJson( - FrameRecordSettings instance) => - { - 'capture_interval_in_seconds': instance.captureIntervalInSeconds, - 'mode': _$FrameRecordSettingsModeEnumMap[instance.mode]!, - 'quality': instance.quality, - }; - -const _$FrameRecordSettingsModeEnumMap = { - FrameRecordSettingsMode.autoOn: 'auto-on', - FrameRecordSettingsMode.available: 'available', - FrameRecordSettingsMode.disabled: 'disabled', - FrameRecordSettingsMode.unknown: '_unknown', -}; diff --git a/packages/stream_feeds/lib/src/generated/api/model/frame_recording_egress_config.dart b/packages/stream_feeds/lib/src/generated/api/model/frame_recording_egress_config.dart deleted file mode 100644 index 7bb5e8f5..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/frame_recording_egress_config.dart +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'frame_recording_egress_config.g.dart'; -part 'frame_recording_egress_config.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class FrameRecordingEgressConfig with _$FrameRecordingEgressConfig { - const FrameRecordingEgressConfig({ - this.captureIntervalInSeconds, - this.externalStorage, - this.quality, - this.storageName, - }); - - @override - final int? captureIntervalInSeconds; - - @override - final ExternalStorage? externalStorage; - - @override - final Quality? quality; - - @override - final String? storageName; - - Map toJson() => _$FrameRecordingEgressConfigToJson(this); - - static FrameRecordingEgressConfig fromJson(Map json) => - _$FrameRecordingEgressConfigFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/frame_recording_egress_config.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/frame_recording_egress_config.freezed.dart deleted file mode 100644 index 77624ad6..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/frame_recording_egress_config.freezed.dart +++ /dev/null @@ -1,109 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'frame_recording_egress_config.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$FrameRecordingEgressConfig { - int? get captureIntervalInSeconds; - ExternalStorage? get externalStorage; - Quality? get quality; - String? get storageName; - - /// Create a copy of FrameRecordingEgressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $FrameRecordingEgressConfigCopyWith - get copyWith => - _$FrameRecordingEgressConfigCopyWithImpl( - this as FrameRecordingEgressConfig, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is FrameRecordingEgressConfig && - (identical( - other.captureIntervalInSeconds, captureIntervalInSeconds) || - other.captureIntervalInSeconds == captureIntervalInSeconds) && - (identical(other.externalStorage, externalStorage) || - other.externalStorage == externalStorage) && - (identical(other.quality, quality) || other.quality == quality) && - (identical(other.storageName, storageName) || - other.storageName == storageName)); - } - - @override - int get hashCode => Object.hash(runtimeType, captureIntervalInSeconds, - externalStorage, quality, storageName); - - @override - String toString() { - return 'FrameRecordingEgressConfig(captureIntervalInSeconds: $captureIntervalInSeconds, externalStorage: $externalStorage, quality: $quality, storageName: $storageName)'; - } -} - -/// @nodoc -abstract mixin class $FrameRecordingEgressConfigCopyWith<$Res> { - factory $FrameRecordingEgressConfigCopyWith(FrameRecordingEgressConfig value, - $Res Function(FrameRecordingEgressConfig) _then) = - _$FrameRecordingEgressConfigCopyWithImpl; - @useResult - $Res call( - {int? captureIntervalInSeconds, - ExternalStorage? externalStorage, - Quality? quality, - String? storageName}); -} - -/// @nodoc -class _$FrameRecordingEgressConfigCopyWithImpl<$Res> - implements $FrameRecordingEgressConfigCopyWith<$Res> { - _$FrameRecordingEgressConfigCopyWithImpl(this._self, this._then); - - final FrameRecordingEgressConfig _self; - final $Res Function(FrameRecordingEgressConfig) _then; - - /// Create a copy of FrameRecordingEgressConfig - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? captureIntervalInSeconds = freezed, - Object? externalStorage = freezed, - Object? quality = freezed, - Object? storageName = freezed, - }) { - return _then(FrameRecordingEgressConfig( - captureIntervalInSeconds: freezed == captureIntervalInSeconds - ? _self.captureIntervalInSeconds - : captureIntervalInSeconds // ignore: cast_nullable_to_non_nullable - as int?, - externalStorage: freezed == externalStorage - ? _self.externalStorage - : externalStorage // ignore: cast_nullable_to_non_nullable - as ExternalStorage?, - quality: freezed == quality - ? _self.quality - : quality // ignore: cast_nullable_to_non_nullable - as Quality?, - storageName: freezed == storageName - ? _self.storageName - : storageName // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/frame_recording_egress_config.g.dart b/packages/stream_feeds/lib/src/generated/api/model/frame_recording_egress_config.g.dart deleted file mode 100644 index 1f8201d6..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/frame_recording_egress_config.g.dart +++ /dev/null @@ -1,31 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'frame_recording_egress_config.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -FrameRecordingEgressConfig _$FrameRecordingEgressConfigFromJson( - Map json) => - FrameRecordingEgressConfig( - captureIntervalInSeconds: - (json['capture_interval_in_seconds'] as num?)?.toInt(), - externalStorage: json['external_storage'] == null - ? null - : ExternalStorage.fromJson( - json['external_storage'] as Map), - quality: json['quality'] == null - ? null - : Quality.fromJson(json['quality'] as Map), - storageName: json['storage_name'] as String?, - ); - -Map _$FrameRecordingEgressConfigToJson( - FrameRecordingEgressConfig instance) => - { - 'capture_interval_in_seconds': instance.captureIntervalInSeconds, - 'external_storage': instance.externalStorage?.toJson(), - 'quality': instance.quality?.toJson(), - 'storage_name': instance.storageName, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/geofence_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/geofence_settings.dart deleted file mode 100644 index 446f899c..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/geofence_settings.dart +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'geofence_settings.g.dart'; -part 'geofence_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class GeofenceSettings with _$GeofenceSettings { - const GeofenceSettings({ - required this.names, - }); - - @override - final List names; - - Map toJson() => _$GeofenceSettingsToJson(this); - - static GeofenceSettings fromJson(Map json) => - _$GeofenceSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/geofence_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/geofence_settings.freezed.dart deleted file mode 100644 index 88909f93..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/geofence_settings.freezed.dart +++ /dev/null @@ -1,79 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'geofence_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$GeofenceSettings { - List get names; - - /// Create a copy of GeofenceSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $GeofenceSettingsCopyWith get copyWith => - _$GeofenceSettingsCopyWithImpl( - this as GeofenceSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is GeofenceSettings && - const DeepCollectionEquality().equals(other.names, names)); - } - - @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(names)); - - @override - String toString() { - return 'GeofenceSettings(names: $names)'; - } -} - -/// @nodoc -abstract mixin class $GeofenceSettingsCopyWith<$Res> { - factory $GeofenceSettingsCopyWith( - GeofenceSettings value, $Res Function(GeofenceSettings) _then) = - _$GeofenceSettingsCopyWithImpl; - @useResult - $Res call({List names}); -} - -/// @nodoc -class _$GeofenceSettingsCopyWithImpl<$Res> - implements $GeofenceSettingsCopyWith<$Res> { - _$GeofenceSettingsCopyWithImpl(this._self, this._then); - - final GeofenceSettings _self; - final $Res Function(GeofenceSettings) _then; - - /// Create a copy of GeofenceSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? names = null, - }) { - return _then(GeofenceSettings( - names: null == names - ? _self.names - : names // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/geofence_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/geofence_settings.g.dart deleted file mode 100644 index 26051751..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/geofence_settings.g.dart +++ /dev/null @@ -1,17 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'geofence_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -GeofenceSettings _$GeofenceSettingsFromJson(Map json) => - GeofenceSettings( - names: (json['names'] as List).map((e) => e as String).toList(), - ); - -Map _$GeofenceSettingsToJson(GeofenceSettings instance) => - { - 'names': instance.names, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/hls_egress_config.dart b/packages/stream_feeds/lib/src/generated/api/model/hls_egress_config.dart deleted file mode 100644 index 8f841272..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/hls_egress_config.dart +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'hls_egress_config.g.dart'; -part 'hls_egress_config.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class HLSEgressConfig with _$HLSEgressConfig { - const HLSEgressConfig({ - this.compositeAppSettings, - this.playlistUrl, - this.qualities, - this.startUnixNano, - }); - - @override - final CompositeAppSettings? compositeAppSettings; - - @override - final String? playlistUrl; - - @override - final List? qualities; - - @override - final int? startUnixNano; - - Map toJson() => _$HLSEgressConfigToJson(this); - - static HLSEgressConfig fromJson(Map json) => - _$HLSEgressConfigFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/hls_egress_config.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/hls_egress_config.freezed.dart deleted file mode 100644 index 271740b8..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/hls_egress_config.freezed.dart +++ /dev/null @@ -1,111 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'hls_egress_config.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$HLSEgressConfig { - CompositeAppSettings? get compositeAppSettings; - String? get playlistUrl; - List? get qualities; - int? get startUnixNano; - - /// Create a copy of HLSEgressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $HLSEgressConfigCopyWith get copyWith => - _$HLSEgressConfigCopyWithImpl( - this as HLSEgressConfig, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is HLSEgressConfig && - (identical(other.compositeAppSettings, compositeAppSettings) || - other.compositeAppSettings == compositeAppSettings) && - (identical(other.playlistUrl, playlistUrl) || - other.playlistUrl == playlistUrl) && - const DeepCollectionEquality().equals(other.qualities, qualities) && - (identical(other.startUnixNano, startUnixNano) || - other.startUnixNano == startUnixNano)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - compositeAppSettings, - playlistUrl, - const DeepCollectionEquality().hash(qualities), - startUnixNano); - - @override - String toString() { - return 'HLSEgressConfig(compositeAppSettings: $compositeAppSettings, playlistUrl: $playlistUrl, qualities: $qualities, startUnixNano: $startUnixNano)'; - } -} - -/// @nodoc -abstract mixin class $HLSEgressConfigCopyWith<$Res> { - factory $HLSEgressConfigCopyWith( - HLSEgressConfig value, $Res Function(HLSEgressConfig) _then) = - _$HLSEgressConfigCopyWithImpl; - @useResult - $Res call( - {CompositeAppSettings? compositeAppSettings, - String? playlistUrl, - List? qualities, - int? startUnixNano}); -} - -/// @nodoc -class _$HLSEgressConfigCopyWithImpl<$Res> - implements $HLSEgressConfigCopyWith<$Res> { - _$HLSEgressConfigCopyWithImpl(this._self, this._then); - - final HLSEgressConfig _self; - final $Res Function(HLSEgressConfig) _then; - - /// Create a copy of HLSEgressConfig - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? compositeAppSettings = freezed, - Object? playlistUrl = freezed, - Object? qualities = freezed, - Object? startUnixNano = freezed, - }) { - return _then(HLSEgressConfig( - compositeAppSettings: freezed == compositeAppSettings - ? _self.compositeAppSettings - : compositeAppSettings // ignore: cast_nullable_to_non_nullable - as CompositeAppSettings?, - playlistUrl: freezed == playlistUrl - ? _self.playlistUrl - : playlistUrl // ignore: cast_nullable_to_non_nullable - as String?, - qualities: freezed == qualities - ? _self.qualities - : qualities // ignore: cast_nullable_to_non_nullable - as List?, - startUnixNano: freezed == startUnixNano - ? _self.startUnixNano - : startUnixNano // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/hls_egress_config.g.dart b/packages/stream_feeds/lib/src/generated/api/model/hls_egress_config.g.dart deleted file mode 100644 index 8c5b3e06..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/hls_egress_config.g.dart +++ /dev/null @@ -1,28 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'hls_egress_config.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -HLSEgressConfig _$HLSEgressConfigFromJson(Map json) => - HLSEgressConfig( - compositeAppSettings: json['composite_app_settings'] == null - ? null - : CompositeAppSettings.fromJson( - json['composite_app_settings'] as Map), - playlistUrl: json['playlist_url'] as String?, - qualities: (json['qualities'] as List?) - ?.map((e) => Quality.fromJson(e as Map)) - .toList(), - startUnixNano: (json['start_unix_nano'] as num?)?.toInt(), - ); - -Map _$HLSEgressConfigToJson(HLSEgressConfig instance) => - { - 'composite_app_settings': instance.compositeAppSettings?.toJson(), - 'playlist_url': instance.playlistUrl, - 'qualities': instance.qualities?.map((e) => e.toJson()).toList(), - 'start_unix_nano': instance.startUnixNano, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/hls_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/hls_settings.dart deleted file mode 100644 index 499c9fcb..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/hls_settings.dart +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'hls_settings.g.dart'; -part 'hls_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class HLSSettings with _$HLSSettings { - const HLSSettings({ - required this.autoOn, - required this.enabled, - this.layout, - required this.qualityTracks, - }); - - @override - final bool autoOn; - - @override - final bool enabled; - - @override - final LayoutSettings? layout; - - @override - final List qualityTracks; - - Map toJson() => _$HLSSettingsToJson(this); - - static HLSSettings fromJson(Map json) => - _$HLSSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/hls_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/hls_settings.freezed.dart deleted file mode 100644 index 19b20595..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/hls_settings.freezed.dart +++ /dev/null @@ -1,103 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'hls_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$HLSSettings { - bool get autoOn; - bool get enabled; - LayoutSettings? get layout; - List get qualityTracks; - - /// Create a copy of HLSSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $HLSSettingsCopyWith get copyWith => - _$HLSSettingsCopyWithImpl(this as HLSSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is HLSSettings && - (identical(other.autoOn, autoOn) || other.autoOn == autoOn) && - (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.layout, layout) || other.layout == layout) && - const DeepCollectionEquality() - .equals(other.qualityTracks, qualityTracks)); - } - - @override - int get hashCode => Object.hash(runtimeType, autoOn, enabled, layout, - const DeepCollectionEquality().hash(qualityTracks)); - - @override - String toString() { - return 'HLSSettings(autoOn: $autoOn, enabled: $enabled, layout: $layout, qualityTracks: $qualityTracks)'; - } -} - -/// @nodoc -abstract mixin class $HLSSettingsCopyWith<$Res> { - factory $HLSSettingsCopyWith( - HLSSettings value, $Res Function(HLSSettings) _then) = - _$HLSSettingsCopyWithImpl; - @useResult - $Res call( - {bool autoOn, - bool enabled, - LayoutSettings? layout, - List qualityTracks}); -} - -/// @nodoc -class _$HLSSettingsCopyWithImpl<$Res> implements $HLSSettingsCopyWith<$Res> { - _$HLSSettingsCopyWithImpl(this._self, this._then); - - final HLSSettings _self; - final $Res Function(HLSSettings) _then; - - /// Create a copy of HLSSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? autoOn = null, - Object? enabled = null, - Object? layout = freezed, - Object? qualityTracks = null, - }) { - return _then(HLSSettings( - autoOn: null == autoOn - ? _self.autoOn - : autoOn // ignore: cast_nullable_to_non_nullable - as bool, - enabled: null == enabled - ? _self.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - layout: freezed == layout - ? _self.layout - : layout // ignore: cast_nullable_to_non_nullable - as LayoutSettings?, - qualityTracks: null == qualityTracks - ? _self.qualityTracks - : qualityTracks // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/hls_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/hls_settings.g.dart deleted file mode 100644 index 5207d6d8..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/hls_settings.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'hls_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -HLSSettings _$HLSSettingsFromJson(Map json) => HLSSettings( - autoOn: json['auto_on'] as bool, - enabled: json['enabled'] as bool, - layout: json['layout'] == null - ? null - : LayoutSettings.fromJson(json['layout'] as Map), - qualityTracks: (json['quality_tracks'] as List) - .map((e) => e as String) - .toList(), - ); - -Map _$HLSSettingsToJson(HLSSettings instance) => - { - 'auto_on': instance.autoOn, - 'enabled': instance.enabled, - 'layout': instance.layout?.toJson(), - 'quality_tracks': instance.qualityTracks, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_audio_encoding_options.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_audio_encoding_options.dart deleted file mode 100644 index 983ec5b6..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_audio_encoding_options.dart +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'ingress_audio_encoding_options.g.dart'; -part 'ingress_audio_encoding_options.freezed.dart'; - -@JsonEnum(alwaysCreate: true) -enum IngressAudioEncodingOptionsChannels { - @JsonValue('1') - n1, - @JsonValue('2') - n2, - @JsonValue('_unknown') - unknown; -} - -@freezed -@immutable -@JsonSerializable() -class IngressAudioEncodingOptions with _$IngressAudioEncodingOptions { - const IngressAudioEncodingOptions({ - required this.bitrate, - required this.channels, - required this.enableDtx, - }); - - @override - final int bitrate; - - @override - @JsonKey(unknownEnumValue: IngressAudioEncodingOptionsChannels.unknown) - final IngressAudioEncodingOptionsChannels channels; - - @override - final bool enableDtx; - - Map toJson() => _$IngressAudioEncodingOptionsToJson(this); - - static IngressAudioEncodingOptions fromJson(Map json) => - _$IngressAudioEncodingOptionsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_audio_encoding_options.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_audio_encoding_options.freezed.dart deleted file mode 100644 index c9dda259..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_audio_encoding_options.freezed.dart +++ /dev/null @@ -1,99 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'ingress_audio_encoding_options.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$IngressAudioEncodingOptions { - int get bitrate; - IngressAudioEncodingOptionsChannels get channels; - bool get enableDtx; - - /// Create a copy of IngressAudioEncodingOptions - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $IngressAudioEncodingOptionsCopyWith - get copyWith => _$IngressAudioEncodingOptionsCopyWithImpl< - IngressAudioEncodingOptions>( - this as IngressAudioEncodingOptions, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is IngressAudioEncodingOptions && - (identical(other.bitrate, bitrate) || other.bitrate == bitrate) && - (identical(other.channels, channels) || - other.channels == channels) && - (identical(other.enableDtx, enableDtx) || - other.enableDtx == enableDtx)); - } - - @override - int get hashCode => Object.hash(runtimeType, bitrate, channels, enableDtx); - - @override - String toString() { - return 'IngressAudioEncodingOptions(bitrate: $bitrate, channels: $channels, enableDtx: $enableDtx)'; - } -} - -/// @nodoc -abstract mixin class $IngressAudioEncodingOptionsCopyWith<$Res> { - factory $IngressAudioEncodingOptionsCopyWith( - IngressAudioEncodingOptions value, - $Res Function(IngressAudioEncodingOptions) _then) = - _$IngressAudioEncodingOptionsCopyWithImpl; - @useResult - $Res call( - {int bitrate, - IngressAudioEncodingOptionsChannels channels, - bool enableDtx}); -} - -/// @nodoc -class _$IngressAudioEncodingOptionsCopyWithImpl<$Res> - implements $IngressAudioEncodingOptionsCopyWith<$Res> { - _$IngressAudioEncodingOptionsCopyWithImpl(this._self, this._then); - - final IngressAudioEncodingOptions _self; - final $Res Function(IngressAudioEncodingOptions) _then; - - /// Create a copy of IngressAudioEncodingOptions - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? bitrate = null, - Object? channels = null, - Object? enableDtx = null, - }) { - return _then(IngressAudioEncodingOptions( - bitrate: null == bitrate - ? _self.bitrate - : bitrate // ignore: cast_nullable_to_non_nullable - as int, - channels: null == channels - ? _self.channels - : channels // ignore: cast_nullable_to_non_nullable - as IngressAudioEncodingOptionsChannels, - enableDtx: null == enableDtx - ? _self.enableDtx - : enableDtx // ignore: cast_nullable_to_non_nullable - as bool, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_audio_encoding_options.g.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_audio_encoding_options.g.dart deleted file mode 100644 index 7b895831..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_audio_encoding_options.g.dart +++ /dev/null @@ -1,32 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ingress_audio_encoding_options.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -IngressAudioEncodingOptions _$IngressAudioEncodingOptionsFromJson( - Map json) => - IngressAudioEncodingOptions( - bitrate: (json['bitrate'] as num).toInt(), - channels: $enumDecode( - _$IngressAudioEncodingOptionsChannelsEnumMap, json['channels'], - unknownValue: IngressAudioEncodingOptionsChannels.unknown), - enableDtx: json['enable_dtx'] as bool, - ); - -Map _$IngressAudioEncodingOptionsToJson( - IngressAudioEncodingOptions instance) => - { - 'bitrate': instance.bitrate, - 'channels': - _$IngressAudioEncodingOptionsChannelsEnumMap[instance.channels]!, - 'enable_dtx': instance.enableDtx, - }; - -const _$IngressAudioEncodingOptionsChannelsEnumMap = { - IngressAudioEncodingOptionsChannels.n1: '1', - IngressAudioEncodingOptionsChannels.n2: '2', - IngressAudioEncodingOptionsChannels.unknown: '_unknown', -}; diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_settings.dart deleted file mode 100644 index fb75b8d6..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_settings.dart +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'ingress_settings.g.dart'; -part 'ingress_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class IngressSettings with _$IngressSettings { - const IngressSettings({ - this.audioEncodingOptions, - required this.enabled, - this.videoEncodingOptions, - }); - - @override - final IngressAudioEncodingOptions? audioEncodingOptions; - - @override - final bool enabled; - - @override - final Map? videoEncodingOptions; - - Map toJson() => _$IngressSettingsToJson(this); - - static IngressSettings fromJson(Map json) => - _$IngressSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_settings.freezed.dart deleted file mode 100644 index 5f3441ba..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_settings.freezed.dart +++ /dev/null @@ -1,98 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'ingress_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$IngressSettings { - IngressAudioEncodingOptions? get audioEncodingOptions; - bool get enabled; - Map? get videoEncodingOptions; - - /// Create a copy of IngressSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $IngressSettingsCopyWith get copyWith => - _$IngressSettingsCopyWithImpl( - this as IngressSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is IngressSettings && - (identical(other.audioEncodingOptions, audioEncodingOptions) || - other.audioEncodingOptions == audioEncodingOptions) && - (identical(other.enabled, enabled) || other.enabled == enabled) && - const DeepCollectionEquality() - .equals(other.videoEncodingOptions, videoEncodingOptions)); - } - - @override - int get hashCode => Object.hash(runtimeType, audioEncodingOptions, enabled, - const DeepCollectionEquality().hash(videoEncodingOptions)); - - @override - String toString() { - return 'IngressSettings(audioEncodingOptions: $audioEncodingOptions, enabled: $enabled, videoEncodingOptions: $videoEncodingOptions)'; - } -} - -/// @nodoc -abstract mixin class $IngressSettingsCopyWith<$Res> { - factory $IngressSettingsCopyWith( - IngressSettings value, $Res Function(IngressSettings) _then) = - _$IngressSettingsCopyWithImpl; - @useResult - $Res call( - {IngressAudioEncodingOptions? audioEncodingOptions, - bool enabled, - Map? videoEncodingOptions}); -} - -/// @nodoc -class _$IngressSettingsCopyWithImpl<$Res> - implements $IngressSettingsCopyWith<$Res> { - _$IngressSettingsCopyWithImpl(this._self, this._then); - - final IngressSettings _self; - final $Res Function(IngressSettings) _then; - - /// Create a copy of IngressSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? audioEncodingOptions = freezed, - Object? enabled = null, - Object? videoEncodingOptions = freezed, - }) { - return _then(IngressSettings( - audioEncodingOptions: freezed == audioEncodingOptions - ? _self.audioEncodingOptions - : audioEncodingOptions // ignore: cast_nullable_to_non_nullable - as IngressAudioEncodingOptions?, - enabled: null == enabled - ? _self.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - videoEncodingOptions: freezed == videoEncodingOptions - ? _self.videoEncodingOptions - : videoEncodingOptions // ignore: cast_nullable_to_non_nullable - as Map?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_settings.g.dart deleted file mode 100644 index 4a8ead1a..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_settings.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ingress_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -IngressSettings _$IngressSettingsFromJson(Map json) => - IngressSettings( - audioEncodingOptions: json['audio_encoding_options'] == null - ? null - : IngressAudioEncodingOptions.fromJson( - json['audio_encoding_options'] as Map), - enabled: json['enabled'] as bool, - videoEncodingOptions: - (json['video_encoding_options'] as Map?)?.map( - (k, e) => MapEntry( - k, IngressVideoEncodingOptions.fromJson(e as Map)), - ), - ); - -Map _$IngressSettingsToJson(IngressSettings instance) => - { - 'audio_encoding_options': instance.audioEncodingOptions?.toJson(), - 'enabled': instance.enabled, - 'video_encoding_options': - instance.videoEncodingOptions?.map((k, e) => MapEntry(k, e.toJson())), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/sfuid_last_seen.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_source_response.dart similarity index 53% rename from packages/stream_feeds/lib/src/generated/api/model/sfuid_last_seen.dart rename to packages/stream_feeds/lib/src/generated/api/model/ingress_source_response.dart index 291a4901..50e5431f 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/sfuid_last_seen.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/ingress_source_response.dart @@ -10,31 +10,30 @@ import 'package:stream_core/stream_core.dart' as core; import '../models.dart'; -part 'sfuid_last_seen.g.dart'; -part 'sfuid_last_seen.freezed.dart'; +part 'ingress_source_response.g.dart'; +part 'ingress_source_response.freezed.dart'; @freezed @immutable @JsonSerializable() -class SFUIDLastSeen with _$SFUIDLastSeen { - const SFUIDLastSeen({ - required this.id, - required this.lastSeen, - required this.processStartTime, +class IngressSourceResponse with _$IngressSourceResponse { + const IngressSourceResponse({ + required this.fps, + required this.height, + required this.width, }); @override - final String id; + final int fps; @override - @EpochDateTimeConverter() - final DateTime lastSeen; + final int height; @override - final int processStartTime; + final int width; - Map toJson() => _$SFUIDLastSeenToJson(this); + Map toJson() => _$IngressSourceResponseToJson(this); - static SFUIDLastSeen fromJson(Map json) => - _$SFUIDLastSeenFromJson(json); + static IngressSourceResponse fromJson(Map json) => + _$IngressSourceResponseFromJson(json); } diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_source_response.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_source_response.freezed.dart new file mode 100644 index 00000000..e84d308f --- /dev/null +++ b/packages/stream_feeds/lib/src/generated/api/model/ingress_source_response.freezed.dart @@ -0,0 +1,92 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'ingress_source_response.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$IngressSourceResponse { + int get fps; + int get height; + int get width; + + /// Create a copy of IngressSourceResponse + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $IngressSourceResponseCopyWith get copyWith => + _$IngressSourceResponseCopyWithImpl( + this as IngressSourceResponse, _$identity); + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is IngressSourceResponse && + (identical(other.fps, fps) || other.fps == fps) && + (identical(other.height, height) || other.height == height) && + (identical(other.width, width) || other.width == width)); + } + + @override + int get hashCode => Object.hash(runtimeType, fps, height, width); + + @override + String toString() { + return 'IngressSourceResponse(fps: $fps, height: $height, width: $width)'; + } +} + +/// @nodoc +abstract mixin class $IngressSourceResponseCopyWith<$Res> { + factory $IngressSourceResponseCopyWith(IngressSourceResponse value, + $Res Function(IngressSourceResponse) _then) = + _$IngressSourceResponseCopyWithImpl; + @useResult + $Res call({int fps, int height, int width}); +} + +/// @nodoc +class _$IngressSourceResponseCopyWithImpl<$Res> + implements $IngressSourceResponseCopyWith<$Res> { + _$IngressSourceResponseCopyWithImpl(this._self, this._then); + + final IngressSourceResponse _self; + final $Res Function(IngressSourceResponse) _then; + + /// Create a copy of IngressSourceResponse + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? fps = null, + Object? height = null, + Object? width = null, + }) { + return _then(IngressSourceResponse( + fps: null == fps + ? _self.fps + : fps // ignore: cast_nullable_to_non_nullable + as int, + height: null == height + ? _self.height + : height // ignore: cast_nullable_to_non_nullable + as int, + width: null == width + ? _self.width + : width // ignore: cast_nullable_to_non_nullable + as int, + )); + } +} + +// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_source_response.g.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_source_response.g.dart new file mode 100644 index 00000000..f076d2b4 --- /dev/null +++ b/packages/stream_feeds/lib/src/generated/api/model/ingress_source_response.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'ingress_source_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +IngressSourceResponse _$IngressSourceResponseFromJson( + Map json) => + IngressSourceResponse( + fps: (json['fps'] as num).toInt(), + height: (json['height'] as num).toInt(), + width: (json['width'] as num).toInt(), + ); + +Map _$IngressSourceResponseToJson( + IngressSourceResponse instance) => + { + 'fps': instance.fps, + 'height': instance.height, + 'width': instance.width, + }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_options.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_options.freezed.dart deleted file mode 100644 index 8ac3b21f..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_options.freezed.dart +++ /dev/null @@ -1,81 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'ingress_video_encoding_options.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$IngressVideoEncodingOptions { - List get layers; - - /// Create a copy of IngressVideoEncodingOptions - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $IngressVideoEncodingOptionsCopyWith - get copyWith => _$IngressVideoEncodingOptionsCopyWithImpl< - IngressVideoEncodingOptions>( - this as IngressVideoEncodingOptions, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is IngressVideoEncodingOptions && - const DeepCollectionEquality().equals(other.layers, layers)); - } - - @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(layers)); - - @override - String toString() { - return 'IngressVideoEncodingOptions(layers: $layers)'; - } -} - -/// @nodoc -abstract mixin class $IngressVideoEncodingOptionsCopyWith<$Res> { - factory $IngressVideoEncodingOptionsCopyWith( - IngressVideoEncodingOptions value, - $Res Function(IngressVideoEncodingOptions) _then) = - _$IngressVideoEncodingOptionsCopyWithImpl; - @useResult - $Res call({List layers}); -} - -/// @nodoc -class _$IngressVideoEncodingOptionsCopyWithImpl<$Res> - implements $IngressVideoEncodingOptionsCopyWith<$Res> { - _$IngressVideoEncodingOptionsCopyWithImpl(this._self, this._then); - - final IngressVideoEncodingOptions _self; - final $Res Function(IngressVideoEncodingOptions) _then; - - /// Create a copy of IngressVideoEncodingOptions - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? layers = null, - }) { - return _then(IngressVideoEncodingOptions( - layers: null == layers - ? _self.layers - : layers // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_options.g.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_options.g.dart deleted file mode 100644 index 48919d4a..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_options.g.dart +++ /dev/null @@ -1,21 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ingress_video_encoding_options.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -IngressVideoEncodingOptions _$IngressVideoEncodingOptionsFromJson( - Map json) => - IngressVideoEncodingOptions( - layers: (json['layers'] as List) - .map((e) => IngressVideoLayer.fromJson(e as Map)) - .toList(), - ); - -Map _$IngressVideoEncodingOptionsToJson( - IngressVideoEncodingOptions instance) => - { - 'layers': instance.layers.map((e) => e.toJson()).toList(), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.dart index 3d26eef8..fef5ce99 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.dart @@ -19,11 +19,15 @@ part 'ingress_video_encoding_response.freezed.dart'; class IngressVideoEncodingResponse with _$IngressVideoEncodingResponse { const IngressVideoEncodingResponse({ required this.layers, + required this.source, }); @override final List layers; + @override + final IngressSourceResponse source; + Map toJson() => _$IngressVideoEncodingResponseToJson(this); static IngressVideoEncodingResponse fromJson(Map json) => diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.freezed.dart index 3f506c05..b9499350 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.freezed.dart @@ -16,6 +16,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$IngressVideoEncodingResponse { List get layers; + IngressSourceResponse get source; /// Create a copy of IngressVideoEncodingResponse /// with the given fields replaced by the non-null parameter values. @@ -31,16 +32,17 @@ mixin _$IngressVideoEncodingResponse { return identical(this, other) || (other.runtimeType == runtimeType && other is IngressVideoEncodingResponse && - const DeepCollectionEquality().equals(other.layers, layers)); + const DeepCollectionEquality().equals(other.layers, layers) && + (identical(other.source, source) || other.source == source)); } @override - int get hashCode => - Object.hash(runtimeType, const DeepCollectionEquality().hash(layers)); + int get hashCode => Object.hash( + runtimeType, const DeepCollectionEquality().hash(layers), source); @override String toString() { - return 'IngressVideoEncodingResponse(layers: $layers)'; + return 'IngressVideoEncodingResponse(layers: $layers, source: $source)'; } } @@ -51,7 +53,8 @@ abstract mixin class $IngressVideoEncodingResponseCopyWith<$Res> { $Res Function(IngressVideoEncodingResponse) _then) = _$IngressVideoEncodingResponseCopyWithImpl; @useResult - $Res call({List layers}); + $Res call( + {List layers, IngressSourceResponse source}); } /// @nodoc @@ -68,12 +71,17 @@ class _$IngressVideoEncodingResponseCopyWithImpl<$Res> @override $Res call({ Object? layers = null, + Object? source = null, }) { return _then(IngressVideoEncodingResponse( layers: null == layers ? _self.layers : layers // ignore: cast_nullable_to_non_nullable as List, + source: null == source + ? _self.source + : source // ignore: cast_nullable_to_non_nullable + as IngressSourceResponse, )); } } diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.g.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.g.dart index 2b3ea771..b05a127a 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_response.g.dart @@ -13,10 +13,13 @@ IngressVideoEncodingResponse _$IngressVideoEncodingResponseFromJson( .map((e) => IngressVideoLayerResponse.fromJson(e as Map)) .toList(), + source: IngressSourceResponse.fromJson( + json['source'] as Map), ); Map _$IngressVideoEncodingResponseToJson( IngressVideoEncodingResponse instance) => { 'layers': instance.layers.map((e) => e.toJson()).toList(), + 'source': instance.source.toJson(), }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_layer.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_layer.dart deleted file mode 100644 index c4f68202..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_layer.dart +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'ingress_video_layer.g.dart'; -part 'ingress_video_layer.freezed.dart'; - -@JsonEnum(alwaysCreate: true) -enum IngressVideoLayerCodec { - @JsonValue('h264') - h264, - @JsonValue('vp8') - vp8, - @JsonValue('_unknown') - unknown; -} - -@freezed -@immutable -@JsonSerializable() -class IngressVideoLayer with _$IngressVideoLayer { - const IngressVideoLayer({ - required this.bitrate, - required this.codec, - required this.frameRate, - required this.maxDimension, - required this.minDimension, - }); - - @override - final int bitrate; - - @override - @JsonKey(unknownEnumValue: IngressVideoLayerCodec.unknown) - final IngressVideoLayerCodec codec; - - @override - final int frameRate; - - @override - final int maxDimension; - - @override - final int minDimension; - - Map toJson() => _$IngressVideoLayerToJson(this); - - static IngressVideoLayer fromJson(Map json) => - _$IngressVideoLayerFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_layer.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_layer.freezed.dart deleted file mode 100644 index 1cf3a89a..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_layer.freezed.dart +++ /dev/null @@ -1,115 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'ingress_video_layer.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$IngressVideoLayer { - int get bitrate; - IngressVideoLayerCodec get codec; - int get frameRate; - int get maxDimension; - int get minDimension; - - /// Create a copy of IngressVideoLayer - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $IngressVideoLayerCopyWith get copyWith => - _$IngressVideoLayerCopyWithImpl( - this as IngressVideoLayer, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is IngressVideoLayer && - (identical(other.bitrate, bitrate) || other.bitrate == bitrate) && - (identical(other.codec, codec) || other.codec == codec) && - (identical(other.frameRate, frameRate) || - other.frameRate == frameRate) && - (identical(other.maxDimension, maxDimension) || - other.maxDimension == maxDimension) && - (identical(other.minDimension, minDimension) || - other.minDimension == minDimension)); - } - - @override - int get hashCode => Object.hash( - runtimeType, bitrate, codec, frameRate, maxDimension, minDimension); - - @override - String toString() { - return 'IngressVideoLayer(bitrate: $bitrate, codec: $codec, frameRate: $frameRate, maxDimension: $maxDimension, minDimension: $minDimension)'; - } -} - -/// @nodoc -abstract mixin class $IngressVideoLayerCopyWith<$Res> { - factory $IngressVideoLayerCopyWith( - IngressVideoLayer value, $Res Function(IngressVideoLayer) _then) = - _$IngressVideoLayerCopyWithImpl; - @useResult - $Res call( - {int bitrate, - IngressVideoLayerCodec codec, - int frameRate, - int maxDimension, - int minDimension}); -} - -/// @nodoc -class _$IngressVideoLayerCopyWithImpl<$Res> - implements $IngressVideoLayerCopyWith<$Res> { - _$IngressVideoLayerCopyWithImpl(this._self, this._then); - - final IngressVideoLayer _self; - final $Res Function(IngressVideoLayer) _then; - - /// Create a copy of IngressVideoLayer - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? bitrate = null, - Object? codec = null, - Object? frameRate = null, - Object? maxDimension = null, - Object? minDimension = null, - }) { - return _then(IngressVideoLayer( - bitrate: null == bitrate - ? _self.bitrate - : bitrate // ignore: cast_nullable_to_non_nullable - as int, - codec: null == codec - ? _self.codec - : codec // ignore: cast_nullable_to_non_nullable - as IngressVideoLayerCodec, - frameRate: null == frameRate - ? _self.frameRate - : frameRate // ignore: cast_nullable_to_non_nullable - as int, - maxDimension: null == maxDimension - ? _self.maxDimension - : maxDimension // ignore: cast_nullable_to_non_nullable - as int, - minDimension: null == minDimension - ? _self.minDimension - : minDimension // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_layer.g.dart b/packages/stream_feeds/lib/src/generated/api/model/ingress_video_layer.g.dart deleted file mode 100644 index 681a9471..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_layer.g.dart +++ /dev/null @@ -1,32 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ingress_video_layer.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -IngressVideoLayer _$IngressVideoLayerFromJson(Map json) => - IngressVideoLayer( - bitrate: (json['bitrate'] as num).toInt(), - codec: $enumDecode(_$IngressVideoLayerCodecEnumMap, json['codec'], - unknownValue: IngressVideoLayerCodec.unknown), - frameRate: (json['frame_rate'] as num).toInt(), - maxDimension: (json['max_dimension'] as num).toInt(), - minDimension: (json['min_dimension'] as num).toInt(), - ); - -Map _$IngressVideoLayerToJson(IngressVideoLayer instance) => - { - 'bitrate': instance.bitrate, - 'codec': _$IngressVideoLayerCodecEnumMap[instance.codec]!, - 'frame_rate': instance.frameRate, - 'max_dimension': instance.maxDimension, - 'min_dimension': instance.minDimension, - }; - -const _$IngressVideoLayerCodecEnumMap = { - IngressVideoLayerCodec.h264: 'h264', - IngressVideoLayerCodec.vp8: 'vp8', - IngressVideoLayerCodec.unknown: '_unknown', -}; diff --git a/packages/stream_feeds/lib/src/generated/api/model/layout_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/layout_settings.dart deleted file mode 100644 index c240fd3b..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/layout_settings.dart +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'layout_settings.g.dart'; -part 'layout_settings.freezed.dart'; - -@JsonEnum(alwaysCreate: true) -enum LayoutSettingsName { - @JsonValue('custom') - custom, - @JsonValue('grid') - grid, - @JsonValue('mobile') - mobile, - @JsonValue('single-participant') - singleParticipant, - @JsonValue('spotlight') - spotlight, - @JsonValue('_unknown') - unknown; -} - -@freezed -@immutable -@JsonSerializable() -class LayoutSettings with _$LayoutSettings { - const LayoutSettings({ - this.detectOrientation, - required this.externalAppUrl, - required this.externalCssUrl, - required this.name, - this.options, - }); - - @override - final bool? detectOrientation; - - @override - final String externalAppUrl; - - @override - final String externalCssUrl; - - @override - @JsonKey(unknownEnumValue: LayoutSettingsName.unknown) - final LayoutSettingsName name; - - @override - final Map? options; - - Map toJson() => _$LayoutSettingsToJson(this); - - static LayoutSettings fromJson(Map json) => - _$LayoutSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/layout_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/layout_settings.freezed.dart deleted file mode 100644 index 229224e2..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/layout_settings.freezed.dart +++ /dev/null @@ -1,120 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'layout_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$LayoutSettings { - bool? get detectOrientation; - String get externalAppUrl; - String get externalCssUrl; - LayoutSettingsName get name; - Map? get options; - - /// Create a copy of LayoutSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $LayoutSettingsCopyWith get copyWith => - _$LayoutSettingsCopyWithImpl( - this as LayoutSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is LayoutSettings && - (identical(other.detectOrientation, detectOrientation) || - other.detectOrientation == detectOrientation) && - (identical(other.externalAppUrl, externalAppUrl) || - other.externalAppUrl == externalAppUrl) && - (identical(other.externalCssUrl, externalCssUrl) || - other.externalCssUrl == externalCssUrl) && - (identical(other.name, name) || other.name == name) && - const DeepCollectionEquality().equals(other.options, options)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - detectOrientation, - externalAppUrl, - externalCssUrl, - name, - const DeepCollectionEquality().hash(options)); - - @override - String toString() { - return 'LayoutSettings(detectOrientation: $detectOrientation, externalAppUrl: $externalAppUrl, externalCssUrl: $externalCssUrl, name: $name, options: $options)'; - } -} - -/// @nodoc -abstract mixin class $LayoutSettingsCopyWith<$Res> { - factory $LayoutSettingsCopyWith( - LayoutSettings value, $Res Function(LayoutSettings) _then) = - _$LayoutSettingsCopyWithImpl; - @useResult - $Res call( - {bool? detectOrientation, - String externalAppUrl, - String externalCssUrl, - LayoutSettingsName name, - Map? options}); -} - -/// @nodoc -class _$LayoutSettingsCopyWithImpl<$Res> - implements $LayoutSettingsCopyWith<$Res> { - _$LayoutSettingsCopyWithImpl(this._self, this._then); - - final LayoutSettings _self; - final $Res Function(LayoutSettings) _then; - - /// Create a copy of LayoutSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? detectOrientation = freezed, - Object? externalAppUrl = null, - Object? externalCssUrl = null, - Object? name = null, - Object? options = freezed, - }) { - return _then(LayoutSettings( - detectOrientation: freezed == detectOrientation - ? _self.detectOrientation - : detectOrientation // ignore: cast_nullable_to_non_nullable - as bool?, - externalAppUrl: null == externalAppUrl - ? _self.externalAppUrl - : externalAppUrl // ignore: cast_nullable_to_non_nullable - as String, - externalCssUrl: null == externalCssUrl - ? _self.externalCssUrl - : externalCssUrl // ignore: cast_nullable_to_non_nullable - as String, - name: null == name - ? _self.name - : name // ignore: cast_nullable_to_non_nullable - as LayoutSettingsName, - options: freezed == options - ? _self.options - : options // ignore: cast_nullable_to_non_nullable - as Map?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/layout_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/layout_settings.g.dart deleted file mode 100644 index 0c425fdd..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/layout_settings.g.dart +++ /dev/null @@ -1,35 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'layout_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -LayoutSettings _$LayoutSettingsFromJson(Map json) => - LayoutSettings( - detectOrientation: json['detect_orientation'] as bool?, - externalAppUrl: json['external_app_url'] as String, - externalCssUrl: json['external_css_url'] as String, - name: $enumDecode(_$LayoutSettingsNameEnumMap, json['name'], - unknownValue: LayoutSettingsName.unknown), - options: json['options'] as Map?, - ); - -Map _$LayoutSettingsToJson(LayoutSettings instance) => - { - 'detect_orientation': instance.detectOrientation, - 'external_app_url': instance.externalAppUrl, - 'external_css_url': instance.externalCssUrl, - 'name': _$LayoutSettingsNameEnumMap[instance.name]!, - 'options': instance.options, - }; - -const _$LayoutSettingsNameEnumMap = { - LayoutSettingsName.custom: 'custom', - LayoutSettingsName.grid: 'grid', - LayoutSettingsName.mobile: 'mobile', - LayoutSettingsName.singleParticipant: 'single-participant', - LayoutSettingsName.spotlight: 'spotlight', - LayoutSettingsName.unknown: '_unknown', -}; diff --git a/packages/stream_feeds/lib/src/generated/api/model/limits_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/limits_settings.dart deleted file mode 100644 index 9a6c0e82..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/limits_settings.dart +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'limits_settings.g.dart'; -part 'limits_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class LimitsSettings with _$LimitsSettings { - const LimitsSettings({ - this.maxDurationSeconds, - this.maxParticipants, - this.maxParticipantsExcludeOwner, - required this.maxParticipantsExcludeRoles, - }); - - @override - final int? maxDurationSeconds; - - @override - final int? maxParticipants; - - @override - final bool? maxParticipantsExcludeOwner; - - @override - final List maxParticipantsExcludeRoles; - - Map toJson() => _$LimitsSettingsToJson(this); - - static LimitsSettings fromJson(Map json) => - _$LimitsSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/limits_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/limits_settings.freezed.dart deleted file mode 100644 index 1d1b5353..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/limits_settings.freezed.dart +++ /dev/null @@ -1,115 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'limits_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$LimitsSettings { - int? get maxDurationSeconds; - int? get maxParticipants; - bool? get maxParticipantsExcludeOwner; - List get maxParticipantsExcludeRoles; - - /// Create a copy of LimitsSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $LimitsSettingsCopyWith get copyWith => - _$LimitsSettingsCopyWithImpl( - this as LimitsSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is LimitsSettings && - (identical(other.maxDurationSeconds, maxDurationSeconds) || - other.maxDurationSeconds == maxDurationSeconds) && - (identical(other.maxParticipants, maxParticipants) || - other.maxParticipants == maxParticipants) && - (identical(other.maxParticipantsExcludeOwner, - maxParticipantsExcludeOwner) || - other.maxParticipantsExcludeOwner == - maxParticipantsExcludeOwner) && - const DeepCollectionEquality().equals( - other.maxParticipantsExcludeRoles, - maxParticipantsExcludeRoles)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - maxDurationSeconds, - maxParticipants, - maxParticipantsExcludeOwner, - const DeepCollectionEquality().hash(maxParticipantsExcludeRoles)); - - @override - String toString() { - return 'LimitsSettings(maxDurationSeconds: $maxDurationSeconds, maxParticipants: $maxParticipants, maxParticipantsExcludeOwner: $maxParticipantsExcludeOwner, maxParticipantsExcludeRoles: $maxParticipantsExcludeRoles)'; - } -} - -/// @nodoc -abstract mixin class $LimitsSettingsCopyWith<$Res> { - factory $LimitsSettingsCopyWith( - LimitsSettings value, $Res Function(LimitsSettings) _then) = - _$LimitsSettingsCopyWithImpl; - @useResult - $Res call( - {int? maxDurationSeconds, - int? maxParticipants, - bool? maxParticipantsExcludeOwner, - List maxParticipantsExcludeRoles}); -} - -/// @nodoc -class _$LimitsSettingsCopyWithImpl<$Res> - implements $LimitsSettingsCopyWith<$Res> { - _$LimitsSettingsCopyWithImpl(this._self, this._then); - - final LimitsSettings _self; - final $Res Function(LimitsSettings) _then; - - /// Create a copy of LimitsSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? maxDurationSeconds = freezed, - Object? maxParticipants = freezed, - Object? maxParticipantsExcludeOwner = freezed, - Object? maxParticipantsExcludeRoles = null, - }) { - return _then(LimitsSettings( - maxDurationSeconds: freezed == maxDurationSeconds - ? _self.maxDurationSeconds - : maxDurationSeconds // ignore: cast_nullable_to_non_nullable - as int?, - maxParticipants: freezed == maxParticipants - ? _self.maxParticipants - : maxParticipants // ignore: cast_nullable_to_non_nullable - as int?, - maxParticipantsExcludeOwner: freezed == maxParticipantsExcludeOwner - ? _self.maxParticipantsExcludeOwner - : maxParticipantsExcludeOwner // ignore: cast_nullable_to_non_nullable - as bool?, - maxParticipantsExcludeRoles: null == maxParticipantsExcludeRoles - ? _self.maxParticipantsExcludeRoles - : maxParticipantsExcludeRoles // ignore: cast_nullable_to_non_nullable - as List, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/limits_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/limits_settings.g.dart deleted file mode 100644 index a1881121..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/limits_settings.g.dart +++ /dev/null @@ -1,27 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'limits_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -LimitsSettings _$LimitsSettingsFromJson(Map json) => - LimitsSettings( - maxDurationSeconds: (json['max_duration_seconds'] as num?)?.toInt(), - maxParticipants: (json['max_participants'] as num?)?.toInt(), - maxParticipantsExcludeOwner: - json['max_participants_exclude_owner'] as bool?, - maxParticipantsExcludeRoles: - (json['max_participants_exclude_roles'] as List) - .map((e) => e as String) - .toList(), - ); - -Map _$LimitsSettingsToJson(LimitsSettings instance) => - { - 'max_duration_seconds': instance.maxDurationSeconds, - 'max_participants': instance.maxParticipants, - 'max_participants_exclude_owner': instance.maxParticipantsExcludeOwner, - 'max_participants_exclude_roles': instance.maxParticipantsExcludeRoles, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/member_lookup.dart b/packages/stream_feeds/lib/src/generated/api/model/member_lookup.dart deleted file mode 100644 index a6a58a45..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/member_lookup.dart +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'member_lookup.g.dart'; -part 'member_lookup.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class MemberLookup with _$MemberLookup { - const MemberLookup({ - required this.limit, - }); - - @override - final int limit; - - Map toJson() => _$MemberLookupToJson(this); - - static MemberLookup fromJson(Map json) => - _$MemberLookupFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/member_lookup.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/member_lookup.freezed.dart deleted file mode 100644 index 112d7e9b..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/member_lookup.freezed.dart +++ /dev/null @@ -1,77 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'member_lookup.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$MemberLookup { - int get limit; - - /// Create a copy of MemberLookup - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $MemberLookupCopyWith get copyWith => - _$MemberLookupCopyWithImpl( - this as MemberLookup, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is MemberLookup && - (identical(other.limit, limit) || other.limit == limit)); - } - - @override - int get hashCode => Object.hash(runtimeType, limit); - - @override - String toString() { - return 'MemberLookup(limit: $limit)'; - } -} - -/// @nodoc -abstract mixin class $MemberLookupCopyWith<$Res> { - factory $MemberLookupCopyWith( - MemberLookup value, $Res Function(MemberLookup) _then) = - _$MemberLookupCopyWithImpl; - @useResult - $Res call({int limit}); -} - -/// @nodoc -class _$MemberLookupCopyWithImpl<$Res> implements $MemberLookupCopyWith<$Res> { - _$MemberLookupCopyWithImpl(this._self, this._then); - - final MemberLookup _self; - final $Res Function(MemberLookup) _then; - - /// Create a copy of MemberLookup - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? limit = null, - }) { - return _then(MemberLookup( - limit: null == limit - ? _self.limit - : limit // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/member_lookup.g.dart b/packages/stream_feeds/lib/src/generated/api/model/member_lookup.g.dart deleted file mode 100644 index 24b64ce5..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/member_lookup.g.dart +++ /dev/null @@ -1,16 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'member_lookup.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -MemberLookup _$MemberLookupFromJson(Map json) => MemberLookup( - limit: (json['limit'] as num).toInt(), - ); - -Map _$MemberLookupToJson(MemberLookup instance) => - { - 'limit': instance.limit, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.dart b/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.dart index cc6c531b..f67432e0 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.dart @@ -19,28 +19,41 @@ part 'moderation_custom_action_event.freezed.dart'; class ModerationCustomActionEvent extends core.WsEvent with _$ModerationCustomActionEvent { const ModerationCustomActionEvent({ + required this.actionId, + this.actionOptions, required this.createdAt, - this.item, + required this.custom, this.message, + this.receivedAt, + required this.reviewQueueItem, required this.type, - this.user, }); + @override + final String actionId; + + @override + final Map? actionOptions; + @override @EpochDateTimeConverter() final DateTime createdAt; @override - final ReviewQueueItem? item; + final Map custom; @override - final Message? message; + final MessageResponse? message; @override - final String type; + @EpochDateTimeConverter() + final DateTime? receivedAt; + + @override + final ReviewQueueItemResponse reviewQueueItem; @override - final User? user; + final String type; Map toJson() => _$ModerationCustomActionEventToJson(this); diff --git a/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.freezed.dart index 02d24110..1c403200 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.freezed.dart @@ -15,11 +15,14 @@ T _$identity(T value) => value; /// @nodoc mixin _$ModerationCustomActionEvent { + String get actionId; + Map? get actionOptions; DateTime get createdAt; - ReviewQueueItem? get item; - Message? get message; + Map get custom; + MessageResponse? get message; + DateTime? get receivedAt; + ReviewQueueItemResponse get reviewQueueItem; String get type; - User? get user; /// Create a copy of ModerationCustomActionEvent /// with the given fields replaced by the non-null parameter values. @@ -36,21 +39,37 @@ mixin _$ModerationCustomActionEvent { (other.runtimeType == runtimeType && other is ModerationCustomActionEvent && super == other && + (identical(other.actionId, actionId) || + other.actionId == actionId) && + const DeepCollectionEquality() + .equals(other.actionOptions, actionOptions) && (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && - (identical(other.item, item) || other.item == item) && + const DeepCollectionEquality().equals(other.custom, custom) && (identical(other.message, message) || other.message == message) && - (identical(other.type, type) || other.type == type) && - (identical(other.user, user) || other.user == user)); + (identical(other.receivedAt, receivedAt) || + other.receivedAt == receivedAt) && + (identical(other.reviewQueueItem, reviewQueueItem) || + other.reviewQueueItem == reviewQueueItem) && + (identical(other.type, type) || other.type == type)); } @override int get hashCode => Object.hash( - runtimeType, super.hashCode, createdAt, item, message, type, user); + runtimeType, + super.hashCode, + actionId, + const DeepCollectionEquality().hash(actionOptions), + createdAt, + const DeepCollectionEquality().hash(custom), + message, + receivedAt, + reviewQueueItem, + type); @override String toString() { - return 'ModerationCustomActionEvent(createdAt: $createdAt, item: $item, message: $message, type: $type, user: $user)'; + return 'ModerationCustomActionEvent(actionId: $actionId, actionOptions: $actionOptions, createdAt: $createdAt, custom: $custom, message: $message, receivedAt: $receivedAt, reviewQueueItem: $reviewQueueItem, type: $type)'; } } @@ -62,11 +81,14 @@ abstract mixin class $ModerationCustomActionEventCopyWith<$Res> { _$ModerationCustomActionEventCopyWithImpl; @useResult $Res call( - {DateTime createdAt, - ReviewQueueItem? item, - Message? message, - String type, - User? user}); + {String actionId, + Map? actionOptions, + DateTime createdAt, + Map custom, + MessageResponse? message, + DateTime? receivedAt, + ReviewQueueItemResponse reviewQueueItem, + String type}); } /// @nodoc @@ -82,33 +104,48 @@ class _$ModerationCustomActionEventCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ + Object? actionId = null, + Object? actionOptions = freezed, Object? createdAt = null, - Object? item = freezed, + Object? custom = null, Object? message = freezed, + Object? receivedAt = freezed, + Object? reviewQueueItem = null, Object? type = null, - Object? user = freezed, }) { return _then(ModerationCustomActionEvent( + actionId: null == actionId + ? _self.actionId + : actionId // ignore: cast_nullable_to_non_nullable + as String, + actionOptions: freezed == actionOptions + ? _self.actionOptions + : actionOptions // ignore: cast_nullable_to_non_nullable + as Map?, createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, - item: freezed == item - ? _self.item - : item // ignore: cast_nullable_to_non_nullable - as ReviewQueueItem?, + custom: null == custom + ? _self.custom + : custom // ignore: cast_nullable_to_non_nullable + as Map, message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable - as Message?, + as MessageResponse?, + receivedAt: freezed == receivedAt + ? _self.receivedAt + : receivedAt // ignore: cast_nullable_to_non_nullable + as DateTime?, + reviewQueueItem: null == reviewQueueItem + ? _self.reviewQueueItem + : reviewQueueItem // ignore: cast_nullable_to_non_nullable + as ReviewQueueItemResponse, type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable as String, - user: freezed == user - ? _self.user - : user // ignore: cast_nullable_to_non_nullable - as User?, )); } } diff --git a/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.g.dart b/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.g.dart index d0e1957d..66e7f024 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/moderation_custom_action_event.g.dart @@ -9,26 +9,43 @@ part of 'moderation_custom_action_event.dart'; ModerationCustomActionEvent _$ModerationCustomActionEventFromJson( Map json) => ModerationCustomActionEvent( + actionId: json['action_id'] as String, + actionOptions: json['action_options'] as Map?, createdAt: const EpochDateTimeConverter() .fromJson((json['created_at'] as num).toInt()), - item: json['item'] == null - ? null - : ReviewQueueItem.fromJson(json['item'] as Map), + custom: json['custom'] as Map, message: json['message'] == null ? null - : Message.fromJson(json['message'] as Map), + : MessageResponse.fromJson(json['message'] as Map), + receivedAt: _$JsonConverterFromJson( + json['received_at'], const EpochDateTimeConverter().fromJson), + reviewQueueItem: ReviewQueueItemResponse.fromJson( + json['review_queue_item'] as Map), type: json['type'] as String, - user: json['user'] == null - ? null - : User.fromJson(json['user'] as Map), ); Map _$ModerationCustomActionEventToJson( ModerationCustomActionEvent instance) => { + 'action_id': instance.actionId, + 'action_options': instance.actionOptions, 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), - 'item': instance.item?.toJson(), + 'custom': instance.custom, 'message': instance.message?.toJson(), + 'received_at': _$JsonConverterToJson( + instance.receivedAt, const EpochDateTimeConverter().toJson), + 'review_queue_item': instance.reviewQueueItem.toJson(), 'type': instance.type, - 'user': instance.user?.toJson(), }; + +Value? _$JsonConverterFromJson( + Object? json, + Value? Function(Json json) fromJson, +) => + json == null ? null : fromJson(json as Json); + +Json? _$JsonConverterToJson( + Value? value, + Json? Function(Value value) toJson, +) => + value == null ? null : toJson(value); diff --git a/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.dart b/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.dart index 3169d9f7..fbddfb8b 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.dart @@ -20,10 +20,11 @@ class ModerationMarkReviewedEvent extends core.WsEvent with _$ModerationMarkReviewedEvent { const ModerationMarkReviewedEvent({ required this.createdAt, - this.item, + required this.custom, + required this.item, this.message, + this.receivedAt, required this.type, - this.user, }); @override @@ -31,16 +32,20 @@ class ModerationMarkReviewedEvent extends core.WsEvent final DateTime createdAt; @override - final ReviewQueueItem? item; + final Map custom; @override - final Message? message; + final ReviewQueueItemResponse item; @override - final String type; + final MessageResponse? message; @override - final User? user; + @EpochDateTimeConverter() + final DateTime? receivedAt; + + @override + final String type; Map toJson() => _$ModerationMarkReviewedEventToJson(this); diff --git a/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.freezed.dart index c1c48603..1d044d90 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.freezed.dart @@ -16,10 +16,11 @@ T _$identity(T value) => value; /// @nodoc mixin _$ModerationMarkReviewedEvent { DateTime get createdAt; - ReviewQueueItem? get item; - Message? get message; + Map get custom; + ReviewQueueItemResponse get item; + MessageResponse? get message; + DateTime? get receivedAt; String get type; - User? get user; /// Create a copy of ModerationMarkReviewedEvent /// with the given fields replaced by the non-null parameter values. @@ -38,19 +39,28 @@ mixin _$ModerationMarkReviewedEvent { super == other && (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && + const DeepCollectionEquality().equals(other.custom, custom) && (identical(other.item, item) || other.item == item) && (identical(other.message, message) || other.message == message) && - (identical(other.type, type) || other.type == type) && - (identical(other.user, user) || other.user == user)); + (identical(other.receivedAt, receivedAt) || + other.receivedAt == receivedAt) && + (identical(other.type, type) || other.type == type)); } @override int get hashCode => Object.hash( - runtimeType, super.hashCode, createdAt, item, message, type, user); + runtimeType, + super.hashCode, + createdAt, + const DeepCollectionEquality().hash(custom), + item, + message, + receivedAt, + type); @override String toString() { - return 'ModerationMarkReviewedEvent(createdAt: $createdAt, item: $item, message: $message, type: $type, user: $user)'; + return 'ModerationMarkReviewedEvent(createdAt: $createdAt, custom: $custom, item: $item, message: $message, receivedAt: $receivedAt, type: $type)'; } } @@ -63,10 +73,11 @@ abstract mixin class $ModerationMarkReviewedEventCopyWith<$Res> { @useResult $Res call( {DateTime createdAt, - ReviewQueueItem? item, - Message? message, - String type, - User? user}); + Map custom, + ReviewQueueItemResponse item, + MessageResponse? message, + DateTime? receivedAt, + String type}); } /// @nodoc @@ -83,32 +94,37 @@ class _$ModerationMarkReviewedEventCopyWithImpl<$Res> @override $Res call({ Object? createdAt = null, - Object? item = freezed, + Object? custom = null, + Object? item = null, Object? message = freezed, + Object? receivedAt = freezed, Object? type = null, - Object? user = freezed, }) { return _then(ModerationMarkReviewedEvent( createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime, - item: freezed == item + custom: null == custom + ? _self.custom + : custom // ignore: cast_nullable_to_non_nullable + as Map, + item: null == item ? _self.item : item // ignore: cast_nullable_to_non_nullable - as ReviewQueueItem?, + as ReviewQueueItemResponse, message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable - as Message?, + as MessageResponse?, + receivedAt: freezed == receivedAt + ? _self.receivedAt + : receivedAt // ignore: cast_nullable_to_non_nullable + as DateTime?, type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable as String, - user: freezed == user - ? _self.user - : user // ignore: cast_nullable_to_non_nullable - as User?, )); } } diff --git a/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.g.dart b/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.g.dart index 30ac12fe..1664d70e 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/moderation_mark_reviewed_event.g.dart @@ -11,24 +11,37 @@ ModerationMarkReviewedEvent _$ModerationMarkReviewedEventFromJson( ModerationMarkReviewedEvent( createdAt: const EpochDateTimeConverter() .fromJson((json['created_at'] as num).toInt()), - item: json['item'] == null - ? null - : ReviewQueueItem.fromJson(json['item'] as Map), + custom: json['custom'] as Map, + item: ReviewQueueItemResponse.fromJson( + json['item'] as Map), message: json['message'] == null ? null - : Message.fromJson(json['message'] as Map), + : MessageResponse.fromJson(json['message'] as Map), + receivedAt: _$JsonConverterFromJson( + json['received_at'], const EpochDateTimeConverter().fromJson), type: json['type'] as String, - user: json['user'] == null - ? null - : User.fromJson(json['user'] as Map), ); Map _$ModerationMarkReviewedEventToJson( ModerationMarkReviewedEvent instance) => { 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), - 'item': instance.item?.toJson(), + 'custom': instance.custom, + 'item': instance.item.toJson(), 'message': instance.message?.toJson(), + 'received_at': _$JsonConverterToJson( + instance.receivedAt, const EpochDateTimeConverter().toJson), 'type': instance.type, - 'user': instance.user?.toJson(), }; + +Value? _$JsonConverterFromJson( + Object? json, + Value? Function(Json json) fromJson, +) => + json == null ? null : fromJson(json as Json); + +Json? _$JsonConverterToJson( + Value? value, + Json? Function(Value value) toJson, +) => + value == null ? null : toJson(value); diff --git a/packages/stream_feeds/lib/src/generated/api/model/notification_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/notification_settings.dart deleted file mode 100644 index 4146952d..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/notification_settings.dart +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'notification_settings.g.dart'; -part 'notification_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class NotificationSettings with _$NotificationSettings { - const NotificationSettings({ - required this.callLiveStarted, - required this.callMissed, - required this.callNotification, - required this.callRing, - required this.enabled, - required this.sessionStarted, - }); - - @override - final EventNotificationSettings callLiveStarted; - - @override - final EventNotificationSettings callMissed; - - @override - final EventNotificationSettings callNotification; - - @override - final EventNotificationSettings callRing; - - @override - final bool enabled; - - @override - final EventNotificationSettings sessionStarted; - - Map toJson() => _$NotificationSettingsToJson(this); - - static NotificationSettings fromJson(Map json) => - _$NotificationSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/notification_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/notification_settings.freezed.dart deleted file mode 100644 index 642e30b0..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/notification_settings.freezed.dart +++ /dev/null @@ -1,125 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'notification_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$NotificationSettings { - EventNotificationSettings get callLiveStarted; - EventNotificationSettings get callMissed; - EventNotificationSettings get callNotification; - EventNotificationSettings get callRing; - bool get enabled; - EventNotificationSettings get sessionStarted; - - /// Create a copy of NotificationSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $NotificationSettingsCopyWith get copyWith => - _$NotificationSettingsCopyWithImpl( - this as NotificationSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is NotificationSettings && - (identical(other.callLiveStarted, callLiveStarted) || - other.callLiveStarted == callLiveStarted) && - (identical(other.callMissed, callMissed) || - other.callMissed == callMissed) && - (identical(other.callNotification, callNotification) || - other.callNotification == callNotification) && - (identical(other.callRing, callRing) || - other.callRing == callRing) && - (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.sessionStarted, sessionStarted) || - other.sessionStarted == sessionStarted)); - } - - @override - int get hashCode => Object.hash(runtimeType, callLiveStarted, callMissed, - callNotification, callRing, enabled, sessionStarted); - - @override - String toString() { - return 'NotificationSettings(callLiveStarted: $callLiveStarted, callMissed: $callMissed, callNotification: $callNotification, callRing: $callRing, enabled: $enabled, sessionStarted: $sessionStarted)'; - } -} - -/// @nodoc -abstract mixin class $NotificationSettingsCopyWith<$Res> { - factory $NotificationSettingsCopyWith(NotificationSettings value, - $Res Function(NotificationSettings) _then) = - _$NotificationSettingsCopyWithImpl; - @useResult - $Res call( - {EventNotificationSettings callLiveStarted, - EventNotificationSettings callMissed, - EventNotificationSettings callNotification, - EventNotificationSettings callRing, - bool enabled, - EventNotificationSettings sessionStarted}); -} - -/// @nodoc -class _$NotificationSettingsCopyWithImpl<$Res> - implements $NotificationSettingsCopyWith<$Res> { - _$NotificationSettingsCopyWithImpl(this._self, this._then); - - final NotificationSettings _self; - final $Res Function(NotificationSettings) _then; - - /// Create a copy of NotificationSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? callLiveStarted = null, - Object? callMissed = null, - Object? callNotification = null, - Object? callRing = null, - Object? enabled = null, - Object? sessionStarted = null, - }) { - return _then(NotificationSettings( - callLiveStarted: null == callLiveStarted - ? _self.callLiveStarted - : callLiveStarted // ignore: cast_nullable_to_non_nullable - as EventNotificationSettings, - callMissed: null == callMissed - ? _self.callMissed - : callMissed // ignore: cast_nullable_to_non_nullable - as EventNotificationSettings, - callNotification: null == callNotification - ? _self.callNotification - : callNotification // ignore: cast_nullable_to_non_nullable - as EventNotificationSettings, - callRing: null == callRing - ? _self.callRing - : callRing // ignore: cast_nullable_to_non_nullable - as EventNotificationSettings, - enabled: null == enabled - ? _self.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - sessionStarted: null == sessionStarted - ? _self.sessionStarted - : sessionStarted // ignore: cast_nullable_to_non_nullable - as EventNotificationSettings, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/notification_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/notification_settings.g.dart deleted file mode 100644 index 355da782..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/notification_settings.g.dart +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'notification_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -NotificationSettings _$NotificationSettingsFromJson( - Map json) => - NotificationSettings( - callLiveStarted: EventNotificationSettings.fromJson( - json['call_live_started'] as Map), - callMissed: EventNotificationSettings.fromJson( - json['call_missed'] as Map), - callNotification: EventNotificationSettings.fromJson( - json['call_notification'] as Map), - callRing: EventNotificationSettings.fromJson( - json['call_ring'] as Map), - enabled: json['enabled'] as bool, - sessionStarted: EventNotificationSettings.fromJson( - json['session_started'] as Map), - ); - -Map _$NotificationSettingsToJson( - NotificationSettings instance) => - { - 'call_live_started': instance.callLiveStarted.toJson(), - 'call_missed': instance.callMissed.toJson(), - 'call_notification': instance.callNotification.toJson(), - 'call_ring': instance.callRing.toJson(), - 'enabled': instance.enabled, - 'session_started': instance.sessionStarted.toJson(), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_options.dart b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_request.dart similarity index 55% rename from packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_options.dart rename to packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_request.dart index b3664d37..7b6c8b91 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/ingress_video_encoding_options.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_request.dart @@ -10,22 +10,22 @@ import 'package:stream_core/stream_core.dart' as core; import '../models.dart'; -part 'ingress_video_encoding_options.g.dart'; -part 'ingress_video_encoding_options.freezed.dart'; +part 'own_capabilities_batch_request.g.dart'; +part 'own_capabilities_batch_request.freezed.dart'; @freezed @immutable @JsonSerializable() -class IngressVideoEncodingOptions with _$IngressVideoEncodingOptions { - const IngressVideoEncodingOptions({ - required this.layers, +class OwnCapabilitiesBatchRequest with _$OwnCapabilitiesBatchRequest { + const OwnCapabilitiesBatchRequest({ + required this.feeds, }); @override - final List layers; + final List feeds; - Map toJson() => _$IngressVideoEncodingOptionsToJson(this); + Map toJson() => _$OwnCapabilitiesBatchRequestToJson(this); - static IngressVideoEncodingOptions fromJson(Map json) => - _$IngressVideoEncodingOptionsFromJson(json); + static OwnCapabilitiesBatchRequest fromJson(Map json) => + _$OwnCapabilitiesBatchRequestFromJson(json); } diff --git a/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_request.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_request.freezed.dart new file mode 100644 index 00000000..5358830f --- /dev/null +++ b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_request.freezed.dart @@ -0,0 +1,81 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'own_capabilities_batch_request.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$OwnCapabilitiesBatchRequest { + List get feeds; + + /// Create a copy of OwnCapabilitiesBatchRequest + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $OwnCapabilitiesBatchRequestCopyWith + get copyWith => _$OwnCapabilitiesBatchRequestCopyWithImpl< + OwnCapabilitiesBatchRequest>( + this as OwnCapabilitiesBatchRequest, _$identity); + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is OwnCapabilitiesBatchRequest && + const DeepCollectionEquality().equals(other.feeds, feeds)); + } + + @override + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(feeds)); + + @override + String toString() { + return 'OwnCapabilitiesBatchRequest(feeds: $feeds)'; + } +} + +/// @nodoc +abstract mixin class $OwnCapabilitiesBatchRequestCopyWith<$Res> { + factory $OwnCapabilitiesBatchRequestCopyWith( + OwnCapabilitiesBatchRequest value, + $Res Function(OwnCapabilitiesBatchRequest) _then) = + _$OwnCapabilitiesBatchRequestCopyWithImpl; + @useResult + $Res call({List feeds}); +} + +/// @nodoc +class _$OwnCapabilitiesBatchRequestCopyWithImpl<$Res> + implements $OwnCapabilitiesBatchRequestCopyWith<$Res> { + _$OwnCapabilitiesBatchRequestCopyWithImpl(this._self, this._then); + + final OwnCapabilitiesBatchRequest _self; + final $Res Function(OwnCapabilitiesBatchRequest) _then; + + /// Create a copy of OwnCapabilitiesBatchRequest + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? feeds = null, + }) { + return _then(OwnCapabilitiesBatchRequest( + feeds: null == feeds + ? _self.feeds + : feeds // ignore: cast_nullable_to_non_nullable + as List, + )); + } +} + +// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_request.g.dart b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_request.g.dart new file mode 100644 index 00000000..81079840 --- /dev/null +++ b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_request.g.dart @@ -0,0 +1,19 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'own_capabilities_batch_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +OwnCapabilitiesBatchRequest _$OwnCapabilitiesBatchRequestFromJson( + Map json) => + OwnCapabilitiesBatchRequest( + feeds: (json['feeds'] as List).map((e) => e as String).toList(), + ); + +Map _$OwnCapabilitiesBatchRequestToJson( + OwnCapabilitiesBatchRequest instance) => + { + 'feeds': instance.feeds, + }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/composite_app_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_response.dart similarity index 50% rename from packages/stream_feeds/lib/src/generated/api/model/composite_app_settings.dart rename to packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_response.dart index 49c9ef02..4c4f357d 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/composite_app_settings.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_response.dart @@ -10,26 +10,26 @@ import 'package:stream_core/stream_core.dart' as core; import '../models.dart'; -part 'composite_app_settings.g.dart'; -part 'composite_app_settings.freezed.dart'; +part 'own_capabilities_batch_response.g.dart'; +part 'own_capabilities_batch_response.freezed.dart'; @freezed @immutable @JsonSerializable() -class CompositeAppSettings with _$CompositeAppSettings { - const CompositeAppSettings({ - this.jsonEncodedSettings, - this.url, +class OwnCapabilitiesBatchResponse with _$OwnCapabilitiesBatchResponse { + const OwnCapabilitiesBatchResponse({ + required this.capabilities, + required this.duration, }); @override - final String? jsonEncodedSettings; + final Map> capabilities; @override - final String? url; + final String duration; - Map toJson() => _$CompositeAppSettingsToJson(this); + Map toJson() => _$OwnCapabilitiesBatchResponseToJson(this); - static CompositeAppSettings fromJson(Map json) => - _$CompositeAppSettingsFromJson(json); + static OwnCapabilitiesBatchResponse fromJson(Map json) => + _$OwnCapabilitiesBatchResponseFromJson(json); } diff --git a/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_response.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_response.freezed.dart new file mode 100644 index 00000000..387da787 --- /dev/null +++ b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_response.freezed.dart @@ -0,0 +1,90 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'own_capabilities_batch_response.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$OwnCapabilitiesBatchResponse { + Map> get capabilities; + String get duration; + + /// Create a copy of OwnCapabilitiesBatchResponse + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $OwnCapabilitiesBatchResponseCopyWith + get copyWith => _$OwnCapabilitiesBatchResponseCopyWithImpl< + OwnCapabilitiesBatchResponse>( + this as OwnCapabilitiesBatchResponse, _$identity); + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is OwnCapabilitiesBatchResponse && + const DeepCollectionEquality() + .equals(other.capabilities, capabilities) && + (identical(other.duration, duration) || + other.duration == duration)); + } + + @override + int get hashCode => Object.hash( + runtimeType, const DeepCollectionEquality().hash(capabilities), duration); + + @override + String toString() { + return 'OwnCapabilitiesBatchResponse(capabilities: $capabilities, duration: $duration)'; + } +} + +/// @nodoc +abstract mixin class $OwnCapabilitiesBatchResponseCopyWith<$Res> { + factory $OwnCapabilitiesBatchResponseCopyWith( + OwnCapabilitiesBatchResponse value, + $Res Function(OwnCapabilitiesBatchResponse) _then) = + _$OwnCapabilitiesBatchResponseCopyWithImpl; + @useResult + $Res call({Map> capabilities, String duration}); +} + +/// @nodoc +class _$OwnCapabilitiesBatchResponseCopyWithImpl<$Res> + implements $OwnCapabilitiesBatchResponseCopyWith<$Res> { + _$OwnCapabilitiesBatchResponseCopyWithImpl(this._self, this._then); + + final OwnCapabilitiesBatchResponse _self; + final $Res Function(OwnCapabilitiesBatchResponse) _then; + + /// Create a copy of OwnCapabilitiesBatchResponse + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? capabilities = null, + Object? duration = null, + }) { + return _then(OwnCapabilitiesBatchResponse( + capabilities: null == capabilities + ? _self.capabilities + : capabilities // ignore: cast_nullable_to_non_nullable + as Map>, + duration: null == duration + ? _self.duration + : duration // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_response.g.dart b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_response.g.dart new file mode 100644 index 00000000..0e9ab94c --- /dev/null +++ b/packages/stream_feeds/lib/src/generated/api/model/own_capabilities_batch_response.g.dart @@ -0,0 +1,24 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'own_capabilities_batch_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +OwnCapabilitiesBatchResponse _$OwnCapabilitiesBatchResponseFromJson( + Map json) => + OwnCapabilitiesBatchResponse( + capabilities: (json['capabilities'] as Map).map( + (k, e) => + MapEntry(k, (e as List).map((e) => e as String).toList()), + ), + duration: json['duration'] as String, + ); + +Map _$OwnCapabilitiesBatchResponseToJson( + OwnCapabilitiesBatchResponse instance) => + { + 'capabilities': instance.capabilities, + 'duration': instance.duration, + }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.dart index 3ffeeb52..22d2a1fc 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.dart @@ -18,10 +18,14 @@ part 'privacy_settings.freezed.dart'; @JsonSerializable() class PrivacySettings with _$PrivacySettings { const PrivacySettings({ + this.deliveryReceipts, this.readReceipts, this.typingIndicators, }); + @override + final DeliveryReceipts? deliveryReceipts; + @override final ReadReceipts? readReceipts; diff --git a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.freezed.dart index ba4c9378..50a9a3d2 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.freezed.dart @@ -15,6 +15,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$PrivacySettings { + DeliveryReceipts? get deliveryReceipts; ReadReceipts? get readReceipts; TypingIndicators? get typingIndicators; @@ -31,6 +32,8 @@ mixin _$PrivacySettings { return identical(this, other) || (other.runtimeType == runtimeType && other is PrivacySettings && + (identical(other.deliveryReceipts, deliveryReceipts) || + other.deliveryReceipts == deliveryReceipts) && (identical(other.readReceipts, readReceipts) || other.readReceipts == readReceipts) && (identical(other.typingIndicators, typingIndicators) || @@ -38,11 +41,12 @@ mixin _$PrivacySettings { } @override - int get hashCode => Object.hash(runtimeType, readReceipts, typingIndicators); + int get hashCode => Object.hash( + runtimeType, deliveryReceipts, readReceipts, typingIndicators); @override String toString() { - return 'PrivacySettings(readReceipts: $readReceipts, typingIndicators: $typingIndicators)'; + return 'PrivacySettings(deliveryReceipts: $deliveryReceipts, readReceipts: $readReceipts, typingIndicators: $typingIndicators)'; } } @@ -52,7 +56,10 @@ abstract mixin class $PrivacySettingsCopyWith<$Res> { PrivacySettings value, $Res Function(PrivacySettings) _then) = _$PrivacySettingsCopyWithImpl; @useResult - $Res call({ReadReceipts? readReceipts, TypingIndicators? typingIndicators}); + $Res call( + {DeliveryReceipts? deliveryReceipts, + ReadReceipts? readReceipts, + TypingIndicators? typingIndicators}); } /// @nodoc @@ -68,10 +75,15 @@ class _$PrivacySettingsCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ + Object? deliveryReceipts = freezed, Object? readReceipts = freezed, Object? typingIndicators = freezed, }) { return _then(PrivacySettings( + deliveryReceipts: freezed == deliveryReceipts + ? _self.deliveryReceipts + : deliveryReceipts // ignore: cast_nullable_to_non_nullable + as DeliveryReceipts?, readReceipts: freezed == readReceipts ? _self.readReceipts : readReceipts // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.g.dart index 2080c8b6..8333b27d 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings.g.dart @@ -8,6 +8,10 @@ part of 'privacy_settings.dart'; PrivacySettings _$PrivacySettingsFromJson(Map json) => PrivacySettings( + deliveryReceipts: json['delivery_receipts'] == null + ? null + : DeliveryReceipts.fromJson( + json['delivery_receipts'] as Map), readReceipts: json['read_receipts'] == null ? null : ReadReceipts.fromJson( @@ -20,6 +24,7 @@ PrivacySettings _$PrivacySettingsFromJson(Map json) => Map _$PrivacySettingsToJson(PrivacySettings instance) => { + 'delivery_receipts': instance.deliveryReceipts?.toJson(), 'read_receipts': instance.readReceipts?.toJson(), 'typing_indicators': instance.typingIndicators?.toJson(), }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.dart b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.dart index 16d30935..1825bc8c 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.dart @@ -18,10 +18,14 @@ part 'privacy_settings_response.freezed.dart'; @JsonSerializable() class PrivacySettingsResponse with _$PrivacySettingsResponse { const PrivacySettingsResponse({ + this.deliveryReceipts, this.readReceipts, this.typingIndicators, }); + @override + final DeliveryReceiptsResponse? deliveryReceipts; + @override final ReadReceiptsResponse? readReceipts; diff --git a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.freezed.dart index cd4a4ec8..1c7d15dc 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.freezed.dart @@ -15,6 +15,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$PrivacySettingsResponse { + DeliveryReceiptsResponse? get deliveryReceipts; ReadReceiptsResponse? get readReceipts; TypingIndicatorsResponse? get typingIndicators; @@ -31,6 +32,8 @@ mixin _$PrivacySettingsResponse { return identical(this, other) || (other.runtimeType == runtimeType && other is PrivacySettingsResponse && + (identical(other.deliveryReceipts, deliveryReceipts) || + other.deliveryReceipts == deliveryReceipts) && (identical(other.readReceipts, readReceipts) || other.readReceipts == readReceipts) && (identical(other.typingIndicators, typingIndicators) || @@ -38,11 +41,12 @@ mixin _$PrivacySettingsResponse { } @override - int get hashCode => Object.hash(runtimeType, readReceipts, typingIndicators); + int get hashCode => Object.hash( + runtimeType, deliveryReceipts, readReceipts, typingIndicators); @override String toString() { - return 'PrivacySettingsResponse(readReceipts: $readReceipts, typingIndicators: $typingIndicators)'; + return 'PrivacySettingsResponse(deliveryReceipts: $deliveryReceipts, readReceipts: $readReceipts, typingIndicators: $typingIndicators)'; } } @@ -53,7 +57,8 @@ abstract mixin class $PrivacySettingsResponseCopyWith<$Res> { _$PrivacySettingsResponseCopyWithImpl; @useResult $Res call( - {ReadReceiptsResponse? readReceipts, + {DeliveryReceiptsResponse? deliveryReceipts, + ReadReceiptsResponse? readReceipts, TypingIndicatorsResponse? typingIndicators}); } @@ -70,10 +75,15 @@ class _$PrivacySettingsResponseCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ + Object? deliveryReceipts = freezed, Object? readReceipts = freezed, Object? typingIndicators = freezed, }) { return _then(PrivacySettingsResponse( + deliveryReceipts: freezed == deliveryReceipts + ? _self.deliveryReceipts + : deliveryReceipts // ignore: cast_nullable_to_non_nullable + as DeliveryReceiptsResponse?, readReceipts: freezed == readReceipts ? _self.readReceipts : readReceipts // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.g.dart b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.g.dart index cb449ffc..342da16d 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/privacy_settings_response.g.dart @@ -9,6 +9,10 @@ part of 'privacy_settings_response.dart'; PrivacySettingsResponse _$PrivacySettingsResponseFromJson( Map json) => PrivacySettingsResponse( + deliveryReceipts: json['delivery_receipts'] == null + ? null + : DeliveryReceiptsResponse.fromJson( + json['delivery_receipts'] as Map), readReceipts: json['read_receipts'] == null ? null : ReadReceiptsResponse.fromJson( @@ -22,6 +26,7 @@ PrivacySettingsResponse _$PrivacySettingsResponseFromJson( Map _$PrivacySettingsResponseToJson( PrivacySettingsResponse instance) => { + 'delivery_receipts': instance.deliveryReceipts?.toJson(), 'read_receipts': instance.readReceipts?.toJson(), 'typing_indicators': instance.typingIndicators?.toJson(), }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/quality.dart b/packages/stream_feeds/lib/src/generated/api/model/quality.dart deleted file mode 100644 index f656ce09..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/quality.dart +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'quality.g.dart'; -part 'quality.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class Quality with _$Quality { - const Quality({ - this.bitdepth, - this.framerate, - this.height, - this.name, - this.videoBitrate, - this.width, - }); - - @override - final int? bitdepth; - - @override - final int? framerate; - - @override - final int? height; - - @override - final String? name; - - @override - final int? videoBitrate; - - @override - final int? width; - - Map toJson() => _$QualityToJson(this); - - static Quality fromJson(Map json) => _$QualityFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/quality.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/quality.freezed.dart deleted file mode 100644 index f0ceed6c..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/quality.freezed.dart +++ /dev/null @@ -1,120 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'quality.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$Quality { - int? get bitdepth; - int? get framerate; - int? get height; - String? get name; - int? get videoBitrate; - int? get width; - - /// Create a copy of Quality - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $QualityCopyWith get copyWith => - _$QualityCopyWithImpl(this as Quality, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is Quality && - (identical(other.bitdepth, bitdepth) || - other.bitdepth == bitdepth) && - (identical(other.framerate, framerate) || - other.framerate == framerate) && - (identical(other.height, height) || other.height == height) && - (identical(other.name, name) || other.name == name) && - (identical(other.videoBitrate, videoBitrate) || - other.videoBitrate == videoBitrate) && - (identical(other.width, width) || other.width == width)); - } - - @override - int get hashCode => Object.hash( - runtimeType, bitdepth, framerate, height, name, videoBitrate, width); - - @override - String toString() { - return 'Quality(bitdepth: $bitdepth, framerate: $framerate, height: $height, name: $name, videoBitrate: $videoBitrate, width: $width)'; - } -} - -/// @nodoc -abstract mixin class $QualityCopyWith<$Res> { - factory $QualityCopyWith(Quality value, $Res Function(Quality) _then) = - _$QualityCopyWithImpl; - @useResult - $Res call( - {int? bitdepth, - int? framerate, - int? height, - String? name, - int? videoBitrate, - int? width}); -} - -/// @nodoc -class _$QualityCopyWithImpl<$Res> implements $QualityCopyWith<$Res> { - _$QualityCopyWithImpl(this._self, this._then); - - final Quality _self; - final $Res Function(Quality) _then; - - /// Create a copy of Quality - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? bitdepth = freezed, - Object? framerate = freezed, - Object? height = freezed, - Object? name = freezed, - Object? videoBitrate = freezed, - Object? width = freezed, - }) { - return _then(Quality( - bitdepth: freezed == bitdepth - ? _self.bitdepth - : bitdepth // ignore: cast_nullable_to_non_nullable - as int?, - framerate: freezed == framerate - ? _self.framerate - : framerate // ignore: cast_nullable_to_non_nullable - as int?, - height: freezed == height - ? _self.height - : height // ignore: cast_nullable_to_non_nullable - as int?, - name: freezed == name - ? _self.name - : name // ignore: cast_nullable_to_non_nullable - as String?, - videoBitrate: freezed == videoBitrate - ? _self.videoBitrate - : videoBitrate // ignore: cast_nullable_to_non_nullable - as int?, - width: freezed == width - ? _self.width - : width // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/quality.g.dart b/packages/stream_feeds/lib/src/generated/api/model/quality.g.dart deleted file mode 100644 index c68a8888..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/quality.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'quality.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Quality _$QualityFromJson(Map json) => Quality( - bitdepth: (json['bitdepth'] as num?)?.toInt(), - framerate: (json['framerate'] as num?)?.toInt(), - height: (json['height'] as num?)?.toInt(), - name: json['name'] as String?, - videoBitrate: (json['video_bitrate'] as num?)?.toInt(), - width: (json['width'] as num?)?.toInt(), - ); - -Map _$QualityToJson(Quality instance) => { - 'bitdepth': instance.bitdepth, - 'framerate': instance.framerate, - 'height': instance.height, - 'name': instance.name, - 'video_bitrate': instance.videoBitrate, - 'width': instance.width, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/record_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/record_settings.dart deleted file mode 100644 index 73a03355..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/record_settings.dart +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'record_settings.g.dart'; -part 'record_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class RecordSettings with _$RecordSettings { - const RecordSettings({ - this.audioOnly, - this.layout, - required this.mode, - this.quality, - }); - - @override - final bool? audioOnly; - - @override - final LayoutSettings? layout; - - @override - final String mode; - - @override - final String? quality; - - Map toJson() => _$RecordSettingsToJson(this); - - static RecordSettings fromJson(Map json) => - _$RecordSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/record_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/record_settings.freezed.dart deleted file mode 100644 index 5dc16f43..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/record_settings.freezed.dart +++ /dev/null @@ -1,102 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'record_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$RecordSettings { - bool? get audioOnly; - LayoutSettings? get layout; - String get mode; - String? get quality; - - /// Create a copy of RecordSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $RecordSettingsCopyWith get copyWith => - _$RecordSettingsCopyWithImpl( - this as RecordSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is RecordSettings && - (identical(other.audioOnly, audioOnly) || - other.audioOnly == audioOnly) && - (identical(other.layout, layout) || other.layout == layout) && - (identical(other.mode, mode) || other.mode == mode) && - (identical(other.quality, quality) || other.quality == quality)); - } - - @override - int get hashCode => - Object.hash(runtimeType, audioOnly, layout, mode, quality); - - @override - String toString() { - return 'RecordSettings(audioOnly: $audioOnly, layout: $layout, mode: $mode, quality: $quality)'; - } -} - -/// @nodoc -abstract mixin class $RecordSettingsCopyWith<$Res> { - factory $RecordSettingsCopyWith( - RecordSettings value, $Res Function(RecordSettings) _then) = - _$RecordSettingsCopyWithImpl; - @useResult - $Res call( - {bool? audioOnly, LayoutSettings? layout, String mode, String? quality}); -} - -/// @nodoc -class _$RecordSettingsCopyWithImpl<$Res> - implements $RecordSettingsCopyWith<$Res> { - _$RecordSettingsCopyWithImpl(this._self, this._then); - - final RecordSettings _self; - final $Res Function(RecordSettings) _then; - - /// Create a copy of RecordSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? audioOnly = freezed, - Object? layout = freezed, - Object? mode = null, - Object? quality = freezed, - }) { - return _then(RecordSettings( - audioOnly: freezed == audioOnly - ? _self.audioOnly - : audioOnly // ignore: cast_nullable_to_non_nullable - as bool?, - layout: freezed == layout - ? _self.layout - : layout // ignore: cast_nullable_to_non_nullable - as LayoutSettings?, - mode: null == mode - ? _self.mode - : mode // ignore: cast_nullable_to_non_nullable - as String, - quality: freezed == quality - ? _self.quality - : quality // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/record_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/record_settings.g.dart deleted file mode 100644 index 64087a34..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/record_settings.g.dart +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'record_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -RecordSettings _$RecordSettingsFromJson(Map json) => - RecordSettings( - audioOnly: json['audio_only'] as bool?, - layout: json['layout'] == null - ? null - : LayoutSettings.fromJson(json['layout'] as Map), - mode: json['mode'] as String, - quality: json['quality'] as String?, - ); - -Map _$RecordSettingsToJson(RecordSettings instance) => - { - 'audio_only': instance.audioOnly, - 'layout': instance.layout?.toJson(), - 'mode': instance.mode, - 'quality': instance.quality, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/recording_egress_config.dart b/packages/stream_feeds/lib/src/generated/api/model/recording_egress_config.dart deleted file mode 100644 index a727551d..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/recording_egress_config.dart +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'recording_egress_config.g.dart'; -part 'recording_egress_config.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class RecordingEgressConfig with _$RecordingEgressConfig { - const RecordingEgressConfig({ - this.audioOnly, - this.compositeAppSettings, - this.externalStorage, - this.quality, - this.storageName, - this.videoOrientationHint, - }); - - @override - final bool? audioOnly; - - @override - final CompositeAppSettings? compositeAppSettings; - - @override - final ExternalStorage? externalStorage; - - @override - final Quality? quality; - - @override - final String? storageName; - - @override - final VideoOrientation? videoOrientationHint; - - Map toJson() => _$RecordingEgressConfigToJson(this); - - static RecordingEgressConfig fromJson(Map json) => - _$RecordingEgressConfigFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/recording_egress_config.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/recording_egress_config.freezed.dart deleted file mode 100644 index 6a15f312..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/recording_egress_config.freezed.dart +++ /dev/null @@ -1,125 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'recording_egress_config.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$RecordingEgressConfig { - bool? get audioOnly; - CompositeAppSettings? get compositeAppSettings; - ExternalStorage? get externalStorage; - Quality? get quality; - String? get storageName; - VideoOrientation? get videoOrientationHint; - - /// Create a copy of RecordingEgressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $RecordingEgressConfigCopyWith get copyWith => - _$RecordingEgressConfigCopyWithImpl( - this as RecordingEgressConfig, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is RecordingEgressConfig && - (identical(other.audioOnly, audioOnly) || - other.audioOnly == audioOnly) && - (identical(other.compositeAppSettings, compositeAppSettings) || - other.compositeAppSettings == compositeAppSettings) && - (identical(other.externalStorage, externalStorage) || - other.externalStorage == externalStorage) && - (identical(other.quality, quality) || other.quality == quality) && - (identical(other.storageName, storageName) || - other.storageName == storageName) && - (identical(other.videoOrientationHint, videoOrientationHint) || - other.videoOrientationHint == videoOrientationHint)); - } - - @override - int get hashCode => Object.hash(runtimeType, audioOnly, compositeAppSettings, - externalStorage, quality, storageName, videoOrientationHint); - - @override - String toString() { - return 'RecordingEgressConfig(audioOnly: $audioOnly, compositeAppSettings: $compositeAppSettings, externalStorage: $externalStorage, quality: $quality, storageName: $storageName, videoOrientationHint: $videoOrientationHint)'; - } -} - -/// @nodoc -abstract mixin class $RecordingEgressConfigCopyWith<$Res> { - factory $RecordingEgressConfigCopyWith(RecordingEgressConfig value, - $Res Function(RecordingEgressConfig) _then) = - _$RecordingEgressConfigCopyWithImpl; - @useResult - $Res call( - {bool? audioOnly, - CompositeAppSettings? compositeAppSettings, - ExternalStorage? externalStorage, - Quality? quality, - String? storageName, - VideoOrientation? videoOrientationHint}); -} - -/// @nodoc -class _$RecordingEgressConfigCopyWithImpl<$Res> - implements $RecordingEgressConfigCopyWith<$Res> { - _$RecordingEgressConfigCopyWithImpl(this._self, this._then); - - final RecordingEgressConfig _self; - final $Res Function(RecordingEgressConfig) _then; - - /// Create a copy of RecordingEgressConfig - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? audioOnly = freezed, - Object? compositeAppSettings = freezed, - Object? externalStorage = freezed, - Object? quality = freezed, - Object? storageName = freezed, - Object? videoOrientationHint = freezed, - }) { - return _then(RecordingEgressConfig( - audioOnly: freezed == audioOnly - ? _self.audioOnly - : audioOnly // ignore: cast_nullable_to_non_nullable - as bool?, - compositeAppSettings: freezed == compositeAppSettings - ? _self.compositeAppSettings - : compositeAppSettings // ignore: cast_nullable_to_non_nullable - as CompositeAppSettings?, - externalStorage: freezed == externalStorage - ? _self.externalStorage - : externalStorage // ignore: cast_nullable_to_non_nullable - as ExternalStorage?, - quality: freezed == quality - ? _self.quality - : quality // ignore: cast_nullable_to_non_nullable - as Quality?, - storageName: freezed == storageName - ? _self.storageName - : storageName // ignore: cast_nullable_to_non_nullable - as String?, - videoOrientationHint: freezed == videoOrientationHint - ? _self.videoOrientationHint - : videoOrientationHint // ignore: cast_nullable_to_non_nullable - as VideoOrientation?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/recording_egress_config.g.dart b/packages/stream_feeds/lib/src/generated/api/model/recording_egress_config.g.dart deleted file mode 100644 index 1def1f69..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/recording_egress_config.g.dart +++ /dev/null @@ -1,40 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'recording_egress_config.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -RecordingEgressConfig _$RecordingEgressConfigFromJson( - Map json) => - RecordingEgressConfig( - audioOnly: json['audio_only'] as bool?, - compositeAppSettings: json['composite_app_settings'] == null - ? null - : CompositeAppSettings.fromJson( - json['composite_app_settings'] as Map), - externalStorage: json['external_storage'] == null - ? null - : ExternalStorage.fromJson( - json['external_storage'] as Map), - quality: json['quality'] == null - ? null - : Quality.fromJson(json['quality'] as Map), - storageName: json['storage_name'] as String?, - videoOrientationHint: json['video_orientation_hint'] == null - ? null - : VideoOrientation.fromJson( - json['video_orientation_hint'] as Map), - ); - -Map _$RecordingEgressConfigToJson( - RecordingEgressConfig instance) => - { - 'audio_only': instance.audioOnly, - 'composite_app_settings': instance.compositeAppSettings?.toJson(), - 'external_storage': instance.externalStorage?.toJson(), - 'quality': instance.quality?.toJson(), - 'storage_name': instance.storageName, - 'video_orientation_hint': instance.videoOrientationHint?.toJson(), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/review_queue_item.dart b/packages/stream_feeds/lib/src/generated/api/model/review_queue_item.dart deleted file mode 100644 index 37923307..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/review_queue_item.dart +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'review_queue_item.g.dart'; -part 'review_queue_item.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class ReviewQueueItem with _$ReviewQueueItem { - const ReviewQueueItem({ - required this.actions, - this.activity, - required this.aiTextSeverity, - this.assignedTo, - required this.bans, - required this.bounceCount, - this.call, - required this.configKey, - required this.contentChanged, - required this.createdAt, - this.entityCreator, - required this.entityId, - required this.entityType, - this.feedsV2Activity, - this.feedsV2Reaction, - required this.flagLabels, - required this.flagTypes, - required this.flags, - required this.flagsCount, - required this.hasImage, - required this.hasText, - required this.hasVideo, - required this.id, - required this.languages, - this.message, - this.moderationPayload, - required this.moderationPayloadHash, - this.reaction, - required this.recommendedAction, - required this.reporterIds, - required this.reviewedBy, - required this.severity, - required this.status, - required this.teams, - required this.updatedAt, - }); - - @override - final List actions; - - @override - final EnrichedActivity? activity; - - @override - final String aiTextSeverity; - - @override - final User? assignedTo; - - @override - final List bans; - - @override - final int bounceCount; - - @override - final Call? call; - - @override - final String configKey; - - @override - final bool contentChanged; - - @override - @EpochDateTimeConverter() - final DateTime createdAt; - - @override - final EntityCreator? entityCreator; - - @override - final String entityId; - - @override - final String entityType; - - @override - final EnrichedActivity? feedsV2Activity; - - @override - final Reaction? feedsV2Reaction; - - @override - final List flagLabels; - - @override - final List flagTypes; - - @override - final List flags; - - @override - final int flagsCount; - - @override - final bool hasImage; - - @override - final bool hasText; - - @override - final bool hasVideo; - - @override - final String id; - - @override - final List languages; - - @override - final Message? message; - - @override - final ModerationPayload? moderationPayload; - - @override - final String moderationPayloadHash; - - @override - final Reaction? reaction; - - @override - final String recommendedAction; - - @override - final List reporterIds; - - @override - final String reviewedBy; - - @override - final int severity; - - @override - final String status; - - @override - final List teams; - - @override - @EpochDateTimeConverter() - final DateTime updatedAt; - - Map toJson() => _$ReviewQueueItemToJson(this); - - static ReviewQueueItem fromJson(Map json) => - _$ReviewQueueItemFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/review_queue_item.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/review_queue_item.freezed.dart deleted file mode 100644 index 84c54f3f..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/review_queue_item.freezed.dart +++ /dev/null @@ -1,412 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'review_queue_item.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$ReviewQueueItem { - List get actions; - EnrichedActivity? get activity; - String get aiTextSeverity; - User? get assignedTo; - List get bans; - int get bounceCount; - Call? get call; - String get configKey; - bool get contentChanged; - DateTime get createdAt; - EntityCreator? get entityCreator; - String get entityId; - String get entityType; - EnrichedActivity? get feedsV2Activity; - Reaction? get feedsV2Reaction; - List get flagLabels; - List get flagTypes; - List get flags; - int get flagsCount; - bool get hasImage; - bool get hasText; - bool get hasVideo; - String get id; - List get languages; - Message? get message; - ModerationPayload? get moderationPayload; - String get moderationPayloadHash; - Reaction? get reaction; - String get recommendedAction; - List get reporterIds; - String get reviewedBy; - int get severity; - String get status; - List get teams; - DateTime get updatedAt; - - /// Create a copy of ReviewQueueItem - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $ReviewQueueItemCopyWith get copyWith => - _$ReviewQueueItemCopyWithImpl( - this as ReviewQueueItem, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is ReviewQueueItem && - const DeepCollectionEquality().equals(other.actions, actions) && - (identical(other.activity, activity) || - other.activity == activity) && - (identical(other.aiTextSeverity, aiTextSeverity) || - other.aiTextSeverity == aiTextSeverity) && - (identical(other.assignedTo, assignedTo) || - other.assignedTo == assignedTo) && - const DeepCollectionEquality().equals(other.bans, bans) && - (identical(other.bounceCount, bounceCount) || - other.bounceCount == bounceCount) && - (identical(other.call, call) || other.call == call) && - (identical(other.configKey, configKey) || - other.configKey == configKey) && - (identical(other.contentChanged, contentChanged) || - other.contentChanged == contentChanged) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - (identical(other.entityCreator, entityCreator) || - other.entityCreator == entityCreator) && - (identical(other.entityId, entityId) || - other.entityId == entityId) && - (identical(other.entityType, entityType) || - other.entityType == entityType) && - (identical(other.feedsV2Activity, feedsV2Activity) || - other.feedsV2Activity == feedsV2Activity) && - (identical(other.feedsV2Reaction, feedsV2Reaction) || - other.feedsV2Reaction == feedsV2Reaction) && - const DeepCollectionEquality() - .equals(other.flagLabels, flagLabels) && - const DeepCollectionEquality().equals(other.flagTypes, flagTypes) && - const DeepCollectionEquality().equals(other.flags, flags) && - (identical(other.flagsCount, flagsCount) || - other.flagsCount == flagsCount) && - (identical(other.hasImage, hasImage) || - other.hasImage == hasImage) && - (identical(other.hasText, hasText) || other.hasText == hasText) && - (identical(other.hasVideo, hasVideo) || - other.hasVideo == hasVideo) && - (identical(other.id, id) || other.id == id) && - const DeepCollectionEquality().equals(other.languages, languages) && - (identical(other.message, message) || other.message == message) && - (identical(other.moderationPayload, moderationPayload) || - other.moderationPayload == moderationPayload) && - (identical(other.moderationPayloadHash, moderationPayloadHash) || - other.moderationPayloadHash == moderationPayloadHash) && - (identical(other.reaction, reaction) || - other.reaction == reaction) && - (identical(other.recommendedAction, recommendedAction) || - other.recommendedAction == recommendedAction) && - const DeepCollectionEquality() - .equals(other.reporterIds, reporterIds) && - (identical(other.reviewedBy, reviewedBy) || - other.reviewedBy == reviewedBy) && - (identical(other.severity, severity) || - other.severity == severity) && - (identical(other.status, status) || other.status == status) && - const DeepCollectionEquality().equals(other.teams, teams) && - (identical(other.updatedAt, updatedAt) || - other.updatedAt == updatedAt)); - } - - @override - int get hashCode => Object.hashAll([ - runtimeType, - const DeepCollectionEquality().hash(actions), - activity, - aiTextSeverity, - assignedTo, - const DeepCollectionEquality().hash(bans), - bounceCount, - call, - configKey, - contentChanged, - createdAt, - entityCreator, - entityId, - entityType, - feedsV2Activity, - feedsV2Reaction, - const DeepCollectionEquality().hash(flagLabels), - const DeepCollectionEquality().hash(flagTypes), - const DeepCollectionEquality().hash(flags), - flagsCount, - hasImage, - hasText, - hasVideo, - id, - const DeepCollectionEquality().hash(languages), - message, - moderationPayload, - moderationPayloadHash, - reaction, - recommendedAction, - const DeepCollectionEquality().hash(reporterIds), - reviewedBy, - severity, - status, - const DeepCollectionEquality().hash(teams), - updatedAt - ]); - - @override - String toString() { - return 'ReviewQueueItem(actions: $actions, activity: $activity, aiTextSeverity: $aiTextSeverity, assignedTo: $assignedTo, bans: $bans, bounceCount: $bounceCount, call: $call, configKey: $configKey, contentChanged: $contentChanged, createdAt: $createdAt, entityCreator: $entityCreator, entityId: $entityId, entityType: $entityType, feedsV2Activity: $feedsV2Activity, feedsV2Reaction: $feedsV2Reaction, flagLabels: $flagLabels, flagTypes: $flagTypes, flags: $flags, flagsCount: $flagsCount, hasImage: $hasImage, hasText: $hasText, hasVideo: $hasVideo, id: $id, languages: $languages, message: $message, moderationPayload: $moderationPayload, moderationPayloadHash: $moderationPayloadHash, reaction: $reaction, recommendedAction: $recommendedAction, reporterIds: $reporterIds, reviewedBy: $reviewedBy, severity: $severity, status: $status, teams: $teams, updatedAt: $updatedAt)'; - } -} - -/// @nodoc -abstract mixin class $ReviewQueueItemCopyWith<$Res> { - factory $ReviewQueueItemCopyWith( - ReviewQueueItem value, $Res Function(ReviewQueueItem) _then) = - _$ReviewQueueItemCopyWithImpl; - @useResult - $Res call( - {List actions, - EnrichedActivity? activity, - String aiTextSeverity, - User? assignedTo, - List bans, - int bounceCount, - Call? call, - String configKey, - bool contentChanged, - DateTime createdAt, - EntityCreator? entityCreator, - String entityId, - String entityType, - EnrichedActivity? feedsV2Activity, - Reaction? feedsV2Reaction, - List flagLabels, - List flagTypes, - List flags, - int flagsCount, - bool hasImage, - bool hasText, - bool hasVideo, - String id, - List languages, - Message? message, - ModerationPayload? moderationPayload, - String moderationPayloadHash, - Reaction? reaction, - String recommendedAction, - List reporterIds, - String reviewedBy, - int severity, - String status, - List teams, - DateTime updatedAt}); -} - -/// @nodoc -class _$ReviewQueueItemCopyWithImpl<$Res> - implements $ReviewQueueItemCopyWith<$Res> { - _$ReviewQueueItemCopyWithImpl(this._self, this._then); - - final ReviewQueueItem _self; - final $Res Function(ReviewQueueItem) _then; - - /// Create a copy of ReviewQueueItem - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? actions = null, - Object? activity = freezed, - Object? aiTextSeverity = null, - Object? assignedTo = freezed, - Object? bans = null, - Object? bounceCount = null, - Object? call = freezed, - Object? configKey = null, - Object? contentChanged = null, - Object? createdAt = null, - Object? entityCreator = freezed, - Object? entityId = null, - Object? entityType = null, - Object? feedsV2Activity = freezed, - Object? feedsV2Reaction = freezed, - Object? flagLabels = null, - Object? flagTypes = null, - Object? flags = null, - Object? flagsCount = null, - Object? hasImage = null, - Object? hasText = null, - Object? hasVideo = null, - Object? id = null, - Object? languages = null, - Object? message = freezed, - Object? moderationPayload = freezed, - Object? moderationPayloadHash = null, - Object? reaction = freezed, - Object? recommendedAction = null, - Object? reporterIds = null, - Object? reviewedBy = null, - Object? severity = null, - Object? status = null, - Object? teams = null, - Object? updatedAt = null, - }) { - return _then(ReviewQueueItem( - actions: null == actions - ? _self.actions - : actions // ignore: cast_nullable_to_non_nullable - as List, - activity: freezed == activity - ? _self.activity - : activity // ignore: cast_nullable_to_non_nullable - as EnrichedActivity?, - aiTextSeverity: null == aiTextSeverity - ? _self.aiTextSeverity - : aiTextSeverity // ignore: cast_nullable_to_non_nullable - as String, - assignedTo: freezed == assignedTo - ? _self.assignedTo - : assignedTo // ignore: cast_nullable_to_non_nullable - as User?, - bans: null == bans - ? _self.bans - : bans // ignore: cast_nullable_to_non_nullable - as List, - bounceCount: null == bounceCount - ? _self.bounceCount - : bounceCount // ignore: cast_nullable_to_non_nullable - as int, - call: freezed == call - ? _self.call - : call // ignore: cast_nullable_to_non_nullable - as Call?, - configKey: null == configKey - ? _self.configKey - : configKey // ignore: cast_nullable_to_non_nullable - as String, - contentChanged: null == contentChanged - ? _self.contentChanged - : contentChanged // ignore: cast_nullable_to_non_nullable - as bool, - createdAt: null == createdAt - ? _self.createdAt - : createdAt // ignore: cast_nullable_to_non_nullable - as DateTime, - entityCreator: freezed == entityCreator - ? _self.entityCreator - : entityCreator // ignore: cast_nullable_to_non_nullable - as EntityCreator?, - entityId: null == entityId - ? _self.entityId - : entityId // ignore: cast_nullable_to_non_nullable - as String, - entityType: null == entityType - ? _self.entityType - : entityType // ignore: cast_nullable_to_non_nullable - as String, - feedsV2Activity: freezed == feedsV2Activity - ? _self.feedsV2Activity - : feedsV2Activity // ignore: cast_nullable_to_non_nullable - as EnrichedActivity?, - feedsV2Reaction: freezed == feedsV2Reaction - ? _self.feedsV2Reaction - : feedsV2Reaction // ignore: cast_nullable_to_non_nullable - as Reaction?, - flagLabels: null == flagLabels - ? _self.flagLabels - : flagLabels // ignore: cast_nullable_to_non_nullable - as List, - flagTypes: null == flagTypes - ? _self.flagTypes - : flagTypes // ignore: cast_nullable_to_non_nullable - as List, - flags: null == flags - ? _self.flags - : flags // ignore: cast_nullable_to_non_nullable - as List, - flagsCount: null == flagsCount - ? _self.flagsCount - : flagsCount // ignore: cast_nullable_to_non_nullable - as int, - hasImage: null == hasImage - ? _self.hasImage - : hasImage // ignore: cast_nullable_to_non_nullable - as bool, - hasText: null == hasText - ? _self.hasText - : hasText // ignore: cast_nullable_to_non_nullable - as bool, - hasVideo: null == hasVideo - ? _self.hasVideo - : hasVideo // ignore: cast_nullable_to_non_nullable - as bool, - id: null == id - ? _self.id - : id // ignore: cast_nullable_to_non_nullable - as String, - languages: null == languages - ? _self.languages - : languages // ignore: cast_nullable_to_non_nullable - as List, - message: freezed == message - ? _self.message - : message // ignore: cast_nullable_to_non_nullable - as Message?, - moderationPayload: freezed == moderationPayload - ? _self.moderationPayload - : moderationPayload // ignore: cast_nullable_to_non_nullable - as ModerationPayload?, - moderationPayloadHash: null == moderationPayloadHash - ? _self.moderationPayloadHash - : moderationPayloadHash // ignore: cast_nullable_to_non_nullable - as String, - reaction: freezed == reaction - ? _self.reaction - : reaction // ignore: cast_nullable_to_non_nullable - as Reaction?, - recommendedAction: null == recommendedAction - ? _self.recommendedAction - : recommendedAction // ignore: cast_nullable_to_non_nullable - as String, - reporterIds: null == reporterIds - ? _self.reporterIds - : reporterIds // ignore: cast_nullable_to_non_nullable - as List, - reviewedBy: null == reviewedBy - ? _self.reviewedBy - : reviewedBy // ignore: cast_nullable_to_non_nullable - as String, - severity: null == severity - ? _self.severity - : severity // ignore: cast_nullable_to_non_nullable - as int, - status: null == status - ? _self.status - : status // ignore: cast_nullable_to_non_nullable - as String, - teams: null == teams - ? _self.teams - : teams // ignore: cast_nullable_to_non_nullable - as List, - updatedAt: null == updatedAt - ? _self.updatedAt - : updatedAt // ignore: cast_nullable_to_non_nullable - as DateTime, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/review_queue_item.g.dart b/packages/stream_feeds/lib/src/generated/api/model/review_queue_item.g.dart deleted file mode 100644 index d7309a32..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/review_queue_item.g.dart +++ /dev/null @@ -1,122 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'review_queue_item.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -ReviewQueueItem _$ReviewQueueItemFromJson(Map json) => - ReviewQueueItem( - actions: (json['actions'] as List) - .map((e) => ActionLog.fromJson(e as Map)) - .toList(), - activity: json['activity'] == null - ? null - : EnrichedActivity.fromJson(json['activity'] as Map), - aiTextSeverity: json['ai_text_severity'] as String, - assignedTo: json['assigned_to'] == null - ? null - : User.fromJson(json['assigned_to'] as Map), - bans: (json['bans'] as List) - .map((e) => Ban.fromJson(e as Map)) - .toList(), - bounceCount: (json['bounce_count'] as num).toInt(), - call: json['call'] == null - ? null - : Call.fromJson(json['call'] as Map), - configKey: json['config_key'] as String, - contentChanged: json['content_changed'] as bool, - createdAt: const EpochDateTimeConverter() - .fromJson((json['created_at'] as num).toInt()), - entityCreator: json['entity_creator'] == null - ? null - : EntityCreator.fromJson( - json['entity_creator'] as Map), - entityId: json['entity_id'] as String, - entityType: json['entity_type'] as String, - feedsV2Activity: json['feeds_v2_activity'] == null - ? null - : EnrichedActivity.fromJson( - json['feeds_v2_activity'] as Map), - feedsV2Reaction: json['feeds_v2_reaction'] == null - ? null - : Reaction.fromJson( - json['feeds_v2_reaction'] as Map), - flagLabels: (json['flag_labels'] as List) - .map((e) => e as String) - .toList(), - flagTypes: (json['flag_types'] as List) - .map((e) => e as String) - .toList(), - flags: (json['flags'] as List) - .map((e) => Flag.fromJson(e as Map)) - .toList(), - flagsCount: (json['flags_count'] as num).toInt(), - hasImage: json['has_image'] as bool, - hasText: json['has_text'] as bool, - hasVideo: json['has_video'] as bool, - id: json['id'] as String, - languages: - (json['languages'] as List).map((e) => e as String).toList(), - message: json['message'] == null - ? null - : Message.fromJson(json['message'] as Map), - moderationPayload: json['moderation_payload'] == null - ? null - : ModerationPayload.fromJson( - json['moderation_payload'] as Map), - moderationPayloadHash: json['moderation_payload_hash'] as String, - reaction: json['reaction'] == null - ? null - : Reaction.fromJson(json['reaction'] as Map), - recommendedAction: json['recommended_action'] as String, - reporterIds: (json['reporter_ids'] as List) - .map((e) => e as String) - .toList(), - reviewedBy: json['reviewed_by'] as String, - severity: (json['severity'] as num).toInt(), - status: json['status'] as String, - teams: (json['teams'] as List).map((e) => e as String).toList(), - updatedAt: const EpochDateTimeConverter() - .fromJson((json['updated_at'] as num).toInt()), - ); - -Map _$ReviewQueueItemToJson(ReviewQueueItem instance) => - { - 'actions': instance.actions.map((e) => e.toJson()).toList(), - 'activity': instance.activity?.toJson(), - 'ai_text_severity': instance.aiTextSeverity, - 'assigned_to': instance.assignedTo?.toJson(), - 'bans': instance.bans.map((e) => e.toJson()).toList(), - 'bounce_count': instance.bounceCount, - 'call': instance.call?.toJson(), - 'config_key': instance.configKey, - 'content_changed': instance.contentChanged, - 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), - 'entity_creator': instance.entityCreator?.toJson(), - 'entity_id': instance.entityId, - 'entity_type': instance.entityType, - 'feeds_v2_activity': instance.feedsV2Activity?.toJson(), - 'feeds_v2_reaction': instance.feedsV2Reaction?.toJson(), - 'flag_labels': instance.flagLabels, - 'flag_types': instance.flagTypes, - 'flags': instance.flags.map((e) => e.toJson()).toList(), - 'flags_count': instance.flagsCount, - 'has_image': instance.hasImage, - 'has_text': instance.hasText, - 'has_video': instance.hasVideo, - 'id': instance.id, - 'languages': instance.languages, - 'message': instance.message?.toJson(), - 'moderation_payload': instance.moderationPayload?.toJson(), - 'moderation_payload_hash': instance.moderationPayloadHash, - 'reaction': instance.reaction?.toJson(), - 'recommended_action': instance.recommendedAction, - 'reporter_ids': instance.reporterIds, - 'reviewed_by': instance.reviewedBy, - 'severity': instance.severity, - 'status': instance.status, - 'teams': instance.teams, - 'updated_at': const EpochDateTimeConverter().toJson(instance.updatedAt), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/ring_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/ring_settings.dart deleted file mode 100644 index 82750861..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ring_settings.dart +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'ring_settings.g.dart'; -part 'ring_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class RingSettings with _$RingSettings { - const RingSettings({ - required this.autoCancelTimeoutMs, - required this.incomingCallTimeoutMs, - required this.missedCallTimeoutMs, - }); - - @override - final int autoCancelTimeoutMs; - - @override - final int incomingCallTimeoutMs; - - @override - final int missedCallTimeoutMs; - - Map toJson() => _$RingSettingsToJson(this); - - static RingSettings fromJson(Map json) => - _$RingSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/ring_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/ring_settings.freezed.dart deleted file mode 100644 index fb9d4d1d..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ring_settings.freezed.dart +++ /dev/null @@ -1,98 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'ring_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$RingSettings { - int get autoCancelTimeoutMs; - int get incomingCallTimeoutMs; - int get missedCallTimeoutMs; - - /// Create a copy of RingSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $RingSettingsCopyWith get copyWith => - _$RingSettingsCopyWithImpl( - this as RingSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is RingSettings && - (identical(other.autoCancelTimeoutMs, autoCancelTimeoutMs) || - other.autoCancelTimeoutMs == autoCancelTimeoutMs) && - (identical(other.incomingCallTimeoutMs, incomingCallTimeoutMs) || - other.incomingCallTimeoutMs == incomingCallTimeoutMs) && - (identical(other.missedCallTimeoutMs, missedCallTimeoutMs) || - other.missedCallTimeoutMs == missedCallTimeoutMs)); - } - - @override - int get hashCode => Object.hash(runtimeType, autoCancelTimeoutMs, - incomingCallTimeoutMs, missedCallTimeoutMs); - - @override - String toString() { - return 'RingSettings(autoCancelTimeoutMs: $autoCancelTimeoutMs, incomingCallTimeoutMs: $incomingCallTimeoutMs, missedCallTimeoutMs: $missedCallTimeoutMs)'; - } -} - -/// @nodoc -abstract mixin class $RingSettingsCopyWith<$Res> { - factory $RingSettingsCopyWith( - RingSettings value, $Res Function(RingSettings) _then) = - _$RingSettingsCopyWithImpl; - @useResult - $Res call( - {int autoCancelTimeoutMs, - int incomingCallTimeoutMs, - int missedCallTimeoutMs}); -} - -/// @nodoc -class _$RingSettingsCopyWithImpl<$Res> implements $RingSettingsCopyWith<$Res> { - _$RingSettingsCopyWithImpl(this._self, this._then); - - final RingSettings _self; - final $Res Function(RingSettings) _then; - - /// Create a copy of RingSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? autoCancelTimeoutMs = null, - Object? incomingCallTimeoutMs = null, - Object? missedCallTimeoutMs = null, - }) { - return _then(RingSettings( - autoCancelTimeoutMs: null == autoCancelTimeoutMs - ? _self.autoCancelTimeoutMs - : autoCancelTimeoutMs // ignore: cast_nullable_to_non_nullable - as int, - incomingCallTimeoutMs: null == incomingCallTimeoutMs - ? _self.incomingCallTimeoutMs - : incomingCallTimeoutMs // ignore: cast_nullable_to_non_nullable - as int, - missedCallTimeoutMs: null == missedCallTimeoutMs - ? _self.missedCallTimeoutMs - : missedCallTimeoutMs // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/ring_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/ring_settings.g.dart deleted file mode 100644 index 7d17f474..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/ring_settings.g.dart +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ring_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -RingSettings _$RingSettingsFromJson(Map json) => RingSettings( - autoCancelTimeoutMs: (json['auto_cancel_timeout_ms'] as num).toInt(), - incomingCallTimeoutMs: (json['incoming_call_timeout_ms'] as num).toInt(), - missedCallTimeoutMs: (json['missed_call_timeout_ms'] as num).toInt(), - ); - -Map _$RingSettingsToJson(RingSettings instance) => - { - 'auto_cancel_timeout_ms': instance.autoCancelTimeoutMs, - 'incoming_call_timeout_ms': instance.incomingCallTimeoutMs, - 'missed_call_timeout_ms': instance.missedCallTimeoutMs, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/rtmp_egress_config.dart b/packages/stream_feeds/lib/src/generated/api/model/rtmp_egress_config.dart deleted file mode 100644 index a995b8af..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/rtmp_egress_config.dart +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'rtmp_egress_config.g.dart'; -part 'rtmp_egress_config.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class RTMPEgressConfig with _$RTMPEgressConfig { - const RTMPEgressConfig({ - this.compositeAppSettings, - this.quality, - this.rtmpLocation, - }); - - @override - final CompositeAppSettings? compositeAppSettings; - - @override - final Quality? quality; - - @override - final String? rtmpLocation; - - Map toJson() => _$RTMPEgressConfigToJson(this); - - static RTMPEgressConfig fromJson(Map json) => - _$RTMPEgressConfigFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/rtmp_egress_config.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/rtmp_egress_config.freezed.dart deleted file mode 100644 index aa584d39..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/rtmp_egress_config.freezed.dart +++ /dev/null @@ -1,98 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'rtmp_egress_config.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$RTMPEgressConfig { - CompositeAppSettings? get compositeAppSettings; - Quality? get quality; - String? get rtmpLocation; - - /// Create a copy of RTMPEgressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $RTMPEgressConfigCopyWith get copyWith => - _$RTMPEgressConfigCopyWithImpl( - this as RTMPEgressConfig, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is RTMPEgressConfig && - (identical(other.compositeAppSettings, compositeAppSettings) || - other.compositeAppSettings == compositeAppSettings) && - (identical(other.quality, quality) || other.quality == quality) && - (identical(other.rtmpLocation, rtmpLocation) || - other.rtmpLocation == rtmpLocation)); - } - - @override - int get hashCode => - Object.hash(runtimeType, compositeAppSettings, quality, rtmpLocation); - - @override - String toString() { - return 'RTMPEgressConfig(compositeAppSettings: $compositeAppSettings, quality: $quality, rtmpLocation: $rtmpLocation)'; - } -} - -/// @nodoc -abstract mixin class $RTMPEgressConfigCopyWith<$Res> { - factory $RTMPEgressConfigCopyWith( - RTMPEgressConfig value, $Res Function(RTMPEgressConfig) _then) = - _$RTMPEgressConfigCopyWithImpl; - @useResult - $Res call( - {CompositeAppSettings? compositeAppSettings, - Quality? quality, - String? rtmpLocation}); -} - -/// @nodoc -class _$RTMPEgressConfigCopyWithImpl<$Res> - implements $RTMPEgressConfigCopyWith<$Res> { - _$RTMPEgressConfigCopyWithImpl(this._self, this._then); - - final RTMPEgressConfig _self; - final $Res Function(RTMPEgressConfig) _then; - - /// Create a copy of RTMPEgressConfig - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? compositeAppSettings = freezed, - Object? quality = freezed, - Object? rtmpLocation = freezed, - }) { - return _then(RTMPEgressConfig( - compositeAppSettings: freezed == compositeAppSettings - ? _self.compositeAppSettings - : compositeAppSettings // ignore: cast_nullable_to_non_nullable - as CompositeAppSettings?, - quality: freezed == quality - ? _self.quality - : quality // ignore: cast_nullable_to_non_nullable - as Quality?, - rtmpLocation: freezed == rtmpLocation - ? _self.rtmpLocation - : rtmpLocation // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/rtmp_egress_config.g.dart b/packages/stream_feeds/lib/src/generated/api/model/rtmp_egress_config.g.dart deleted file mode 100644 index f749f22b..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/rtmp_egress_config.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'rtmp_egress_config.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -RTMPEgressConfig _$RTMPEgressConfigFromJson(Map json) => - RTMPEgressConfig( - compositeAppSettings: json['composite_app_settings'] == null - ? null - : CompositeAppSettings.fromJson( - json['composite_app_settings'] as Map), - quality: json['quality'] == null - ? null - : Quality.fromJson(json['quality'] as Map), - rtmpLocation: json['rtmp_location'] as String?, - ); - -Map _$RTMPEgressConfigToJson(RTMPEgressConfig instance) => - { - 'composite_app_settings': instance.compositeAppSettings?.toJson(), - 'quality': instance.quality?.toJson(), - 'rtmp_location': instance.rtmpLocation, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/rtmp_location.dart b/packages/stream_feeds/lib/src/generated/api/model/rtmp_location.dart deleted file mode 100644 index 82f4cf6a..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/rtmp_location.dart +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'rtmp_location.g.dart'; -part 'rtmp_location.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class RTMPLocation with _$RTMPLocation { - const RTMPLocation({ - required this.name, - required this.streamKey, - required this.streamUrl, - }); - - @override - final String name; - - @override - final String streamKey; - - @override - final String streamUrl; - - Map toJson() => _$RTMPLocationToJson(this); - - static RTMPLocation fromJson(Map json) => - _$RTMPLocationFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/rtmp_location.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/rtmp_location.freezed.dart deleted file mode 100644 index 03182700..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/rtmp_location.freezed.dart +++ /dev/null @@ -1,93 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'rtmp_location.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$RTMPLocation { - String get name; - String get streamKey; - String get streamUrl; - - /// Create a copy of RTMPLocation - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $RTMPLocationCopyWith get copyWith => - _$RTMPLocationCopyWithImpl( - this as RTMPLocation, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is RTMPLocation && - (identical(other.name, name) || other.name == name) && - (identical(other.streamKey, streamKey) || - other.streamKey == streamKey) && - (identical(other.streamUrl, streamUrl) || - other.streamUrl == streamUrl)); - } - - @override - int get hashCode => Object.hash(runtimeType, name, streamKey, streamUrl); - - @override - String toString() { - return 'RTMPLocation(name: $name, streamKey: $streamKey, streamUrl: $streamUrl)'; - } -} - -/// @nodoc -abstract mixin class $RTMPLocationCopyWith<$Res> { - factory $RTMPLocationCopyWith( - RTMPLocation value, $Res Function(RTMPLocation) _then) = - _$RTMPLocationCopyWithImpl; - @useResult - $Res call({String name, String streamKey, String streamUrl}); -} - -/// @nodoc -class _$RTMPLocationCopyWithImpl<$Res> implements $RTMPLocationCopyWith<$Res> { - _$RTMPLocationCopyWithImpl(this._self, this._then); - - final RTMPLocation _self; - final $Res Function(RTMPLocation) _then; - - /// Create a copy of RTMPLocation - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? name = null, - Object? streamKey = null, - Object? streamUrl = null, - }) { - return _then(RTMPLocation( - name: null == name - ? _self.name - : name // ignore: cast_nullable_to_non_nullable - as String, - streamKey: null == streamKey - ? _self.streamKey - : streamKey // ignore: cast_nullable_to_non_nullable - as String, - streamUrl: null == streamUrl - ? _self.streamUrl - : streamUrl // ignore: cast_nullable_to_non_nullable - as String, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/rtmp_location.g.dart b/packages/stream_feeds/lib/src/generated/api/model/rtmp_location.g.dart deleted file mode 100644 index d4ab0ae6..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/rtmp_location.g.dart +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'rtmp_location.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -RTMPLocation _$RTMPLocationFromJson(Map json) => RTMPLocation( - name: json['name'] as String, - streamKey: json['stream_key'] as String, - streamUrl: json['stream_url'] as String, - ); - -Map _$RTMPLocationToJson(RTMPLocation instance) => - { - 'name': instance.name, - 'stream_key': instance.streamKey, - 'stream_url': instance.streamUrl, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/rtmp_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/rtmp_settings.dart deleted file mode 100644 index 71d3d4b1..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/rtmp_settings.dart +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'rtmp_settings.g.dart'; -part 'rtmp_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class RTMPSettings with _$RTMPSettings { - const RTMPSettings({ - required this.enabled, - this.layout, - this.location, - this.qualityName, - }); - - @override - final bool enabled; - - @override - final LayoutSettings? layout; - - @override - final RTMPLocation? location; - - @override - final String? qualityName; - - Map toJson() => _$RTMPSettingsToJson(this); - - static RTMPSettings fromJson(Map json) => - _$RTMPSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/rtmp_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/rtmp_settings.freezed.dart deleted file mode 100644 index 2d6ef194..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/rtmp_settings.freezed.dart +++ /dev/null @@ -1,105 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'rtmp_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$RTMPSettings { - bool get enabled; - LayoutSettings? get layout; - RTMPLocation? get location; - String? get qualityName; - - /// Create a copy of RTMPSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $RTMPSettingsCopyWith get copyWith => - _$RTMPSettingsCopyWithImpl( - this as RTMPSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is RTMPSettings && - (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.layout, layout) || other.layout == layout) && - (identical(other.location, location) || - other.location == location) && - (identical(other.qualityName, qualityName) || - other.qualityName == qualityName)); - } - - @override - int get hashCode => - Object.hash(runtimeType, enabled, layout, location, qualityName); - - @override - String toString() { - return 'RTMPSettings(enabled: $enabled, layout: $layout, location: $location, qualityName: $qualityName)'; - } -} - -/// @nodoc -abstract mixin class $RTMPSettingsCopyWith<$Res> { - factory $RTMPSettingsCopyWith( - RTMPSettings value, $Res Function(RTMPSettings) _then) = - _$RTMPSettingsCopyWithImpl; - @useResult - $Res call( - {bool enabled, - LayoutSettings? layout, - RTMPLocation? location, - String? qualityName}); -} - -/// @nodoc -class _$RTMPSettingsCopyWithImpl<$Res> implements $RTMPSettingsCopyWith<$Res> { - _$RTMPSettingsCopyWithImpl(this._self, this._then); - - final RTMPSettings _self; - final $Res Function(RTMPSettings) _then; - - /// Create a copy of RTMPSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? enabled = null, - Object? layout = freezed, - Object? location = freezed, - Object? qualityName = freezed, - }) { - return _then(RTMPSettings( - enabled: null == enabled - ? _self.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - layout: freezed == layout - ? _self.layout - : layout // ignore: cast_nullable_to_non_nullable - as LayoutSettings?, - location: freezed == location - ? _self.location - : location // ignore: cast_nullable_to_non_nullable - as RTMPLocation?, - qualityName: freezed == qualityName - ? _self.qualityName - : qualityName // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/rtmp_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/rtmp_settings.g.dart deleted file mode 100644 index 2b956b32..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/rtmp_settings.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'rtmp_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -RTMPSettings _$RTMPSettingsFromJson(Map json) => RTMPSettings( - enabled: json['enabled'] as bool, - layout: json['layout'] == null - ? null - : LayoutSettings.fromJson(json['layout'] as Map), - location: json['location'] == null - ? null - : RTMPLocation.fromJson(json['location'] as Map), - qualityName: json['quality_name'] as String?, - ); - -Map _$RTMPSettingsToJson(RTMPSettings instance) => - { - 'enabled': instance.enabled, - 'layout': instance.layout?.toJson(), - 'location': instance.location?.toJson(), - 'quality_name': instance.qualityName, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.dart b/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.dart index 322fbf68..564a61c8 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.dart @@ -13,6 +13,28 @@ import '../models.dart'; part 'rule_builder_action.g.dart'; part 'rule_builder_action.freezed.dart'; +@JsonEnum(alwaysCreate: true) +enum RuleBuilderActionType { + @JsonValue('ban_user') + banUser, + @JsonValue('block_content') + blockContent, + @JsonValue('bounce_content') + bounceContent, + @JsonValue('bounce_flag_content') + bounceFlagContent, + @JsonValue('bounce_remove_content') + bounceRemoveContent, + @JsonValue('flag_content') + flagContent, + @JsonValue('flag_user') + flagUser, + @JsonValue('shadow_content') + shadowContent, + @JsonValue('_unknown') + unknown; +} + @freezed @immutable @JsonSerializable() @@ -20,7 +42,7 @@ class RuleBuilderAction with _$RuleBuilderAction { const RuleBuilderAction({ this.banOptions, this.flagUserOptions, - this.type, + required this.type, }); @override @@ -30,7 +52,8 @@ class RuleBuilderAction with _$RuleBuilderAction { final FlagUserOptions? flagUserOptions; @override - final String? type; + @JsonKey(unknownEnumValue: RuleBuilderActionType.unknown) + final RuleBuilderActionType type; Map toJson() => _$RuleBuilderActionToJson(this); diff --git a/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.freezed.dart index a5fbce02..d15cfa79 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.freezed.dart @@ -17,7 +17,7 @@ T _$identity(T value) => value; mixin _$RuleBuilderAction { BanOptions? get banOptions; FlagUserOptions? get flagUserOptions; - String? get type; + RuleBuilderActionType get type; /// Create a copy of RuleBuilderAction /// with the given fields replaced by the non-null parameter values. @@ -56,7 +56,9 @@ abstract mixin class $RuleBuilderActionCopyWith<$Res> { _$RuleBuilderActionCopyWithImpl; @useResult $Res call( - {BanOptions? banOptions, FlagUserOptions? flagUserOptions, String? type}); + {BanOptions? banOptions, + FlagUserOptions? flagUserOptions, + RuleBuilderActionType type}); } /// @nodoc @@ -74,7 +76,7 @@ class _$RuleBuilderActionCopyWithImpl<$Res> $Res call({ Object? banOptions = freezed, Object? flagUserOptions = freezed, - Object? type = freezed, + Object? type = null, }) { return _then(RuleBuilderAction( banOptions: freezed == banOptions @@ -85,10 +87,10 @@ class _$RuleBuilderActionCopyWithImpl<$Res> ? _self.flagUserOptions : flagUserOptions // ignore: cast_nullable_to_non_nullable as FlagUserOptions?, - type: freezed == type + type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable - as String?, + as RuleBuilderActionType, )); } } diff --git a/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.g.dart b/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.g.dart index 88f1751b..4a1ffbd3 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/rule_builder_action.g.dart @@ -15,12 +15,25 @@ RuleBuilderAction _$RuleBuilderActionFromJson(Map json) => ? null : FlagUserOptions.fromJson( json['flag_user_options'] as Map), - type: json['type'] as String?, + type: $enumDecode(_$RuleBuilderActionTypeEnumMap, json['type'], + unknownValue: RuleBuilderActionType.unknown), ); Map _$RuleBuilderActionToJson(RuleBuilderAction instance) => { 'ban_options': instance.banOptions?.toJson(), 'flag_user_options': instance.flagUserOptions?.toJson(), - 'type': instance.type, + 'type': _$RuleBuilderActionTypeEnumMap[instance.type]!, }; + +const _$RuleBuilderActionTypeEnumMap = { + RuleBuilderActionType.banUser: 'ban_user', + RuleBuilderActionType.blockContent: 'block_content', + RuleBuilderActionType.bounceContent: 'bounce_content', + RuleBuilderActionType.bounceFlagContent: 'bounce_flag_content', + RuleBuilderActionType.bounceRemoveContent: 'bounce_remove_content', + RuleBuilderActionType.flagContent: 'flag_content', + RuleBuilderActionType.flagUser: 'flag_user', + RuleBuilderActionType.shadowContent: 'shadow_content', + RuleBuilderActionType.unknown: '_unknown', +}; diff --git a/packages/stream_feeds/lib/src/generated/api/model/screensharing_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/screensharing_settings.dart deleted file mode 100644 index 79dfe759..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/screensharing_settings.dart +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'screensharing_settings.g.dart'; -part 'screensharing_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class ScreensharingSettings with _$ScreensharingSettings { - const ScreensharingSettings({ - required this.accessRequestEnabled, - required this.enabled, - this.targetResolution, - }); - - @override - final bool accessRequestEnabled; - - @override - final bool enabled; - - @override - final TargetResolution? targetResolution; - - Map toJson() => _$ScreensharingSettingsToJson(this); - - static ScreensharingSettings fromJson(Map json) => - _$ScreensharingSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/screensharing_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/screensharing_settings.freezed.dart deleted file mode 100644 index 3686504e..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/screensharing_settings.freezed.dart +++ /dev/null @@ -1,98 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'screensharing_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$ScreensharingSettings { - bool get accessRequestEnabled; - bool get enabled; - TargetResolution? get targetResolution; - - /// Create a copy of ScreensharingSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $ScreensharingSettingsCopyWith get copyWith => - _$ScreensharingSettingsCopyWithImpl( - this as ScreensharingSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is ScreensharingSettings && - (identical(other.accessRequestEnabled, accessRequestEnabled) || - other.accessRequestEnabled == accessRequestEnabled) && - (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.targetResolution, targetResolution) || - other.targetResolution == targetResolution)); - } - - @override - int get hashCode => - Object.hash(runtimeType, accessRequestEnabled, enabled, targetResolution); - - @override - String toString() { - return 'ScreensharingSettings(accessRequestEnabled: $accessRequestEnabled, enabled: $enabled, targetResolution: $targetResolution)'; - } -} - -/// @nodoc -abstract mixin class $ScreensharingSettingsCopyWith<$Res> { - factory $ScreensharingSettingsCopyWith(ScreensharingSettings value, - $Res Function(ScreensharingSettings) _then) = - _$ScreensharingSettingsCopyWithImpl; - @useResult - $Res call( - {bool accessRequestEnabled, - bool enabled, - TargetResolution? targetResolution}); -} - -/// @nodoc -class _$ScreensharingSettingsCopyWithImpl<$Res> - implements $ScreensharingSettingsCopyWith<$Res> { - _$ScreensharingSettingsCopyWithImpl(this._self, this._then); - - final ScreensharingSettings _self; - final $Res Function(ScreensharingSettings) _then; - - /// Create a copy of ScreensharingSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? accessRequestEnabled = null, - Object? enabled = null, - Object? targetResolution = freezed, - }) { - return _then(ScreensharingSettings( - accessRequestEnabled: null == accessRequestEnabled - ? _self.accessRequestEnabled - : accessRequestEnabled // ignore: cast_nullable_to_non_nullable - as bool, - enabled: null == enabled - ? _self.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - targetResolution: freezed == targetResolution - ? _self.targetResolution - : targetResolution // ignore: cast_nullable_to_non_nullable - as TargetResolution?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/screensharing_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/screensharing_settings.g.dart deleted file mode 100644 index 0a96ebcd..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/screensharing_settings.g.dart +++ /dev/null @@ -1,26 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'screensharing_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -ScreensharingSettings _$ScreensharingSettingsFromJson( - Map json) => - ScreensharingSettings( - accessRequestEnabled: json['access_request_enabled'] as bool, - enabled: json['enabled'] as bool, - targetResolution: json['target_resolution'] == null - ? null - : TargetResolution.fromJson( - json['target_resolution'] as Map), - ); - -Map _$ScreensharingSettingsToJson( - ScreensharingSettings instance) => - { - 'access_request_enabled': instance.accessRequestEnabled, - 'enabled': instance.enabled, - 'target_resolution': instance.targetResolution?.toJson(), - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/session_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/session_settings.dart deleted file mode 100644 index dd22556f..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/session_settings.dart +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'session_settings.g.dart'; -part 'session_settings.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class SessionSettings with _$SessionSettings { - const SessionSettings({ - required this.inactivityTimeoutSeconds, - }); - - @override - final int inactivityTimeoutSeconds; - - Map toJson() => _$SessionSettingsToJson(this); - - static SessionSettings fromJson(Map json) => - _$SessionSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/session_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/session_settings.freezed.dart deleted file mode 100644 index 41d7fd82..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/session_settings.freezed.dart +++ /dev/null @@ -1,80 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'session_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$SessionSettings { - int get inactivityTimeoutSeconds; - - /// Create a copy of SessionSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $SessionSettingsCopyWith get copyWith => - _$SessionSettingsCopyWithImpl( - this as SessionSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is SessionSettings && - (identical( - other.inactivityTimeoutSeconds, inactivityTimeoutSeconds) || - other.inactivityTimeoutSeconds == inactivityTimeoutSeconds)); - } - - @override - int get hashCode => Object.hash(runtimeType, inactivityTimeoutSeconds); - - @override - String toString() { - return 'SessionSettings(inactivityTimeoutSeconds: $inactivityTimeoutSeconds)'; - } -} - -/// @nodoc -abstract mixin class $SessionSettingsCopyWith<$Res> { - factory $SessionSettingsCopyWith( - SessionSettings value, $Res Function(SessionSettings) _then) = - _$SessionSettingsCopyWithImpl; - @useResult - $Res call({int inactivityTimeoutSeconds}); -} - -/// @nodoc -class _$SessionSettingsCopyWithImpl<$Res> - implements $SessionSettingsCopyWith<$Res> { - _$SessionSettingsCopyWithImpl(this._self, this._then); - - final SessionSettings _self; - final $Res Function(SessionSettings) _then; - - /// Create a copy of SessionSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? inactivityTimeoutSeconds = null, - }) { - return _then(SessionSettings( - inactivityTimeoutSeconds: null == inactivityTimeoutSeconds - ? _self.inactivityTimeoutSeconds - : inactivityTimeoutSeconds // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/session_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/session_settings.g.dart deleted file mode 100644 index b0b0eb42..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/session_settings.g.dart +++ /dev/null @@ -1,18 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'session_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -SessionSettings _$SessionSettingsFromJson(Map json) => - SessionSettings( - inactivityTimeoutSeconds: - (json['inactivity_timeout_seconds'] as num).toInt(), - ); - -Map _$SessionSettingsToJson(SessionSettings instance) => - { - 'inactivity_timeout_seconds': instance.inactivityTimeoutSeconds, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/sfuid_last_seen.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/sfuid_last_seen.freezed.dart deleted file mode 100644 index 05272f48..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/sfuid_last_seen.freezed.dart +++ /dev/null @@ -1,94 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'sfuid_last_seen.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$SFUIDLastSeen { - String get id; - DateTime get lastSeen; - int get processStartTime; - - /// Create a copy of SFUIDLastSeen - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $SFUIDLastSeenCopyWith get copyWith => - _$SFUIDLastSeenCopyWithImpl( - this as SFUIDLastSeen, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is SFUIDLastSeen && - (identical(other.id, id) || other.id == id) && - (identical(other.lastSeen, lastSeen) || - other.lastSeen == lastSeen) && - (identical(other.processStartTime, processStartTime) || - other.processStartTime == processStartTime)); - } - - @override - int get hashCode => Object.hash(runtimeType, id, lastSeen, processStartTime); - - @override - String toString() { - return 'SFUIDLastSeen(id: $id, lastSeen: $lastSeen, processStartTime: $processStartTime)'; - } -} - -/// @nodoc -abstract mixin class $SFUIDLastSeenCopyWith<$Res> { - factory $SFUIDLastSeenCopyWith( - SFUIDLastSeen value, $Res Function(SFUIDLastSeen) _then) = - _$SFUIDLastSeenCopyWithImpl; - @useResult - $Res call({String id, DateTime lastSeen, int processStartTime}); -} - -/// @nodoc -class _$SFUIDLastSeenCopyWithImpl<$Res> - implements $SFUIDLastSeenCopyWith<$Res> { - _$SFUIDLastSeenCopyWithImpl(this._self, this._then); - - final SFUIDLastSeen _self; - final $Res Function(SFUIDLastSeen) _then; - - /// Create a copy of SFUIDLastSeen - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? id = null, - Object? lastSeen = null, - Object? processStartTime = null, - }) { - return _then(SFUIDLastSeen( - id: null == id - ? _self.id - : id // ignore: cast_nullable_to_non_nullable - as String, - lastSeen: null == lastSeen - ? _self.lastSeen - : lastSeen // ignore: cast_nullable_to_non_nullable - as DateTime, - processStartTime: null == processStartTime - ? _self.processStartTime - : processStartTime // ignore: cast_nullable_to_non_nullable - as int, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/sfuid_last_seen.g.dart b/packages/stream_feeds/lib/src/generated/api/model/sfuid_last_seen.g.dart deleted file mode 100644 index 59a0bd92..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/sfuid_last_seen.g.dart +++ /dev/null @@ -1,22 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'sfuid_last_seen.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -SFUIDLastSeen _$SFUIDLastSeenFromJson(Map json) => - SFUIDLastSeen( - id: json['id'] as String, - lastSeen: const EpochDateTimeConverter() - .fromJson((json['last_seen'] as num).toInt()), - processStartTime: (json['process_start_time'] as num).toInt(), - ); - -Map _$SFUIDLastSeenToJson(SFUIDLastSeen instance) => - { - 'id': instance.id, - 'last_seen': const EpochDateTimeConverter().toJson(instance.lastSeen), - 'process_start_time': instance.processStartTime, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/stories_config.dart b/packages/stream_feeds/lib/src/generated/api/model/stories_config.dart index 5274a528..753ffba2 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/stories_config.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/stories_config.dart @@ -13,31 +13,20 @@ import '../models.dart'; part 'stories_config.g.dart'; part 'stories_config.freezed.dart'; -@JsonEnum(alwaysCreate: true) -enum StoriesConfigExpirationBehaviour { - @JsonValue('hide_for_everyone') - hideForEveryone, - @JsonValue('visible_for_author') - visibleForAuthor, - @JsonValue('_unknown') - unknown; -} - @freezed @immutable @JsonSerializable() class StoriesConfig with _$StoriesConfig { const StoriesConfig({ - this.expirationBehaviour, this.skipWatched, + this.trackWatched, }); @override - @JsonKey(unknownEnumValue: StoriesConfigExpirationBehaviour.unknown) - final StoriesConfigExpirationBehaviour? expirationBehaviour; + final bool? skipWatched; @override - final bool? skipWatched; + final bool? trackWatched; Map toJson() => _$StoriesConfigToJson(this); diff --git a/packages/stream_feeds/lib/src/generated/api/model/stories_config.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/stories_config.freezed.dart index 81b91313..f4c1f1ae 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/stories_config.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/stories_config.freezed.dart @@ -15,8 +15,8 @@ T _$identity(T value) => value; /// @nodoc mixin _$StoriesConfig { - StoriesConfigExpirationBehaviour? get expirationBehaviour; bool? get skipWatched; + bool? get trackWatched; /// Create a copy of StoriesConfig /// with the given fields replaced by the non-null parameter values. @@ -31,19 +31,18 @@ mixin _$StoriesConfig { return identical(this, other) || (other.runtimeType == runtimeType && other is StoriesConfig && - (identical(other.expirationBehaviour, expirationBehaviour) || - other.expirationBehaviour == expirationBehaviour) && (identical(other.skipWatched, skipWatched) || - other.skipWatched == skipWatched)); + other.skipWatched == skipWatched) && + (identical(other.trackWatched, trackWatched) || + other.trackWatched == trackWatched)); } @override - int get hashCode => - Object.hash(runtimeType, expirationBehaviour, skipWatched); + int get hashCode => Object.hash(runtimeType, skipWatched, trackWatched); @override String toString() { - return 'StoriesConfig(expirationBehaviour: $expirationBehaviour, skipWatched: $skipWatched)'; + return 'StoriesConfig(skipWatched: $skipWatched, trackWatched: $trackWatched)'; } } @@ -53,9 +52,7 @@ abstract mixin class $StoriesConfigCopyWith<$Res> { StoriesConfig value, $Res Function(StoriesConfig) _then) = _$StoriesConfigCopyWithImpl; @useResult - $Res call( - {StoriesConfigExpirationBehaviour? expirationBehaviour, - bool? skipWatched}); + $Res call({bool? skipWatched, bool? trackWatched}); } /// @nodoc @@ -71,18 +68,18 @@ class _$StoriesConfigCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ - Object? expirationBehaviour = freezed, Object? skipWatched = freezed, + Object? trackWatched = freezed, }) { return _then(StoriesConfig( - expirationBehaviour: freezed == expirationBehaviour - ? _self.expirationBehaviour - : expirationBehaviour // ignore: cast_nullable_to_non_nullable - as StoriesConfigExpirationBehaviour?, skipWatched: freezed == skipWatched ? _self.skipWatched : skipWatched // ignore: cast_nullable_to_non_nullable as bool?, + trackWatched: freezed == trackWatched + ? _self.trackWatched + : trackWatched // ignore: cast_nullable_to_non_nullable + as bool?, )); } } diff --git a/packages/stream_feeds/lib/src/generated/api/model/stories_config.g.dart b/packages/stream_feeds/lib/src/generated/api/model/stories_config.g.dart index 73bbfe19..72e259a6 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/stories_config.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/stories_config.g.dart @@ -8,22 +8,12 @@ part of 'stories_config.dart'; StoriesConfig _$StoriesConfigFromJson(Map json) => StoriesConfig( - expirationBehaviour: $enumDecodeNullable( - _$StoriesConfigExpirationBehaviourEnumMap, - json['expiration_behaviour'], - unknownValue: StoriesConfigExpirationBehaviour.unknown), skipWatched: json['skip_watched'] as bool?, + trackWatched: json['track_watched'] as bool?, ); Map _$StoriesConfigToJson(StoriesConfig instance) => { - 'expiration_behaviour': _$StoriesConfigExpirationBehaviourEnumMap[ - instance.expirationBehaviour], 'skip_watched': instance.skipWatched, + 'track_watched': instance.trackWatched, }; - -const _$StoriesConfigExpirationBehaviourEnumMap = { - StoriesConfigExpirationBehaviour.hideForEveryone: 'hide_for_everyone', - StoriesConfigExpirationBehaviour.visibleForAuthor: 'visible_for_author', - StoriesConfigExpirationBehaviour.unknown: '_unknown', -}; diff --git a/packages/stream_feeds/lib/src/generated/api/model/action_log.dart b/packages/stream_feeds/lib/src/generated/api/model/stories_feed_updated_event.dart similarity index 54% rename from packages/stream_feeds/lib/src/generated/api/model/action_log.dart rename to packages/stream_feeds/lib/src/generated/api/model/stories_feed_updated_event.dart index bb8dae79..550a6a3a 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/action_log.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/stories_feed_updated_event.dart @@ -10,27 +10,28 @@ import 'package:stream_core/stream_core.dart' as core; import '../models.dart'; -part 'action_log.g.dart'; -part 'action_log.freezed.dart'; +part 'stories_feed_updated_event.g.dart'; +part 'stories_feed_updated_event.freezed.dart'; @freezed @immutable @JsonSerializable() -class ActionLog with _$ActionLog { - const ActionLog({ +class StoriesFeedUpdatedEvent extends core.WsEvent + with _$StoriesFeedUpdatedEvent { + const StoriesFeedUpdatedEvent({ + this.aggregatedActivities, required this.createdAt, required this.custom, - required this.id, - required this.reason, - required this.reporterType, - this.reviewQueueItem, - required this.reviewQueueItemId, - this.targetUser, - required this.targetUserId, + this.feedVisibility, + required this.fid, + this.receivedAt, required this.type, this.user, }); + @override + final List? aggregatedActivities; + @override @EpochDateTimeConverter() final DateTime createdAt; @@ -39,34 +40,23 @@ class ActionLog with _$ActionLog { final Map custom; @override - final String id; - - @override - final String reason; - - @override - final String reporterType; + final String? feedVisibility; @override - final ReviewQueueItem? reviewQueueItem; + final String fid; @override - final String reviewQueueItemId; - - @override - final User? targetUser; - - @override - final String targetUserId; + @EpochDateTimeConverter() + final DateTime? receivedAt; @override final String type; @override - final User? user; + final UserResponseCommonFields? user; - Map toJson() => _$ActionLogToJson(this); + Map toJson() => _$StoriesFeedUpdatedEventToJson(this); - static ActionLog fromJson(Map json) => - _$ActionLogFromJson(json); + static StoriesFeedUpdatedEvent fromJson(Map json) => + _$StoriesFeedUpdatedEventFromJson(json); } diff --git a/packages/stream_feeds/lib/src/generated/api/model/stories_feed_updated_event.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/stories_feed_updated_event.freezed.dart new file mode 100644 index 00000000..8b5d5282 --- /dev/null +++ b/packages/stream_feeds/lib/src/generated/api/model/stories_feed_updated_event.freezed.dart @@ -0,0 +1,150 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'stories_feed_updated_event.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$StoriesFeedUpdatedEvent { + List? get aggregatedActivities; + DateTime get createdAt; + Map get custom; + String? get feedVisibility; + String get fid; + DateTime? get receivedAt; + String get type; + UserResponseCommonFields? get user; + + /// Create a copy of StoriesFeedUpdatedEvent + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $StoriesFeedUpdatedEventCopyWith get copyWith => + _$StoriesFeedUpdatedEventCopyWithImpl( + this as StoriesFeedUpdatedEvent, _$identity); + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is StoriesFeedUpdatedEvent && + super == other && + const DeepCollectionEquality() + .equals(other.aggregatedActivities, aggregatedActivities) && + (identical(other.createdAt, createdAt) || + other.createdAt == createdAt) && + const DeepCollectionEquality().equals(other.custom, custom) && + (identical(other.feedVisibility, feedVisibility) || + other.feedVisibility == feedVisibility) && + (identical(other.fid, fid) || other.fid == fid) && + (identical(other.receivedAt, receivedAt) || + other.receivedAt == receivedAt) && + (identical(other.type, type) || other.type == type) && + (identical(other.user, user) || other.user == user)); + } + + @override + int get hashCode => Object.hash( + runtimeType, + super.hashCode, + const DeepCollectionEquality().hash(aggregatedActivities), + createdAt, + const DeepCollectionEquality().hash(custom), + feedVisibility, + fid, + receivedAt, + type, + user); + + @override + String toString() { + return 'StoriesFeedUpdatedEvent(aggregatedActivities: $aggregatedActivities, createdAt: $createdAt, custom: $custom, feedVisibility: $feedVisibility, fid: $fid, receivedAt: $receivedAt, type: $type, user: $user)'; + } +} + +/// @nodoc +abstract mixin class $StoriesFeedUpdatedEventCopyWith<$Res> { + factory $StoriesFeedUpdatedEventCopyWith(StoriesFeedUpdatedEvent value, + $Res Function(StoriesFeedUpdatedEvent) _then) = + _$StoriesFeedUpdatedEventCopyWithImpl; + @useResult + $Res call( + {List? aggregatedActivities, + DateTime createdAt, + Map custom, + String? feedVisibility, + String fid, + DateTime? receivedAt, + String type, + UserResponseCommonFields? user}); +} + +/// @nodoc +class _$StoriesFeedUpdatedEventCopyWithImpl<$Res> + implements $StoriesFeedUpdatedEventCopyWith<$Res> { + _$StoriesFeedUpdatedEventCopyWithImpl(this._self, this._then); + + final StoriesFeedUpdatedEvent _self; + final $Res Function(StoriesFeedUpdatedEvent) _then; + + /// Create a copy of StoriesFeedUpdatedEvent + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? aggregatedActivities = freezed, + Object? createdAt = null, + Object? custom = null, + Object? feedVisibility = freezed, + Object? fid = null, + Object? receivedAt = freezed, + Object? type = null, + Object? user = freezed, + }) { + return _then(StoriesFeedUpdatedEvent( + aggregatedActivities: freezed == aggregatedActivities + ? _self.aggregatedActivities + : aggregatedActivities // ignore: cast_nullable_to_non_nullable + as List?, + createdAt: null == createdAt + ? _self.createdAt + : createdAt // ignore: cast_nullable_to_non_nullable + as DateTime, + custom: null == custom + ? _self.custom + : custom // ignore: cast_nullable_to_non_nullable + as Map, + feedVisibility: freezed == feedVisibility + ? _self.feedVisibility + : feedVisibility // ignore: cast_nullable_to_non_nullable + as String?, + fid: null == fid + ? _self.fid + : fid // ignore: cast_nullable_to_non_nullable + as String, + receivedAt: freezed == receivedAt + ? _self.receivedAt + : receivedAt // ignore: cast_nullable_to_non_nullable + as DateTime?, + type: null == type + ? _self.type + : type // ignore: cast_nullable_to_non_nullable + as String, + user: freezed == user + ? _self.user + : user // ignore: cast_nullable_to_non_nullable + as UserResponseCommonFields?, + )); + } +} + +// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/stories_feed_updated_event.g.dart b/packages/stream_feeds/lib/src/generated/api/model/stories_feed_updated_event.g.dart new file mode 100644 index 00000000..7389983d --- /dev/null +++ b/packages/stream_feeds/lib/src/generated/api/model/stories_feed_updated_event.g.dart @@ -0,0 +1,55 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'stories_feed_updated_event.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +StoriesFeedUpdatedEvent _$StoriesFeedUpdatedEventFromJson( + Map json) => + StoriesFeedUpdatedEvent( + aggregatedActivities: (json['aggregated_activities'] as List?) + ?.map((e) => + AggregatedActivityResponse.fromJson(e as Map)) + .toList(), + createdAt: const EpochDateTimeConverter() + .fromJson((json['created_at'] as num).toInt()), + custom: json['custom'] as Map, + feedVisibility: json['feed_visibility'] as String?, + fid: json['fid'] as String, + receivedAt: _$JsonConverterFromJson( + json['received_at'], const EpochDateTimeConverter().fromJson), + type: json['type'] as String, + user: json['user'] == null + ? null + : UserResponseCommonFields.fromJson( + json['user'] as Map), + ); + +Map _$StoriesFeedUpdatedEventToJson( + StoriesFeedUpdatedEvent instance) => + { + 'aggregated_activities': + instance.aggregatedActivities?.map((e) => e.toJson()).toList(), + 'created_at': const EpochDateTimeConverter().toJson(instance.createdAt), + 'custom': instance.custom, + 'feed_visibility': instance.feedVisibility, + 'fid': instance.fid, + 'received_at': _$JsonConverterToJson( + instance.receivedAt, const EpochDateTimeConverter().toJson), + 'type': instance.type, + 'user': instance.user?.toJson(), + }; + +Value? _$JsonConverterFromJson( + Object? json, + Value? Function(Json json) fromJson, +) => + json == null ? null : fromJson(json as Json); + +Json? _$JsonConverterToJson( + Value? value, + Json? Function(Value value) toJson, +) => + value == null ? null : toJson(value); diff --git a/packages/stream_feeds/lib/src/generated/api/model/stt_egress_config.dart b/packages/stream_feeds/lib/src/generated/api/model/stt_egress_config.dart deleted file mode 100644 index e72445c6..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/stt_egress_config.dart +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'stt_egress_config.g.dart'; -part 'stt_egress_config.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class STTEgressConfig with _$STTEgressConfig { - const STTEgressConfig({ - this.closedCaptionsEnabled, - this.externalStorage, - this.language, - this.speechSegmentConfig, - this.storageName, - this.translationLanguages, - this.translationsEnabled, - this.uploadTranscriptions, - this.whisperServerBaseUrl, - }); - - @override - final bool? closedCaptionsEnabled; - - @override - final ExternalStorage? externalStorage; - - @override - final String? language; - - @override - final SpeechSegmentConfig? speechSegmentConfig; - - @override - final String? storageName; - - @override - final List? translationLanguages; - - @override - final bool? translationsEnabled; - - @override - final bool? uploadTranscriptions; - - @override - final String? whisperServerBaseUrl; - - Map toJson() => _$STTEgressConfigToJson(this); - - static STTEgressConfig fromJson(Map json) => - _$STTEgressConfigFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/stt_egress_config.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/stt_egress_config.freezed.dart deleted file mode 100644 index 270f36dc..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/stt_egress_config.freezed.dart +++ /dev/null @@ -1,162 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'stt_egress_config.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$STTEgressConfig { - bool? get closedCaptionsEnabled; - ExternalStorage? get externalStorage; - String? get language; - SpeechSegmentConfig? get speechSegmentConfig; - String? get storageName; - List? get translationLanguages; - bool? get translationsEnabled; - bool? get uploadTranscriptions; - String? get whisperServerBaseUrl; - - /// Create a copy of STTEgressConfig - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $STTEgressConfigCopyWith get copyWith => - _$STTEgressConfigCopyWithImpl( - this as STTEgressConfig, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is STTEgressConfig && - (identical(other.closedCaptionsEnabled, closedCaptionsEnabled) || - other.closedCaptionsEnabled == closedCaptionsEnabled) && - (identical(other.externalStorage, externalStorage) || - other.externalStorage == externalStorage) && - (identical(other.language, language) || - other.language == language) && - (identical(other.speechSegmentConfig, speechSegmentConfig) || - other.speechSegmentConfig == speechSegmentConfig) && - (identical(other.storageName, storageName) || - other.storageName == storageName) && - const DeepCollectionEquality() - .equals(other.translationLanguages, translationLanguages) && - (identical(other.translationsEnabled, translationsEnabled) || - other.translationsEnabled == translationsEnabled) && - (identical(other.uploadTranscriptions, uploadTranscriptions) || - other.uploadTranscriptions == uploadTranscriptions) && - (identical(other.whisperServerBaseUrl, whisperServerBaseUrl) || - other.whisperServerBaseUrl == whisperServerBaseUrl)); - } - - @override - int get hashCode => Object.hash( - runtimeType, - closedCaptionsEnabled, - externalStorage, - language, - speechSegmentConfig, - storageName, - const DeepCollectionEquality().hash(translationLanguages), - translationsEnabled, - uploadTranscriptions, - whisperServerBaseUrl); - - @override - String toString() { - return 'STTEgressConfig(closedCaptionsEnabled: $closedCaptionsEnabled, externalStorage: $externalStorage, language: $language, speechSegmentConfig: $speechSegmentConfig, storageName: $storageName, translationLanguages: $translationLanguages, translationsEnabled: $translationsEnabled, uploadTranscriptions: $uploadTranscriptions, whisperServerBaseUrl: $whisperServerBaseUrl)'; - } -} - -/// @nodoc -abstract mixin class $STTEgressConfigCopyWith<$Res> { - factory $STTEgressConfigCopyWith( - STTEgressConfig value, $Res Function(STTEgressConfig) _then) = - _$STTEgressConfigCopyWithImpl; - @useResult - $Res call( - {bool? closedCaptionsEnabled, - ExternalStorage? externalStorage, - String? language, - SpeechSegmentConfig? speechSegmentConfig, - String? storageName, - List? translationLanguages, - bool? translationsEnabled, - bool? uploadTranscriptions, - String? whisperServerBaseUrl}); -} - -/// @nodoc -class _$STTEgressConfigCopyWithImpl<$Res> - implements $STTEgressConfigCopyWith<$Res> { - _$STTEgressConfigCopyWithImpl(this._self, this._then); - - final STTEgressConfig _self; - final $Res Function(STTEgressConfig) _then; - - /// Create a copy of STTEgressConfig - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? closedCaptionsEnabled = freezed, - Object? externalStorage = freezed, - Object? language = freezed, - Object? speechSegmentConfig = freezed, - Object? storageName = freezed, - Object? translationLanguages = freezed, - Object? translationsEnabled = freezed, - Object? uploadTranscriptions = freezed, - Object? whisperServerBaseUrl = freezed, - }) { - return _then(STTEgressConfig( - closedCaptionsEnabled: freezed == closedCaptionsEnabled - ? _self.closedCaptionsEnabled - : closedCaptionsEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - externalStorage: freezed == externalStorage - ? _self.externalStorage - : externalStorage // ignore: cast_nullable_to_non_nullable - as ExternalStorage?, - language: freezed == language - ? _self.language - : language // ignore: cast_nullable_to_non_nullable - as String?, - speechSegmentConfig: freezed == speechSegmentConfig - ? _self.speechSegmentConfig - : speechSegmentConfig // ignore: cast_nullable_to_non_nullable - as SpeechSegmentConfig?, - storageName: freezed == storageName - ? _self.storageName - : storageName // ignore: cast_nullable_to_non_nullable - as String?, - translationLanguages: freezed == translationLanguages - ? _self.translationLanguages - : translationLanguages // ignore: cast_nullable_to_non_nullable - as List?, - translationsEnabled: freezed == translationsEnabled - ? _self.translationsEnabled - : translationsEnabled // ignore: cast_nullable_to_non_nullable - as bool?, - uploadTranscriptions: freezed == uploadTranscriptions - ? _self.uploadTranscriptions - : uploadTranscriptions // ignore: cast_nullable_to_non_nullable - as bool?, - whisperServerBaseUrl: freezed == whisperServerBaseUrl - ? _self.whisperServerBaseUrl - : whisperServerBaseUrl // ignore: cast_nullable_to_non_nullable - as String?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/stt_egress_config.g.dart b/packages/stream_feeds/lib/src/generated/api/model/stt_egress_config.g.dart deleted file mode 100644 index b37e7001..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/stt_egress_config.g.dart +++ /dev/null @@ -1,41 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'stt_egress_config.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -STTEgressConfig _$STTEgressConfigFromJson(Map json) => - STTEgressConfig( - closedCaptionsEnabled: json['closed_captions_enabled'] as bool?, - externalStorage: json['external_storage'] == null - ? null - : ExternalStorage.fromJson( - json['external_storage'] as Map), - language: json['language'] as String?, - speechSegmentConfig: json['speech_segment_config'] == null - ? null - : SpeechSegmentConfig.fromJson( - json['speech_segment_config'] as Map), - storageName: json['storage_name'] as String?, - translationLanguages: (json['translation_languages'] as List?) - ?.map((e) => e as String) - .toList(), - translationsEnabled: json['translations_enabled'] as bool?, - uploadTranscriptions: json['upload_transcriptions'] as bool?, - whisperServerBaseUrl: json['whisper_server_base_url'] as String?, - ); - -Map _$STTEgressConfigToJson(STTEgressConfig instance) => - { - 'closed_captions_enabled': instance.closedCaptionsEnabled, - 'external_storage': instance.externalStorage?.toJson(), - 'language': instance.language, - 'speech_segment_config': instance.speechSegmentConfig?.toJson(), - 'storage_name': instance.storageName, - 'translation_languages': instance.translationLanguages, - 'translations_enabled': instance.translationsEnabled, - 'upload_transcriptions': instance.uploadTranscriptions, - 'whisper_server_base_url': instance.whisperServerBaseUrl, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/transcription_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/transcription_settings.dart deleted file mode 100644 index 235d9338..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/transcription_settings.dart +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'transcription_settings.g.dart'; -part 'transcription_settings.freezed.dart'; - -@JsonEnum(alwaysCreate: true) -enum TranscriptionSettingsClosedCaptionMode { - @JsonValue('auto-on') - autoOn, - @JsonValue('available') - available, - @JsonValue('disabled') - disabled, - @JsonValue('_unknown') - unknown; -} - -@JsonEnum(alwaysCreate: true) -enum TranscriptionSettingsLanguage { - @JsonValue('ar') - ar, - @JsonValue('auto') - auto, - @JsonValue('bg') - bg, - @JsonValue('ca') - ca, - @JsonValue('cs') - cs, - @JsonValue('da') - da, - @JsonValue('de') - de, - @JsonValue('el') - el, - @JsonValue('en') - en, - @JsonValue('es') - es, - @JsonValue('et') - et, - @JsonValue('fi') - fi, - @JsonValue('fr') - fr, - @JsonValue('he') - he, - @JsonValue('hi') - hi, - @JsonValue('hr') - hr, - @JsonValue('hu') - hu, - @JsonValue('id') - id, - @JsonValue('it') - it, - @JsonValue('ja') - ja, - @JsonValue('ko') - ko, - @JsonValue('ms') - ms, - @JsonValue('nl') - nl, - @JsonValue('no') - no, - @JsonValue('pl') - pl, - @JsonValue('pt') - pt, - @JsonValue('ro') - ro, - @JsonValue('ru') - ru, - @JsonValue('sk') - sk, - @JsonValue('sl') - sl, - @JsonValue('sv') - sv, - @JsonValue('ta') - ta, - @JsonValue('th') - th, - @JsonValue('tl') - tl, - @JsonValue('tr') - tr, - @JsonValue('uk') - uk, - @JsonValue('zh') - zh, - @JsonValue('_unknown') - unknown; -} - -@JsonEnum(alwaysCreate: true) -enum TranscriptionSettingsMode { - @JsonValue('auto-on') - autoOn, - @JsonValue('available') - available, - @JsonValue('disabled') - disabled, - @JsonValue('_unknown') - unknown; -} - -@freezed -@immutable -@JsonSerializable() -class TranscriptionSettings with _$TranscriptionSettings { - const TranscriptionSettings({ - required this.closedCaptionMode, - required this.language, - required this.mode, - this.speechSegmentConfig, - this.translation, - }); - - @override - @JsonKey(unknownEnumValue: TranscriptionSettingsClosedCaptionMode.unknown) - final TranscriptionSettingsClosedCaptionMode closedCaptionMode; - - @override - @JsonKey(unknownEnumValue: TranscriptionSettingsLanguage.unknown) - final TranscriptionSettingsLanguage language; - - @override - @JsonKey(unknownEnumValue: TranscriptionSettingsMode.unknown) - final TranscriptionSettingsMode mode; - - @override - final SpeechSegmentConfig? speechSegmentConfig; - - @override - final TranslationSettings? translation; - - Map toJson() => _$TranscriptionSettingsToJson(this); - - static TranscriptionSettings fromJson(Map json) => - _$TranscriptionSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/transcription_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/transcription_settings.freezed.dart deleted file mode 100644 index 9162a0cb..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/transcription_settings.freezed.dart +++ /dev/null @@ -1,116 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'transcription_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$TranscriptionSettings { - TranscriptionSettingsClosedCaptionMode get closedCaptionMode; - TranscriptionSettingsLanguage get language; - TranscriptionSettingsMode get mode; - SpeechSegmentConfig? get speechSegmentConfig; - TranslationSettings? get translation; - - /// Create a copy of TranscriptionSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $TranscriptionSettingsCopyWith get copyWith => - _$TranscriptionSettingsCopyWithImpl( - this as TranscriptionSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is TranscriptionSettings && - (identical(other.closedCaptionMode, closedCaptionMode) || - other.closedCaptionMode == closedCaptionMode) && - (identical(other.language, language) || - other.language == language) && - (identical(other.mode, mode) || other.mode == mode) && - (identical(other.speechSegmentConfig, speechSegmentConfig) || - other.speechSegmentConfig == speechSegmentConfig) && - (identical(other.translation, translation) || - other.translation == translation)); - } - - @override - int get hashCode => Object.hash(runtimeType, closedCaptionMode, language, - mode, speechSegmentConfig, translation); - - @override - String toString() { - return 'TranscriptionSettings(closedCaptionMode: $closedCaptionMode, language: $language, mode: $mode, speechSegmentConfig: $speechSegmentConfig, translation: $translation)'; - } -} - -/// @nodoc -abstract mixin class $TranscriptionSettingsCopyWith<$Res> { - factory $TranscriptionSettingsCopyWith(TranscriptionSettings value, - $Res Function(TranscriptionSettings) _then) = - _$TranscriptionSettingsCopyWithImpl; - @useResult - $Res call( - {TranscriptionSettingsClosedCaptionMode closedCaptionMode, - TranscriptionSettingsLanguage language, - TranscriptionSettingsMode mode, - SpeechSegmentConfig? speechSegmentConfig, - TranslationSettings? translation}); -} - -/// @nodoc -class _$TranscriptionSettingsCopyWithImpl<$Res> - implements $TranscriptionSettingsCopyWith<$Res> { - _$TranscriptionSettingsCopyWithImpl(this._self, this._then); - - final TranscriptionSettings _self; - final $Res Function(TranscriptionSettings) _then; - - /// Create a copy of TranscriptionSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? closedCaptionMode = null, - Object? language = null, - Object? mode = null, - Object? speechSegmentConfig = freezed, - Object? translation = freezed, - }) { - return _then(TranscriptionSettings( - closedCaptionMode: null == closedCaptionMode - ? _self.closedCaptionMode - : closedCaptionMode // ignore: cast_nullable_to_non_nullable - as TranscriptionSettingsClosedCaptionMode, - language: null == language - ? _self.language - : language // ignore: cast_nullable_to_non_nullable - as TranscriptionSettingsLanguage, - mode: null == mode - ? _self.mode - : mode // ignore: cast_nullable_to_non_nullable - as TranscriptionSettingsMode, - speechSegmentConfig: freezed == speechSegmentConfig - ? _self.speechSegmentConfig - : speechSegmentConfig // ignore: cast_nullable_to_non_nullable - as SpeechSegmentConfig?, - translation: freezed == translation - ? _self.translation - : translation // ignore: cast_nullable_to_non_nullable - as TranslationSettings?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/transcription_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/transcription_settings.g.dart deleted file mode 100644 index f6a0d681..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/transcription_settings.g.dart +++ /dev/null @@ -1,95 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'transcription_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -TranscriptionSettings _$TranscriptionSettingsFromJson( - Map json) => - TranscriptionSettings( - closedCaptionMode: $enumDecode( - _$TranscriptionSettingsClosedCaptionModeEnumMap, - json['closed_caption_mode'], - unknownValue: TranscriptionSettingsClosedCaptionMode.unknown), - language: $enumDecode( - _$TranscriptionSettingsLanguageEnumMap, json['language'], - unknownValue: TranscriptionSettingsLanguage.unknown), - mode: $enumDecode(_$TranscriptionSettingsModeEnumMap, json['mode'], - unknownValue: TranscriptionSettingsMode.unknown), - speechSegmentConfig: json['speech_segment_config'] == null - ? null - : SpeechSegmentConfig.fromJson( - json['speech_segment_config'] as Map), - translation: json['translation'] == null - ? null - : TranslationSettings.fromJson( - json['translation'] as Map), - ); - -Map _$TranscriptionSettingsToJson( - TranscriptionSettings instance) => - { - 'closed_caption_mode': _$TranscriptionSettingsClosedCaptionModeEnumMap[ - instance.closedCaptionMode]!, - 'language': _$TranscriptionSettingsLanguageEnumMap[instance.language]!, - 'mode': _$TranscriptionSettingsModeEnumMap[instance.mode]!, - 'speech_segment_config': instance.speechSegmentConfig?.toJson(), - 'translation': instance.translation?.toJson(), - }; - -const _$TranscriptionSettingsClosedCaptionModeEnumMap = { - TranscriptionSettingsClosedCaptionMode.autoOn: 'auto-on', - TranscriptionSettingsClosedCaptionMode.available: 'available', - TranscriptionSettingsClosedCaptionMode.disabled: 'disabled', - TranscriptionSettingsClosedCaptionMode.unknown: '_unknown', -}; - -const _$TranscriptionSettingsLanguageEnumMap = { - TranscriptionSettingsLanguage.ar: 'ar', - TranscriptionSettingsLanguage.auto: 'auto', - TranscriptionSettingsLanguage.bg: 'bg', - TranscriptionSettingsLanguage.ca: 'ca', - TranscriptionSettingsLanguage.cs: 'cs', - TranscriptionSettingsLanguage.da: 'da', - TranscriptionSettingsLanguage.de: 'de', - TranscriptionSettingsLanguage.el: 'el', - TranscriptionSettingsLanguage.en: 'en', - TranscriptionSettingsLanguage.es: 'es', - TranscriptionSettingsLanguage.et: 'et', - TranscriptionSettingsLanguage.fi: 'fi', - TranscriptionSettingsLanguage.fr: 'fr', - TranscriptionSettingsLanguage.he: 'he', - TranscriptionSettingsLanguage.hi: 'hi', - TranscriptionSettingsLanguage.hr: 'hr', - TranscriptionSettingsLanguage.hu: 'hu', - TranscriptionSettingsLanguage.id: 'id', - TranscriptionSettingsLanguage.it: 'it', - TranscriptionSettingsLanguage.ja: 'ja', - TranscriptionSettingsLanguage.ko: 'ko', - TranscriptionSettingsLanguage.ms: 'ms', - TranscriptionSettingsLanguage.nl: 'nl', - TranscriptionSettingsLanguage.no: 'no', - TranscriptionSettingsLanguage.pl: 'pl', - TranscriptionSettingsLanguage.pt: 'pt', - TranscriptionSettingsLanguage.ro: 'ro', - TranscriptionSettingsLanguage.ru: 'ru', - TranscriptionSettingsLanguage.sk: 'sk', - TranscriptionSettingsLanguage.sl: 'sl', - TranscriptionSettingsLanguage.sv: 'sv', - TranscriptionSettingsLanguage.ta: 'ta', - TranscriptionSettingsLanguage.th: 'th', - TranscriptionSettingsLanguage.tl: 'tl', - TranscriptionSettingsLanguage.tr: 'tr', - TranscriptionSettingsLanguage.uk: 'uk', - TranscriptionSettingsLanguage.zh: 'zh', - TranscriptionSettingsLanguage.unknown: '_unknown', -}; - -const _$TranscriptionSettingsModeEnumMap = { - TranscriptionSettingsMode.autoOn: 'auto-on', - TranscriptionSettingsMode.available: 'available', - TranscriptionSettingsMode.disabled: 'disabled', - TranscriptionSettingsMode.unknown: '_unknown', -}; diff --git a/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.dart b/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.dart index e625f6dc..863c5cb1 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.dart @@ -18,10 +18,18 @@ part 'update_block_list_request.freezed.dart'; @JsonSerializable() class UpdateBlockListRequest with _$UpdateBlockListRequest { const UpdateBlockListRequest({ + this.isLeetCheckEnabled, + this.isPluralCheckEnabled, this.team, this.words, }); + @override + final bool? isLeetCheckEnabled; + + @override + final bool? isPluralCheckEnabled; + @override final String? team; diff --git a/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.freezed.dart index a5c7ab96..c2ee271d 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.freezed.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.freezed.dart @@ -15,6 +15,8 @@ T _$identity(T value) => value; /// @nodoc mixin _$UpdateBlockListRequest { + bool? get isLeetCheckEnabled; + bool? get isPluralCheckEnabled; String? get team; List? get words; @@ -31,17 +33,21 @@ mixin _$UpdateBlockListRequest { return identical(this, other) || (other.runtimeType == runtimeType && other is UpdateBlockListRequest && + (identical(other.isLeetCheckEnabled, isLeetCheckEnabled) || + other.isLeetCheckEnabled == isLeetCheckEnabled) && + (identical(other.isPluralCheckEnabled, isPluralCheckEnabled) || + other.isPluralCheckEnabled == isPluralCheckEnabled) && (identical(other.team, team) || other.team == team) && const DeepCollectionEquality().equals(other.words, words)); } @override - int get hashCode => Object.hash( - runtimeType, team, const DeepCollectionEquality().hash(words)); + int get hashCode => Object.hash(runtimeType, isLeetCheckEnabled, + isPluralCheckEnabled, team, const DeepCollectionEquality().hash(words)); @override String toString() { - return 'UpdateBlockListRequest(team: $team, words: $words)'; + return 'UpdateBlockListRequest(isLeetCheckEnabled: $isLeetCheckEnabled, isPluralCheckEnabled: $isPluralCheckEnabled, team: $team, words: $words)'; } } @@ -51,7 +57,11 @@ abstract mixin class $UpdateBlockListRequestCopyWith<$Res> { $Res Function(UpdateBlockListRequest) _then) = _$UpdateBlockListRequestCopyWithImpl; @useResult - $Res call({String? team, List? words}); + $Res call( + {bool? isLeetCheckEnabled, + bool? isPluralCheckEnabled, + String? team, + List? words}); } /// @nodoc @@ -67,10 +77,20 @@ class _$UpdateBlockListRequestCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ + Object? isLeetCheckEnabled = freezed, + Object? isPluralCheckEnabled = freezed, Object? team = freezed, Object? words = freezed, }) { return _then(UpdateBlockListRequest( + isLeetCheckEnabled: freezed == isLeetCheckEnabled + ? _self.isLeetCheckEnabled + : isLeetCheckEnabled // ignore: cast_nullable_to_non_nullable + as bool?, + isPluralCheckEnabled: freezed == isPluralCheckEnabled + ? _self.isPluralCheckEnabled + : isPluralCheckEnabled // ignore: cast_nullable_to_non_nullable + as bool?, team: freezed == team ? _self.team : team // ignore: cast_nullable_to_non_nullable diff --git a/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.g.dart b/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.g.dart index a33249b5..f78b5017 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.g.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/update_block_list_request.g.dart @@ -9,6 +9,8 @@ part of 'update_block_list_request.dart'; UpdateBlockListRequest _$UpdateBlockListRequestFromJson( Map json) => UpdateBlockListRequest( + isLeetCheckEnabled: json['is_leet_check_enabled'] as bool?, + isPluralCheckEnabled: json['is_plural_check_enabled'] as bool?, team: json['team'] as String?, words: (json['words'] as List?)?.map((e) => e as String).toList(), @@ -17,6 +19,8 @@ UpdateBlockListRequest _$UpdateBlockListRequestFromJson( Map _$UpdateBlockListRequestToJson( UpdateBlockListRequest instance) => { + 'is_leet_check_enabled': instance.isLeetCheckEnabled, + 'is_plural_check_enabled': instance.isPluralCheckEnabled, 'team': instance.team, 'words': instance.words, }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/video_orientation.dart b/packages/stream_feeds/lib/src/generated/api/model/video_orientation.dart deleted file mode 100644 index 8f4bc545..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/video_orientation.dart +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'video_orientation.g.dart'; -part 'video_orientation.freezed.dart'; - -@freezed -@immutable -@JsonSerializable() -class VideoOrientation with _$VideoOrientation { - const VideoOrientation({ - this.orientation, - }); - - @override - final int? orientation; - - Map toJson() => _$VideoOrientationToJson(this); - - static VideoOrientation fromJson(Map json) => - _$VideoOrientationFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/video_orientation.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/video_orientation.freezed.dart deleted file mode 100644 index 4412d69f..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/video_orientation.freezed.dart +++ /dev/null @@ -1,79 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'video_orientation.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$VideoOrientation { - int? get orientation; - - /// Create a copy of VideoOrientation - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $VideoOrientationCopyWith get copyWith => - _$VideoOrientationCopyWithImpl( - this as VideoOrientation, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is VideoOrientation && - (identical(other.orientation, orientation) || - other.orientation == orientation)); - } - - @override - int get hashCode => Object.hash(runtimeType, orientation); - - @override - String toString() { - return 'VideoOrientation(orientation: $orientation)'; - } -} - -/// @nodoc -abstract mixin class $VideoOrientationCopyWith<$Res> { - factory $VideoOrientationCopyWith( - VideoOrientation value, $Res Function(VideoOrientation) _then) = - _$VideoOrientationCopyWithImpl; - @useResult - $Res call({int? orientation}); -} - -/// @nodoc -class _$VideoOrientationCopyWithImpl<$Res> - implements $VideoOrientationCopyWith<$Res> { - _$VideoOrientationCopyWithImpl(this._self, this._then); - - final VideoOrientation _self; - final $Res Function(VideoOrientation) _then; - - /// Create a copy of VideoOrientation - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? orientation = freezed, - }) { - return _then(VideoOrientation( - orientation: freezed == orientation - ? _self.orientation - : orientation // ignore: cast_nullable_to_non_nullable - as int?, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/video_orientation.g.dart b/packages/stream_feeds/lib/src/generated/api/model/video_orientation.g.dart deleted file mode 100644 index 3db9bc29..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/video_orientation.g.dart +++ /dev/null @@ -1,17 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'video_orientation.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -VideoOrientation _$VideoOrientationFromJson(Map json) => - VideoOrientation( - orientation: (json['orientation'] as num?)?.toInt(), - ); - -Map _$VideoOrientationToJson(VideoOrientation instance) => - { - 'orientation': instance.orientation, - }; diff --git a/packages/stream_feeds/lib/src/generated/api/model/video_settings.dart b/packages/stream_feeds/lib/src/generated/api/model/video_settings.dart deleted file mode 100644 index 2c5dcbeb..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/video_settings.dart +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT. - -// coverage:ignore-file -// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs - -import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:meta/meta.dart'; -import 'package:stream_core/stream_core.dart' as core; - -import '../models.dart'; - -part 'video_settings.g.dart'; -part 'video_settings.freezed.dart'; - -@JsonEnum(alwaysCreate: true) -enum VideoSettingsCameraFacing { - @JsonValue('back') - back, - @JsonValue('external') - external, - @JsonValue('front') - front, - @JsonValue('_unknown') - unknown; -} - -@freezed -@immutable -@JsonSerializable() -class VideoSettings with _$VideoSettings { - const VideoSettings({ - required this.accessRequestEnabled, - required this.cameraDefaultOn, - required this.cameraFacing, - required this.enabled, - required this.targetResolution, - }); - - @override - final bool accessRequestEnabled; - - @override - final bool cameraDefaultOn; - - @override - @JsonKey(unknownEnumValue: VideoSettingsCameraFacing.unknown) - final VideoSettingsCameraFacing cameraFacing; - - @override - final bool enabled; - - @override - final TargetResolution targetResolution; - - Map toJson() => _$VideoSettingsToJson(this); - - static VideoSettings fromJson(Map json) => - _$VideoSettingsFromJson(json); -} diff --git a/packages/stream_feeds/lib/src/generated/api/model/video_settings.freezed.dart b/packages/stream_feeds/lib/src/generated/api/model/video_settings.freezed.dart deleted file mode 100644 index 07fc14f8..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/video_settings.freezed.dart +++ /dev/null @@ -1,116 +0,0 @@ -// dart format width=80 -// coverage:ignore-file -// GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: type=lint -// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark - -part of 'video_settings.dart'; - -// ************************************************************************** -// FreezedGenerator -// ************************************************************************** - -// dart format off -T _$identity(T value) => value; - -/// @nodoc -mixin _$VideoSettings { - bool get accessRequestEnabled; - bool get cameraDefaultOn; - VideoSettingsCameraFacing get cameraFacing; - bool get enabled; - TargetResolution get targetResolution; - - /// Create a copy of VideoSettings - /// with the given fields replaced by the non-null parameter values. - @JsonKey(includeFromJson: false, includeToJson: false) - @pragma('vm:prefer-inline') - $VideoSettingsCopyWith get copyWith => - _$VideoSettingsCopyWithImpl( - this as VideoSettings, _$identity); - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && - other is VideoSettings && - (identical(other.accessRequestEnabled, accessRequestEnabled) || - other.accessRequestEnabled == accessRequestEnabled) && - (identical(other.cameraDefaultOn, cameraDefaultOn) || - other.cameraDefaultOn == cameraDefaultOn) && - (identical(other.cameraFacing, cameraFacing) || - other.cameraFacing == cameraFacing) && - (identical(other.enabled, enabled) || other.enabled == enabled) && - (identical(other.targetResolution, targetResolution) || - other.targetResolution == targetResolution)); - } - - @override - int get hashCode => Object.hash(runtimeType, accessRequestEnabled, - cameraDefaultOn, cameraFacing, enabled, targetResolution); - - @override - String toString() { - return 'VideoSettings(accessRequestEnabled: $accessRequestEnabled, cameraDefaultOn: $cameraDefaultOn, cameraFacing: $cameraFacing, enabled: $enabled, targetResolution: $targetResolution)'; - } -} - -/// @nodoc -abstract mixin class $VideoSettingsCopyWith<$Res> { - factory $VideoSettingsCopyWith( - VideoSettings value, $Res Function(VideoSettings) _then) = - _$VideoSettingsCopyWithImpl; - @useResult - $Res call( - {bool accessRequestEnabled, - bool cameraDefaultOn, - VideoSettingsCameraFacing cameraFacing, - bool enabled, - TargetResolution targetResolution}); -} - -/// @nodoc -class _$VideoSettingsCopyWithImpl<$Res> - implements $VideoSettingsCopyWith<$Res> { - _$VideoSettingsCopyWithImpl(this._self, this._then); - - final VideoSettings _self; - final $Res Function(VideoSettings) _then; - - /// Create a copy of VideoSettings - /// with the given fields replaced by the non-null parameter values. - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? accessRequestEnabled = null, - Object? cameraDefaultOn = null, - Object? cameraFacing = null, - Object? enabled = null, - Object? targetResolution = null, - }) { - return _then(VideoSettings( - accessRequestEnabled: null == accessRequestEnabled - ? _self.accessRequestEnabled - : accessRequestEnabled // ignore: cast_nullable_to_non_nullable - as bool, - cameraDefaultOn: null == cameraDefaultOn - ? _self.cameraDefaultOn - : cameraDefaultOn // ignore: cast_nullable_to_non_nullable - as bool, - cameraFacing: null == cameraFacing - ? _self.cameraFacing - : cameraFacing // ignore: cast_nullable_to_non_nullable - as VideoSettingsCameraFacing, - enabled: null == enabled - ? _self.enabled - : enabled // ignore: cast_nullable_to_non_nullable - as bool, - targetResolution: null == targetResolution - ? _self.targetResolution - : targetResolution // ignore: cast_nullable_to_non_nullable - as TargetResolution, - )); - } -} - -// dart format on diff --git a/packages/stream_feeds/lib/src/generated/api/model/video_settings.g.dart b/packages/stream_feeds/lib/src/generated/api/model/video_settings.g.dart deleted file mode 100644 index 1c86785f..00000000 --- a/packages/stream_feeds/lib/src/generated/api/model/video_settings.g.dart +++ /dev/null @@ -1,36 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'video_settings.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -VideoSettings _$VideoSettingsFromJson(Map json) => - VideoSettings( - accessRequestEnabled: json['access_request_enabled'] as bool, - cameraDefaultOn: json['camera_default_on'] as bool, - cameraFacing: $enumDecode( - _$VideoSettingsCameraFacingEnumMap, json['camera_facing'], - unknownValue: VideoSettingsCameraFacing.unknown), - enabled: json['enabled'] as bool, - targetResolution: TargetResolution.fromJson( - json['target_resolution'] as Map), - ); - -Map _$VideoSettingsToJson(VideoSettings instance) => - { - 'access_request_enabled': instance.accessRequestEnabled, - 'camera_default_on': instance.cameraDefaultOn, - 'camera_facing': - _$VideoSettingsCameraFacingEnumMap[instance.cameraFacing]!, - 'enabled': instance.enabled, - 'target_resolution': instance.targetResolution.toJson(), - }; - -const _$VideoSettingsCameraFacingEnumMap = { - VideoSettingsCameraFacing.back: 'back', - VideoSettingsCameraFacing.external: 'external', - VideoSettingsCameraFacing.front: 'front', - VideoSettingsCameraFacing.unknown: '_unknown', -}; diff --git a/packages/stream_feeds/lib/src/generated/api/model/ws_client_event.dart b/packages/stream_feeds/lib/src/generated/api/model/ws_client_event.dart index 86531c33..a66a550c 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/ws_client_event.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/ws_client_event.dart @@ -100,6 +100,12 @@ abstract class WSClientEvent { _PollVoteChangedFeedEvent(PollVoteChangedFeedEvent.fromJson(json)), "feeds.poll.vote_removed" => _PollVoteRemovedFeedEvent(PollVoteRemovedFeedEvent.fromJson(json)), + "feeds.stories_feed.updated" => + _StoriesFeedUpdatedEvent(StoriesFeedUpdatedEvent.fromJson(json)), + "moderation.custom_action" => _ModerationCustomActionEvent( + ModerationCustomActionEvent.fromJson(json)), + "moderation.mark_reviewed" => _ModerationMarkReviewedEvent( + ModerationMarkReviewedEvent.fromJson(json)), "user.updated" => _UserUpdatedEvent(UserUpdatedEvent.fromJson(json)), _ => _UnknownWSClientEvent(UnknownWSClientEvent(eventType, json)), }; @@ -398,6 +404,29 @@ class _PollVoteRemovedFeedEvent String get type => wrapped.type; } +class _StoriesFeedUpdatedEvent extends WSClientEvent { + const _StoriesFeedUpdatedEvent(super.wrapped); + + @override + String get type => wrapped.type; +} + +class _ModerationCustomActionEvent + extends WSClientEvent { + const _ModerationCustomActionEvent(super.wrapped); + + @override + String get type => wrapped.type; +} + +class _ModerationMarkReviewedEvent + extends WSClientEvent { + const _ModerationMarkReviewedEvent(super.wrapped); + + @override + String get type => wrapped.type; +} + class _UserUpdatedEvent extends WSClientEvent { const _UserUpdatedEvent(super.wrapped); diff --git a/packages/stream_feeds/lib/src/generated/api/model/ws_event.dart b/packages/stream_feeds/lib/src/generated/api/model/ws_event.dart index db00b8c1..649dfd04 100644 --- a/packages/stream_feeds/lib/src/generated/api/model/ws_event.dart +++ b/packages/stream_feeds/lib/src/generated/api/model/ws_event.dart @@ -100,6 +100,8 @@ abstract class WSEvent { _PollVoteChangedFeedEvent(PollVoteChangedFeedEvent.fromJson(json)), "feeds.poll.vote_removed" => _PollVoteRemovedFeedEvent(PollVoteRemovedFeedEvent.fromJson(json)), + "feeds.stories_feed.updated" => + _StoriesFeedUpdatedEvent(StoriesFeedUpdatedEvent.fromJson(json)), "moderation.custom_action" => _ModerationCustomActionEvent( ModerationCustomActionEvent.fromJson(json)), "moderation.flagged" => @@ -404,6 +406,13 @@ class _PollVoteRemovedFeedEvent extends WSEvent { String get type => wrapped.type; } +class _StoriesFeedUpdatedEvent extends WSEvent { + const _StoriesFeedUpdatedEvent(super.wrapped); + + @override + String get type => wrapped.type; +} + class _ModerationCustomActionEvent extends WSEvent { const _ModerationCustomActionEvent(super.wrapped); diff --git a/packages/stream_feeds/lib/src/generated/api/models.dart b/packages/stream_feeds/lib/src/generated/api/models.dart index 29387ef9..e707dc21 100644 --- a/packages/stream_feeds/lib/src/generated/api/models.dart +++ b/packages/stream_feeds/lib/src/generated/api/models.dart @@ -7,13 +7,11 @@ export 'package:stream_core/stream_core.dart' show StreamApiError; export 'model/ai_image_config.dart'; export 'model/ai_text_config.dart'; export 'model/ai_video_config.dart'; -export 'model/apns.dart'; export 'model/aws_rekognition_rule.dart'; export 'model/accept_feed_member_invite_response.dart'; export 'model/accept_follow_request.dart'; export 'model/accept_follow_response.dart'; export 'model/action.dart'; -export 'model/action_log.dart'; export 'model/action_log_response.dart'; export 'model/action_sequence.dart'; export 'model/activity_added_event.dart'; @@ -53,14 +51,12 @@ export 'model/app_event_response.dart'; export 'model/app_response_fields.dart'; export 'model/app_updated_event.dart'; export 'model/attachment.dart'; -export 'model/audio_settings.dart'; export 'model/audio_settings_response.dart'; export 'model/automod_platform_circumvention_config.dart'; export 'model/automod_rule.dart'; export 'model/automod_semantic_filters_config.dart'; export 'model/automod_semantic_filters_rule.dart'; export 'model/automod_toxicity_config.dart'; -export 'model/backstage_settings.dart'; export 'model/backstage_settings_response.dart'; export 'model/ban.dart'; export 'model/ban_action_request.dart'; @@ -83,20 +79,12 @@ export 'model/bookmark_folder_response.dart'; export 'model/bookmark_folder_updated_event.dart'; export 'model/bookmark_response.dart'; export 'model/bookmark_updated_event.dart'; -export 'model/broadcast_settings.dart'; export 'model/broadcast_settings_response.dart'; -export 'model/call.dart'; -export 'model/call_egress.dart'; export 'model/call_ingress_response.dart'; -export 'model/call_member.dart'; -export 'model/call_participant.dart'; export 'model/call_participant_response.dart'; export 'model/call_response.dart'; -export 'model/call_session.dart'; export 'model/call_session_response.dart'; -export 'model/call_settings.dart'; export 'model/call_settings_response.dart'; -export 'model/call_type.dart'; export 'model/cast_poll_vote_request.dart'; export 'model/channel.dart'; export 'model/channel_config.dart'; @@ -116,7 +104,6 @@ export 'model/comment_reaction_deleted_event.dart'; export 'model/comment_reaction_updated_event.dart'; export 'model/comment_response.dart'; export 'model/comment_updated_event.dart'; -export 'model/composite_app_settings.dart'; export 'model/config_overrides.dart'; export 'model/config_response.dart'; export 'model/content_count_rule_parameters.dart'; @@ -146,6 +133,8 @@ export 'model/delete_message_request.dart'; export 'model/delete_moderation_config_response.dart'; export 'model/delete_reaction_request.dart'; export 'model/delete_user_request.dart'; +export 'model/delivery_receipts.dart'; +export 'model/delivery_receipts_response.dart'; export 'model/device.dart'; export 'model/device_response.dart'; export 'model/draft_payload_response.dart'; @@ -154,15 +143,9 @@ export 'model/duration_response.dart'; export 'model/egress_hls_response.dart'; export 'model/egress_rtmp_response.dart'; export 'model/egress_response.dart'; -export 'model/egress_task_config.dart'; -export 'model/egress_user.dart'; export 'model/enriched_activity.dart'; export 'model/enriched_reaction.dart'; -export 'model/entity_creator.dart'; export 'model/entity_creator_response.dart'; -export 'model/event_notification_settings.dart'; -export 'model/external_storage.dart'; -export 'model/fcm.dart'; export 'model/feed_created_event.dart'; export 'model/feed_deleted_event.dart'; export 'model/feed_group.dart'; @@ -184,7 +167,6 @@ export 'model/field.dart'; export 'model/file_upload_config.dart'; export 'model/file_upload_request.dart'; export 'model/file_upload_response.dart'; -export 'model/flag.dart'; export 'model/flag_request.dart'; export 'model/flag_response.dart'; export 'model/flag_user_options.dart'; @@ -195,12 +177,9 @@ export 'model/follow_deleted_event.dart'; export 'model/follow_request.dart'; export 'model/follow_response.dart'; export 'model/follow_updated_event.dart'; -export 'model/frame_record_settings.dart'; -export 'model/frame_recording_egress_config.dart'; export 'model/frame_recording_response.dart'; export 'model/frame_recording_settings_response.dart'; export 'model/full_user_response.dart'; -export 'model/geofence_settings.dart'; export 'model/geofence_settings_response.dart'; export 'model/get_activity_response.dart'; export 'model/get_application_response.dart'; @@ -214,8 +193,6 @@ export 'model/get_og_response.dart'; export 'model/get_or_create_feed_request.dart'; export 'model/get_or_create_feed_response.dart'; export 'model/google_vision_config.dart'; -export 'model/hls_egress_config.dart'; -export 'model/hls_settings.dart'; export 'model/hls_settings_response.dart'; export 'model/harm_config.dart'; export 'model/image_content_parameters.dart'; @@ -225,25 +202,19 @@ export 'model/image_size.dart'; export 'model/image_upload_request.dart'; export 'model/image_upload_response.dart'; export 'model/images.dart'; -export 'model/ingress_audio_encoding_options.dart'; export 'model/ingress_audio_encoding_response.dart'; -export 'model/ingress_settings.dart'; export 'model/ingress_settings_response.dart'; -export 'model/ingress_video_encoding_options.dart'; +export 'model/ingress_source_response.dart'; export 'model/ingress_video_encoding_response.dart'; -export 'model/ingress_video_layer.dart'; export 'model/ingress_video_layer_response.dart'; export 'model/llm_config.dart'; export 'model/llm_rule.dart'; export 'model/label_thresholds.dart'; -export 'model/layout_settings.dart'; -export 'model/limits_settings.dart'; export 'model/limits_settings_response.dart'; export 'model/list_block_list_response.dart'; export 'model/list_devices_response.dart'; export 'model/mark_activity_request.dart'; export 'model/mark_reviewed_request.dart'; -export 'model/member_lookup.dart'; export 'model/membership_level_response.dart'; export 'model/message.dart'; export 'model/message_reminder.dart'; @@ -261,12 +232,13 @@ export 'model/noise_cancellation_settings.dart'; export 'model/notification_config.dart'; export 'model/notification_context.dart'; export 'model/notification_feed_updated_event.dart'; -export 'model/notification_settings.dart'; export 'model/notification_status_response.dart'; export 'model/notification_target.dart'; export 'model/notification_trigger.dart'; export 'model/ocr_rule.dart'; export 'model/only_user_id.dart'; +export 'model/own_capabilities_batch_request.dart'; +export 'model/own_capabilities_batch_response.dart'; export 'model/own_user.dart'; export 'model/own_user_response.dart'; export 'model/pager_request.dart'; @@ -295,7 +267,6 @@ export 'model/privacy_settings_response.dart'; export 'model/push_notification_config.dart'; export 'model/push_preference_input.dart'; export 'model/push_preferences.dart'; -export 'model/quality.dart'; export 'model/query_activities_request.dart'; export 'model/query_activities_response.dart'; export 'model/query_activity_reactions_request.dart'; @@ -323,10 +294,7 @@ export 'model/query_review_queue_request.dart'; export 'model/query_review_queue_response.dart'; export 'model/query_users_payload.dart'; export 'model/query_users_response.dart'; -export 'model/rtmp_egress_config.dart'; export 'model/rtmp_ingress.dart'; -export 'model/rtmp_location.dart'; -export 'model/rtmp_settings.dart'; export 'model/rtmp_settings_response.dart'; export 'model/ranking_config.dart'; export 'model/reaction.dart'; @@ -334,29 +302,21 @@ export 'model/reaction_group_response.dart'; export 'model/reaction_response.dart'; export 'model/read_receipts.dart'; export 'model/read_receipts_response.dart'; -export 'model/record_settings.dart'; export 'model/record_settings_response.dart'; -export 'model/recording_egress_config.dart'; export 'model/reject_feed_member_invite_response.dart'; export 'model/reject_follow_request.dart'; export 'model/reject_follow_response.dart'; export 'model/reminder_response_data.dart'; export 'model/replies_meta.dart'; -export 'model/review_queue_item.dart'; export 'model/review_queue_item_response.dart'; -export 'model/ring_settings.dart'; export 'model/ring_settings_response.dart'; export 'model/rule_builder_action.dart'; export 'model/rule_builder_condition.dart'; export 'model/rule_builder_condition_group.dart'; export 'model/rule_builder_config.dart'; export 'model/rule_builder_rule.dart'; -export 'model/sfuid_last_seen.dart'; export 'model/srt_ingress.dart'; -export 'model/stt_egress_config.dart'; -export 'model/screensharing_settings.dart'; export 'model/screensharing_settings_response.dart'; -export 'model/session_settings.dart'; export 'model/session_settings_response.dart'; export 'model/shared_location.dart'; export 'model/shared_location_response.dart'; @@ -367,6 +327,7 @@ export 'model/sort_param.dart'; export 'model/sort_param_request.dart'; export 'model/speech_segment_config.dart'; export 'model/stories_config.dart'; +export 'model/stories_feed_updated_event.dart'; export 'model/submit_action_request.dart'; export 'model/submit_action_response.dart'; export 'model/target_resolution.dart'; @@ -375,9 +336,7 @@ export 'model/text_rule_parameters.dart'; export 'model/threaded_comment_response.dart'; export 'model/thresholds.dart'; export 'model/thumbnail_response.dart'; -export 'model/thumbnails_settings.dart'; export 'model/thumbnails_settings_response.dart'; -export 'model/transcription_settings.dart'; export 'model/transcription_settings_response.dart'; export 'model/translation_settings.dart'; export 'model/typing_indicators.dart'; @@ -437,9 +396,7 @@ export 'model/velocity_filter_config.dart'; export 'model/velocity_filter_config_rule.dart'; export 'model/video_call_rule_config.dart'; export 'model/video_content_parameters.dart'; -export 'model/video_orientation.dart'; export 'model/video_rule_parameters.dart'; -export 'model/video_settings.dart'; export 'model/video_settings_response.dart'; export 'model/vote_data.dart'; export 'model/whip_ingress.dart'; diff --git a/packages/stream_feeds/lib/src/repository/activities_repository.dart b/packages/stream_feeds/lib/src/repository/activities_repository.dart index 6e3e2f1d..580680b0 100644 --- a/packages/stream_feeds/lib/src/repository/activities_repository.dart +++ b/packages/stream_feeds/lib/src/repository/activities_repository.dart @@ -195,11 +195,11 @@ class ActivitiesRepository { /// Creates a new reaction on the activity with [activityId] using the provided [request] data. /// /// Returns a [Result] containing the [FeedsReactionData] or an error. - Future> addReaction( + Future> addActivityReaction( String activityId, api.AddReactionRequest request, ) async { - final result = await _api.addReaction( + final result = await _api.addActivityReaction( activityId: activityId, addReactionRequest: request, ); @@ -212,7 +212,7 @@ class ActivitiesRepository { /// Removes the reaction of [type] from the activity with [activityId]. /// /// Returns a [Result] containing the deleted [FeedsReactionData] or an error. - Future> deleteReaction( + Future> deleteActivityReaction( String activityId, String type, ) async { diff --git a/packages/stream_feeds/lib/src/state/feed.dart b/packages/stream_feeds/lib/src/state/feed.dart index 5e11d6bd..e558544a 100644 --- a/packages/stream_feeds/lib/src/state/feed.dart +++ b/packages/stream_feeds/lib/src/state/feed.dart @@ -545,30 +545,50 @@ class Feed with Disposable { // region Reaction Methods + @Deprecated('Use addActivityReaction instead') + Future> addReaction({ + required String activityId, + required api.AddReactionRequest request, + }) => + addActivityReaction( + activityId: activityId, + request: request, + ); + /// Adds a reaction to an activity. /// /// [activityId] The unique identifier of the activity to react to. /// [request] The request containing the reaction data. /// Returns a [Result] containing the added [FeedsReactionData] if successful, or an error if the /// operation fails. - Future> addReaction({ + Future> addActivityReaction({ required String activityId, required api.AddReactionRequest request, }) { - return activitiesRepository.addReaction(activityId, request); + return activitiesRepository.addActivityReaction(activityId, request); } + @Deprecated('Use deleteActivityReaction instead') + Future> deleteReaction({ + required String activityId, + required String type, + }) => + deleteActivityReaction( + activityId: activityId, + type: type, + ); + /// Deletes a reaction from an activity. /// /// [activityId] The unique identifier of the activity from which to delete the reaction. /// [type] The type of reaction to delete. /// Returns a [Result] containing the deleted [FeedsReactionData] if successful, or an error if /// the operation fails. - Future> deleteReaction({ + Future> deleteActivityReaction({ required String activityId, required String type, }) { - return activitiesRepository.deleteReaction(activityId, type); + return activitiesRepository.deleteActivityReaction(activityId, type); } /// Adds a reaction to a comment. diff --git a/sample_app/lib/screens/user_feed/feed/user_feed.dart b/sample_app/lib/screens/user_feed/feed/user_feed.dart index cc793c9a..96850291 100644 --- a/sample_app/lib/screens/user_feed/feed/user_feed.dart +++ b/sample_app/lib/screens/user_feed/feed/user_feed.dart @@ -130,7 +130,7 @@ class UserFeed extends StatelessWidget { void _onHeartClick(ActivityData activity, bool isAdding) { if (isAdding) { - userFeed.addReaction( + userFeed.addActivityReaction( activityId: activity.id, request: const AddReactionRequest( type: 'heart', @@ -138,7 +138,7 @@ class UserFeed extends StatelessWidget { ), ); } else { - userFeed.deleteReaction( + userFeed.deleteActivityReaction( activityId: activity.id, type: 'heart', );