diff --git a/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.dart b/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.dart index 1c3235845..d6a0042d9 100644 --- a/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.dart +++ b/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.dart @@ -24,15 +24,12 @@ part 'output.g.dart'; @freezed abstract class GraphGetSuggestedFollowsByActorOutput with _$GraphGetSuggestedFollowsByActorOutput { - static const knownProps = ['suggestions', 'isFallback', 'recIdStr']; + static const knownProps = ['suggestions', 'recIdStr']; @JsonSerializable(includeIfNull: false) const factory GraphGetSuggestedFollowsByActorOutput({ @ProfileViewConverter() required List suggestions, - /// If true, response has fallen-back to generic results, and is not scoped using relativeToDid - @Default(false) bool isFallback, - /// Snowflake for this recommendation, use when submitting recommendation events. String? recIdStr, @@ -46,8 +43,6 @@ abstract class GraphGetSuggestedFollowsByActorOutput extension GraphGetSuggestedFollowsByActorOutputExtension on GraphGetSuggestedFollowsByActorOutput { - bool get isIsFallback => isFallback; - bool get isNotIsFallback => !isIsFallback; bool get hasRecIdStr => recIdStr != null; bool get hasNotRecIdStr => !hasRecIdStr; } diff --git a/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.freezed.dart b/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.freezed.dart index c462f4e8e..2b739a8c2 100644 --- a/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.freezed.dart +++ b/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.freezed.dart @@ -15,8 +15,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$GraphGetSuggestedFollowsByActorOutput { -@ProfileViewConverter() List get suggestions;/// If true, response has fallen-back to generic results, and is not scoped using relativeToDid - bool get isFallback;/// Snowflake for this recommendation, use when submitting recommendation events. +@ProfileViewConverter() List get suggestions;/// Snowflake for this recommendation, use when submitting recommendation events. String? get recIdStr; Map? get $unknown; /// Create a copy of GraphGetSuggestedFollowsByActorOutput /// with the given fields replaced by the non-null parameter values. @@ -30,16 +29,16 @@ $GraphGetSuggestedFollowsByActorOutputCopyWith Object.hash(runtimeType,const DeepCollectionEquality().hash(suggestions),isFallback,recIdStr,const DeepCollectionEquality().hash($unknown)); +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(suggestions),recIdStr,const DeepCollectionEquality().hash($unknown)); @override String toString() { - return 'GraphGetSuggestedFollowsByActorOutput(suggestions: $suggestions, isFallback: $isFallback, recIdStr: $recIdStr, \$unknown: ${$unknown})'; + return 'GraphGetSuggestedFollowsByActorOutput(suggestions: $suggestions, recIdStr: $recIdStr, \$unknown: ${$unknown})'; } @@ -50,7 +49,7 @@ abstract mixin class $GraphGetSuggestedFollowsByActorOutputCopyWith<$Res> { factory $GraphGetSuggestedFollowsByActorOutputCopyWith(GraphGetSuggestedFollowsByActorOutput value, $Res Function(GraphGetSuggestedFollowsByActorOutput) _then) = _$GraphGetSuggestedFollowsByActorOutputCopyWithImpl; @useResult $Res call({ -@ProfileViewConverter() List suggestions, bool isFallback, String? recIdStr, Map? $unknown +@ProfileViewConverter() List suggestions, String? recIdStr, Map? $unknown }); @@ -67,11 +66,10 @@ class _$GraphGetSuggestedFollowsByActorOutputCopyWithImpl<$Res> /// Create a copy of GraphGetSuggestedFollowsByActorOutput /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? suggestions = null,Object? isFallback = null,Object? recIdStr = freezed,Object? $unknown = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? suggestions = null,Object? recIdStr = freezed,Object? $unknown = freezed,}) { return _then(_self.copyWith( suggestions: null == suggestions ? _self.suggestions : suggestions // ignore: cast_nullable_to_non_nullable -as List,isFallback: null == isFallback ? _self.isFallback : isFallback // ignore: cast_nullable_to_non_nullable -as bool,recIdStr: freezed == recIdStr ? _self.recIdStr : recIdStr // ignore: cast_nullable_to_non_nullable +as List,recIdStr: freezed == recIdStr ? _self.recIdStr : recIdStr // ignore: cast_nullable_to_non_nullable as String?,$unknown: freezed == $unknown ? _self.$unknown : $unknown // ignore: cast_nullable_to_non_nullable as Map?, )); @@ -158,10 +156,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function(@ProfileViewConverter() List suggestions, bool isFallback, String? recIdStr, Map? $unknown)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function(@ProfileViewConverter() List suggestions, String? recIdStr, Map? $unknown)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _GraphGetSuggestedFollowsByActorOutput() when $default != null: -return $default(_that.suggestions,_that.isFallback,_that.recIdStr,_that.$unknown);case _: +return $default(_that.suggestions,_that.recIdStr,_that.$unknown);case _: return orElse(); } @@ -179,10 +177,10 @@ return $default(_that.suggestions,_that.isFallback,_that.recIdStr,_that.$unknown /// } /// ``` -@optionalTypeArgs TResult when(TResult Function(@ProfileViewConverter() List suggestions, bool isFallback, String? recIdStr, Map? $unknown) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function(@ProfileViewConverter() List suggestions, String? recIdStr, Map? $unknown) $default,) {final _that = this; switch (_that) { case _GraphGetSuggestedFollowsByActorOutput(): -return $default(_that.suggestions,_that.isFallback,_that.recIdStr,_that.$unknown);case _: +return $default(_that.suggestions,_that.recIdStr,_that.$unknown);case _: throw StateError('Unexpected subclass'); } @@ -199,10 +197,10 @@ return $default(_that.suggestions,_that.isFallback,_that.recIdStr,_that.$unknown /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function(@ProfileViewConverter() List suggestions, bool isFallback, String? recIdStr, Map? $unknown)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function(@ProfileViewConverter() List suggestions, String? recIdStr, Map? $unknown)? $default,) {final _that = this; switch (_that) { case _GraphGetSuggestedFollowsByActorOutput() when $default != null: -return $default(_that.suggestions,_that.isFallback,_that.recIdStr,_that.$unknown);case _: +return $default(_that.suggestions,_that.recIdStr,_that.$unknown);case _: return null; } @@ -214,7 +212,7 @@ return $default(_that.suggestions,_that.isFallback,_that.recIdStr,_that.$unknown @JsonSerializable(includeIfNull: false) class _GraphGetSuggestedFollowsByActorOutput implements GraphGetSuggestedFollowsByActorOutput { - const _GraphGetSuggestedFollowsByActorOutput({@ProfileViewConverter() required final List suggestions, this.isFallback = false, this.recIdStr, final Map? $unknown}): _suggestions = suggestions,_$unknown = $unknown; + const _GraphGetSuggestedFollowsByActorOutput({@ProfileViewConverter() required final List suggestions, this.recIdStr, final Map? $unknown}): _suggestions = suggestions,_$unknown = $unknown; factory _GraphGetSuggestedFollowsByActorOutput.fromJson(Map json) => _$GraphGetSuggestedFollowsByActorOutputFromJson(json); final List _suggestions; @@ -224,8 +222,6 @@ class _GraphGetSuggestedFollowsByActorOutput implements GraphGetSuggestedFollows return EqualUnmodifiableListView(_suggestions); } -/// If true, response has fallen-back to generic results, and is not scoped using relativeToDid -@override@JsonKey() final bool isFallback; /// Snowflake for this recommendation, use when submitting recommendation events. @override final String? recIdStr; final Map? _$unknown; @@ -251,16 +247,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _GraphGetSuggestedFollowsByActorOutput&&const DeepCollectionEquality().equals(other._suggestions, _suggestions)&&(identical(other.isFallback, isFallback) || other.isFallback == isFallback)&&(identical(other.recIdStr, recIdStr) || other.recIdStr == recIdStr)&&const DeepCollectionEquality().equals(other._$unknown, _$unknown)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GraphGetSuggestedFollowsByActorOutput&&const DeepCollectionEquality().equals(other._suggestions, _suggestions)&&(identical(other.recIdStr, recIdStr) || other.recIdStr == recIdStr)&&const DeepCollectionEquality().equals(other._$unknown, _$unknown)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_suggestions),isFallback,recIdStr,const DeepCollectionEquality().hash(_$unknown)); +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_suggestions),recIdStr,const DeepCollectionEquality().hash(_$unknown)); @override String toString() { - return 'GraphGetSuggestedFollowsByActorOutput(suggestions: $suggestions, isFallback: $isFallback, recIdStr: $recIdStr, \$unknown: ${$unknown})'; + return 'GraphGetSuggestedFollowsByActorOutput(suggestions: $suggestions, recIdStr: $recIdStr, \$unknown: ${$unknown})'; } @@ -271,7 +267,7 @@ abstract mixin class _$GraphGetSuggestedFollowsByActorOutputCopyWith<$Res> imple factory _$GraphGetSuggestedFollowsByActorOutputCopyWith(_GraphGetSuggestedFollowsByActorOutput value, $Res Function(_GraphGetSuggestedFollowsByActorOutput) _then) = __$GraphGetSuggestedFollowsByActorOutputCopyWithImpl; @override @useResult $Res call({ -@ProfileViewConverter() List suggestions, bool isFallback, String? recIdStr, Map? $unknown +@ProfileViewConverter() List suggestions, String? recIdStr, Map? $unknown }); @@ -288,11 +284,10 @@ class __$GraphGetSuggestedFollowsByActorOutputCopyWithImpl<$Res> /// Create a copy of GraphGetSuggestedFollowsByActorOutput /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? suggestions = null,Object? isFallback = null,Object? recIdStr = freezed,Object? $unknown = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? suggestions = null,Object? recIdStr = freezed,Object? $unknown = freezed,}) { return _then(_GraphGetSuggestedFollowsByActorOutput( suggestions: null == suggestions ? _self._suggestions : suggestions // ignore: cast_nullable_to_non_nullable -as List,isFallback: null == isFallback ? _self.isFallback : isFallback // ignore: cast_nullable_to_non_nullable -as bool,recIdStr: freezed == recIdStr ? _self.recIdStr : recIdStr // ignore: cast_nullable_to_non_nullable +as List,recIdStr: freezed == recIdStr ? _self.recIdStr : recIdStr // ignore: cast_nullable_to_non_nullable as String?,$unknown: freezed == $unknown ? _self._$unknown : $unknown // ignore: cast_nullable_to_non_nullable as Map?, )); diff --git a/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.g.dart b/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.g.dart index 3add0a240..4164ab185 100644 --- a/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.g.dart +++ b/packages/bluesky/lib/src/services/codegen/app/bsky/graph/getSuggestedFollowsByActor/output.g.dart @@ -24,7 +24,6 @@ _$GraphGetSuggestedFollowsByActorOutputFromJson(Map json) => $checkedCreate( ) .toList(), ), - isFallback: $checkedConvert('isFallback', (v) => v as bool? ?? false), recIdStr: $checkedConvert('recIdStr', (v) => v as String?), $unknown: $checkedConvert( r'$unknown', @@ -41,7 +40,6 @@ Map _$GraphGetSuggestedFollowsByActorOutputToJson( 'suggestions': instance.suggestions .map(const ProfileViewConverter().toJson) .toList(), - 'isFallback': instance.isFallback, 'recIdStr': ?instance.recIdStr, r'$unknown': ?instance.$unknown, }; diff --git a/packages/lexicon/lib/src/lexicons.g.dart b/packages/lexicon/lib/src/lexicons.g.dart index dc10fc68c..fca9ff6b4 100644 --- a/packages/lexicon/lib/src/lexicons.g.dart +++ b/packages/lexicon/lib/src/lexicons.g.dart @@ -4894,21 +4894,21 @@ const appBskyGraphGetSuggestedFollowsByActor = { "ref": "app.bsky.actor.defs#profileView", }, }, + "recIdStr": { + "type": "string", + "description": + "Snowflake for this recommendation, use when submitting recommendation events.", + }, "isFallback": { "type": "boolean", "description": - "If true, response has fallen-back to generic results, and is not scoped using relativeToDid", + "DEPRECATED, unused. Previously: if true, response has fallen-back to generic results, and is not scoped using relativeToDid", "default": false, }, "recId": { "type": "integer", "description": "DEPRECATED: use recIdStr instead.", }, - "recIdStr": { - "type": "string", - "description": - "Snowflake for this recommendation, use when submitting recommendation events.", - }, }, }, }, diff --git a/website/docs/lexicons/app/bsky/graph/getSuggestedFollowsByActor.md b/website/docs/lexicons/app/bsky/graph/getSuggestedFollowsByActor.md index f4c8922f5..dfbe28f0a 100644 --- a/website/docs/lexicons/app/bsky/graph/getSuggestedFollowsByActor.md +++ b/website/docs/lexicons/app/bsky/graph/getSuggestedFollowsByActor.md @@ -22,6 +22,6 @@ Enumerates follows similar to a given account (actor). Expected use is to recomm | Property | Type | Known Values | Required | Description | | --- | --- | --- | :---: | --- | | **suggestions** | array of [app.bsky.actor.defs#profileView](../../../../lexicons/app/bsky/actor/defs.md#profileview) | - | ✅ | - | -| **isFallback** | boolean | - | ❌ | If true, response has fallen-back to generic results, and is not scoped using relativeToDid | -| **recId** | integer | - | ❌ | DEPRECATED: use recIdStr instead. | | **recIdStr** | string | - | ❌ | Snowflake for this recommendation, use when submitting recommendation events. | +| **isFallback** | boolean | - | ❌ | DEPRECATED, unused. Previously: if true, response has fallen-back to generic results, and is not scoped using relativeToDid | +| **recId** | integer | - | ❌ | DEPRECATED: use recIdStr instead. |