Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ public abstract class ServerController : ControllerBase
public abstract Task<Results<Ok, ATErrorResult>> DeleteAccountAsync ([FromBody] FishyFlip.Lexicon.Com.Atproto.Server.DeleteAccountInput input, CancellationToken cancellationToken);

/// <summary>
/// Delete the current session. Requires auth.
/// Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
/// <br/> Possible Errors: <br/>
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
/// </summary>
/// <param name="cancellationToken"></param>
/// <returns>Result of <see cref="Success"/></returns>
Expand Down Expand Up @@ -205,6 +208,8 @@ public abstract class ServerController : ControllerBase
/// Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
/// <br/> Possible Errors: <br/>
/// <see cref="FishyFlip.Lexicon.AccountTakedownError"/> <br/>
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
/// </summary>
/// <param name="cancellationToken"></param>
/// <returns>Result of <see cref="FishyFlip.Lexicon.Com.Atproto.Server.RefreshSessionOutput"/></returns>
Expand Down
7 changes: 6 additions & 1 deletion src/FishyFlip/Lexicon/Com/Atproto/Server/ATProtoServer.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ internal ATProtoServer(ATProtocol atp)


/// <summary>
/// Delete the current session. Requires auth.
/// Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
/// <br/> Possible Errors: <br/>
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
/// </summary>
/// <param name="cancellationToken"></param>
public Task<Result<Success?>> DeleteSessionAsync (CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -253,6 +256,8 @@ internal ATProtoServer(ATProtocol atp)
/// Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
/// <br/> Possible Errors: <br/>
/// <see cref="FishyFlip.Lexicon.AccountTakedownError"/> <br/>
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
/// </summary>
/// <param name="cancellationToken"></param>
public Task<Result<FishyFlip.Lexicon.Com.Atproto.Server.RefreshSessionOutput?>> RefreshSessionAsync (CancellationToken cancellationToken = default)
Expand Down
22 changes: 11 additions & 11 deletions src/FishyFlip/Lexicon/Com/Atproto/Server/GetSessionOutput.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ public partial class GetSessionOutput : ATObject, ICBOREncodable<GetSessionOutpu
/// </summary>
/// <param name="handle"></param>
/// <param name="did"></param>
/// <param name="didDoc"></param>
/// <param name="email"></param>
/// <param name="emailConfirmed"></param>
/// <param name="emailAuthFactor"></param>
/// <param name="didDoc"></param>
/// <param name="active"></param>
/// <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.
/// <br/> Known Values: <br/>
/// takendown <br/>
/// suspended <br/>
/// deactivated <br/>
/// </param>
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)
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)
{
this.Handle = handle;
this.Did = did;
this.DidDoc = didDoc;
this.Email = email;
this.EmailConfirmed = emailConfirmed;
this.EmailAuthFactor = emailAuthFactor;
this.DidDoc = didDoc;
this.Active = active;
this.Status = status;
this.Type = "com.atproto.server.getSession#GetSessionOutput";
Expand All @@ -56,10 +56,10 @@ public GetSessionOutput(CBORObject obj)
{
if (obj["handle"] is not null) this.Handle = obj["handle"].ToATHandle();
if (obj["did"] is not null) this.Did = obj["did"].ToATDid();
// Ignore DidDoc
if (obj["email"] is not null) this.Email = obj["email"].AsString();
if (obj["emailConfirmed"] is not null) this.EmailConfirmed = obj["emailConfirmed"].AsBoolean();
if (obj["emailAuthFactor"] is not null) this.EmailAuthFactor = obj["emailAuthFactor"].AsBoolean();
// Ignore DidDoc
if (obj["active"] is not null) this.Active = obj["active"].AsBoolean();
if (obj["status"] is not null) this.Status = obj["status"].AsString();
if (obj["$type"] is not null) this.Type = obj["$type"].AsString();
Expand All @@ -81,6 +81,13 @@ public GetSessionOutput(CBORObject obj)
[JsonConverter(typeof(FishyFlip.Tools.Json.ATDidJsonConverter))]
public FishyFlip.Models.ATDid Did { get; set; }

/// <summary>
/// Gets or sets the didDoc.
/// </summary>
[JsonPropertyName("didDoc")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public FishyFlip.Models.DidDoc? DidDoc { get; set; }

/// <summary>
/// Gets or sets the email.
/// </summary>
Expand All @@ -102,13 +109,6 @@ public GetSessionOutput(CBORObject obj)
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? EmailAuthFactor { get; set; }

/// <summary>
/// Gets or sets the didDoc.
/// </summary>
[JsonPropertyName("didDoc")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public FishyFlip.Models.DidDoc? DidDoc { get; set; }

/// <summary>
/// Gets or sets the active.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,26 @@ public partial class RefreshSessionOutput : ATObject, ICBOREncodable<RefreshSess
/// <param name="handle"></param>
/// <param name="did"></param>
/// <param name="didDoc"></param>
/// <param name="email"></param>
/// <param name="emailConfirmed"></param>
/// <param name="emailAuthFactor"></param>
/// <param name="active"></param>
/// <param name="status">Hosting status of the account. If not specified, then assume 'active'.
/// <br/> Known Values: <br/>
/// takendown <br/>
/// suspended <br/>
/// deactivated <br/>
/// </param>
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)
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)
{
this.AccessJwt = accessJwt;
this.RefreshJwt = refreshJwt;
this.Handle = handle;
this.Did = did;
this.DidDoc = didDoc;
this.Email = email;
this.EmailConfirmed = emailConfirmed;
this.EmailAuthFactor = emailAuthFactor;
this.Active = active;
this.Status = status;
this.Type = "com.atproto.server.refreshSession#RefreshSessionOutput";
Expand All @@ -57,6 +63,9 @@ public RefreshSessionOutput(CBORObject obj)
if (obj["handle"] is not null) this.Handle = obj["handle"].ToATHandle();
if (obj["did"] is not null) this.Did = obj["did"].ToATDid();
// Ignore DidDoc
if (obj["email"] is not null) this.Email = obj["email"].AsString();
if (obj["emailConfirmed"] is not null) this.EmailConfirmed = obj["emailConfirmed"].AsBoolean();
if (obj["emailAuthFactor"] is not null) this.EmailAuthFactor = obj["emailAuthFactor"].AsBoolean();
if (obj["active"] is not null) this.Active = obj["active"].AsBoolean();
if (obj["status"] is not null) this.Status = obj["status"].AsString();
if (obj["$type"] is not null) this.Type = obj["$type"].AsString();
Expand Down Expand Up @@ -99,6 +108,27 @@ public RefreshSessionOutput(CBORObject obj)
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public FishyFlip.Models.DidDoc? DidDoc { get; set; }

/// <summary>
/// Gets or sets the email.
/// </summary>
[JsonPropertyName("email")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Email { get; set; }

/// <summary>
/// Gets or sets the emailConfirmed.
/// </summary>
[JsonPropertyName("emailConfirmed")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? EmailConfirmed { get; set; }

/// <summary>
/// Gets or sets the emailAuthFactor.
/// </summary>
[JsonPropertyName("emailAuthFactor")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? EmailAuthFactor { get; set; }

/// <summary>
/// Gets or sets the active.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ public static class ServerEndpoints


/// <summary>
/// Delete the current session. Requires auth.
/// Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
/// <br/> Possible Errors: <br/>
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
/// </summary>
/// <param name="atp"></param>
/// <param name="cancellationToken"></param>
Expand Down Expand Up @@ -445,6 +448,8 @@ public static class ServerEndpoints
/// Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
/// <br/> Possible Errors: <br/>
/// <see cref="FishyFlip.Lexicon.AccountTakedownError"/> <br/>
/// <see cref="FishyFlip.Lexicon.InvalidTokenError"/> <br/>
/// <see cref="FishyFlip.Lexicon.ExpiredTokenError"/> <br/>
/// </summary>
/// <param name="atp"></param>
/// <param name="cancellationToken"></param>
Expand Down