From af230471c8e3f82900ba71aa5e71d082a86816ca Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Sat, 21 Dec 2024 11:29:53 +0900 Subject: [PATCH] Bump Bindings (#129) --- .../Lexicon/Com/Atproto/Server/ATProtoServer.g.cs | 5 +++-- .../Com/Atproto/Server/CreateSessionInput.g.cs | 12 +++++++++++- .../Lexicon/Com/Atproto/Server/ServerEndpoints.g.cs | 4 +++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/FishyFlip/Lexicon/Com/Atproto/Server/ATProtoServer.g.cs b/src/FishyFlip/Lexicon/Com/Atproto/Server/ATProtoServer.g.cs index a18cac3..5134405 100644 --- a/src/FishyFlip/Lexicon/Com/Atproto/Server/ATProtoServer.g.cs +++ b/src/FishyFlip/Lexicon/Com/Atproto/Server/ATProtoServer.g.cs @@ -142,10 +142,11 @@ internal ATProtoServer(ATProtocol atp) /// /// /// + /// /// - public Task> CreateSessionAsync (string identifier, string password, string? authFactorToken = default, CancellationToken cancellationToken = default) + public Task> CreateSessionAsync (string identifier, string password, string? authFactorToken = default, bool? allowTakendown = default, CancellationToken cancellationToken = default) { - return atp.CreateSessionAsync(identifier, password, authFactorToken, cancellationToken); + return atp.CreateSessionAsync(identifier, password, authFactorToken, allowTakendown, cancellationToken); } diff --git a/src/FishyFlip/Lexicon/Com/Atproto/Server/CreateSessionInput.g.cs b/src/FishyFlip/Lexicon/Com/Atproto/Server/CreateSessionInput.g.cs index b57cda0..dd70ccb 100644 --- a/src/FishyFlip/Lexicon/Com/Atproto/Server/CreateSessionInput.g.cs +++ b/src/FishyFlip/Lexicon/Com/Atproto/Server/CreateSessionInput.g.cs @@ -15,11 +15,13 @@ public partial class CreateSessionInput : ATObject /// Handle or other identifier supported by the server for the authenticating user. /// /// - public CreateSessionInput(string? identifier = default, string? password = default, string? authFactorToken = default) + /// When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned + public CreateSessionInput(string? identifier = default, string? password = default, string? authFactorToken = default, bool? allowTakendown = default) { this.Identifier = identifier; this.Password = password; this.AuthFactorToken = authFactorToken; + this.AllowTakendown = allowTakendown; } @@ -39,6 +41,7 @@ public CreateSessionInput(CBORObject obj) if (obj["identifier"] is not null) this.Identifier = obj["identifier"].AsString(); if (obj["password"] is not null) this.Password = obj["password"].AsString(); if (obj["authFactorToken"] is not null) this.AuthFactorToken = obj["authFactorToken"].AsString(); + if (obj["allowTakendown"] is not null) this.AllowTakendown = obj["allowTakendown"].AsBoolean(); } /// @@ -62,6 +65,13 @@ public CreateSessionInput(CBORObject obj) [JsonPropertyName("authFactorToken")] public string? AuthFactorToken { get; set; } + /// + /// Gets or sets the allowTakendown. + ///
When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned + ///
+ [JsonPropertyName("allowTakendown")] + public bool? AllowTakendown { get; set; } + /// /// Gets the ATRecord Type. /// diff --git a/src/FishyFlip/Lexicon/Com/Atproto/Server/ServerEndpoints.g.cs b/src/FishyFlip/Lexicon/Com/Atproto/Server/ServerEndpoints.g.cs index a9ba12c..2a0df95 100644 --- a/src/FishyFlip/Lexicon/Com/Atproto/Server/ServerEndpoints.g.cs +++ b/src/FishyFlip/Lexicon/Com/Atproto/Server/ServerEndpoints.g.cs @@ -221,15 +221,17 @@ public static class ServerEndpoints /// /// /// + /// /// /// Result of - public static Task> CreateSessionAsync (this FishyFlip.ATProtocol atp, string identifier, string password, string? authFactorToken = default, CancellationToken cancellationToken = default) + public static Task> CreateSessionAsync (this FishyFlip.ATProtocol atp, string identifier, string password, string? authFactorToken = default, bool? allowTakendown = default, CancellationToken cancellationToken = default) { var endpointUrl = CreateSession.ToString(); var inputItem = new CreateSessionInput(); inputItem.Identifier = identifier; inputItem.Password = password; inputItem.AuthFactorToken = authFactorToken; + inputItem.AllowTakendown = allowTakendown; return atp.Post(endpointUrl, atp.Options.SourceGenerationContext.ComAtprotoServerCreateSessionInput!, atp.Options.SourceGenerationContext.ComAtprotoServerCreateSessionOutput!, inputItem, cancellationToken); }