Skip to content

Commit 01dcc29

Browse files
Bump bindings (#338)
1 parent 16bb615 commit 01dcc29

File tree

4 files changed

+69
-4
lines changed

4 files changed

+69
-4
lines changed

src/FishyFlip/Lexicon/App/Bsky/Actor/StatusView.g.cs

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public partial class StatusView : ATObject, ICBOREncodable<StatusView>, IJsonEnc
1313
/// <summary>
1414
/// Initializes a new instance of the <see cref="StatusView"/> class.
1515
/// </summary>
16+
/// <param name="uri"></param>
17+
/// <param name="cid"></param>
1618
/// <param name="status">The status for the account.
1719
/// <br/> Known Values: <br/>
1820
/// live - Advertises an account as currently offering live content. <br/>
@@ -24,13 +26,17 @@ public partial class StatusView : ATObject, ICBOREncodable<StatusView>, IJsonEnc
2426
/// </param>
2527
/// <param name="expiresAt">The date when this status will expire. The application might choose to no longer return the status after expiration.</param>
2628
/// <param name="isActive">True if the status is not expired, false if it is expired. Only present if expiration was set.</param>
27-
public StatusView(string status = default, ATObject record = default, FishyFlip.Lexicon.App.Bsky.Embed.ViewExternal? embed = default, DateTime? expiresAt = default, bool? isActive = default)
29+
/// <param name="isDisabled">True if the user's go-live access has been disabled by a moderator, false otherwise.</param>
30+
public StatusView(FishyFlip.Models.ATUri? uri = default, string? cid = default, string status = default, ATObject record = default, FishyFlip.Lexicon.App.Bsky.Embed.ViewExternal? embed = default, DateTime? expiresAt = default, bool? isActive = default, bool? isDisabled = default)
2831
{
32+
this.Uri = uri;
33+
this.Cid = cid;
2934
this.Status = status;
3035
this.Record = record;
3136
this.Embed = embed;
3237
this.ExpiresAt = expiresAt;
3338
this.IsActive = isActive;
39+
this.IsDisabled = isDisabled;
3440
this.Type = "app.bsky.actor.defs#statusView";
3541
}
3642

@@ -49,14 +55,32 @@ public StatusView()
4955
/// </summary>
5056
public StatusView(CBORObject obj)
5157
{
58+
if (obj["uri"] is not null) this.Uri = obj["uri"].ToATUri();
59+
if (obj["cid"] is not null) this.Cid = obj["cid"].AsString();
5260
if (obj["status"] is not null) this.Status = obj["status"].AsString();
5361
if (obj["record"] is not null) this.Record = obj["record"].ToATObject();
5462
if (obj["embed"] is not null) this.Embed = new FishyFlip.Lexicon.App.Bsky.Embed.ViewExternal(obj["embed"]);
5563
if (obj["expiresAt"] is not null) this.ExpiresAt = obj["expiresAt"].ToDateTime();
5664
if (obj["isActive"] is not null) this.IsActive = obj["isActive"].AsBoolean();
65+
if (obj["isDisabled"] is not null) this.IsDisabled = obj["isDisabled"].AsBoolean();
5766
if (obj["$type"] is not null) this.Type = obj["$type"].AsString();
5867
}
5968

69+
/// <summary>
70+
/// Gets or sets the uri.
71+
/// </summary>
72+
[JsonPropertyName("uri")]
73+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
74+
[JsonConverter(typeof(FishyFlip.Tools.Json.ATUriJsonConverter))]
75+
public FishyFlip.Models.ATUri? Uri { get; set; }
76+
77+
/// <summary>
78+
/// Gets or sets the cid.
79+
/// </summary>
80+
[JsonPropertyName("cid")]
81+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
82+
public string? Cid { get; set; }
83+
6084
/// <summary>
6185
/// Gets or sets the status.
6286
/// <br/> The status for the account.
@@ -100,6 +124,14 @@ public StatusView(CBORObject obj)
100124
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
101125
public bool? IsActive { get; set; }
102126

127+
/// <summary>
128+
/// Gets or sets the isDisabled.
129+
/// <br/> True if the user's go-live access has been disabled by a moderator, false otherwise.
130+
/// </summary>
131+
[JsonPropertyName("isDisabled")]
132+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
133+
public bool? IsDisabled { get; set; }
134+
103135
public const string RecordType = "app.bsky.actor.defs#statusView";
104136

105137
public override string ToJson()

src/FishyFlip/Lexicon/App/Bsky/Ageassurance/ConfigRegion.g.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public partial class ConfigRegion : ATObject, ICBOREncodable<ConfigRegion>, IJso
1818
/// </summary>
1919
/// <param name="countryCode">The ISO 3166-1 alpha-2 country code this configuration applies to.</param>
2020
/// <param name="regionCode">The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country.</param>
21+
/// <param name="minAccessAge">The minimum age (as a whole integer) required to use Bluesky in this region.</param>
2122
/// <param name="rules">The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item.
2223
/// <br/> Union Types: <br/>
2324
/// <see cref="FishyFlip.Lexicon.App.Bsky.Ageassurance.ConfigRegionRuleDefault"/> (app.bsky.ageassurance.defs#configRegionRuleDefault) <br/>
@@ -28,10 +29,11 @@ public partial class ConfigRegion : ATObject, ICBOREncodable<ConfigRegion>, IJso
2829
/// <see cref="FishyFlip.Lexicon.App.Bsky.Ageassurance.ConfigRegionRuleIfAccountNewerThan"/> (app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan) <br/>
2930
/// <see cref="FishyFlip.Lexicon.App.Bsky.Ageassurance.ConfigRegionRuleIfAccountOlderThan"/> (app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan) <br/>
3031
/// </param>
31-
public ConfigRegion(string countryCode = default, string? regionCode = default, List<ATObject> rules = default)
32+
public ConfigRegion(string countryCode = default, string? regionCode = default, long minAccessAge = default, List<ATObject> rules = default)
3233
{
3334
this.CountryCode = countryCode;
3435
this.RegionCode = regionCode;
36+
this.MinAccessAge = minAccessAge;
3537
this.Rules = rules;
3638
this.Type = "app.bsky.ageassurance.defs#configRegion";
3739
}
@@ -53,6 +55,7 @@ public ConfigRegion(CBORObject obj)
5355
{
5456
if (obj["countryCode"] is not null) this.CountryCode = obj["countryCode"].AsString();
5557
if (obj["regionCode"] is not null) this.RegionCode = obj["regionCode"].AsString();
58+
if (obj["minAccessAge"] is not null) this.MinAccessAge = obj["minAccessAge"].AsInt64Value();
5659
if (obj["rules"] is not null) this.Rules = obj["rules"].Values.Select(n =>n.ToATObject()).ToList();
5760
if (obj["$type"] is not null) this.Type = obj["$type"].AsString();
5861
}
@@ -73,6 +76,14 @@ public ConfigRegion(CBORObject obj)
7376
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
7477
public string? RegionCode { get; set; }
7578

79+
/// <summary>
80+
/// Gets or sets the minAccessAge.
81+
/// <br/> The minimum age (as a whole integer) required to use Bluesky in this region.
82+
/// </summary>
83+
[JsonPropertyName("minAccessAge")]
84+
[JsonRequired]
85+
public long MinAccessAge { get; set; }
86+
7687
/// <summary>
7788
/// Gets or sets the rules.
7889
/// <br/> The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item.

src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersOutput.g.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ public partial class GetSuggestedUsersOutput : ATObject, ICBOREncodable<GetSugge
1414
/// Initializes a new instance of the <see cref="GetSuggestedUsersOutput"/> class.
1515
/// </summary>
1616
/// <param name="actors"></param>
17-
public GetSuggestedUsersOutput(List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileView> actors = default)
17+
/// <param name="recId">Snowflake for this recommendation, use when submitting recommendation events.</param>
18+
public GetSuggestedUsersOutput(List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileView> actors = default, long? recId = default)
1819
{
1920
this.Actors = actors;
21+
this.RecId = recId;
2022
this.Type = "app.bsky.unspecced.getSuggestedUsers#GetSuggestedUsersOutput";
2123
}
2224

@@ -36,6 +38,7 @@ public GetSuggestedUsersOutput()
3638
public GetSuggestedUsersOutput(CBORObject obj)
3739
{
3840
if (obj["actors"] is not null) this.Actors = obj["actors"].Values.Select(n =>new FishyFlip.Lexicon.App.Bsky.Actor.ProfileView(n)).ToList();
41+
if (obj["recId"] is not null) this.RecId = obj["recId"].AsInt64Value();
3942
if (obj["$type"] is not null) this.Type = obj["$type"].AsString();
4043
}
4144

@@ -46,6 +49,14 @@ public GetSuggestedUsersOutput(CBORObject obj)
4649
[JsonRequired]
4750
public List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileView> Actors { get; set; }
4851

52+
/// <summary>
53+
/// Gets or sets the recId.
54+
/// <br/> Snowflake for this recommendation, use when submitting recommendation events.
55+
/// </summary>
56+
[JsonPropertyName("recId")]
57+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
58+
public long? RecId { get; set; }
59+
4960
public const string RecordType = "app.bsky.unspecced.getSuggestedUsers#GetSuggestedUsersOutput";
5061

5162
public override string ToJson()

src/FishyFlip/Lexicon/App/Bsky/Unspecced/GetSuggestedUsersSkeletonOutput.g.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ public partial class GetSuggestedUsersSkeletonOutput : ATObject, ICBOREncodable<
1414
/// Initializes a new instance of the <see cref="GetSuggestedUsersSkeletonOutput"/> class.
1515
/// </summary>
1616
/// <param name="dids"></param>
17-
public GetSuggestedUsersSkeletonOutput(List<FishyFlip.Models.ATDid> dids = default)
17+
/// <param name="recId">Snowflake for this recommendation, use when submitting recommendation events.</param>
18+
public GetSuggestedUsersSkeletonOutput(List<FishyFlip.Models.ATDid> dids = default, long? recId = default)
1819
{
1920
this.Dids = dids;
21+
this.RecId = recId;
2022
this.Type = "app.bsky.unspecced.getSuggestedUsersSkeleton#GetSuggestedUsersSkeletonOutput";
2123
}
2224

@@ -36,6 +38,7 @@ public GetSuggestedUsersSkeletonOutput()
3638
public GetSuggestedUsersSkeletonOutput(CBORObject obj)
3739
{
3840
if (obj["dids"] is not null) this.Dids = obj["dids"].Values.Select(n =>n.ToATDid()!).ToList();
41+
if (obj["recId"] is not null) this.RecId = obj["recId"].AsInt64Value();
3942
if (obj["$type"] is not null) this.Type = obj["$type"].AsString();
4043
}
4144

@@ -46,6 +49,14 @@ public GetSuggestedUsersSkeletonOutput(CBORObject obj)
4649
[JsonRequired]
4750
public List<FishyFlip.Models.ATDid> Dids { get; set; }
4851

52+
/// <summary>
53+
/// Gets or sets the recId.
54+
/// <br/> Snowflake for this recommendation, use when submitting recommendation events.
55+
/// </summary>
56+
[JsonPropertyName("recId")]
57+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
58+
public long? RecId { get; set; }
59+
4960
public const string RecordType = "app.bsky.unspecced.getSuggestedUsersSkeleton#GetSuggestedUsersSkeletonOutput";
5061

5162
public override string ToJson()

0 commit comments

Comments
 (0)