From 87b3691b5ae62e4ff9cd2d4124094c97b19095ab Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Mon, 30 Mar 2026 15:50:00 +0900 Subject: [PATCH 1/2] Bump bindings --- .../Lexicon/App/Bsky/Feed/FeedController.g.cs | 1 + .../Bsky/Unspecced/UnspeccedController.g.cs | 82 ++++++ .../Moderation/ModerationController.g.cs | 1 + src/FishyFlip/Lexicon/ATObject.g.cs | 18 ++ .../App/Bsky/Actor/GetSuggestionsOutput.g.cs | 14 +- .../Lexicon/App/Bsky/Draft/DraftPost.g.cs | 4 +- .../Lexicon/App/Bsky/Feed/BlueskyFeed.g.cs | 5 +- .../Lexicon/App/Bsky/Feed/FeedEndpoints.g.cs | 4 +- .../App/Bsky/Feed/SendInteractionsInput.g.cs | 13 +- .../GetSuggestedFollowsByActorOutput.g.cs | 25 +- .../App/Bsky/Unspecced/BlueskyUnspecced.g.cs | 98 +++++++ ...nboardingSuggestedUsersSkeletonOutput.g.cs | 104 +++++++ .../GetSuggestedOnboardingUsersOutput.g.cs | 104 +++++++ .../GetSuggestedUsersForDiscoverOutput.g.cs | 104 +++++++ ...ggestedUsersForDiscoverSkeletonOutput.g.cs | 104 +++++++ .../GetSuggestedUsersForExploreOutput.g.cs | 104 +++++++ ...uggestedUsersForExploreSkeletonOutput.g.cs | 104 +++++++ .../GetSuggestedUsersForSeeMoreOutput.g.cs | 104 +++++++ ...uggestedUsersForSeeMoreSkeletonOutput.g.cs | 104 +++++++ .../Unspecced/GetSuggestedUsersOutput.g.cs | 14 +- .../GetSuggestedUsersSkeletonOutput.g.cs | 14 +- .../GetSuggestionsSkeletonOutput.g.cs | 14 +- .../Bsky/Unspecced/UnspeccedEndpoints.g.cs | 268 ++++++++++++++++++ src/FishyFlip/Lexicon/CborExtensions.g.cs | 18 ++ .../Lexicon/Com/Atproto/Label/LabelValue.g.cs | 23 +- .../Lexicon/Com/Germnetwork/Declaration.g.cs | 17 +- .../Lexicon/Com/Germnetwork/MessageMe.g.cs | 8 +- .../Lexicon/SourceGenerationContext.g.cs | 18 ++ .../Moderation/AgeAssurancePurgeEvent.g.cs | 97 +++++++ .../Ozone/Moderation/EmitEventInput.g.cs | 2 + .../Tools/Ozone/Moderation/ModEventView.g.cs | 2 + .../Ozone/Moderation/ModEventViewDetail.g.cs | 2 + .../Ozone/Moderation/ModerationEndpoints.g.cs | 2 + .../Moderation/ToolsOzoneModeration.g.cs | 1 + 34 files changed, 1518 insertions(+), 79 deletions(-) create mode 100644 src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetOnboardingSuggestedUsersSkeletonOutput.g.cs create mode 100644 src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedOnboardingUsersOutput.g.cs create mode 100644 src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForDiscoverOutput.g.cs create mode 100644 src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForDiscoverSkeletonOutput.g.cs create mode 100644 src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForExploreOutput.g.cs create mode 100644 src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForExploreSkeletonOutput.g.cs create mode 100644 src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForSeeMoreOutput.g.cs create mode 100644 src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForSeeMoreSkeletonOutput.g.cs create mode 100644 src/FishyFlip/Lexicon/Tools/Ozone/Moderation/AgeAssurancePurgeEvent.g.cs diff --git a/src/FishyFlip.Xrpc/Lexicon/App/Bsky/Feed/FeedController.g.cs b/src/FishyFlip.Xrpc/Lexicon/App/Bsky/Feed/FeedController.g.cs index b03b5531..40774e76 100644 --- a/src/FishyFlip.Xrpc/Lexicon/App/Bsky/Feed/FeedController.g.cs +++ b/src/FishyFlip.Xrpc/Lexicon/App/Bsky/Feed/FeedController.g.cs @@ -226,6 +226,7 @@ public abstract class FeedController : ControllerBase /// Send information about interactions with feed items back to the feed generator that served them. /// /// + /// /// /// Result of [HttpPost("/xrpc/app.bsky.feed.sendInteractions")] diff --git a/src/FishyFlip.Xrpc/Lexicon/App/Bsky/Unspecced/UnspeccedController.g.cs b/src/FishyFlip.Xrpc/Lexicon/App/Bsky/Unspecced/UnspeccedController.g.cs index 743e5b85..a7d7d825 100644 --- a/src/FishyFlip.Xrpc/Lexicon/App/Bsky/Unspecced/UnspeccedController.g.cs +++ b/src/FishyFlip.Xrpc/Lexicon/App/Bsky/Unspecced/UnspeccedController.g.cs @@ -50,6 +50,17 @@ public abstract class UnspeccedController : ControllerBase [HttpGet("/xrpc/app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton")] public abstract Task, ATErrorResult>> GetOnboardingSuggestedStarterPacksSkeletonAsync ([FromQuery] FishyFlip.Models.ATDid? viewer = default, [FromQuery] int? limit = 10, CancellationToken cancellationToken = default); + /// + /// Get a skeleton of suggested users for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedOnboardingUsers + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// Category of users to get suggestions for. + /// + /// + /// Result of + [HttpGet("/xrpc/app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton")] + public abstract Task, ATErrorResult>> GetOnboardingSuggestedUsersSkeletonAsync ([FromQuery] FishyFlip.Models.ATDid? viewer = default, [FromQuery] string? category = default, [FromQuery] int? limit = 25, CancellationToken cancellationToken = default); + /// /// An unspecced view of globally popular feed generators. /// @@ -102,6 +113,16 @@ public abstract class UnspeccedController : ControllerBase [HttpGet("/xrpc/app.bsky.unspecced.getSuggestedFeedsSkeleton")] public abstract Task, ATErrorResult>> GetSuggestedFeedsSkeletonAsync ([FromQuery] FishyFlip.Models.ATDid? viewer = default, [FromQuery] int? limit = 10, CancellationToken cancellationToken = default); + /// + /// Get a list of suggested users for onboarding + /// + /// Category of users to get suggestions for. + /// + /// + /// Result of + [HttpGet("/xrpc/app.bsky.unspecced.getSuggestedOnboardingUsers")] + public abstract Task, ATErrorResult>> GetSuggestedOnboardingUsersAsync ([FromQuery] string? category = default, [FromQuery] int? limit = 25, CancellationToken cancellationToken = default); + /// /// Get a list of suggested starterpacks /// @@ -131,6 +152,67 @@ public abstract class UnspeccedController : ControllerBase [HttpGet("/xrpc/app.bsky.unspecced.getSuggestedUsers")] public abstract Task, ATErrorResult>> GetSuggestedUsersAsync ([FromQuery] string? category = default, [FromQuery] int? limit = 25, CancellationToken cancellationToken = default); + /// + /// Get a list of suggested users for the Discover page + /// + /// + /// + /// Result of + [HttpGet("/xrpc/app.bsky.unspecced.getSuggestedUsersForDiscover")] + public abstract Task, ATErrorResult>> GetSuggestedUsersForDiscoverAsync ([FromQuery] int? limit = 25, CancellationToken cancellationToken = default); + + /// + /// Get a skeleton of suggested users for the Discover page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForDiscover + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// + /// + /// Result of + [HttpGet("/xrpc/app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton")] + public abstract Task, ATErrorResult>> GetSuggestedUsersForDiscoverSkeletonAsync ([FromQuery] FishyFlip.Models.ATDid? viewer = default, [FromQuery] int? limit = 25, CancellationToken cancellationToken = default); + + /// + /// Get a list of suggested users for the Explore page + /// + /// Category of users to get suggestions for. + /// + /// + /// Result of + [HttpGet("/xrpc/app.bsky.unspecced.getSuggestedUsersForExplore")] + public abstract Task, ATErrorResult>> GetSuggestedUsersForExploreAsync ([FromQuery] string? category = default, [FromQuery] int? limit = 25, CancellationToken cancellationToken = default); + + /// + /// Get a skeleton of suggested users for the Explore page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForExplore + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// Category of users to get suggestions for. + /// + /// + /// Result of + [HttpGet("/xrpc/app.bsky.unspecced.getSuggestedUsersForExploreSkeleton")] + public abstract Task, ATErrorResult>> GetSuggestedUsersForExploreSkeletonAsync ([FromQuery] FishyFlip.Models.ATDid? viewer = default, [FromQuery] string? category = default, [FromQuery] int? limit = 25, CancellationToken cancellationToken = default); + + /// + /// Get a list of suggested users for the See More page + /// + /// Category of users to get suggestions for. + /// + /// + /// Result of + [HttpGet("/xrpc/app.bsky.unspecced.getSuggestedUsersForSeeMore")] + public abstract Task, ATErrorResult>> GetSuggestedUsersForSeeMoreAsync ([FromQuery] string? category = default, [FromQuery] int? limit = 25, CancellationToken cancellationToken = default); + + /// + /// Get a skeleton of suggested users for the See More page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForSeeMore + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// Category of users to get suggestions for. + /// + /// + /// Result of + [HttpGet("/xrpc/app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton")] + public abstract Task, ATErrorResult>> GetSuggestedUsersForSeeMoreSkeletonAsync ([FromQuery] FishyFlip.Models.ATDid? viewer = default, [FromQuery] string? category = default, [FromQuery] int? limit = 25, CancellationToken cancellationToken = default); + /// /// Get a skeleton of suggested users. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsers /// diff --git a/src/FishyFlip.Xrpc/Lexicon/Tools/Ozone/Moderation/ModerationController.g.cs b/src/FishyFlip.Xrpc/Lexicon/Tools/Ozone/Moderation/ModerationController.g.cs index a9d88e63..d6aa9071 100644 --- a/src/FishyFlip.Xrpc/Lexicon/Tools/Ozone/Moderation/ModerationController.g.cs +++ b/src/FishyFlip.Xrpc/Lexicon/Tools/Ozone/Moderation/ModerationController.g.cs @@ -54,6 +54,7 @@ public abstract class ModerationController : ControllerBase /// (tools.ozone.moderation.defs#modEventPriorityScore)
/// (tools.ozone.moderation.defs#ageAssuranceEvent)
/// (tools.ozone.moderation.defs#ageAssuranceOverrideEvent)
+ /// (tools.ozone.moderation.defs#ageAssurancePurgeEvent)
/// (tools.ozone.moderation.defs#revokeAccountCredentialsEvent)
/// (tools.ozone.moderation.defs#scheduleTakedownEvent)
/// (tools.ozone.moderation.defs#cancelScheduledTakedownEvent)
diff --git a/src/FishyFlip/Lexicon/ATObject.g.cs b/src/FishyFlip/Lexicon/ATObject.g.cs index 25133769..4bfc78ab 100644 --- a/src/FishyFlip/Lexicon/ATObject.g.cs +++ b/src/FishyFlip/Lexicon/ATObject.g.cs @@ -108,6 +108,8 @@ public override string ToString() return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.ToolsOzoneModerationAgeAssuranceEvent); case "tools.ozone.moderation.defs#ageAssuranceOverrideEvent": return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.ToolsOzoneModerationAgeAssuranceOverrideEvent); + case "tools.ozone.moderation.defs#ageAssurancePurgeEvent": + return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.ToolsOzoneModerationAgeAssurancePurgeEvent); case "app.bsky.unspecced.defs#ageAssuranceState": return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedAgeAssuranceState); case "com.atproto.repo.applyWrites#ApplyWritesInput": @@ -446,6 +448,8 @@ public override string ToString() return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetOnboardingSuggestedStarterPacksOutput); case "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton#GetOnboardingSuggestedStarterPacksSkeletonOutput": return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonOutput); + case "app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton#GetOnboardingSuggestedUsersSkeletonOutput": + return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetOnboardingSuggestedUsersSkeletonOutput); case "app.bsky.unspecced.getPopularFeedGenerators#GetPopularFeedGeneratorsOutput": return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetPopularFeedGeneratorsOutput); case "app.bsky.feed.getPosts#GetPostsOutput": @@ -506,10 +510,24 @@ public override string ToString() return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedFeedsSkeletonOutput); case "app.bsky.graph.getSuggestedFollowsByActor#GetSuggestedFollowsByActorOutput": return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyGraphGetSuggestedFollowsByActorOutput); + case "app.bsky.unspecced.getSuggestedOnboardingUsers#GetSuggestedOnboardingUsersOutput": + return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedOnboardingUsersOutput); case "app.bsky.unspecced.getSuggestedStarterPacks#GetSuggestedStarterPacksOutput": return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedStarterPacksOutput); case "app.bsky.unspecced.getSuggestedStarterPacksSkeleton#GetSuggestedStarterPacksSkeletonOutput": return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedStarterPacksSkeletonOutput); + case "app.bsky.unspecced.getSuggestedUsersForDiscover#GetSuggestedUsersForDiscoverOutput": + return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverOutput); + case "app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton#GetSuggestedUsersForDiscoverSkeletonOutput": + return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeletonOutput); + case "app.bsky.unspecced.getSuggestedUsersForExplore#GetSuggestedUsersForExploreOutput": + return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreOutput); + case "app.bsky.unspecced.getSuggestedUsersForExploreSkeleton#GetSuggestedUsersForExploreSkeletonOutput": + return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreSkeletonOutput); + case "app.bsky.unspecced.getSuggestedUsersForSeeMore#GetSuggestedUsersForSeeMoreOutput": + return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreOutput); + case "app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton#GetSuggestedUsersForSeeMoreSkeletonOutput": + return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeletonOutput); case "app.bsky.unspecced.getSuggestedUsers#GetSuggestedUsersOutput": return JsonSerializer.Deserialize(data, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersOutput); case "app.bsky.unspecced.getSuggestedUsersSkeleton#GetSuggestedUsersSkeletonOutput": diff --git a/src/FishyFlip/Lexicon/App/Bsky/Actor/GetSuggestionsOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Actor/GetSuggestionsOutput.g.cs index 55132b0b..f0be6a72 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Actor/GetSuggestionsOutput.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Actor/GetSuggestionsOutput.g.cs @@ -15,12 +15,12 @@ public partial class GetSuggestionsOutput : ATObject, ICBOREncodable /// /// - /// Snowflake for this recommendation, use when submitting recommendation events. - public GetSuggestionsOutput(string? cursor = default, List actors = default, long? recId = default) + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestionsOutput(string? cursor = default, List actors = default, string? recIdStr = default) { this.Cursor = cursor; this.Actors = actors; - this.RecId = recId; + this.RecIdStr = recIdStr; this.Type = "app.bsky.actor.getSuggestions#GetSuggestionsOutput"; } @@ -41,7 +41,7 @@ public GetSuggestionsOutput(CBORObject obj) { if (obj["cursor"] is not null) this.Cursor = obj["cursor"].AsString(); if (obj["actors"] is not null) this.Actors = obj["actors"].Values.Select(n =>new FishyFlip.Lexicon.App.Bsky.Actor.ProfileView(n)).ToList(); - if (obj["recId"] is not null) this.RecId = obj["recId"].AsInt64Value(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); } @@ -60,12 +60,12 @@ public GetSuggestionsOutput(CBORObject obj) public List Actors { get; set; } /// - /// Gets or sets the recId. + /// Gets or sets the recIdStr. ///
Snowflake for this recommendation, use when submitting recommendation events. ///
- [JsonPropertyName("recId")] + [JsonPropertyName("recIdStr")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] - public long? RecId { get; set; } + public string? RecIdStr { get; set; } public const string RecordType = "app.bsky.actor.getSuggestions#GetSuggestionsOutput"; diff --git a/src/FishyFlip/Lexicon/App/Bsky/Draft/DraftPost.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Draft/DraftPost.g.cs index 57a2e5e2..4d50c7e7 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Draft/DraftPost.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Draft/DraftPost.g.cs @@ -16,7 +16,7 @@ public partial class DraftPost : ATObject, ICBOREncodable, IJsonEncod /// /// Initializes a new instance of the class. /// - /// The primary post content. + /// The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts. /// Self-label values for this post. Effectively content warnings. ///
Union Types:
/// (com.atproto.label.defs#selfLabels)
@@ -62,7 +62,7 @@ public DraftPost(CBORObject obj) /// /// Gets or sets the text. - ///
The primary post content. + ///
The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts. ///
[JsonPropertyName("text")] [JsonRequired] diff --git a/src/FishyFlip/Lexicon/App/Bsky/Feed/BlueskyFeed.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Feed/BlueskyFeed.g.cs index bd3a6684..d8da21cd 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Feed/BlueskyFeed.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Feed/BlueskyFeed.g.cs @@ -447,10 +447,11 @@ public SearchPostsOutputCollection SearchPostsCollectionAsync (string q, string? /// Send information about interactions with feed items back to the feed generator that served them. /// /// + /// /// - public Task> SendInteractionsAsync (List interactions, CancellationToken cancellationToken = default) + public Task> SendInteractionsAsync (List interactions, FishyFlip.Models.ATUri? feed = default, CancellationToken cancellationToken = default) { - return atp.SendInteractionsAsync(interactions, cancellationToken); + return atp.SendInteractionsAsync(interactions, feed, cancellationToken); } } diff --git a/src/FishyFlip/Lexicon/App/Bsky/Feed/FeedEndpoints.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Feed/FeedEndpoints.g.cs index 507a12b1..259a4dbe 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Feed/FeedEndpoints.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Feed/FeedEndpoints.g.cs @@ -665,14 +665,16 @@ public static class FeedEndpoints /// /// /// + /// /// /// Result of - public static Task> SendInteractionsAsync (this FishyFlip.ATProtocol atp, List interactions, CancellationToken cancellationToken = default) + public static Task> SendInteractionsAsync (this FishyFlip.ATProtocol atp, List interactions, FishyFlip.Models.ATUri? feed = default, CancellationToken cancellationToken = default) { var endpointUrl = SendInteractions.ToString(); var headers = new Dictionary(); var inputItem = new SendInteractionsInput(); inputItem.Interactions = interactions; + inputItem.Feed = feed; return atp.Post(endpointUrl, atp.Options.SourceGenerationContext.AppBskyFeedSendInteractionsInput!, atp.Options.SourceGenerationContext.AppBskyFeedSendInteractionsOutput!, inputItem, cancellationToken, headers); } diff --git a/src/FishyFlip/Lexicon/App/Bsky/Feed/SendInteractionsInput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Feed/SendInteractionsInput.g.cs index 909dba73..524a1fa6 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Feed/SendInteractionsInput.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Feed/SendInteractionsInput.g.cs @@ -13,9 +13,11 @@ public partial class SendInteractionsInput : ATObject, ICBOREncodable /// Initializes a new instance of the class. /// + /// /// - public SendInteractionsInput(List interactions = default) + public SendInteractionsInput(FishyFlip.Models.ATUri? feed = default, List interactions = default) { + this.Feed = feed; this.Interactions = interactions; this.Type = "app.bsky.feed.sendInteractions#SendInteractionsInput"; } @@ -35,10 +37,19 @@ public SendInteractionsInput() /// public SendInteractionsInput(CBORObject obj) { + if (obj["feed"] is not null) this.Feed = obj["feed"].ToATUri(); if (obj["interactions"] is not null) this.Interactions = obj["interactions"].Values.Select(n =>new FishyFlip.Lexicon.App.Bsky.Feed.Interaction(n)).ToList(); if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); } + /// + /// Gets or sets the feed. + /// + [JsonPropertyName("feed")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + [JsonConverter(typeof(FishyFlip.Tools.Json.ATUriJsonConverter))] + public FishyFlip.Models.ATUri? Feed { get; set; } + /// /// Gets or sets the interactions. /// diff --git a/src/FishyFlip/Lexicon/App/Bsky/Graph/GetSuggestedFollowsByActorOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Graph/GetSuggestedFollowsByActorOutput.g.cs index 350d4819..2d2031fe 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Graph/GetSuggestedFollowsByActorOutput.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Graph/GetSuggestedFollowsByActorOutput.g.cs @@ -14,13 +14,11 @@ public partial class GetSuggestedFollowsByActorOutput : ATObject, ICBOREncodable /// Initializes a new instance of the class. /// /// - /// If true, response has fallen-back to generic results, and is not scoped using relativeToDid - /// Snowflake for this recommendation, use when submitting recommendation events. - public GetSuggestedFollowsByActorOutput(List suggestions = default, bool? isFallback = default, long? recId = default) + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestedFollowsByActorOutput(List suggestions = default, string? recIdStr = default) { this.Suggestions = suggestions; - this.IsFallback = isFallback; - this.RecId = recId; + this.RecIdStr = recIdStr; this.Type = "app.bsky.graph.getSuggestedFollowsByActor#GetSuggestedFollowsByActorOutput"; } @@ -40,8 +38,7 @@ public GetSuggestedFollowsByActorOutput() public GetSuggestedFollowsByActorOutput(CBORObject obj) { if (obj["suggestions"] is not null) this.Suggestions = obj["suggestions"].Values.Select(n =>new FishyFlip.Lexicon.App.Bsky.Actor.ProfileView(n)).ToList(); - if (obj["isFallback"] is not null) this.IsFallback = obj["isFallback"].AsBoolean(); - if (obj["recId"] is not null) this.RecId = obj["recId"].AsInt64Value(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); } @@ -53,20 +50,12 @@ public GetSuggestedFollowsByActorOutput(CBORObject obj) public List Suggestions { get; set; } /// - /// Gets or sets the isFallback. - ///
If true, response has fallen-back to generic results, and is not scoped using relativeToDid - ///
- [JsonPropertyName("isFallback")] - [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] - public bool? IsFallback { get; set; } = false; - - /// - /// Gets or sets the recId. + /// Gets or sets the recIdStr. ///
Snowflake for this recommendation, use when submitting recommendation events. ///
- [JsonPropertyName("recId")] + [JsonPropertyName("recIdStr")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] - public long? RecId { get; set; } + public string? RecIdStr { get; set; } public const string RecordType = "app.bsky.graph.getSuggestedFollowsByActor#GetSuggestedFollowsByActorOutput"; diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/BlueskyUnspecced.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/BlueskyUnspecced.g.cs index 0c552ef4..06cdc8fc 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/BlueskyUnspecced.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/BlueskyUnspecced.g.cs @@ -74,6 +74,19 @@ internal BlueskyUnspecced(ATProtocol atp) } + /// + /// Get a skeleton of suggested users for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedOnboardingUsers + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// Category of users to get suggestions for. + /// + /// + public Task> GetOnboardingSuggestedUsersSkeletonAsync (FishyFlip.Models.ATDid? viewer = default, string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + return atp.GetOnboardingSuggestedUsersSkeletonAsync(viewer, category, limit, cancellationToken); + } + + /// /// An unspecced view of globally popular feed generators. /// @@ -148,6 +161,18 @@ public GetPopularFeedGeneratorsOutputCollection GetPopularFeedGeneratorsCollecti } + /// + /// Get a list of suggested users for onboarding + /// + /// Category of users to get suggestions for. + /// + /// + public Task> GetSuggestedOnboardingUsersAsync (string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + return atp.GetSuggestedOnboardingUsersAsync(category, limit, cancellationToken); + } + + /// /// Get a list of suggested starterpacks /// @@ -183,6 +208,79 @@ public GetPopularFeedGeneratorsOutputCollection GetPopularFeedGeneratorsCollecti } + /// + /// Get a list of suggested users for the Discover page + /// + /// + /// + public Task> GetSuggestedUsersForDiscoverAsync (int? limit = 25, CancellationToken cancellationToken = default) + { + return atp.GetSuggestedUsersForDiscoverAsync(limit, cancellationToken); + } + + + /// + /// Get a skeleton of suggested users for the Discover page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForDiscover + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// + /// + public Task> GetSuggestedUsersForDiscoverSkeletonAsync (FishyFlip.Models.ATDid? viewer = default, int? limit = 25, CancellationToken cancellationToken = default) + { + return atp.GetSuggestedUsersForDiscoverSkeletonAsync(viewer, limit, cancellationToken); + } + + + /// + /// Get a list of suggested users for the Explore page + /// + /// Category of users to get suggestions for. + /// + /// + public Task> GetSuggestedUsersForExploreAsync (string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + return atp.GetSuggestedUsersForExploreAsync(category, limit, cancellationToken); + } + + + /// + /// Get a skeleton of suggested users for the Explore page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForExplore + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// Category of users to get suggestions for. + /// + /// + public Task> GetSuggestedUsersForExploreSkeletonAsync (FishyFlip.Models.ATDid? viewer = default, string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + return atp.GetSuggestedUsersForExploreSkeletonAsync(viewer, category, limit, cancellationToken); + } + + + /// + /// Get a list of suggested users for the See More page + /// + /// Category of users to get suggestions for. + /// + /// + public Task> GetSuggestedUsersForSeeMoreAsync (string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + return atp.GetSuggestedUsersForSeeMoreAsync(category, limit, cancellationToken); + } + + + /// + /// Get a skeleton of suggested users for the See More page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForSeeMore + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// Category of users to get suggestions for. + /// + /// + public Task> GetSuggestedUsersForSeeMoreSkeletonAsync (FishyFlip.Models.ATDid? viewer = default, string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + return atp.GetSuggestedUsersForSeeMoreSkeletonAsync(viewer, category, limit, cancellationToken); + } + + /// /// Get a skeleton of suggested users. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsers /// diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetOnboardingSuggestedUsersSkeletonOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetOnboardingSuggestedUsersSkeletonOutput.g.cs new file mode 100644 index 00000000..19cc8449 --- /dev/null +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetOnboardingSuggestedUsersSkeletonOutput.g.cs @@ -0,0 +1,104 @@ +// +// This file was generated by FFSourceGen. +// Do not modify this file. + +#nullable enable annotations +#nullable disable warnings + +namespace FishyFlip.Lexicon.App.Bsky.Unspecced +{ + public partial class GetOnboardingSuggestedUsersSkeletonOutput : ATObject, ICBOREncodable, IJsonEncodable, IParsable + { + + /// + /// Initializes a new instance of the class. + /// + /// + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetOnboardingSuggestedUsersSkeletonOutput(List dids = default, string? recIdStr = default) + { + this.Dids = dids; + this.RecIdStr = recIdStr; + this.Type = "app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton#GetOnboardingSuggestedUsersSkeletonOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetOnboardingSuggestedUsersSkeletonOutput() + { + this.Type = "app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton#GetOnboardingSuggestedUsersSkeletonOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetOnboardingSuggestedUsersSkeletonOutput(CBORObject obj) + { + if (obj["dids"] is not null) this.Dids = obj["dids"].Values.Select(n =>n.ToATDid()!).ToList(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); + if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); + } + + /// + /// Gets or sets the dids. + /// + [JsonPropertyName("dids")] + [JsonRequired] + public List Dids { get; set; } + + /// + /// Gets or sets the recIdStr. + ///
Snowflake for this recommendation, use when submitting recommendation events. + ///
+ [JsonPropertyName("recIdStr")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? RecIdStr { get; set; } + + public const string RecordType = "app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton#GetOnboardingSuggestedUsersSkeletonOutput"; + + public override string ToJson() + { + return JsonSerializer.Serialize(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetOnboardingSuggestedUsersSkeletonOutput); + } + + public override byte[] ToUtf8Json() + { + return JsonSerializer.SerializeToUtf8Bytes(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetOnboardingSuggestedUsersSkeletonOutput); + } + + public static new GetOnboardingSuggestedUsersSkeletonOutput FromJson(string json) + { + return JsonSerializer.Deserialize(json, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetOnboardingSuggestedUsersSkeletonOutput)!; + } + + /// + public override CBORObject ToCBORObject() + { + using var jsonStream = new MemoryStream(Encoding.UTF8.GetBytes(this.ToJson())); + return CBORObject.ReadJSON(jsonStream); + } + + /// + public static new GetOnboardingSuggestedUsersSkeletonOutput FromCBORObject(CBORObject obj) + { + return new GetOnboardingSuggestedUsersSkeletonOutput(obj); + } + + /// + public static GetOnboardingSuggestedUsersSkeletonOutput Parse(string s, IFormatProvider? provider) + { + return JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetOnboardingSuggestedUsersSkeletonOutput)!; + } + + /// + public static bool TryParse(string? s, IFormatProvider? provider, out GetOnboardingSuggestedUsersSkeletonOutput result) + { + result = JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetOnboardingSuggestedUsersSkeletonOutput); + return result != null; + } + } +} + diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedOnboardingUsersOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedOnboardingUsersOutput.g.cs new file mode 100644 index 00000000..2df50345 --- /dev/null +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedOnboardingUsersOutput.g.cs @@ -0,0 +1,104 @@ +// +// This file was generated by FFSourceGen. +// Do not modify this file. + +#nullable enable annotations +#nullable disable warnings + +namespace FishyFlip.Lexicon.App.Bsky.Unspecced +{ + public partial class GetSuggestedOnboardingUsersOutput : ATObject, ICBOREncodable, IJsonEncodable, IParsable + { + + /// + /// Initializes a new instance of the class. + /// + /// + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestedOnboardingUsersOutput(List actors = default, string? recIdStr = default) + { + this.Actors = actors; + this.RecIdStr = recIdStr; + this.Type = "app.bsky.unspecced.getSuggestedOnboardingUsers#GetSuggestedOnboardingUsersOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedOnboardingUsersOutput() + { + this.Type = "app.bsky.unspecced.getSuggestedOnboardingUsers#GetSuggestedOnboardingUsersOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedOnboardingUsersOutput(CBORObject obj) + { + if (obj["actors"] is not null) this.Actors = obj["actors"].Values.Select(n =>new FishyFlip.Lexicon.App.Bsky.Actor.ProfileView(n)).ToList(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); + if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); + } + + /// + /// Gets or sets the actors. + /// + [JsonPropertyName("actors")] + [JsonRequired] + public List Actors { get; set; } + + /// + /// Gets or sets the recIdStr. + ///
Snowflake for this recommendation, use when submitting recommendation events. + ///
+ [JsonPropertyName("recIdStr")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? RecIdStr { get; set; } + + public const string RecordType = "app.bsky.unspecced.getSuggestedOnboardingUsers#GetSuggestedOnboardingUsersOutput"; + + public override string ToJson() + { + return JsonSerializer.Serialize(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedOnboardingUsersOutput); + } + + public override byte[] ToUtf8Json() + { + return JsonSerializer.SerializeToUtf8Bytes(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedOnboardingUsersOutput); + } + + public static new GetSuggestedOnboardingUsersOutput FromJson(string json) + { + return JsonSerializer.Deserialize(json, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedOnboardingUsersOutput)!; + } + + /// + public override CBORObject ToCBORObject() + { + using var jsonStream = new MemoryStream(Encoding.UTF8.GetBytes(this.ToJson())); + return CBORObject.ReadJSON(jsonStream); + } + + /// + public static new GetSuggestedOnboardingUsersOutput FromCBORObject(CBORObject obj) + { + return new GetSuggestedOnboardingUsersOutput(obj); + } + + /// + public static GetSuggestedOnboardingUsersOutput Parse(string s, IFormatProvider? provider) + { + return JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedOnboardingUsersOutput)!; + } + + /// + public static bool TryParse(string? s, IFormatProvider? provider, out GetSuggestedOnboardingUsersOutput result) + { + result = JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedOnboardingUsersOutput); + return result != null; + } + } +} + diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForDiscoverOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForDiscoverOutput.g.cs new file mode 100644 index 00000000..6e24f8ce --- /dev/null +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForDiscoverOutput.g.cs @@ -0,0 +1,104 @@ +// +// This file was generated by FFSourceGen. +// Do not modify this file. + +#nullable enable annotations +#nullable disable warnings + +namespace FishyFlip.Lexicon.App.Bsky.Unspecced +{ + public partial class GetSuggestedUsersForDiscoverOutput : ATObject, ICBOREncodable, IJsonEncodable, IParsable + { + + /// + /// Initializes a new instance of the class. + /// + /// + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestedUsersForDiscoverOutput(List actors = default, string? recIdStr = default) + { + this.Actors = actors; + this.RecIdStr = recIdStr; + this.Type = "app.bsky.unspecced.getSuggestedUsersForDiscover#GetSuggestedUsersForDiscoverOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForDiscoverOutput() + { + this.Type = "app.bsky.unspecced.getSuggestedUsersForDiscover#GetSuggestedUsersForDiscoverOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForDiscoverOutput(CBORObject obj) + { + if (obj["actors"] is not null) this.Actors = obj["actors"].Values.Select(n =>new FishyFlip.Lexicon.App.Bsky.Actor.ProfileView(n)).ToList(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); + if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); + } + + /// + /// Gets or sets the actors. + /// + [JsonPropertyName("actors")] + [JsonRequired] + public List Actors { get; set; } + + /// + /// Gets or sets the recIdStr. + ///
Snowflake for this recommendation, use when submitting recommendation events. + ///
+ [JsonPropertyName("recIdStr")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? RecIdStr { get; set; } + + public const string RecordType = "app.bsky.unspecced.getSuggestedUsersForDiscover#GetSuggestedUsersForDiscoverOutput"; + + public override string ToJson() + { + return JsonSerializer.Serialize(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverOutput); + } + + public override byte[] ToUtf8Json() + { + return JsonSerializer.SerializeToUtf8Bytes(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverOutput); + } + + public static new GetSuggestedUsersForDiscoverOutput FromJson(string json) + { + return JsonSerializer.Deserialize(json, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverOutput)!; + } + + /// + public override CBORObject ToCBORObject() + { + using var jsonStream = new MemoryStream(Encoding.UTF8.GetBytes(this.ToJson())); + return CBORObject.ReadJSON(jsonStream); + } + + /// + public static new GetSuggestedUsersForDiscoverOutput FromCBORObject(CBORObject obj) + { + return new GetSuggestedUsersForDiscoverOutput(obj); + } + + /// + public static GetSuggestedUsersForDiscoverOutput Parse(string s, IFormatProvider? provider) + { + return JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverOutput)!; + } + + /// + public static bool TryParse(string? s, IFormatProvider? provider, out GetSuggestedUsersForDiscoverOutput result) + { + result = JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverOutput); + return result != null; + } + } +} + diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForDiscoverSkeletonOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForDiscoverSkeletonOutput.g.cs new file mode 100644 index 00000000..513cabfa --- /dev/null +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForDiscoverSkeletonOutput.g.cs @@ -0,0 +1,104 @@ +// +// This file was generated by FFSourceGen. +// Do not modify this file. + +#nullable enable annotations +#nullable disable warnings + +namespace FishyFlip.Lexicon.App.Bsky.Unspecced +{ + public partial class GetSuggestedUsersForDiscoverSkeletonOutput : ATObject, ICBOREncodable, IJsonEncodable, IParsable + { + + /// + /// Initializes a new instance of the class. + /// + /// + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestedUsersForDiscoverSkeletonOutput(List dids = default, string? recIdStr = default) + { + this.Dids = dids; + this.RecIdStr = recIdStr; + this.Type = "app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton#GetSuggestedUsersForDiscoverSkeletonOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForDiscoverSkeletonOutput() + { + this.Type = "app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton#GetSuggestedUsersForDiscoverSkeletonOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForDiscoverSkeletonOutput(CBORObject obj) + { + if (obj["dids"] is not null) this.Dids = obj["dids"].Values.Select(n =>n.ToATDid()!).ToList(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); + if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); + } + + /// + /// Gets or sets the dids. + /// + [JsonPropertyName("dids")] + [JsonRequired] + public List Dids { get; set; } + + /// + /// Gets or sets the recIdStr. + ///
Snowflake for this recommendation, use when submitting recommendation events. + ///
+ [JsonPropertyName("recIdStr")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? RecIdStr { get; set; } + + public const string RecordType = "app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton#GetSuggestedUsersForDiscoverSkeletonOutput"; + + public override string ToJson() + { + return JsonSerializer.Serialize(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeletonOutput); + } + + public override byte[] ToUtf8Json() + { + return JsonSerializer.SerializeToUtf8Bytes(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeletonOutput); + } + + public static new GetSuggestedUsersForDiscoverSkeletonOutput FromJson(string json) + { + return JsonSerializer.Deserialize(json, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeletonOutput)!; + } + + /// + public override CBORObject ToCBORObject() + { + using var jsonStream = new MemoryStream(Encoding.UTF8.GetBytes(this.ToJson())); + return CBORObject.ReadJSON(jsonStream); + } + + /// + public static new GetSuggestedUsersForDiscoverSkeletonOutput FromCBORObject(CBORObject obj) + { + return new GetSuggestedUsersForDiscoverSkeletonOutput(obj); + } + + /// + public static GetSuggestedUsersForDiscoverSkeletonOutput Parse(string s, IFormatProvider? provider) + { + return JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeletonOutput)!; + } + + /// + public static bool TryParse(string? s, IFormatProvider? provider, out GetSuggestedUsersForDiscoverSkeletonOutput result) + { + result = JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeletonOutput); + return result != null; + } + } +} + diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForExploreOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForExploreOutput.g.cs new file mode 100644 index 00000000..1c902382 --- /dev/null +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForExploreOutput.g.cs @@ -0,0 +1,104 @@ +// +// This file was generated by FFSourceGen. +// Do not modify this file. + +#nullable enable annotations +#nullable disable warnings + +namespace FishyFlip.Lexicon.App.Bsky.Unspecced +{ + public partial class GetSuggestedUsersForExploreOutput : ATObject, ICBOREncodable, IJsonEncodable, IParsable + { + + /// + /// Initializes a new instance of the class. + /// + /// + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestedUsersForExploreOutput(List actors = default, string? recIdStr = default) + { + this.Actors = actors; + this.RecIdStr = recIdStr; + this.Type = "app.bsky.unspecced.getSuggestedUsersForExplore#GetSuggestedUsersForExploreOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForExploreOutput() + { + this.Type = "app.bsky.unspecced.getSuggestedUsersForExplore#GetSuggestedUsersForExploreOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForExploreOutput(CBORObject obj) + { + if (obj["actors"] is not null) this.Actors = obj["actors"].Values.Select(n =>new FishyFlip.Lexicon.App.Bsky.Actor.ProfileView(n)).ToList(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); + if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); + } + + /// + /// Gets or sets the actors. + /// + [JsonPropertyName("actors")] + [JsonRequired] + public List Actors { get; set; } + + /// + /// Gets or sets the recIdStr. + ///
Snowflake for this recommendation, use when submitting recommendation events. + ///
+ [JsonPropertyName("recIdStr")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? RecIdStr { get; set; } + + public const string RecordType = "app.bsky.unspecced.getSuggestedUsersForExplore#GetSuggestedUsersForExploreOutput"; + + public override string ToJson() + { + return JsonSerializer.Serialize(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreOutput); + } + + public override byte[] ToUtf8Json() + { + return JsonSerializer.SerializeToUtf8Bytes(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreOutput); + } + + public static new GetSuggestedUsersForExploreOutput FromJson(string json) + { + return JsonSerializer.Deserialize(json, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreOutput)!; + } + + /// + public override CBORObject ToCBORObject() + { + using var jsonStream = new MemoryStream(Encoding.UTF8.GetBytes(this.ToJson())); + return CBORObject.ReadJSON(jsonStream); + } + + /// + public static new GetSuggestedUsersForExploreOutput FromCBORObject(CBORObject obj) + { + return new GetSuggestedUsersForExploreOutput(obj); + } + + /// + public static GetSuggestedUsersForExploreOutput Parse(string s, IFormatProvider? provider) + { + return JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreOutput)!; + } + + /// + public static bool TryParse(string? s, IFormatProvider? provider, out GetSuggestedUsersForExploreOutput result) + { + result = JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreOutput); + return result != null; + } + } +} + diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForExploreSkeletonOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForExploreSkeletonOutput.g.cs new file mode 100644 index 00000000..54ef8114 --- /dev/null +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForExploreSkeletonOutput.g.cs @@ -0,0 +1,104 @@ +// +// This file was generated by FFSourceGen. +// Do not modify this file. + +#nullable enable annotations +#nullable disable warnings + +namespace FishyFlip.Lexicon.App.Bsky.Unspecced +{ + public partial class GetSuggestedUsersForExploreSkeletonOutput : ATObject, ICBOREncodable, IJsonEncodable, IParsable + { + + /// + /// Initializes a new instance of the class. + /// + /// + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestedUsersForExploreSkeletonOutput(List dids = default, string? recIdStr = default) + { + this.Dids = dids; + this.RecIdStr = recIdStr; + this.Type = "app.bsky.unspecced.getSuggestedUsersForExploreSkeleton#GetSuggestedUsersForExploreSkeletonOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForExploreSkeletonOutput() + { + this.Type = "app.bsky.unspecced.getSuggestedUsersForExploreSkeleton#GetSuggestedUsersForExploreSkeletonOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForExploreSkeletonOutput(CBORObject obj) + { + if (obj["dids"] is not null) this.Dids = obj["dids"].Values.Select(n =>n.ToATDid()!).ToList(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); + if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); + } + + /// + /// Gets or sets the dids. + /// + [JsonPropertyName("dids")] + [JsonRequired] + public List Dids { get; set; } + + /// + /// Gets or sets the recIdStr. + ///
Snowflake for this recommendation, use when submitting recommendation events. + ///
+ [JsonPropertyName("recIdStr")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? RecIdStr { get; set; } + + public const string RecordType = "app.bsky.unspecced.getSuggestedUsersForExploreSkeleton#GetSuggestedUsersForExploreSkeletonOutput"; + + public override string ToJson() + { + return JsonSerializer.Serialize(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreSkeletonOutput); + } + + public override byte[] ToUtf8Json() + { + return JsonSerializer.SerializeToUtf8Bytes(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreSkeletonOutput); + } + + public static new GetSuggestedUsersForExploreSkeletonOutput FromJson(string json) + { + return JsonSerializer.Deserialize(json, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreSkeletonOutput)!; + } + + /// + public override CBORObject ToCBORObject() + { + using var jsonStream = new MemoryStream(Encoding.UTF8.GetBytes(this.ToJson())); + return CBORObject.ReadJSON(jsonStream); + } + + /// + public static new GetSuggestedUsersForExploreSkeletonOutput FromCBORObject(CBORObject obj) + { + return new GetSuggestedUsersForExploreSkeletonOutput(obj); + } + + /// + public static GetSuggestedUsersForExploreSkeletonOutput Parse(string s, IFormatProvider? provider) + { + return JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreSkeletonOutput)!; + } + + /// + public static bool TryParse(string? s, IFormatProvider? provider, out GetSuggestedUsersForExploreSkeletonOutput result) + { + result = JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForExploreSkeletonOutput); + return result != null; + } + } +} + diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForSeeMoreOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForSeeMoreOutput.g.cs new file mode 100644 index 00000000..9195695e --- /dev/null +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForSeeMoreOutput.g.cs @@ -0,0 +1,104 @@ +// +// This file was generated by FFSourceGen. +// Do not modify this file. + +#nullable enable annotations +#nullable disable warnings + +namespace FishyFlip.Lexicon.App.Bsky.Unspecced +{ + public partial class GetSuggestedUsersForSeeMoreOutput : ATObject, ICBOREncodable, IJsonEncodable, IParsable + { + + /// + /// Initializes a new instance of the class. + /// + /// + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestedUsersForSeeMoreOutput(List actors = default, string? recIdStr = default) + { + this.Actors = actors; + this.RecIdStr = recIdStr; + this.Type = "app.bsky.unspecced.getSuggestedUsersForSeeMore#GetSuggestedUsersForSeeMoreOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForSeeMoreOutput() + { + this.Type = "app.bsky.unspecced.getSuggestedUsersForSeeMore#GetSuggestedUsersForSeeMoreOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForSeeMoreOutput(CBORObject obj) + { + if (obj["actors"] is not null) this.Actors = obj["actors"].Values.Select(n =>new FishyFlip.Lexicon.App.Bsky.Actor.ProfileView(n)).ToList(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); + if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); + } + + /// + /// Gets or sets the actors. + /// + [JsonPropertyName("actors")] + [JsonRequired] + public List Actors { get; set; } + + /// + /// Gets or sets the recIdStr. + ///
Snowflake for this recommendation, use when submitting recommendation events. + ///
+ [JsonPropertyName("recIdStr")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? RecIdStr { get; set; } + + public const string RecordType = "app.bsky.unspecced.getSuggestedUsersForSeeMore#GetSuggestedUsersForSeeMoreOutput"; + + public override string ToJson() + { + return JsonSerializer.Serialize(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreOutput); + } + + public override byte[] ToUtf8Json() + { + return JsonSerializer.SerializeToUtf8Bytes(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreOutput); + } + + public static new GetSuggestedUsersForSeeMoreOutput FromJson(string json) + { + return JsonSerializer.Deserialize(json, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreOutput)!; + } + + /// + public override CBORObject ToCBORObject() + { + using var jsonStream = new MemoryStream(Encoding.UTF8.GetBytes(this.ToJson())); + return CBORObject.ReadJSON(jsonStream); + } + + /// + public static new GetSuggestedUsersForSeeMoreOutput FromCBORObject(CBORObject obj) + { + return new GetSuggestedUsersForSeeMoreOutput(obj); + } + + /// + public static GetSuggestedUsersForSeeMoreOutput Parse(string s, IFormatProvider? provider) + { + return JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreOutput)!; + } + + /// + public static bool TryParse(string? s, IFormatProvider? provider, out GetSuggestedUsersForSeeMoreOutput result) + { + result = JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreOutput); + return result != null; + } + } +} + diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForSeeMoreSkeletonOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForSeeMoreSkeletonOutput.g.cs new file mode 100644 index 00000000..c8d37b99 --- /dev/null +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersForSeeMoreSkeletonOutput.g.cs @@ -0,0 +1,104 @@ +// +// This file was generated by FFSourceGen. +// Do not modify this file. + +#nullable enable annotations +#nullable disable warnings + +namespace FishyFlip.Lexicon.App.Bsky.Unspecced +{ + public partial class GetSuggestedUsersForSeeMoreSkeletonOutput : ATObject, ICBOREncodable, IJsonEncodable, IParsable + { + + /// + /// Initializes a new instance of the class. + /// + /// + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestedUsersForSeeMoreSkeletonOutput(List dids = default, string? recIdStr = default) + { + this.Dids = dids; + this.RecIdStr = recIdStr; + this.Type = "app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton#GetSuggestedUsersForSeeMoreSkeletonOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForSeeMoreSkeletonOutput() + { + this.Type = "app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton#GetSuggestedUsersForSeeMoreSkeletonOutput"; + } + + + /// + /// Initializes a new instance of the class. + /// + public GetSuggestedUsersForSeeMoreSkeletonOutput(CBORObject obj) + { + if (obj["dids"] is not null) this.Dids = obj["dids"].Values.Select(n =>n.ToATDid()!).ToList(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); + if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); + } + + /// + /// Gets or sets the dids. + /// + [JsonPropertyName("dids")] + [JsonRequired] + public List Dids { get; set; } + + /// + /// Gets or sets the recIdStr. + ///
Snowflake for this recommendation, use when submitting recommendation events. + ///
+ [JsonPropertyName("recIdStr")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? RecIdStr { get; set; } + + public const string RecordType = "app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton#GetSuggestedUsersForSeeMoreSkeletonOutput"; + + public override string ToJson() + { + return JsonSerializer.Serialize(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeletonOutput); + } + + public override byte[] ToUtf8Json() + { + return JsonSerializer.SerializeToUtf8Bytes(this, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeletonOutput); + } + + public static new GetSuggestedUsersForSeeMoreSkeletonOutput FromJson(string json) + { + return JsonSerializer.Deserialize(json, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeletonOutput)!; + } + + /// + public override CBORObject ToCBORObject() + { + using var jsonStream = new MemoryStream(Encoding.UTF8.GetBytes(this.ToJson())); + return CBORObject.ReadJSON(jsonStream); + } + + /// + public static new GetSuggestedUsersForSeeMoreSkeletonOutput FromCBORObject(CBORObject obj) + { + return new GetSuggestedUsersForSeeMoreSkeletonOutput(obj); + } + + /// + public static GetSuggestedUsersForSeeMoreSkeletonOutput Parse(string s, IFormatProvider? provider) + { + return JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeletonOutput)!; + } + + /// + public static bool TryParse(string? s, IFormatProvider? provider, out GetSuggestedUsersForSeeMoreSkeletonOutput result) + { + result = JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeletonOutput); + return result != null; + } + } +} + diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersOutput.g.cs index 4ff2627f..3f321f09 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersOutput.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersOutput.g.cs @@ -14,11 +14,11 @@ public partial class GetSuggestedUsersOutput : ATObject, ICBOREncodable class. /// /// - /// Snowflake for this recommendation, use when submitting recommendation events. - public GetSuggestedUsersOutput(List actors = default, string? recId = default) + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestedUsersOutput(List actors = default, string? recIdStr = default) { this.Actors = actors; - this.RecId = recId; + this.RecIdStr = recIdStr; this.Type = "app.bsky.unspecced.getSuggestedUsers#GetSuggestedUsersOutput"; } @@ -38,7 +38,7 @@ public GetSuggestedUsersOutput() public GetSuggestedUsersOutput(CBORObject obj) { if (obj["actors"] is not null) this.Actors = obj["actors"].Values.Select(n =>new FishyFlip.Lexicon.App.Bsky.Actor.ProfileView(n)).ToList(); - if (obj["recId"] is not null) this.RecId = obj["recId"].AsString(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); } @@ -50,12 +50,12 @@ public GetSuggestedUsersOutput(CBORObject obj) public List Actors { get; set; } /// - /// Gets or sets the recId. + /// Gets or sets the recIdStr. ///
Snowflake for this recommendation, use when submitting recommendation events. ///
- [JsonPropertyName("recId")] + [JsonPropertyName("recIdStr")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] - public string? RecId { get; set; } + public string? RecIdStr { get; set; } public const string RecordType = "app.bsky.unspecced.getSuggestedUsers#GetSuggestedUsersOutput"; diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersSkeletonOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersSkeletonOutput.g.cs index 5a0760a3..0e710749 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersSkeletonOutput.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersSkeletonOutput.g.cs @@ -14,11 +14,11 @@ public partial class GetSuggestedUsersSkeletonOutput : ATObject, ICBOREncodable< /// Initializes a new instance of the class. /// /// - /// Snowflake for this recommendation, use when submitting recommendation events. - public GetSuggestedUsersSkeletonOutput(List dids = default, string? recId = default) + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestedUsersSkeletonOutput(List dids = default, string? recIdStr = default) { this.Dids = dids; - this.RecId = recId; + this.RecIdStr = recIdStr; this.Type = "app.bsky.unspecced.getSuggestedUsersSkeleton#GetSuggestedUsersSkeletonOutput"; } @@ -38,7 +38,7 @@ public GetSuggestedUsersSkeletonOutput() public GetSuggestedUsersSkeletonOutput(CBORObject obj) { if (obj["dids"] is not null) this.Dids = obj["dids"].Values.Select(n =>n.ToATDid()!).ToList(); - if (obj["recId"] is not null) this.RecId = obj["recId"].AsString(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); } @@ -50,12 +50,12 @@ public GetSuggestedUsersSkeletonOutput(CBORObject obj) public List Dids { get; set; } /// - /// Gets or sets the recId. + /// Gets or sets the recIdStr. ///
Snowflake for this recommendation, use when submitting recommendation events. ///
- [JsonPropertyName("recId")] + [JsonPropertyName("recIdStr")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] - public string? RecId { get; set; } + public string? RecIdStr { get; set; } public const string RecordType = "app.bsky.unspecced.getSuggestedUsersSkeleton#GetSuggestedUsersSkeletonOutput"; diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestionsSkeletonOutput.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestionsSkeletonOutput.g.cs index d2e925cc..9e22516f 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestionsSkeletonOutput.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestionsSkeletonOutput.g.cs @@ -16,13 +16,13 @@ public partial class GetSuggestionsSkeletonOutput : ATObject, ICBOREncodable /// /// DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. - /// Snowflake for this recommendation, use when submitting recommendation events. - public GetSuggestionsSkeletonOutput(string? cursor = default, List actors = default, FishyFlip.Models.ATDid? relativeToDid = default, long? recId = default) + /// Snowflake for this recommendation, use when submitting recommendation events. + public GetSuggestionsSkeletonOutput(string? cursor = default, List actors = default, FishyFlip.Models.ATDid? relativeToDid = default, string? recIdStr = default) { this.Cursor = cursor; this.Actors = actors; this.RelativeToDid = relativeToDid; - this.RecId = recId; + this.RecIdStr = recIdStr; this.Type = "app.bsky.unspecced.getSuggestionsSkeleton#GetSuggestionsSkeletonOutput"; } @@ -44,7 +44,7 @@ public GetSuggestionsSkeletonOutput(CBORObject obj) if (obj["cursor"] is not null) this.Cursor = obj["cursor"].AsString(); if (obj["actors"] is not null) this.Actors = obj["actors"].Values.Select(n =>new FishyFlip.Lexicon.App.Bsky.Unspecced.SkeletonSearchActor(n)).ToList(); if (obj["relativeToDid"] is not null) this.RelativeToDid = obj["relativeToDid"].ToATDid(); - if (obj["recId"] is not null) this.RecId = obj["recId"].AsInt64Value(); + if (obj["recIdStr"] is not null) this.RecIdStr = obj["recIdStr"].AsString(); if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); } @@ -72,12 +72,12 @@ public GetSuggestionsSkeletonOutput(CBORObject obj) public FishyFlip.Models.ATDid? RelativeToDid { get; set; } /// - /// Gets or sets the recId. + /// Gets or sets the recIdStr. ///
Snowflake for this recommendation, use when submitting recommendation events. ///
- [JsonPropertyName("recId")] + [JsonPropertyName("recIdStr")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] - public long? RecId { get; set; } + public string? RecIdStr { get; set; } public const string RecordType = "app.bsky.unspecced.getSuggestionsSkeleton#GetSuggestionsSkeletonOutput"; diff --git a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/UnspeccedEndpoints.g.cs b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/UnspeccedEndpoints.g.cs index e4b869ff..3f9ced65 100644 --- a/src/FishyFlip/Lexicon/App/Bsky/Unspecced/UnspeccedEndpoints.g.cs +++ b/src/FishyFlip/Lexicon/App/Bsky/Unspecced/UnspeccedEndpoints.g.cs @@ -24,6 +24,8 @@ public static class UnspeccedEndpoints public const string GetOnboardingSuggestedStarterPacksSkeleton = "/xrpc/app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton"; + public const string GetOnboardingSuggestedUsersSkeleton = "/xrpc/app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton"; + public const string GetPopularFeedGenerators = "/xrpc/app.bsky.unspecced.getPopularFeedGenerators"; public const string GetPostThreadOtherV2 = "/xrpc/app.bsky.unspecced.getPostThreadOtherV2"; @@ -34,12 +36,26 @@ public static class UnspeccedEndpoints public const string GetSuggestedFeedsSkeleton = "/xrpc/app.bsky.unspecced.getSuggestedFeedsSkeleton"; + public const string GetSuggestedOnboardingUsers = "/xrpc/app.bsky.unspecced.getSuggestedOnboardingUsers"; + public const string GetSuggestedStarterPacks = "/xrpc/app.bsky.unspecced.getSuggestedStarterPacks"; public const string GetSuggestedStarterPacksSkeleton = "/xrpc/app.bsky.unspecced.getSuggestedStarterPacksSkeleton"; public const string GetSuggestedUsers = "/xrpc/app.bsky.unspecced.getSuggestedUsers"; + public const string GetSuggestedUsersForDiscover = "/xrpc/app.bsky.unspecced.getSuggestedUsersForDiscover"; + + public const string GetSuggestedUsersForDiscoverSkeleton = "/xrpc/app.bsky.unspecced.getSuggestedUsersForDiscoverSkeleton"; + + public const string GetSuggestedUsersForExplore = "/xrpc/app.bsky.unspecced.getSuggestedUsersForExplore"; + + public const string GetSuggestedUsersForExploreSkeleton = "/xrpc/app.bsky.unspecced.getSuggestedUsersForExploreSkeleton"; + + public const string GetSuggestedUsersForSeeMore = "/xrpc/app.bsky.unspecced.getSuggestedUsersForSeeMore"; + + public const string GetSuggestedUsersForSeeMoreSkeleton = "/xrpc/app.bsky.unspecced.getSuggestedUsersForSeeMoreSkeleton"; + public const string GetSuggestedUsersSkeleton = "/xrpc/app.bsky.unspecced.getSuggestedUsersSkeleton"; public const string GetSuggestionsSkeleton = "/xrpc/app.bsky.unspecced.getSuggestionsSkeleton"; @@ -145,6 +161,42 @@ public static class UnspeccedEndpoints } + /// + /// Get a skeleton of suggested users for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedOnboardingUsers + /// + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// Category of users to get suggestions for. + /// + /// + /// Result of + public static Task> GetOnboardingSuggestedUsersSkeletonAsync (this FishyFlip.ATProtocol atp, FishyFlip.Models.ATDid? viewer = default, string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + var endpointUrl = GetOnboardingSuggestedUsersSkeleton.ToString(); + endpointUrl += "?"; + List queryStrings = new(); + if (viewer != null) + { + queryStrings.Add("viewer=" + viewer); + } + + if (category != null) + { + queryStrings.Add("category=" + category); + } + + if (limit != null) + { + queryStrings.Add("limit=" + limit); + } + + var headers = new Dictionary(); + headers.Add(Constants.AtProtoAcceptLabelers, atp.Options.LabelDefinitionsHeader); + endpointUrl += string.Join("&", queryStrings); + return atp.Get(endpointUrl, atp.Options.SourceGenerationContext.AppBskyUnspeccedGetOnboardingSuggestedUsersSkeletonOutput!, cancellationToken, headers); + } + + /// /// An unspecced view of globally popular feed generators. /// @@ -301,6 +353,36 @@ public static class UnspeccedEndpoints } + /// + /// Get a list of suggested users for onboarding + /// + /// + /// Category of users to get suggestions for. + /// + /// + /// Result of + public static Task> GetSuggestedOnboardingUsersAsync (this FishyFlip.ATProtocol atp, string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + var endpointUrl = GetSuggestedOnboardingUsers.ToString(); + endpointUrl += "?"; + List queryStrings = new(); + if (category != null) + { + queryStrings.Add("category=" + category); + } + + if (limit != null) + { + queryStrings.Add("limit=" + limit); + } + + var headers = new Dictionary(); + headers.Add(Constants.AtProtoAcceptLabelers, atp.Options.LabelDefinitionsHeader); + endpointUrl += string.Join("&", queryStrings); + return atp.Get(endpointUrl, atp.Options.SourceGenerationContext.AppBskyUnspeccedGetSuggestedOnboardingUsersOutput!, cancellationToken, headers); + } + + /// /// Get a list of suggested starterpacks /// @@ -385,6 +467,192 @@ public static class UnspeccedEndpoints } + /// + /// Get a list of suggested users for the Discover page + /// + /// + /// + /// + /// Result of + public static Task> GetSuggestedUsersForDiscoverAsync (this FishyFlip.ATProtocol atp, int? limit = 25, CancellationToken cancellationToken = default) + { + var endpointUrl = GetSuggestedUsersForDiscover.ToString(); + endpointUrl += "?"; + List queryStrings = new(); + if (limit != null) + { + queryStrings.Add("limit=" + limit); + } + + var headers = new Dictionary(); + headers.Add(Constants.AtProtoAcceptLabelers, atp.Options.LabelDefinitionsHeader); + endpointUrl += string.Join("&", queryStrings); + return atp.Get(endpointUrl, atp.Options.SourceGenerationContext.AppBskyUnspeccedGetSuggestedUsersForDiscoverOutput!, cancellationToken, headers); + } + + + /// + /// Get a skeleton of suggested users for the Discover page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForDiscover + /// + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// + /// + /// Result of + public static Task> GetSuggestedUsersForDiscoverSkeletonAsync (this FishyFlip.ATProtocol atp, FishyFlip.Models.ATDid? viewer = default, int? limit = 25, CancellationToken cancellationToken = default) + { + var endpointUrl = GetSuggestedUsersForDiscoverSkeleton.ToString(); + endpointUrl += "?"; + List queryStrings = new(); + if (viewer != null) + { + queryStrings.Add("viewer=" + viewer); + } + + if (limit != null) + { + queryStrings.Add("limit=" + limit); + } + + var headers = new Dictionary(); + headers.Add(Constants.AtProtoAcceptLabelers, atp.Options.LabelDefinitionsHeader); + endpointUrl += string.Join("&", queryStrings); + return atp.Get(endpointUrl, atp.Options.SourceGenerationContext.AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeletonOutput!, cancellationToken, headers); + } + + + /// + /// Get a list of suggested users for the Explore page + /// + /// + /// Category of users to get suggestions for. + /// + /// + /// Result of + public static Task> GetSuggestedUsersForExploreAsync (this FishyFlip.ATProtocol atp, string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + var endpointUrl = GetSuggestedUsersForExplore.ToString(); + endpointUrl += "?"; + List queryStrings = new(); + if (category != null) + { + queryStrings.Add("category=" + category); + } + + if (limit != null) + { + queryStrings.Add("limit=" + limit); + } + + var headers = new Dictionary(); + headers.Add(Constants.AtProtoAcceptLabelers, atp.Options.LabelDefinitionsHeader); + endpointUrl += string.Join("&", queryStrings); + return atp.Get(endpointUrl, atp.Options.SourceGenerationContext.AppBskyUnspeccedGetSuggestedUsersForExploreOutput!, cancellationToken, headers); + } + + + /// + /// Get a skeleton of suggested users for the Explore page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForExplore + /// + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// Category of users to get suggestions for. + /// + /// + /// Result of + public static Task> GetSuggestedUsersForExploreSkeletonAsync (this FishyFlip.ATProtocol atp, FishyFlip.Models.ATDid? viewer = default, string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + var endpointUrl = GetSuggestedUsersForExploreSkeleton.ToString(); + endpointUrl += "?"; + List queryStrings = new(); + if (viewer != null) + { + queryStrings.Add("viewer=" + viewer); + } + + if (category != null) + { + queryStrings.Add("category=" + category); + } + + if (limit != null) + { + queryStrings.Add("limit=" + limit); + } + + var headers = new Dictionary(); + headers.Add(Constants.AtProtoAcceptLabelers, atp.Options.LabelDefinitionsHeader); + endpointUrl += string.Join("&", queryStrings); + return atp.Get(endpointUrl, atp.Options.SourceGenerationContext.AppBskyUnspeccedGetSuggestedUsersForExploreSkeletonOutput!, cancellationToken, headers); + } + + + /// + /// Get a list of suggested users for the See More page + /// + /// + /// Category of users to get suggestions for. + /// + /// + /// Result of + public static Task> GetSuggestedUsersForSeeMoreAsync (this FishyFlip.ATProtocol atp, string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + var endpointUrl = GetSuggestedUsersForSeeMore.ToString(); + endpointUrl += "?"; + List queryStrings = new(); + if (category != null) + { + queryStrings.Add("category=" + category); + } + + if (limit != null) + { + queryStrings.Add("limit=" + limit); + } + + var headers = new Dictionary(); + headers.Add(Constants.AtProtoAcceptLabelers, atp.Options.LabelDefinitionsHeader); + endpointUrl += string.Join("&", queryStrings); + return atp.Get(endpointUrl, atp.Options.SourceGenerationContext.AppBskyUnspeccedGetSuggestedUsersForSeeMoreOutput!, cancellationToken, headers); + } + + + /// + /// Get a skeleton of suggested users for the See More page. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsersForSeeMore + /// + /// + /// DID of the account making the request (not included for public/unauthenticated queries). + /// Category of users to get suggestions for. + /// + /// + /// Result of + public static Task> GetSuggestedUsersForSeeMoreSkeletonAsync (this FishyFlip.ATProtocol atp, FishyFlip.Models.ATDid? viewer = default, string? category = default, int? limit = 25, CancellationToken cancellationToken = default) + { + var endpointUrl = GetSuggestedUsersForSeeMoreSkeleton.ToString(); + endpointUrl += "?"; + List queryStrings = new(); + if (viewer != null) + { + queryStrings.Add("viewer=" + viewer); + } + + if (category != null) + { + queryStrings.Add("category=" + category); + } + + if (limit != null) + { + queryStrings.Add("limit=" + limit); + } + + var headers = new Dictionary(); + headers.Add(Constants.AtProtoAcceptLabelers, atp.Options.LabelDefinitionsHeader); + endpointUrl += string.Join("&", queryStrings); + return atp.Get(endpointUrl, atp.Options.SourceGenerationContext.AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeletonOutput!, cancellationToken, headers); + } + + /// /// Get a skeleton of suggested users. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsers /// diff --git a/src/FishyFlip/Lexicon/CborExtensions.g.cs b/src/FishyFlip/Lexicon/CborExtensions.g.cs index 9e492e65..7ecbcf93 100644 --- a/src/FishyFlip/Lexicon/CborExtensions.g.cs +++ b/src/FishyFlip/Lexicon/CborExtensions.g.cs @@ -72,6 +72,8 @@ public static ATObject ToATObject(this CBORObject obj, IReadOnlyList public const string Hide = "!hide"; - /// - /// !no-promote - /// - public const string Nopromote = "!no-promote"; - /// /// !warn /// @@ -34,16 +29,6 @@ public static class LabelValue /// public const string Nounauthenticated = "!no-unauthenticated"; - /// - /// dmca-violation - /// - public const string Dmcaviolation = "dmca-violation"; - - /// - /// doxxing - /// - public const string Doxxing = "doxxing"; - /// /// porn /// @@ -60,14 +45,14 @@ public static class LabelValue public const string Nudity = "nudity"; /// - /// nsfl + /// graphic-media /// - public const string Nsfl = "nsfl"; + public const string Graphicmedia = "graphic-media"; /// - /// gore + /// bot /// - public const string Gore = "gore"; + public const string Bot = "bot"; } } diff --git a/src/FishyFlip/Lexicon/Com/Germnetwork/Declaration.g.cs b/src/FishyFlip/Lexicon/Com/Germnetwork/Declaration.g.cs index 9fb6d386..4d5c93a0 100644 --- a/src/FishyFlip/Lexicon/Com/Germnetwork/Declaration.g.cs +++ b/src/FishyFlip/Lexicon/Com/Germnetwork/Declaration.g.cs @@ -8,7 +8,7 @@ namespace FishyFlip.Lexicon.Com.Germnetwork { /// - /// A delegate messaging id + /// A declaration of a Germ Network account /// public partial class Declaration : ATObject, ICBOREncodable, IJsonEncodable, IParsable { @@ -16,13 +16,13 @@ public partial class Declaration : ATObject, ICBOREncodable, IJsonE /// /// Initializes a new instance of the class. /// - /// - /// - /// + /// Semver version number, without pre-release or build information, for the format of opaque content + /// Opaque value, an ed25519 public key prefixed with a byte enum + /// Controls who can message this account /// com.germnetwork.defs#messageMe
/// - /// - /// + /// Opaque value, contains MLS KeyPackage(s), and other signature data, and is signed by the currentKey + /// Array of opaque values to allow for key rolling public Declaration(string? version, byte[]? currentKey, FishyFlip.Lexicon.Com.Germnetwork.MessageMe? messageMe = default, byte[]? keyPackage = default, List? continuityProofs = default) { this.Version = version; @@ -58,6 +58,7 @@ public Declaration(CBORObject obj) /// /// Gets or sets the version. + ///
Semver version number, without pre-release or build information, for the format of opaque content ///
[JsonPropertyName("version")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -65,6 +66,7 @@ public Declaration(CBORObject obj) /// /// Gets or sets the currentKey. + ///
Opaque value, an ed25519 public key prefixed with a byte enum ///
[JsonPropertyName("currentKey")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -72,6 +74,7 @@ public Declaration(CBORObject obj) /// /// Gets or sets the messageMe. + ///
Controls who can message this account /// com.germnetwork.defs#messageMe
///
[JsonPropertyName("messageMe")] @@ -80,6 +83,7 @@ public Declaration(CBORObject obj) /// /// Gets or sets the keyPackage. + ///
Opaque value, contains MLS KeyPackage(s), and other signature data, and is signed by the currentKey ///
[JsonPropertyName("keyPackage")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -87,6 +91,7 @@ public Declaration(CBORObject obj) /// /// Gets or sets the continuityProofs. + ///
Array of opaque values to allow for key rolling ///
[JsonPropertyName("continuityProofs")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] diff --git a/src/FishyFlip/Lexicon/Com/Germnetwork/MessageMe.g.cs b/src/FishyFlip/Lexicon/Com/Germnetwork/MessageMe.g.cs index a6eaffc9..f5f6e351 100644 --- a/src/FishyFlip/Lexicon/Com/Germnetwork/MessageMe.g.cs +++ b/src/FishyFlip/Lexicon/Com/Germnetwork/MessageMe.g.cs @@ -13,9 +13,10 @@ public partial class MessageMe : ATObject, ICBOREncodable, IJsonEncod /// /// Initializes a new instance of the class. /// - /// - /// + /// A URL to present to an account that does not have its own com.germnetwork.declaration record, must have an empty fragment component, where the app should fill in the fragment component with the DIDs of the two accounts who wish to message each other + /// The policy of who can message the account, this value is included in the keyPackage, but is duplicated here to allow applications to decide if they should show a 'Message on Germ' button to the viewer. ///
Known Values:
+ /// none
/// usersIFollow
/// everyone
/// @@ -48,6 +49,7 @@ public MessageMe(CBORObject obj) /// /// Gets or sets the messageMeUrl. + ///
A URL to present to an account that does not have its own com.germnetwork.declaration record, must have an empty fragment component, where the app should fill in the fragment component with the DIDs of the two accounts who wish to message each other ///
[JsonPropertyName("messageMeUrl")] [JsonRequired] @@ -55,7 +57,9 @@ public MessageMe(CBORObject obj) /// /// Gets or sets the showButtonTo. + ///
The policy of who can message the account, this value is included in the keyPackage, but is duplicated here to allow applications to decide if they should show a 'Message on Germ' button to the viewer. ///
Known Values:
+ /// none
/// usersIFollow
/// everyone
///
diff --git a/src/FishyFlip/Lexicon/SourceGenerationContext.g.cs b/src/FishyFlip/Lexicon/SourceGenerationContext.g.cs index 71d10d31..5bf003b8 100644 --- a/src/FishyFlip/Lexicon/SourceGenerationContext.g.cs +++ b/src/FishyFlip/Lexicon/SourceGenerationContext.g.cs @@ -69,6 +69,8 @@ namespace FishyFlip.Lexicon [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListToolsOzoneModerationAgeAssuranceEvent")] [JsonSerializable(typeof(FishyFlip.Lexicon.Tools.Ozone.Moderation.AgeAssuranceOverrideEvent), TypeInfoPropertyName = "ToolsOzoneModerationAgeAssuranceOverrideEvent")] [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListToolsOzoneModerationAgeAssuranceOverrideEvent")] + [JsonSerializable(typeof(FishyFlip.Lexicon.Tools.Ozone.Moderation.AgeAssurancePurgeEvent), TypeInfoPropertyName = "ToolsOzoneModerationAgeAssurancePurgeEvent")] + [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListToolsOzoneModerationAgeAssurancePurgeEvent")] [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.AgeAssuranceState), TypeInfoPropertyName = "AppBskyUnspeccedAgeAssuranceState")] [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedAgeAssuranceState")] [JsonSerializable(typeof(FishyFlip.Lexicon.Com.Atproto.Repo.ApplyWritesInput), TypeInfoPropertyName = "ComAtprotoRepoApplyWritesInput")] @@ -407,6 +409,8 @@ namespace FishyFlip.Lexicon [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetOnboardingSuggestedStarterPacksOutput")] [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetOnboardingSuggestedStarterPacksSkeletonOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonOutput")] [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonOutput")] + [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetOnboardingSuggestedUsersSkeletonOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetOnboardingSuggestedUsersSkeletonOutput")] + [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetOnboardingSuggestedUsersSkeletonOutput")] [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetPopularFeedGeneratorsOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetPopularFeedGeneratorsOutput")] [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetPopularFeedGeneratorsOutput")] [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Feed.GetPostsOutput), TypeInfoPropertyName = "AppBskyFeedGetPostsOutput")] @@ -467,10 +471,24 @@ namespace FishyFlip.Lexicon [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedFeedsSkeletonOutput")] [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Graph.GetSuggestedFollowsByActorOutput), TypeInfoPropertyName = "AppBskyGraphGetSuggestedFollowsByActorOutput")] [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyGraphGetSuggestedFollowsByActorOutput")] + [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedOnboardingUsersOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedOnboardingUsersOutput")] + [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedOnboardingUsersOutput")] [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedStarterPacksOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedStarterPacksOutput")] [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedStarterPacksOutput")] [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedStarterPacksSkeletonOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedStarterPacksSkeletonOutput")] [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedStarterPacksSkeletonOutput")] + [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedUsersForDiscoverOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedUsersForDiscoverOutput")] + [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedUsersForDiscoverOutput")] + [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedUsersForDiscoverSkeletonOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedUsersForDiscoverSkeletonOutput")] + [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedUsersForDiscoverSkeletonOutput")] + [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedUsersForExploreOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedUsersForExploreOutput")] + [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedUsersForExploreOutput")] + [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedUsersForExploreSkeletonOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedUsersForExploreSkeletonOutput")] + [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedUsersForExploreSkeletonOutput")] + [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedUsersForSeeMoreOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedUsersForSeeMoreOutput")] + [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedUsersForSeeMoreOutput")] + [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedUsersForSeeMoreSkeletonOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeletonOutput")] + [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedUsersForSeeMoreSkeletonOutput")] [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedUsersOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedUsersOutput")] [JsonSerializable(typeof(List), TypeInfoPropertyName = "ListAppBskyUnspeccedGetSuggestedUsersOutput")] [JsonSerializable(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetSuggestedUsersSkeletonOutput), TypeInfoPropertyName = "AppBskyUnspeccedGetSuggestedUsersSkeletonOutput")] diff --git a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/AgeAssurancePurgeEvent.g.cs b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/AgeAssurancePurgeEvent.g.cs new file mode 100644 index 00000000..1f8ac9ad --- /dev/null +++ b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/AgeAssurancePurgeEvent.g.cs @@ -0,0 +1,97 @@ +// +// This file was generated by FFSourceGen. +// Do not modify this file. + +#nullable enable annotations +#nullable disable warnings + +namespace FishyFlip.Lexicon.Tools.Ozone.Moderation +{ + /// + /// Purges all age assurance events for the subject. Only works on DID subjects. Moderator-only. + /// + public partial class AgeAssurancePurgeEvent : ATObject, ICBOREncodable, IJsonEncodable, IParsable + { + + /// + /// Initializes a new instance of the class. + /// + /// Comment describing the reason for the purge. + public AgeAssurancePurgeEvent(string comment = default) + { + this.Comment = comment; + this.Type = "tools.ozone.moderation.defs#ageAssurancePurgeEvent"; + } + + + /// + /// Initializes a new instance of the class. + /// + public AgeAssurancePurgeEvent() + { + this.Type = "tools.ozone.moderation.defs#ageAssurancePurgeEvent"; + } + + + /// + /// Initializes a new instance of the class. + /// + public AgeAssurancePurgeEvent(CBORObject obj) + { + if (obj["comment"] is not null) this.Comment = obj["comment"].AsString(); + if (obj["$type"] is not null) this.Type = obj["$type"].AsString(); + } + + /// + /// Gets or sets the comment. + ///
Comment describing the reason for the purge. + ///
+ [JsonPropertyName("comment")] + [JsonRequired] + public string Comment { get; set; } + + public const string RecordType = "tools.ozone.moderation.defs#ageAssurancePurgeEvent"; + + public override string ToJson() + { + return JsonSerializer.Serialize(this, (JsonTypeInfo)SourceGenerationContext.Default.ToolsOzoneModerationAgeAssurancePurgeEvent); + } + + public override byte[] ToUtf8Json() + { + return JsonSerializer.SerializeToUtf8Bytes(this, (JsonTypeInfo)SourceGenerationContext.Default.ToolsOzoneModerationAgeAssurancePurgeEvent); + } + + public static new AgeAssurancePurgeEvent FromJson(string json) + { + return JsonSerializer.Deserialize(json, (JsonTypeInfo)SourceGenerationContext.Default.ToolsOzoneModerationAgeAssurancePurgeEvent)!; + } + + /// + public override CBORObject ToCBORObject() + { + using var jsonStream = new MemoryStream(Encoding.UTF8.GetBytes(this.ToJson())); + return CBORObject.ReadJSON(jsonStream); + } + + /// + public static new AgeAssurancePurgeEvent FromCBORObject(CBORObject obj) + { + return new AgeAssurancePurgeEvent(obj); + } + + /// + public static AgeAssurancePurgeEvent Parse(string s, IFormatProvider? provider) + { + return JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.ToolsOzoneModerationAgeAssurancePurgeEvent)!; + } + + /// + public static bool TryParse(string? s, IFormatProvider? provider, out AgeAssurancePurgeEvent result) + { + result = JsonSerializer.Deserialize(s, (JsonTypeInfo)SourceGenerationContext.Default.ToolsOzoneModerationAgeAssurancePurgeEvent); + return result != null; + } + } +} + diff --git a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/EmitEventInput.g.cs b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/EmitEventInput.g.cs index ed954f1d..0c6fe1ec 100644 --- a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/EmitEventInput.g.cs +++ b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/EmitEventInput.g.cs @@ -36,6 +36,7 @@ public partial class EmitEventInput : ATObject, ICBOREncodable, /// (tools.ozone.moderation.defs#modEventPriorityScore)
/// (tools.ozone.moderation.defs#ageAssuranceEvent)
/// (tools.ozone.moderation.defs#ageAssuranceOverrideEvent)
+ /// (tools.ozone.moderation.defs#ageAssurancePurgeEvent)
/// (tools.ozone.moderation.defs#revokeAccountCredentialsEvent)
/// (tools.ozone.moderation.defs#scheduleTakedownEvent)
/// (tools.ozone.moderation.defs#cancelScheduledTakedownEvent)
@@ -110,6 +111,7 @@ public EmitEventInput(CBORObject obj) /// (tools.ozone.moderation.defs#modEventPriorityScore)
/// (tools.ozone.moderation.defs#ageAssuranceEvent)
/// (tools.ozone.moderation.defs#ageAssuranceOverrideEvent)
+ /// (tools.ozone.moderation.defs#ageAssurancePurgeEvent)
/// (tools.ozone.moderation.defs#revokeAccountCredentialsEvent)
/// (tools.ozone.moderation.defs#scheduleTakedownEvent)
/// (tools.ozone.moderation.defs#cancelScheduledTakedownEvent)
diff --git a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventView.g.cs b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventView.g.cs index 71649e06..8aa3a124 100644 --- a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventView.g.cs +++ b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventView.g.cs @@ -37,6 +37,7 @@ public partial class ModEventView : ATObject, ICBOREncodable, IJso /// (tools.ozone.moderation.defs#modEventPriorityScore)
/// (tools.ozone.moderation.defs#ageAssuranceEvent)
/// (tools.ozone.moderation.defs#ageAssuranceOverrideEvent)
+ /// (tools.ozone.moderation.defs#ageAssurancePurgeEvent)
/// (tools.ozone.moderation.defs#revokeAccountCredentialsEvent)
/// (tools.ozone.moderation.defs#scheduleTakedownEvent)
/// (tools.ozone.moderation.defs#cancelScheduledTakedownEvent)
@@ -127,6 +128,7 @@ public ModEventView(CBORObject obj) /// (tools.ozone.moderation.defs#modEventPriorityScore)
/// (tools.ozone.moderation.defs#ageAssuranceEvent)
/// (tools.ozone.moderation.defs#ageAssuranceOverrideEvent)
+ /// (tools.ozone.moderation.defs#ageAssurancePurgeEvent)
/// (tools.ozone.moderation.defs#revokeAccountCredentialsEvent)
/// (tools.ozone.moderation.defs#scheduleTakedownEvent)
/// (tools.ozone.moderation.defs#cancelScheduledTakedownEvent)
diff --git a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventViewDetail.g.cs b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventViewDetail.g.cs index dab19be4..5c02b85a 100644 --- a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventViewDetail.g.cs +++ b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModEventViewDetail.g.cs @@ -37,6 +37,7 @@ public partial class ModEventViewDetail : ATObject, ICBOREncodable (tools.ozone.moderation.defs#modEventPriorityScore)
/// (tools.ozone.moderation.defs#ageAssuranceEvent)
/// (tools.ozone.moderation.defs#ageAssuranceOverrideEvent)
+ /// (tools.ozone.moderation.defs#ageAssurancePurgeEvent)
/// (tools.ozone.moderation.defs#revokeAccountCredentialsEvent)
/// (tools.ozone.moderation.defs#scheduleTakedownEvent)
/// (tools.ozone.moderation.defs#cancelScheduledTakedownEvent)
@@ -122,6 +123,7 @@ public ModEventViewDetail(CBORObject obj) /// (tools.ozone.moderation.defs#modEventPriorityScore)
/// (tools.ozone.moderation.defs#ageAssuranceEvent)
/// (tools.ozone.moderation.defs#ageAssuranceOverrideEvent)
+ /// (tools.ozone.moderation.defs#ageAssurancePurgeEvent)
/// (tools.ozone.moderation.defs#revokeAccountCredentialsEvent)
/// (tools.ozone.moderation.defs#scheduleTakedownEvent)
/// (tools.ozone.moderation.defs#cancelScheduledTakedownEvent)
diff --git a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModerationEndpoints.g.cs b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModerationEndpoints.g.cs index 3e36abe3..3f618cf1 100644 --- a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModerationEndpoints.g.cs +++ b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ModerationEndpoints.g.cs @@ -97,6 +97,7 @@ public static class ModerationEndpoints /// (tools.ozone.moderation.defs#modEventPriorityScore)
/// (tools.ozone.moderation.defs#ageAssuranceEvent)
/// (tools.ozone.moderation.defs#ageAssuranceOverrideEvent)
+ /// (tools.ozone.moderation.defs#ageAssurancePurgeEvent)
/// (tools.ozone.moderation.defs#revokeAccountCredentialsEvent)
/// (tools.ozone.moderation.defs#scheduleTakedownEvent)
/// (tools.ozone.moderation.defs#cancelScheduledTakedownEvent)
@@ -141,6 +142,7 @@ public static class ModerationEndpoints case "tools.ozone.moderation.defs#modEventPriorityScore": case "tools.ozone.moderation.defs#ageAssuranceEvent": case "tools.ozone.moderation.defs#ageAssuranceOverrideEvent": + case "tools.ozone.moderation.defs#ageAssurancePurgeEvent": case "tools.ozone.moderation.defs#revokeAccountCredentialsEvent": case "tools.ozone.moderation.defs#scheduleTakedownEvent": case "tools.ozone.moderation.defs#cancelScheduledTakedownEvent": diff --git a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ToolsOzoneModeration.g.cs b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ToolsOzoneModeration.g.cs index 8f80f5b6..c760e16d 100644 --- a/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ToolsOzoneModeration.g.cs +++ b/src/FishyFlip/Lexicon/Tools/Ozone/Moderation/ToolsOzoneModeration.g.cs @@ -72,6 +72,7 @@ internal ToolsOzoneModeration(ATProtocol atp) /// (tools.ozone.moderation.defs#modEventPriorityScore)
/// (tools.ozone.moderation.defs#ageAssuranceEvent)
/// (tools.ozone.moderation.defs#ageAssuranceOverrideEvent)
+ /// (tools.ozone.moderation.defs#ageAssurancePurgeEvent)
/// (tools.ozone.moderation.defs#revokeAccountCredentialsEvent)
/// (tools.ozone.moderation.defs#scheduleTakedownEvent)
/// (tools.ozone.moderation.defs#cancelScheduledTakedownEvent)
From 0e1d33dd9546240f30d1c36e93adf1d6679287a0 Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Mon, 30 Mar 2026 17:05:09 +0900 Subject: [PATCH 2/2] Update readmes --- README.md | 5 +++++ src/FishyFlip.AspNetCore/README.md | 6 +++++- src/FishyFlip.Xrpc/README.md | 4 ++++ src/FishyFlip/README.md | 4 ++++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b518567f..9fafeb0a 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,11 @@ FishyFlip is an implementation of [ATProtocol](https://atproto.com/) for .NET, forked from [bluesky-net](https://github.com/dariogriffo/bluesky-net). + +# IMPORTANT + +FishyFlip is deprecated. I am migrating work to a new library, [CarpaNet](https://drasticactions.github.io/CarpaNet). Please go there for more information. + For documentation, check out https://fishyflip.dev ### Code Flow diff --git a/src/FishyFlip.AspNetCore/README.md b/src/FishyFlip.AspNetCore/README.md index 0d29bcd8..c31427cd 100644 --- a/src/FishyFlip.AspNetCore/README.md +++ b/src/FishyFlip.AspNetCore/README.md @@ -1 +1,5 @@ -# FishyFlip.AspNetCore \ No newline at end of file +# FishyFlip.AspNetCore + +# IMPORTANT + +FishyFlip is deprecated. I am migrating work to a new library, [CarpaNet](https://drasticactions.github.io/CarpaNet). Please go there for more information. \ No newline at end of file diff --git a/src/FishyFlip.Xrpc/README.md b/src/FishyFlip.Xrpc/README.md index 2d51120a..9b3ec5fb 100644 --- a/src/FishyFlip.Xrpc/README.md +++ b/src/FishyFlip.Xrpc/README.md @@ -1,5 +1,9 @@ # FishyFlip.Xrpc - a .NET ATProtocol/Bluesky Library for XRPC endpoints +# IMPORTANT + +FishyFlip is deprecated. I am migrating work to a new library, [CarpaNet](https://drasticactions.github.io/CarpaNet). Please go there for more information. + [![NuGet Version](https://img.shields.io/nuget/v/FishyFlip.Xrpc.svg)](https://www.nuget.org/packages/FishyFlip.Xrpc/) ![License](https://img.shields.io/badge/License-MIT-blue.svg) ![FishyFlip.Xrpc Logo](https://user-images.githubusercontent.com/898335/253740405-4b0ae177-cc49-4c26-b6b0-ab8e835a0e62.png) diff --git a/src/FishyFlip/README.md b/src/FishyFlip/README.md index 2e21f289..e57cb340 100644 --- a/src/FishyFlip/README.md +++ b/src/FishyFlip/README.md @@ -4,6 +4,10 @@ ![FishyFlip Logo](https://user-images.githubusercontent.com/898335/253740405-4b0ae177-cc49-4c26-b6b0-ab8e835a0e62.png) +# IMPORTANT + +FishyFlip is deprecated. I am migrating work to a new library, [CarpaNet](https://drasticactions.github.io/CarpaNet). Please go there for more information. + ### **Version 4.0 Breaking Changes** Version 4.0 contains several breaking changes from previous versions in order to support new, ATProtocol Lexicon generated, types. Please review [this GitHub issue](https://github.com/drasticactions/FishyFlip/issues/305) for more information about the changes.