diff --git a/src/FishyFlip.Xrpc/Lexicon/Com/Atproto/Server/ServerController.g.cs b/src/FishyFlip.Xrpc/Lexicon/Com/Atproto/Server/ServerController.g.cs index 16a2363e..10c96550 100644 --- a/src/FishyFlip.Xrpc/Lexicon/Com/Atproto/Server/ServerController.g.cs +++ b/src/FishyFlip.Xrpc/Lexicon/Com/Atproto/Server/ServerController.g.cs @@ -143,7 +143,10 @@ public abstract class ServerController : ControllerBase public abstract Task> DeleteAccountAsync ([FromBody] FishyFlip.Lexicon.Com.Atproto.Server.DeleteAccountInput input, CancellationToken cancellationToken); /// - /// Delete the current session. Requires auth. + /// Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). + ///
Possible Errors:
+ ///
+ ///
///
/// /// Result of @@ -205,6 +208,8 @@ public abstract class ServerController : ControllerBase /// Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). ///
Possible Errors:
///
+ ///
+ ///
/// /// /// Result of diff --git a/src/FishyFlip/Lexicon/Com/Atproto/Server/ATProtoServer.g.cs b/src/FishyFlip/Lexicon/Com/Atproto/Server/ATProtoServer.g.cs index 40cfb95d..a2d8c68c 100644 --- a/src/FishyFlip/Lexicon/Com/Atproto/Server/ATProtoServer.g.cs +++ b/src/FishyFlip/Lexicon/Com/Atproto/Server/ATProtoServer.g.cs @@ -179,7 +179,10 @@ internal ATProtoServer(ATProtocol atp) /// - /// Delete the current session. Requires auth. + /// Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). + ///
Possible Errors:
+ ///
+ ///
///
/// public Task> DeleteSessionAsync (CancellationToken cancellationToken = default) @@ -253,6 +256,8 @@ internal ATProtoServer(ATProtocol atp) /// Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). ///
Possible Errors:
///
+ ///
+ ///
/// /// public Task> RefreshSessionAsync (CancellationToken cancellationToken = default) diff --git a/src/FishyFlip/Lexicon/Com/Atproto/Server/GetSessionOutput.g.cs b/src/FishyFlip/Lexicon/Com/Atproto/Server/GetSessionOutput.g.cs index 14671a0d..2342e3af 100644 --- a/src/FishyFlip/Lexicon/Com/Atproto/Server/GetSessionOutput.g.cs +++ b/src/FishyFlip/Lexicon/Com/Atproto/Server/GetSessionOutput.g.cs @@ -15,10 +15,10 @@ public partial class GetSessionOutput : ATObject, ICBOREncodable /// /// + /// /// /// /// - /// /// /// 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. ///
Known Values:
@@ -26,14 +26,14 @@ public partial class GetSessionOutput : ATObject, ICBOREncodable /// deactivated
/// - 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"; @@ -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(); @@ -81,6 +81,13 @@ public GetSessionOutput(CBORObject obj) [JsonConverter(typeof(FishyFlip.Tools.Json.ATDidJsonConverter))] public FishyFlip.Models.ATDid Did { get; set; } + /// + /// Gets or sets the didDoc. + /// + [JsonPropertyName("didDoc")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public FishyFlip.Models.DidDoc? DidDoc { get; set; } + /// /// Gets or sets the email. /// @@ -102,13 +109,6 @@ public GetSessionOutput(CBORObject obj) [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? EmailAuthFactor { get; set; } - /// - /// Gets or sets the didDoc. - /// - [JsonPropertyName("didDoc")] - [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] - public FishyFlip.Models.DidDoc? DidDoc { get; set; } - /// /// Gets or sets the active. /// diff --git a/src/FishyFlip/Lexicon/Com/Atproto/Server/RefreshSessionOutput.g.cs b/src/FishyFlip/Lexicon/Com/Atproto/Server/RefreshSessionOutput.g.cs index fd8720e5..46d9b1d1 100644 --- a/src/FishyFlip/Lexicon/Com/Atproto/Server/RefreshSessionOutput.g.cs +++ b/src/FishyFlip/Lexicon/Com/Atproto/Server/RefreshSessionOutput.g.cs @@ -18,6 +18,9 @@ public partial class RefreshSessionOutput : ATObject, ICBOREncodable /// /// + /// + /// + /// /// /// Hosting status of the account. If not specified, then assume 'active'. ///
Known Values:
@@ -25,13 +28,16 @@ public partial class RefreshSessionOutput : ATObject, ICBOREncodable /// deactivated
/// - 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"; @@ -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(); @@ -99,6 +108,27 @@ public RefreshSessionOutput(CBORObject obj) [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public FishyFlip.Models.DidDoc? DidDoc { get; set; } + /// + /// Gets or sets the email. + /// + [JsonPropertyName("email")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public string? Email { get; set; } + + /// + /// Gets or sets the emailConfirmed. + /// + [JsonPropertyName("emailConfirmed")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public bool? EmailConfirmed { get; set; } + + /// + /// Gets or sets the emailAuthFactor. + /// + [JsonPropertyName("emailAuthFactor")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + public bool? EmailAuthFactor { get; set; } + /// /// Gets or sets the active. /// diff --git a/src/FishyFlip/Lexicon/Com/Atproto/Server/ServerEndpoints.g.cs b/src/FishyFlip/Lexicon/Com/Atproto/Server/ServerEndpoints.g.cs index 57033332..8cb3832e 100644 --- a/src/FishyFlip/Lexicon/Com/Atproto/Server/ServerEndpoints.g.cs +++ b/src/FishyFlip/Lexicon/Com/Atproto/Server/ServerEndpoints.g.cs @@ -294,7 +294,10 @@ public static class ServerEndpoints /// - /// Delete the current session. Requires auth. + /// Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). + ///
Possible Errors:
+ ///
+ ///
///
/// /// @@ -445,6 +448,8 @@ public static class ServerEndpoints /// Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). ///
Possible Errors:
///
+ ///
+ ///
/// /// ///