Skip to content

Commit 16bb615

Browse files
Bump bindings (#337)
1 parent c093350 commit 16bb615

File tree

5 files changed

+60
-15
lines changed

5 files changed

+60
-15
lines changed

src/FishyFlip.Xrpc/Lexicon/Com/Atproto/Server/ServerController.g.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ public abstract class ServerController : ControllerBase
143143
public abstract Task<Results<Ok, ATErrorResult>> DeleteAccountAsync ([FromBody] FishyFlip.Lexicon.Com.Atproto.Server.DeleteAccountInput input, CancellationToken cancellationToken);
144144

145145
/// <summary>
146-
/// Delete the current session. Requires auth.
146+
/// Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
147+
/// <br/> Possible Errors: <br/>
148+
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
149+
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
147150
/// </summary>
148151
/// <param name="cancellationToken"></param>
149152
/// <returns>Result of <see cref="Success"/></returns>
@@ -205,6 +208,8 @@ public abstract class ServerController : ControllerBase
205208
/// Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
206209
/// <br/> Possible Errors: <br/>
207210
/// <see cref="FishyFlip.Lexicon.AccountTakedownError"/> <br/>
211+
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
212+
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
208213
/// </summary>
209214
/// <param name="cancellationToken"></param>
210215
/// <returns>Result of <see cref="FishyFlip.Lexicon.Com.Atproto.Server.RefreshSessionOutput"/></returns>

src/FishyFlip/Lexicon/Com/Atproto/Server/ATProtoServer.g.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ internal ATProtoServer(ATProtocol atp)
179179

180180

181181
/// <summary>
182-
/// Delete the current session. Requires auth.
182+
/// Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
183+
/// <br/> Possible Errors: <br/>
184+
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
185+
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
183186
/// </summary>
184187
/// <param name="cancellationToken"></param>
185188
public Task<Result<Success?>> DeleteSessionAsync (CancellationToken cancellationToken = default)
@@ -253,6 +256,8 @@ internal ATProtoServer(ATProtocol atp)
253256
/// Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
254257
/// <br/> Possible Errors: <br/>
255258
/// <see cref="FishyFlip.Lexicon.AccountTakedownError"/> <br/>
259+
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
260+
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
256261
/// </summary>
257262
/// <param name="cancellationToken"></param>
258263
public Task<Result<FishyFlip.Lexicon.Com.Atproto.Server.RefreshSessionOutput?>> RefreshSessionAsync (CancellationToken cancellationToken = default)

src/FishyFlip/Lexicon/Com/Atproto/Server/GetSessionOutput.g.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ public partial class GetSessionOutput : ATObject, ICBOREncodable<GetSessionOutpu
1515
/// </summary>
1616
/// <param name="handle"></param>
1717
/// <param name="did"></param>
18+
/// <param name="didDoc"></param>
1819
/// <param name="email"></param>
1920
/// <param name="emailConfirmed"></param>
2021
/// <param name="emailAuthFactor"></param>
21-
/// <param name="didDoc"></param>
2222
/// <param name="active"></param>
2323
/// <param name="status">If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
2424
/// <br/> Known Values: <br/>
2525
/// takendown <br/>
2626
/// suspended <br/>
2727
/// deactivated <br/>
2828
/// </param>
29-
public GetSessionOutput(FishyFlip.Models.ATHandle handle = default, FishyFlip.Models.ATDid did = default, string? email = default, bool? emailConfirmed = default, bool? emailAuthFactor = default, FishyFlip.Models.DidDoc? didDoc = default, bool? active = default, string? status = default)
29+
public GetSessionOutput(FishyFlip.Models.ATHandle handle = default, FishyFlip.Models.ATDid did = default, FishyFlip.Models.DidDoc? didDoc = default, string? email = default, bool? emailConfirmed = default, bool? emailAuthFactor = default, bool? active = default, string? status = default)
3030
{
3131
this.Handle = handle;
3232
this.Did = did;
33+
this.DidDoc = didDoc;
3334
this.Email = email;
3435
this.EmailConfirmed = emailConfirmed;
3536
this.EmailAuthFactor = emailAuthFactor;
36-
this.DidDoc = didDoc;
3737
this.Active = active;
3838
this.Status = status;
3939
this.Type = "com.atproto.server.getSession#GetSessionOutput";
@@ -56,10 +56,10 @@ public GetSessionOutput(CBORObject obj)
5656
{
5757
if (obj["handle"] is not null) this.Handle = obj["handle"].ToATHandle();
5858
if (obj["did"] is not null) this.Did = obj["did"].ToATDid();
59+
// Ignore DidDoc
5960
if (obj["email"] is not null) this.Email = obj["email"].AsString();
6061
if (obj["emailConfirmed"] is not null) this.EmailConfirmed = obj["emailConfirmed"].AsBoolean();
6162
if (obj["emailAuthFactor"] is not null) this.EmailAuthFactor = obj["emailAuthFactor"].AsBoolean();
62-
// Ignore DidDoc
6363
if (obj["active"] is not null) this.Active = obj["active"].AsBoolean();
6464
if (obj["status"] is not null) this.Status = obj["status"].AsString();
6565
if (obj["$type"] is not null) this.Type = obj["$type"].AsString();
@@ -81,6 +81,13 @@ public GetSessionOutput(CBORObject obj)
8181
[JsonConverter(typeof(FishyFlip.Tools.Json.ATDidJsonConverter))]
8282
public FishyFlip.Models.ATDid Did { get; set; }
8383

84+
/// <summary>
85+
/// Gets or sets the didDoc.
86+
/// </summary>
87+
[JsonPropertyName("didDoc")]
88+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
89+
public FishyFlip.Models.DidDoc? DidDoc { get; set; }
90+
8491
/// <summary>
8592
/// Gets or sets the email.
8693
/// </summary>
@@ -102,13 +109,6 @@ public GetSessionOutput(CBORObject obj)
102109
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
103110
public bool? EmailAuthFactor { get; set; }
104111

105-
/// <summary>
106-
/// Gets or sets the didDoc.
107-
/// </summary>
108-
[JsonPropertyName("didDoc")]
109-
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
110-
public FishyFlip.Models.DidDoc? DidDoc { get; set; }
111-
112112
/// <summary>
113113
/// Gets or sets the active.
114114
/// </summary>

src/FishyFlip/Lexicon/Com/Atproto/Server/RefreshSessionOutput.g.cs

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,26 @@ public partial class RefreshSessionOutput : ATObject, ICBOREncodable<RefreshSess
1818
/// <param name="handle"></param>
1919
/// <param name="did"></param>
2020
/// <param name="didDoc"></param>
21+
/// <param name="email"></param>
22+
/// <param name="emailConfirmed"></param>
23+
/// <param name="emailAuthFactor"></param>
2124
/// <param name="active"></param>
2225
/// <param name="status">Hosting status of the account. If not specified, then assume 'active'.
2326
/// <br/> Known Values: <br/>
2427
/// takendown <br/>
2528
/// suspended <br/>
2629
/// deactivated <br/>
2730
/// </param>
28-
public RefreshSessionOutput(string accessJwt = default, string refreshJwt = default, FishyFlip.Models.ATHandle handle = default, FishyFlip.Models.ATDid did = default, FishyFlip.Models.DidDoc? didDoc = default, bool? active = default, string? status = default)
31+
public RefreshSessionOutput(string accessJwt = default, string refreshJwt = default, FishyFlip.Models.ATHandle handle = default, FishyFlip.Models.ATDid did = default, FishyFlip.Models.DidDoc? didDoc = default, string? email = default, bool? emailConfirmed = default, bool? emailAuthFactor = default, bool? active = default, string? status = default)
2932
{
3033
this.AccessJwt = accessJwt;
3134
this.RefreshJwt = refreshJwt;
3235
this.Handle = handle;
3336
this.Did = did;
3437
this.DidDoc = didDoc;
38+
this.Email = email;
39+
this.EmailConfirmed = emailConfirmed;
40+
this.EmailAuthFactor = emailAuthFactor;
3541
this.Active = active;
3642
this.Status = status;
3743
this.Type = "com.atproto.server.refreshSession#RefreshSessionOutput";
@@ -57,6 +63,9 @@ public RefreshSessionOutput(CBORObject obj)
5763
if (obj["handle"] is not null) this.Handle = obj["handle"].ToATHandle();
5864
if (obj["did"] is not null) this.Did = obj["did"].ToATDid();
5965
// Ignore DidDoc
66+
if (obj["email"] is not null) this.Email = obj["email"].AsString();
67+
if (obj["emailConfirmed"] is not null) this.EmailConfirmed = obj["emailConfirmed"].AsBoolean();
68+
if (obj["emailAuthFactor"] is not null) this.EmailAuthFactor = obj["emailAuthFactor"].AsBoolean();
6069
if (obj["active"] is not null) this.Active = obj["active"].AsBoolean();
6170
if (obj["status"] is not null) this.Status = obj["status"].AsString();
6271
if (obj["$type"] is not null) this.Type = obj["$type"].AsString();
@@ -99,6 +108,27 @@ public RefreshSessionOutput(CBORObject obj)
99108
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
100109
public FishyFlip.Models.DidDoc? DidDoc { get; set; }
101110

111+
/// <summary>
112+
/// Gets or sets the email.
113+
/// </summary>
114+
[JsonPropertyName("email")]
115+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
116+
public string? Email { get; set; }
117+
118+
/// <summary>
119+
/// Gets or sets the emailConfirmed.
120+
/// </summary>
121+
[JsonPropertyName("emailConfirmed")]
122+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
123+
public bool? EmailConfirmed { get; set; }
124+
125+
/// <summary>
126+
/// Gets or sets the emailAuthFactor.
127+
/// </summary>
128+
[JsonPropertyName("emailAuthFactor")]
129+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
130+
public bool? EmailAuthFactor { get; set; }
131+
102132
/// <summary>
103133
/// Gets or sets the active.
104134
/// </summary>

src/FishyFlip/Lexicon/Com/Atproto/Server/ServerEndpoints.g.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,10 @@ public static class ServerEndpoints
294294

295295

296296
/// <summary>
297-
/// Delete the current session. Requires auth.
297+
/// Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
298+
/// <br/> Possible Errors: <br/>
299+
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
300+
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
298301
/// </summary>
299302
/// <param name="atp"></param>
300303
/// <param name="cancellationToken"></param>
@@ -445,6 +448,8 @@ public static class ServerEndpoints
445448
/// Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
446449
/// <br/> Possible Errors: <br/>
447450
/// <see cref="FishyFlip.Lexicon.AccountTakedownError"/> <br/>
451+
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
452+
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
448453
/// </summary>
449454
/// <param name="atp"></param>
450455
/// <param name="cancellationToken"></param>

0 commit comments

Comments
 (0)