Skip to content

Commit

Permalink
Bump Dependencies (#158)
Browse files Browse the repository at this point in the history
* Bump license date

* Bump dependencies
  • Loading branch information
drasticactions authored Jan 13, 2025
1 parent 6cd41de commit d12a2f7
Show file tree
Hide file tree
Showing 17 changed files with 662 additions and 253 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Tim Miller
Copyright (c) 2025 Tim Miller

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 4 additions & 2 deletions src/FishyFlip/Lexicon/ATObject.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ namespace FishyFlip.Lexicon
[JsonDerivedType(typeof(Com.Atproto.Admin.GetAccountInfosOutput), typeDiscriminator: "com.atproto.admin.getAccountInfos#GetAccountInfosOutput")]
[JsonDerivedType(typeof(Com.Atproto.Server.GetAccountInviteCodesOutput), typeDiscriminator: "com.atproto.server.getAccountInviteCodes#GetAccountInviteCodesOutput")]
[JsonDerivedType(typeof(Community.Lexicon.Bookmarks.GetActorBookmarksOutput), typeDiscriminator: "community.lexicon.bookmarks.getActorBookmarks#GetActorBookmarksOutput")]
[JsonDerivedType(typeof(Fm.Teal.Alpha.Feed.GetActorFeedOutput), typeDiscriminator: "fm.teal.alpha.feed.getActorFeed#GetActorFeedOutput")]
[JsonDerivedType(typeof(App.Bsky.Feed.GetActorFeedsOutput), typeDiscriminator: "app.bsky.feed.getActorFeeds#GetActorFeedsOutput")]
[JsonDerivedType(typeof(App.Bsky.Feed.GetActorLikesOutput), typeDiscriminator: "app.bsky.feed.getActorLikes#GetActorLikesOutput")]
[JsonDerivedType(typeof(Chat.Bsky.Moderation.GetActorMetadataOutput), typeDiscriminator: "chat.bsky.moderation.getActorMetadata#GetActorMetadataOutput")]
Expand Down Expand Up @@ -151,6 +152,7 @@ namespace FishyFlip.Lexicon
[JsonDerivedType(typeof(App.Bsky.Graph.GetMutesOutput), typeDiscriminator: "app.bsky.graph.getMutes#GetMutesOutput")]
[JsonDerivedType(typeof(Com.Shinolabs.Pinksea.GetOekakiOutput), typeDiscriminator: "com.shinolabs.pinksea.getOekaki#GetOekakiOutput")]
[JsonDerivedType(typeof(Com.Shinolabs.Pinksea.GetParentForReplyOutput), typeDiscriminator: "com.shinolabs.pinksea.getParentForReply#GetParentForReplyOutput")]
[JsonDerivedType(typeof(Fm.Teal.Alpha.Feed.GetPlayOutput), typeDiscriminator: "fm.teal.alpha.feed.getPlay#GetPlayOutput")]
[JsonDerivedType(typeof(App.Bsky.Unspecced.GetPopularFeedGeneratorsOutput), typeDiscriminator: "app.bsky.unspecced.getPopularFeedGenerators#GetPopularFeedGeneratorsOutput")]
[JsonDerivedType(typeof(App.Bsky.Feed.GetPostsOutput), typeDiscriminator: "app.bsky.feed.getPosts#GetPostsOutput")]
[JsonDerivedType(typeof(App.Bsky.Feed.GetPostThreadOutput), typeDiscriminator: "app.bsky.feed.getPostThread#GetPostThreadOutput")]
Expand Down Expand Up @@ -290,7 +292,8 @@ namespace FishyFlip.Lexicon
[JsonDerivedType(typeof(Com.Whtwnd.Blog.Ogp), typeDiscriminator: "com.whtwnd.blog.defs#ogp")]
[JsonDerivedType(typeof(Tools.Ozone.Setting.Option), typeDiscriminator: "tools.ozone.setting.defs#option")]
[JsonDerivedType(typeof(App.Bsky.Actor.PersonalDetailsPref), typeDiscriminator: "app.bsky.actor.defs#personalDetailsPref")]
[JsonDerivedType(typeof(Fm.Teal.Alpha.Play), typeDiscriminator: "fm.teal.alpha.play")]
[JsonDerivedType(typeof(Fm.Teal.Alpha.Feed.Play), typeDiscriminator: "fm.teal.alpha.feed.play")]
[JsonDerivedType(typeof(Fm.Teal.Alpha.Feed.PlayView), typeDiscriminator: "fm.teal.alpha.feed.defs#playView")]
[JsonDerivedType(typeof(App.Bsky.Feed.Post), typeDiscriminator: "app.bsky.feed.post")]
[JsonDerivedType(typeof(Fyi.Unravel.Frontpage.Post), typeDiscriminator: "fyi.unravel.frontpage.post")]
[JsonDerivedType(typeof(App.Bsky.Feed.Postgate), typeDiscriminator: "app.bsky.feed.postgate")]
Expand Down Expand Up @@ -393,7 +396,6 @@ namespace FishyFlip.Lexicon
[JsonDerivedType(typeof(App.Bsky.Graph.StarterPackView), typeDiscriminator: "app.bsky.graph.defs#starterPackView")]
[JsonDerivedType(typeof(App.Bsky.Graph.StarterPackViewBasic), typeDiscriminator: "app.bsky.graph.defs#starterPackViewBasic")]
[JsonDerivedType(typeof(App.Netlify.Aniblue.Status), typeDiscriminator: "app.netlify.aniblue.status")]
[JsonDerivedType(typeof(Xyz.Statusphere.Status), typeDiscriminator: "xyz.statusphere.status")]
[JsonDerivedType(typeof(Fm.Teal.Alpha.Actor.Status), typeDiscriminator: "fm.teal.alpha.actor.status")]
[JsonDerivedType(typeof(Com.Atproto.Admin.StatusAttr), typeDiscriminator: "com.atproto.admin.defs#statusAttr")]
[JsonDerivedType(typeof(App.Netlify.Aniblue.StatusDef), typeDiscriminator: "app.netlify.aniblue.status#status")]
Expand Down
5 changes: 5 additions & 0 deletions src/FishyFlip/Lexicon/ATProtocol.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ public sealed partial class ATProtocol
/// </summary>
public FishyFlip.Lexicon.Community.Lexicon.Bookmarks.CommunityLexiconBookmarks CommunityLexiconBookmarks => new (this);

/// <summary>
/// fm.teal.alpha.feed Endpoint Group.
/// </summary>
public FishyFlip.Lexicon.Fm.Teal.Alpha.Feed.FmTealAlphaFeed FmTealAlphaFeed => new (this);

/// <summary>
/// tools.ozone.communication Endpoint Group.
/// </summary>
Expand Down
12 changes: 8 additions & 4 deletions src/FishyFlip/Lexicon/CborExtensions.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ public static ATObject ToATObject(this CBORObject obj)
return new Com.Atproto.Server.GetAccountInviteCodesOutput(obj);
case "community.lexicon.bookmarks.getActorBookmarks#GetActorBookmarksOutput":
return new Community.Lexicon.Bookmarks.GetActorBookmarksOutput(obj);
case "fm.teal.alpha.feed.getActorFeed#GetActorFeedOutput":
return new Fm.Teal.Alpha.Feed.GetActorFeedOutput(obj);
case "app.bsky.feed.getActorFeeds#GetActorFeedsOutput":
return new App.Bsky.Feed.GetActorFeedsOutput(obj);
case "app.bsky.feed.getActorLikes#GetActorLikesOutput":
Expand Down Expand Up @@ -317,6 +319,8 @@ public static ATObject ToATObject(this CBORObject obj)
return new Com.Shinolabs.Pinksea.GetOekakiOutput(obj);
case "com.shinolabs.pinksea.getParentForReply#GetParentForReplyOutput":
return new Com.Shinolabs.Pinksea.GetParentForReplyOutput(obj);
case "fm.teal.alpha.feed.getPlay#GetPlayOutput":
return new Fm.Teal.Alpha.Feed.GetPlayOutput(obj);
case "app.bsky.unspecced.getPopularFeedGenerators#GetPopularFeedGeneratorsOutput":
return new App.Bsky.Unspecced.GetPopularFeedGeneratorsOutput(obj);
case "app.bsky.feed.getPosts#GetPostsOutput":
Expand Down Expand Up @@ -595,8 +599,10 @@ public static ATObject ToATObject(this CBORObject obj)
return new Tools.Ozone.Setting.Option(obj);
case "app.bsky.actor.defs#personalDetailsPref":
return new App.Bsky.Actor.PersonalDetailsPref(obj);
case "fm.teal.alpha.play":
return new Fm.Teal.Alpha.Play(obj);
case "fm.teal.alpha.feed.play":
return new Fm.Teal.Alpha.Feed.Play(obj);
case "fm.teal.alpha.feed.defs#playView":
return new Fm.Teal.Alpha.Feed.PlayView(obj);
case "app.bsky.feed.post":
return new App.Bsky.Feed.Post(obj);
case "fyi.unravel.frontpage.post":
Expand Down Expand Up @@ -801,8 +807,6 @@ public static ATObject ToATObject(this CBORObject obj)
return new App.Bsky.Graph.StarterPackViewBasic(obj);
case "app.netlify.aniblue.status":
return new App.Netlify.Aniblue.Status(obj);
case "xyz.statusphere.status":
return new Xyz.Statusphere.Status(obj);
case "fm.teal.alpha.actor.status":
return new Fm.Teal.Alpha.Actor.Status(obj);
case "com.atproto.admin.defs#statusAttr":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public static class ATProtoActorExtensions
/// <param name="validate"></param>
/// <param name="swapCommit"></param>
/// <param name="cancellationToken"></param>
public static Task<Result<CreateRecordOutput?>> CreateStatusAsync(this FishyFlip.ATProtocol atp, DateTime? time, Fm.Teal.Alpha.Play? item, string? rkey = default, bool? validate = default, string? swapCommit = default, CancellationToken cancellationToken = default)
public static Task<Result<CreateRecordOutput?>> CreateStatusAsync(this FishyFlip.ATProtocol atp, DateTime? time, Fm.Teal.Alpha.Feed.PlayView? item, string? rkey = default, bool? validate = default, string? swapCommit = default, CancellationToken cancellationToken = default)
{
var record = new FishyFlip.Lexicon.Fm.Teal.Alpha.Actor.Status();
record.Time = time;
Expand Down
12 changes: 5 additions & 7 deletions src/FishyFlip/Lexicon/Fm/Teal/Alpha/Actor/Status.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ public partial class Status : ATObject
/// </summary>
/// <param name="time">The unix timestamp of when the item was recorded</param>
/// <param name="item">
/// <br/> Union Types: <br/>
/// <see cref="FishyFlip.Lexicon.Fm.Teal.Alpha.Play"/> (fm.teal.alpha.play#record) <br/>
/// <see cref="FishyFlip.Lexicon.Fm.Teal.Alpha.Feed.PlayView"/> (fm.teal.alpha.feed.defs#playView)
/// </param>
public Status(DateTime? time, Fm.Teal.Alpha.Play? item)
public Status(DateTime? time, Fm.Teal.Alpha.Feed.PlayView? item)
{
this.Time = time;
this.Item = item;
Expand All @@ -41,7 +40,7 @@ public Status()
public Status(CBORObject obj)
{
if (obj["time"] is not null) this.Time = obj["time"].ToDateTime();
if (obj["item"] is not null) this.Item = new Fm.Teal.Alpha.Play(obj["item"]);
if (obj["item"] is not null) this.Item = new Fm.Teal.Alpha.Feed.PlayView(obj["item"]);
}

/// <summary>
Expand All @@ -53,11 +52,10 @@ public Status(CBORObject obj)

/// <summary>
/// Gets or sets the item.
/// <br/> Union Types: <br/>
/// <see cref="FishyFlip.Lexicon.Fm.Teal.Alpha.Play"/> (fm.teal.alpha.play#record) <br/>
/// <br/> <see cref="FishyFlip.Lexicon.Fm.Teal.Alpha.Feed.PlayView"/> (fm.teal.alpha.feed.defs#playView)
/// </summary>
[JsonPropertyName("item")]
public Fm.Teal.Alpha.Play? Item { get; set; }
public Fm.Teal.Alpha.Feed.PlayView? Item { get; set; }

/// <summary>
/// Gets the ATRecord Type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

using FishyFlip.Lexicon.Com.Atproto.Repo;

namespace FishyFlip.Lexicon.Fm.Teal.Alpha
namespace FishyFlip.Lexicon.Fm.Teal.Alpha.Feed
{

/// <summary>
/// Extension methods for fm.teal.alpha.
/// Extension methods for fm.teal.alpha.feed.
/// </summary>
public static class ATProtoAlphaExtensions
public static class ATProtoFeedExtensions
{

/// <summary>
Expand All @@ -24,9 +24,9 @@ public static class ATProtoAlphaExtensions
/// <param name="validate"></param>
/// <param name="swapCommit"></param>
/// <param name="cancellationToken"></param>
public static Task<Result<CreateRecordOutput?>> CreatePlayAsync(this FishyFlip.ATProtocol atp, Fm.Teal.Alpha.Play record, string? rkey = default, bool? validate = default, string? swapCommit = default, CancellationToken cancellationToken = default)
public static Task<Result<CreateRecordOutput?>> CreatePlayAsync(this FishyFlip.ATProtocol atp, Fm.Teal.Alpha.Feed.Play record, string? rkey = default, bool? validate = default, string? swapCommit = default, CancellationToken cancellationToken = default)
{
return atp.CreateRecordAsync(atp.SessionManager.Session?.Did ?? throw new InvalidOperationException("Session did is required."), "fm.teal.alpha.play", record, rkey, validate, swapCommit, cancellationToken);
return atp.CreateRecordAsync(atp.SessionManager.Session?.Did ?? throw new InvalidOperationException("Session did is required."), "fm.teal.alpha.feed.play", record, rkey, validate, swapCommit, cancellationToken);
}

/// <summary>
Expand All @@ -39,14 +39,14 @@ public static class ATProtoAlphaExtensions
/// <param name="validate"></param>
/// <param name="swapCommit"></param>
/// <param name="cancellationToken"></param>
public static Task<Result<CreateRecordOutput?>> CreatePlayAsync(this FishyFlip.ATProtocol atp, string? trackName, string? artistName, string? trackMbId = default, string? recordingMbId = default, long? duration = default, List<string>? artistMbIds = default, string? releaseName = default, string? releaseMbId = default, string? isrc = default, string? originUrl = default, string? musicServiceBaseDomain = default, string? submissionClientAgent = default, DateTime? playedTime = default, string? rkey = default, bool? validate = default, string? swapCommit = default, CancellationToken cancellationToken = default)
public static Task<Result<CreateRecordOutput?>> CreatePlayAsync(this FishyFlip.ATProtocol atp, string? trackName, List<string>? artistNames, string? trackMbId = default, string? recordingMbId = default, long? duration = default, List<string>? artistMbIds = default, string? releaseName = default, string? releaseMbId = default, string? isrc = default, string? originUrl = default, string? musicServiceBaseDomain = default, string? submissionClientAgent = default, DateTime? playedTime = default, string? rkey = default, bool? validate = default, string? swapCommit = default, CancellationToken cancellationToken = default)
{
var record = new FishyFlip.Lexicon.Fm.Teal.Alpha.Play();
var record = new FishyFlip.Lexicon.Fm.Teal.Alpha.Feed.Play();
record.TrackName = trackName;
record.TrackMbId = trackMbId;
record.RecordingMbId = recordingMbId;
record.Duration = duration;
record.ArtistName = artistName;
record.ArtistNames = artistNames;
record.ArtistMbIds = artistMbIds;
record.ReleaseName = releaseName;
record.ReleaseMbId = releaseMbId;
Expand All @@ -55,7 +55,7 @@ public static class ATProtoAlphaExtensions
record.MusicServiceBaseDomain = musicServiceBaseDomain;
record.SubmissionClientAgent = submissionClientAgent;
record.PlayedTime = playedTime;
return atp.CreateRecordAsync(atp.SessionManager.Session?.Did ?? throw new InvalidOperationException("Session did is required."), "fm.teal.alpha.play", record, rkey, validate, swapCommit, cancellationToken);
return atp.CreateRecordAsync(atp.SessionManager.Session?.Did ?? throw new InvalidOperationException("Session did is required."), "fm.teal.alpha.feed.play", record, rkey, validate, swapCommit, cancellationToken);
}

/// <summary>
Expand All @@ -69,7 +69,7 @@ public static class ATProtoAlphaExtensions
/// <param name="cancellationToken"></param>
public static Task<Result<DeleteRecordOutput?>> DeletePlayAsync(this FishyFlip.ATProtocol atp, FishyFlip.Models.ATIdentifier repo, string rkey, string? swapRecord = default, string? swapCommit = default, CancellationToken cancellationToken = default)
{
return atp.DeleteRecordAsync(repo, "fm.teal.alpha.play", rkey, swapRecord, swapCommit, cancellationToken);
return atp.DeleteRecordAsync(repo, "fm.teal.alpha.feed.play", rkey, swapRecord, swapCommit, cancellationToken);
}

/// <summary>
Expand All @@ -83,9 +83,9 @@ public static class ATProtoAlphaExtensions
/// <param name="swapRecord"></param>
/// <param name="swapCommit"></param>
/// <param name="cancellationToken"></param>
public static Task<Result<PutRecordOutput?>> PutPlayAsync(this FishyFlip.ATProtocol atp, FishyFlip.Models.ATIdentifier repo, string rkey, Fm.Teal.Alpha.Play record, bool? validate = default, string? swapRecord = default, string? swapCommit = default, CancellationToken cancellationToken = default)
public static Task<Result<PutRecordOutput?>> PutPlayAsync(this FishyFlip.ATProtocol atp, FishyFlip.Models.ATIdentifier repo, string rkey, Fm.Teal.Alpha.Feed.Play record, bool? validate = default, string? swapRecord = default, string? swapCommit = default, CancellationToken cancellationToken = default)
{
return atp.PutRecordAsync(repo, "fm.teal.alpha.play", rkey, record, validate, swapRecord, swapCommit, cancellationToken);
return atp.PutRecordAsync(repo, "fm.teal.alpha.feed.play", rkey, record, validate, swapRecord, swapCommit, cancellationToken);
}

/// <summary>
Expand All @@ -99,7 +99,7 @@ public static class ATProtoAlphaExtensions
/// <param name="cancellationToken"></param>
public static Task<Result<ListRecordsOutput?>> ListPlayAsync(this FishyFlip.ATProtocol atp, FishyFlip.Models.ATIdentifier repo, int? limit = 50, string? cursor = default, bool? reverse = default, CancellationToken cancellationToken = default)
{
return atp.ListRecordsAsync(repo, "fm.teal.alpha.play", limit, cursor, reverse, cancellationToken);
return atp.ListRecordsAsync(repo, "fm.teal.alpha.feed.play", limit, cursor, reverse, cancellationToken);
}

/// <summary>
Expand All @@ -112,7 +112,7 @@ public static class ATProtoAlphaExtensions
/// <param name="cancellationToken"></param>
public static Task<Result<ListRecordsOutput?>> ListPlayAsync(this FishyFlip.ATProtocol atp, int? limit = 50, string? cursor = default, bool? reverse = default, CancellationToken cancellationToken = default)
{
return atp.ListRecordsAsync(atp.SessionManager.Session?.Did ?? throw new InvalidOperationException("Session did is required."), "fm.teal.alpha.play", limit, cursor, reverse, cancellationToken);
return atp.ListRecordsAsync(atp.SessionManager.Session?.Did ?? throw new InvalidOperationException("Session did is required."), "fm.teal.alpha.feed.play", limit, cursor, reverse, cancellationToken);
}

/// <summary>
Expand All @@ -125,7 +125,7 @@ public static class ATProtoAlphaExtensions
/// <param name="cancellationToken"></param>
public static Task<Result<GetRecordOutput?>> GetPlayAsync(this FishyFlip.ATProtocol atp, FishyFlip.Models.ATIdentifier repo, string rkey, string? cid = default, CancellationToken cancellationToken = default)
{
return atp.GetRecordAsync(repo, "fm.teal.alpha.play", rkey, cid, cancellationToken);
return atp.GetRecordAsync(repo, "fm.teal.alpha.feed.play", rkey, cid, cancellationToken);
}

/// <summary>
Expand All @@ -137,7 +137,7 @@ public static class ATProtoAlphaExtensions
/// <param name="cancellationToken"></param>
public static Task<Result<GetRecordOutput?>> GetPlayAsync(this FishyFlip.ATProtocol atp, string rkey, string? cid = default, CancellationToken cancellationToken = default)
{
return atp.GetRecordAsync(atp.SessionManager.Session?.Did ?? throw new InvalidOperationException("Session did is required."), "fm.teal.alpha.play", rkey, cid, cancellationToken);
return atp.GetRecordAsync(atp.SessionManager.Session?.Did ?? throw new InvalidOperationException("Session did is required."), "fm.teal.alpha.feed.play", rkey, cid, cancellationToken);
}
}
}
Expand Down
Loading

0 comments on commit d12a2f7

Please sign in to comment.