Table of Contents

Class BlueskyServer

Namespace
idunno.Bluesky
Assembly
idunno.Bluesky.dll

API wrappers for BlueskyAPIs.

public static class BlueskyServer

Inheritance

Inherited Members

Properties

BlueskyJsonSerializerOptions

Gets a System.Text.Json.JsonSerializerOptions which includes the Bluesky record types.

public static JsonSerializerOptions BlueskyJsonSerializerOptions { get; }

Property Value

JsonSerializerOptions

BlueskyJsonSerializerOptions

Gets a System.Text.Json.JsonSerializerOptions which includes the Bluesky record types.

public static JsonSerializerOptions BlueskyJsonSerializerOptions { get; }

Property Value

JsonSerializerOptions

BlueskyJsonSerializerOptions

Gets a System.Text.Json.JsonSerializerOptions which includes the Bluesky record types.

public static JsonSerializerOptions BlueskyJsonSerializerOptions { get; }

Property Value

JsonSerializerOptions

Methods

AbortUpload(string, Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Abort an upload only while it is created, releasing its quota reservation immediately. Terminal sessions are unchanged and return their terminal outcome. A finishing session returns UploadNotReady.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<AbortUploadResponse>> AbortUpload(string jobId, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id of the upload to abort.

service Uri

The System.Uri of the service to send the abort request to.

serviceCredential ServiceCredential

The credentials to use for the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AbortUploadResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service, serviceCredential, or httpClient are null.

AbortUpload(string, Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Abort an upload only while it is created, releasing its quota reservation immediately. Terminal sessions are unchanged and return their terminal outcome. A finishing session returns UploadNotReady.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<AbortUploadResponse>> AbortUpload(string jobId, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id of the upload to abort.

service Uri

The System.Uri of the service to send the abort request to.

serviceCredential ServiceCredential

The credentials to use for the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AbortUploadResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service, serviceCredential, or httpClient are null.

AbortUpload(string, Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Abort an upload only while it is created, releasing its quota reservation immediately. Terminal sessions are unchanged and return their terminal outcome. A finishing session returns UploadNotReady.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<AbortUploadResponse>> AbortUpload(string jobId, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id of the upload to abort.

service Uri

The System.Uri of the service to send the abort request to.

serviceCredential ServiceCredential

The credentials to use for the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AbortUploadResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service, serviceCredential, or httpClient are null.

AcceptConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Accepts the conversation specified by the conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<AcceptConversationResponse>> AcceptConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to accept.

service Uri

The System.Uri of the service to accept the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AcceptConversationResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is whitespace.

ArgumentNullException

Thrown when any of conversationId, accessCredentials, service or httpClient are null.

AcceptConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Accepts the conversation specified by the conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<AcceptConversationResponse>> AcceptConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to accept.

service Uri

The System.Uri of the service to accept the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AcceptConversationResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is whitespace.

ArgumentNullException

Thrown when any of conversationId, accessCredentials, service or httpClient are null.

AcceptConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Accepts the conversation specified by the conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<AcceptConversationResponse>> AcceptConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to accept.

service Uri

The System.Uri of the service to accept the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AcceptConversationResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is whitespace.

ArgumentNullException

Thrown when any of conversationId, accessCredentials, service or httpClient are null.

AddMembersToGroup(string, IEnumerable<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Adds members to a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<AddMembersResponse>> AddMembersToGroup(string conversationId, IEnumerable<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to add members to.

members IEnumerable<Did>

The idunno.AtProto.Dids of the members to add to the conversation.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AddMembersResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, members, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when members is empty.

AddMembersToGroup(string, IEnumerable<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Adds members to a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<AddMembersResponse>> AddMembersToGroup(string conversationId, IEnumerable<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to add members to.

members IEnumerable<Did>

The idunno.AtProto.Dids of the members to add to the conversation.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AddMembersResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, members, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when members is empty.

AddMembersToGroup(string, IEnumerable<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Adds members to a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<AddMembersResponse>> AddMembersToGroup(string conversationId, IEnumerable<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to add members to.

members IEnumerable<Did>

The idunno.AtProto.Dids of the members to add to the conversation.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AddMembersResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, members, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when members is empty.

AddReaction(string, string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Adds a reaction to the message identified by messageId from the conversation identified by conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<MessageView>> AddReaction(string conversationId, string messageId, string value, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to add the reaction to identified by messageId from.

messageId string

The message identifier to add the reaction to from conversationId.

value string

The reaction to add.

service Uri

The System.Uri of the service to add the reaction on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<MessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId, messageId or value is whitespace.

ArgumentNullException

Thrown when any of conversationId, messageId, value, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when value has a grapheme length that does not equal 1, or is longer than idunno.Bluesky.Maximum.ReactionLengthInBytes UTF-8 bytes.

AddReaction(string, string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Adds a reaction to the message identified by messageId from the conversation identified by conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<MessageView>> AddReaction(string conversationId, string messageId, string value, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to add the reaction to identified by messageId from.

messageId string

The message identifier to add the reaction to from conversationId.

value string

The reaction to add.

service Uri

The System.Uri of the service to add the reaction on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<MessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId, messageId or value is whitespace.

ArgumentNullException

Thrown when any of conversationId, messageId, value, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when value has a grapheme length that does not equal 1, or is longer than idunno.Bluesky.Maximum.ReactionLengthInBytes UTF-8 bytes.

AddReaction(string, string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Adds a reaction to the message identified by messageId from the conversation identified by conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<MessageView>> AddReaction(string conversationId, string messageId, string value, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to add the reaction to identified by messageId from.

messageId string

The message identifier to add the reaction to from conversationId.

value string

The reaction to add.

service Uri

The System.Uri of the service to add the reaction on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<MessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId, messageId or value is whitespace.

ArgumentNullException

Thrown when any of conversationId, messageId, value, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when value has a grapheme length that does not equal 1, or is longer than idunno.Bluesky.Maximum.ReactionLengthInBytes UTF-8 bytes.

ApproveJoinGroupRequest(string, Did, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Approves a join request for a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ApproveJoinResponse>> ApproveJoinGroupRequest(string conversationId, Did member, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to approve member for.

member Did

The idunno.AtProto.Did to approve the join for

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ApproveJoinResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, member, service, accessCredentials or httpClient is null.

ApproveJoinGroupRequest(string, Did, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Approves a join request for a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ApproveJoinResponse>> ApproveJoinGroupRequest(string conversationId, Did member, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to approve member for.

member Did

The idunno.AtProto.Did to approve the join for

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ApproveJoinResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, member, service, accessCredentials or httpClient is null.

ApproveJoinGroupRequest(string, Did, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Approves a join request for a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ApproveJoinResponse>> ApproveJoinGroupRequest(string conversationId, Did member, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to approve member for.

member Did

The idunno.AtProto.Did to approve the join for

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ApproveJoinResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, member, service, accessCredentials or httpClient is null.

CreateBookmark(AtUri, Cid, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a bookmark on the specified account from the specified uri and cid.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> CreateBookmark(AtUri uri, Cid cid, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post to bookmark.

cid Cid

The idunno.AtProto.Cid of the post to bookmark.

service Uri

The System.Uri of the service to add the bookmark to.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of uri, cid, service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when uri does not point to a post.

CreateBookmark(AtUri, Cid, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a bookmark on the specified account from the specified uri and cid.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> CreateBookmark(AtUri uri, Cid cid, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post to bookmark.

cid Cid

The idunno.AtProto.Cid of the post to bookmark.

service Uri

The System.Uri of the service to add the bookmark to.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of uri, cid, service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when uri does not point to a post.

CreateBookmark(AtUri, Cid, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a bookmark on the specified account from the specified uri and cid.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> CreateBookmark(AtUri uri, Cid cid, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post to bookmark.

cid Cid

The idunno.AtProto.Cid of the post to bookmark.

service Uri

The System.Uri of the service to add the bookmark to.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of uri, cid, service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when uri does not point to a post.

CreateDraft(Draft, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a new draft for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<TimestampIdentifier>> CreateDraft(Draft draft, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

draft Draft

The idunno.Bluesky.Drafts.Draft to create.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<TimestampIdentifier>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of draft, service, accessCredentials or httpClient are null.

CreateDraft(Draft, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a new draft for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<TimestampIdentifier>> CreateDraft(Draft draft, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

draft Draft

The idunno.Bluesky.Drafts.Draft to create.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<TimestampIdentifier>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of draft, service, accessCredentials or httpClient are null.

CreateDraft(Draft, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a new draft for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<TimestampIdentifier>> CreateDraft(Draft draft, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

draft Draft

The idunno.Bluesky.Drafts.Draft to create.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<TimestampIdentifier>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of draft, service, accessCredentials or httpClient are null.

CreateGroup(ICollection<Did>, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a group conversation and invites members to join it.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<CreateGroupResponse>> CreateGroup(ICollection<Did> members, string name, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

members ICollection<Did>

The members to add to the group. The owner is automatically added. Implementations may enforce a lower maximum than the 10,000-item schema limit; Bluesky currently supports up to 100 total members. If the owner is included in this list, the list may contain up to the implementation's total member limit. Otherwise, it may contain one fewer.

name string

The name of the group conversation.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<CreateGroupResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when members, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when name is null or empty.

ArgumentOutOfRangeException

Thrown when members is empty or exceeds the maximum number of members, or when name exceeds the maximum length.

CreateGroup(ICollection<Did>, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a group conversation and invites members to join it.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<CreateGroupResponse>> CreateGroup(ICollection<Did> members, string name, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

members ICollection<Did>

The members to add to the group. The owner is automatically added. Implementations may enforce a lower maximum than the 10,000-item schema limit; Bluesky currently supports up to 100 total members. If the owner is included in this list, the list may contain up to the implementation's total member limit. Otherwise, it may contain one fewer.

name string

The name of the group conversation.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<CreateGroupResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when members, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when name is null or empty.

ArgumentOutOfRangeException

Thrown when members is empty or exceeds the maximum number of members, or when name exceeds the maximum length.

CreateGroup(ICollection<Did>, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a group conversation and invites members to join it.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<CreateGroupResponse>> CreateGroup(ICollection<Did> members, string name, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

members ICollection<Did>

The members to add to the group. The owner is automatically added. Implementations may enforce a lower maximum than the 10,000-item schema limit; Bluesky currently supports up to 100 total members. If the owner is included in this list, the list may contain up to the implementation's total member limit. Otherwise, it may contain one fewer.

name string

The name of the group conversation.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<CreateGroupResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when members, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when name is null or empty.

ArgumentOutOfRangeException

Thrown when members is empty or exceeds the maximum number of members, or when name exceeds the maximum length.

Creates a join link for a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<CreateJoinLinkResponse>> CreateJoinGroupLink(string conversationId, bool requireApproval, string joinRule, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to create the link for.

requireApproval bool

Indicates whether approval is required to join the conversation.

joinRule string

The rule for joining the conversation. Known values are in idunno.Bluesky.Chat.Group.JoinRule

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<CreateJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, joinRule, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when conversationId or joinRule is empty.

Creates a join link for a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<CreateJoinLinkResponse>> CreateJoinGroupLink(string conversationId, bool requireApproval, string joinRule, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to create the link for.

requireApproval bool

Indicates whether approval is required to join the conversation.

joinRule string

The rule for joining the conversation. Known values are in idunno.Bluesky.Chat.Group.JoinRule

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<CreateJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, joinRule, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when conversationId or joinRule is empty.

Creates a join link for a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<CreateJoinLinkResponse>> CreateJoinGroupLink(string conversationId, bool requireApproval, string joinRule, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to create the link for.

requireApproval bool

Indicates whether approval is required to join the conversation.

joinRule string

The rule for joining the conversation. Known values are in idunno.Bluesky.Chat.Group.JoinRule

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<CreateJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, joinRule, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when conversationId or joinRule is empty.

DeleteBookmark(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Deletes a bookmark on the specified account for the specified uri.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> DeleteBookmark(AtUri uri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post to delete the bookmark for.

service Uri

The System.Uri of the service to delete the bookmark from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of uri, service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when uri does not point to a post.

DeleteBookmark(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Deletes a bookmark on the specified account for the specified uri.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> DeleteBookmark(AtUri uri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post to delete the bookmark for.

service Uri

The System.Uri of the service to delete the bookmark from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of uri, service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when uri does not point to a post.

DeleteBookmark(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Deletes a bookmark on the specified account for the specified uri.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> DeleteBookmark(AtUri uri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post to delete the bookmark for.

service Uri

The System.Uri of the service to delete the bookmark from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of uri, service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when uri does not point to a post.

DeleteDraft(TimestampIdentifier, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Deletes a draft by ID.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmptyResponse>> DeleteDraft(TimestampIdentifier draftId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

draftId TimestampIdentifier

The ID of the draft to delete.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of draftId, service, accessCredentials or httpClient are null.

DeleteDraft(TimestampIdentifier, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Deletes a draft by ID.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmptyResponse>> DeleteDraft(TimestampIdentifier draftId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

draftId TimestampIdentifier

The ID of the draft to delete.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of draftId, service, accessCredentials or httpClient are null.

DeleteDraft(TimestampIdentifier, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Deletes a draft by ID.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmptyResponse>> DeleteDraft(TimestampIdentifier draftId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

draftId TimestampIdentifier

The ID of the draft to delete.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of draftId, service, accessCredentials or httpClient are null.

DeleteMessageForSelf(string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Deletes the message specified by messageId from the conversation identified by conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<DeletedMessageView>> DeleteMessageForSelf(string conversationId, string messageId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to delete the message identified by messageId from.

messageId string

The message identifier to delete from conversationId.

service Uri

The System.Uri of the service to delete the message from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<DeletedMessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId or messageId is whitespace.

ArgumentNullException

Thrown when any of conversationId, messageId, accessCredentials, service or httpClient are null.

DeleteMessageForSelf(string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Deletes the message specified by messageId from the conversation identified by conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<DeletedMessageView>> DeleteMessageForSelf(string conversationId, string messageId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to delete the message identified by messageId from.

messageId string

The message identifier to delete from conversationId.

service Uri

The System.Uri of the service to delete the message from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<DeletedMessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId or messageId is whitespace.

ArgumentNullException

Thrown when any of conversationId, messageId, accessCredentials, service or httpClient are null.

DeleteMessageForSelf(string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Deletes the message specified by messageId from the conversation identified by conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<DeletedMessageView>> DeleteMessageForSelf(string conversationId, string messageId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to delete the message identified by messageId from.

messageId string

The message identifier to delete from conversationId.

service Uri

The System.Uri of the service to delete the message from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<DeletedMessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId or messageId is whitespace.

ArgumentNullException

Thrown when any of conversationId, messageId, accessCredentials, service or httpClient are null.

Disables the join link for a group.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<DisableJoinLinkResponse>> DisableJoinGroupLink(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to disable the join link for

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<DisableJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, service, accessCredentials or httpClient is null.

Disables the join link for a group.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<DisableJoinLinkResponse>> DisableJoinGroupLink(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to disable the join link for

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<DisableJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, service, accessCredentials or httpClient is null.

Disables the join link for a group.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<DisableJoinLinkResponse>> DisableJoinGroupLink(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to disable the join link for

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<DisableJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, service, accessCredentials or httpClient is null.

EditGroup(string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Edits the details of a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EditGroupResponse>> EditGroup(string conversationId, string name, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to edit.

name string

The new name of the group conversation.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EditGroupResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, name, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when conversationId or name is empty.

ArgumentOutOfRangeException

Thrown when name exceeds the maximum allowed length.

EditGroup(string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Edits the details of a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EditGroupResponse>> EditGroup(string conversationId, string name, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to edit.

name string

The new name of the group conversation.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EditGroupResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, name, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when conversationId or name is empty.

ArgumentOutOfRangeException

Thrown when name exceeds the maximum allowed length.

EditGroup(string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Edits the details of a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EditGroupResponse>> EditGroup(string conversationId, string name, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to edit.

name string

The new name of the group conversation.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EditGroupResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, name, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when conversationId or name is empty.

ArgumentOutOfRangeException

Thrown when name exceeds the maximum allowed length.

Edits the join link properties for a conversation

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EditJoinLinkResponse>> EditJoinGroupLink(string conversationId, bool? requireApproval, string? joinRule, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to edit.

requireApproval bool?

Flag indicating whether the conversation owner needs to approve joins.

joinRule string?

The join rule for the conversation. Known values are in idunno.Bluesky.Chat.Group.JoinRule

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EditJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, joinRule, service, accessCredentials or httpClient is null.

Edits the join link properties for a conversation

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EditJoinLinkResponse>> EditJoinGroupLink(string conversationId, bool? requireApproval, string? joinRule, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to edit.

requireApproval bool?

Flag indicating whether the conversation owner needs to approve joins.

joinRule string?

The join rule for the conversation. Known values are in idunno.Bluesky.Chat.Group.JoinRule

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EditJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, joinRule, service, accessCredentials or httpClient is null.

Edits the join link properties for a conversation

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EditJoinLinkResponse>> EditJoinGroupLink(string conversationId, bool? requireApproval, string? joinRule, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to edit.

requireApproval bool?

Flag indicating whether the conversation owner needs to approve joins.

joinRule string?

The join rule for the conversation. Known values are in idunno.Bluesky.Chat.Group.JoinRule

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EditJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, joinRule, service, accessCredentials or httpClient is null.

Enable the join link for a group.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EnableJoinLinkResponse>> EnableJoinGroupLink(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to disable the join link for

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EnableJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, service, accessCredentials or httpClient is null.

Enable the join link for a group.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EnableJoinLinkResponse>> EnableJoinGroupLink(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to disable the join link for

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EnableJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, service, accessCredentials or httpClient is null.

Enable the join link for a group.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EnableJoinLinkResponse>> EnableJoinGroupLink(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to disable the join link for

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EnableJoinLinkResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, service, accessCredentials or httpClient is null.

FinishUpload(string, Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Finish an upload. This call is idempotent and safe to retry. On deduplication the returned completedJobId may differ from the jobId; Poll idunno.Bluesky.BlueskyServer.GetJobStatus(System.String,System.Uri,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILoggerFactory,System.Int32,System.Threading.CancellationToken) with completedJobId. Probe-based validation failures surface later as idunno.Bluesky.Video.JobState.Failed from idunno.Bluesky.BlueskyServer.GetJobStatus(System.String,System.Uri,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILoggerFactory,System.Int32,System.Threading.CancellationToken), not as errors from this call.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<FinishUploadResponse>> FinishUpload(string jobId, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id of the upload to finish.

service Uri

The System.Uri of the service to send the finish request to.

serviceCredential ServiceCredential

The credentials to use for the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<FinishUploadResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service, serviceCredential, or httpClient are null.

FinishUpload(string, Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Finish an upload. This call is idempotent and safe to retry. On deduplication the returned completedJobId may differ from the jobId; Poll idunno.Bluesky.BlueskyServer.GetJobStatus(System.String,System.Uri,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILoggerFactory,System.Int32,System.Threading.CancellationToken) with completedJobId. Probe-based validation failures surface later as idunno.Bluesky.Video.JobState.Failed from idunno.Bluesky.BlueskyServer.GetJobStatus(System.String,System.Uri,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILoggerFactory,System.Int32,System.Threading.CancellationToken), not as errors from this call.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<FinishUploadResponse>> FinishUpload(string jobId, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id of the upload to finish.

service Uri

The System.Uri of the service to send the finish request to.

serviceCredential ServiceCredential

The credentials to use for the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<FinishUploadResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service, serviceCredential, or httpClient are null.

FinishUpload(string, Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Finish an upload. This call is idempotent and safe to retry. On deduplication the returned completedJobId may differ from the jobId; Poll idunno.Bluesky.BlueskyServer.GetJobStatus(System.String,System.Uri,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILoggerFactory,System.Int32,System.Threading.CancellationToken) with completedJobId. Probe-based validation failures surface later as idunno.Bluesky.Video.JobState.Failed from idunno.Bluesky.BlueskyServer.GetJobStatus(System.String,System.Uri,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILoggerFactory,System.Int32,System.Threading.CancellationToken), not as errors from this call.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<FinishUploadResponse>> FinishUpload(string jobId, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id of the upload to finish.

service Uri

The System.Uri of the service to send the finish request to.

serviceCredential ServiceCredential

The credentials to use for the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<FinishUploadResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service, serviceCredential, or httpClient are null.

GetActorChatStatus(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get the authenticated viewer's chat status: whether their account is chat-disabled and whether their group-membership additions are restricted to accounts they follow

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ChatStatus>> GetActorChatStatus(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to get the chat status from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ChatStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetActorChatStatus(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get the authenticated viewer's chat status: whether their account is chat-disabled and whether their group-membership additions are restricted to accounts they follow

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ChatStatus>> GetActorChatStatus(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to get the chat status from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ChatStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetActorChatStatus(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get the authenticated viewer's chat status: whether their account is chat-disabled and whether their group-membership additions are restricted to accounts they follow

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ChatStatus>> GetActorChatStatus(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to get the chat status from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ChatStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetActorFeeds(AtIdentifier, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paginated list of feeds (feed generator records) created by the actor, in the actor's repo.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>> GetActorFeeds(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose feeds should be listed.

limit int?

The maximum number of feeds to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetActorFeeds(AtIdentifier, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paginated list of feeds (feed generator records) created by the actor, in the actor's repo.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>> GetActorFeeds(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose feeds should be listed.

limit int?

The maximum number of feeds to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetActorFeeds(AtIdentifier, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paginated list of feeds (feed generator records) created by the actor, in the actor's repo.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>> GetActorFeeds(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose feeds should be listed.

limit int?

The maximum number of feeds to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetActorLikes(AtIdentifier, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of posts liked by an actor. Requires auth, actor must be the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetActorLikes(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose likes should be retrieved.

limit int?

The maximum number of feeds to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, httpClient or accessCredentials is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetActorLikes(AtIdentifier, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of posts liked by an actor. Requires auth, actor must be the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetActorLikes(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose likes should be retrieved.

limit int?

The maximum number of feeds to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, httpClient or accessCredentials is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetActorLikes(AtIdentifier, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of posts liked by an actor. Requires auth, actor must be the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetActorLikes(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose likes should be retrieved.

limit int?

The maximum number of feeds to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, httpClient or accessCredentials is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetActorStarterPacks(AtIdentifier, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get a list of starter packs created by the actor.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>> GetActorStarterPacks(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose starter packs should be returned.

limit int?

The maximum number of starter packs to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service remove the mute from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown any of actor, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

GetActorStarterPacks(AtIdentifier, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get a list of starter packs created by the actor.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>> GetActorStarterPacks(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose starter packs should be returned.

limit int?

The maximum number of starter packs to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service remove the mute from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown any of actor, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

GetActorStarterPacks(AtIdentifier, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get a list of starter packs created by the actor.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>> GetActorStarterPacks(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose starter packs should be returned.

limit int?

The maximum number of starter packs to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service remove the mute from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown any of actor, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

GetAgeAssuranceState(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken) Preview

Gets the age assurance status for the current user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<AgeAssuranceState>> GetAgeAssuranceState(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AgeAssuranceState>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

GetAgeAssuranceState(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken) Preview

Gets the age assurance status for the current user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<AgeAssuranceState>> GetAgeAssuranceState(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AgeAssuranceState>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

GetAgeAssuranceState(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken) Preview

Gets the age assurance status for the current user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<AgeAssuranceState>> GetAgeAssuranceState(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AgeAssuranceState>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

GetAuthorFeed(Did, int?, string?, FeedFilter?, bool?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a view of an actor's 'author feed' (post and reposts by the author).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetAuthorFeed(Did actor, int? limit, string? cursor, FeedFilter? filter, bool? includePins, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor Did

The idunno.AtProto.Did of the actor whose feed should be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

filter FeedFilter?

Combinations of post/repost types to include in the results.

includePins bool?

Flag indicating whether to include pinned posts in the results.

service Uri

The System.Uri of the service to retrieve the feed from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetAuthorFeed(Did, int?, string?, FeedFilter?, bool?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a view of an actor's 'author feed' (post and reposts by the author).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetAuthorFeed(Did actor, int? limit, string? cursor, FeedFilter? filter, bool? includePins, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor Did

The idunno.AtProto.Did of the actor whose feed should be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

filter FeedFilter?

Combinations of post/repost types to include in the results.

includePins bool?

Flag indicating whether to include pinned posts in the results.

service Uri

The System.Uri of the service to retrieve the feed from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetAuthorFeed(Did, int?, string?, FeedFilter?, bool?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a view of an actor's 'author feed' (post and reposts by the author).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetAuthorFeed(Did actor, int? limit, string? cursor, FeedFilter? filter, bool? includePins, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor Did

The idunno.AtProto.Did of the actor whose feed should be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

filter FeedFilter?

Combinations of post/repost types to include in the results.

includePins bool?

Flag indicating whether to include pinned posts in the results.

service Uri

The System.Uri of the service to retrieve the feed from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetBlocks(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates which accounts the requesting account is currently blocking. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> GetBlocks(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of followers that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the blocks from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetBlocks(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates which accounts the requesting account is currently blocking. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> GetBlocks(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of followers that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the blocks from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetBlocks(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates which accounts the requesting account is currently blocking. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> GetBlocks(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of followers that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the blocks from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetBookmarks(string?, int?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a pageable list of the specified user's bookmarks.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<BookmarkView>>> GetBookmarks(string? cursor, int? limit, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

cursor string?

An optional cursor for pagination.

limit int?

The maximum number of bookmarks to return.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<BookmarkView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is <1 or >idunno.Bluesky.Maximum.Bookmarks.

GetBookmarks(string?, int?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a pageable list of the specified user's bookmarks.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<BookmarkView>>> GetBookmarks(string? cursor, int? limit, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

cursor string?

An optional cursor for pagination.

limit int?

The maximum number of bookmarks to return.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<BookmarkView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is <1 or >idunno.Bluesky.Maximum.Bookmarks.

GetBookmarks(string?, int?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a pageable list of the specified user's bookmarks.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<BookmarkView>>> GetBookmarks(string? cursor, int? limit, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

cursor string?

An optional cursor for pagination.

limit int?

The maximum number of bookmarks to return.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<BookmarkView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is <1 or >idunno.Bluesky.Maximum.Bookmarks.

GetChatNotificationPreferences(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the authenticated user's preferences for chat notifications.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<Preferences>> GetChatNotificationPreferences(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetChatNotificationPreferences(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the authenticated user's preferences for chat notifications.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<Preferences>> GetChatNotificationPreferences(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetChatNotificationPreferences(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the authenticated user's preferences for chat notifications.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<Preferences>> GetChatNotificationPreferences(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets a view over a conversation by its id.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ConversationView>> GetConversation(string id, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier.

service Uri

The System.Uri of the service to retrieve the conversation from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or whitespace.

ArgumentNullException

Thrown when any of accessCredentials, service or httpClient are null.

GetConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets a view over a conversation by its id.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ConversationView>> GetConversation(string id, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier.

service Uri

The System.Uri of the service to retrieve the conversation from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or whitespace.

ArgumentNullException

Thrown when any of accessCredentials, service or httpClient are null.

GetConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets a view over a conversation by its id.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ConversationView>> GetConversation(string id, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier.

service Uri

The System.Uri of the service to retrieve the conversation from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or whitespace.

ArgumentNullException

Thrown when any of accessCredentials, service or httpClient are null.

GetConversationAvailability(ICollection<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Check whether the current authenticated user and the other actors can start a 1-1 chat. Only applicable to direct (non-group) conversations. If an existing conversation is found for these members, it is returned. Does not create a new conversation if it doesn't exist.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ConversationAvailability>> GetConversationAvailability(ICollection<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

members ICollection<Did>

A collection of idunno.AtProto.Did of actors to check availability for..

service Uri

The System.Uri of the service to the conversation availability from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationAvailability>>

The task object representing the asynchronous operation.

Exceptions

ArgumentOutOfRangeException

Thrown when members is empty or contains more than the maximum allowed members.

ArgumentNullException

Thrown when any of accessCredentials, service or httpClient are null.

GetConversationAvailability(ICollection<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Check whether the current authenticated user and the other actors can start a 1-1 chat. Only applicable to direct (non-group) conversations. If an existing conversation is found for these members, it is returned. Does not create a new conversation if it doesn't exist.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ConversationAvailability>> GetConversationAvailability(ICollection<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

members ICollection<Did>

A collection of idunno.AtProto.Did of actors to check availability for..

service Uri

The System.Uri of the service to the conversation availability from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationAvailability>>

The task object representing the asynchronous operation.

Exceptions

ArgumentOutOfRangeException

Thrown when members is empty or contains more than the maximum allowed members.

ArgumentNullException

Thrown when any of accessCredentials, service or httpClient are null.

GetConversationAvailability(ICollection<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Check whether the current authenticated user and the other actors can start a 1-1 chat. Only applicable to direct (non-group) conversations. If an existing conversation is found for these members, it is returned. Does not create a new conversation if it doesn't exist.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ConversationAvailability>> GetConversationAvailability(ICollection<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

members ICollection<Did>

A collection of idunno.AtProto.Did of actors to check availability for..

service Uri

The System.Uri of the service to the conversation availability from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationAvailability>>

The task object representing the asynchronous operation.

Exceptions

ArgumentOutOfRangeException

Thrown when members is empty or contains more than the maximum allowed members.

ArgumentNullException

Thrown when any of accessCredentials, service or httpClient are null.

GetConversationForMembers(ICollection<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets a view over a conversation between members.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ConversationView>> GetConversationForMembers(ICollection<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

members ICollection<Did>

The idunno.AtProto.Dids of the conversation members.

service Uri

The System.Uri of the service to retrieve the conversation from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when members, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when members is empty or has greater than the maximum number of conversation members.

GetConversationForMembers(ICollection<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets a view over a conversation between members.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ConversationView>> GetConversationForMembers(ICollection<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

members ICollection<Did>

The idunno.AtProto.Dids of the conversation members.

service Uri

The System.Uri of the service to retrieve the conversation from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when members, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when members is empty or has greater than the maximum number of conversation members.

GetConversationForMembers(ICollection<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets a view over a conversation between members.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ConversationView>> GetConversationForMembers(ICollection<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

members ICollection<Did>

The idunno.AtProto.Dids of the conversation members.

service Uri

The System.Uri of the service to retrieve the conversation from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when members, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when members is empty or has greater than the maximum number of conversation members.

GetConversationLog(string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the conversation log.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Logs>> GetConversationLog(string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to retrieve the conversation log from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Logs>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetConversationLog(string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the conversation log.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Logs>> GetConversationLog(string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to retrieve the conversation log from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Logs>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetConversationLog(string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the conversation log.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Logs>> GetConversationLog(string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to retrieve the conversation log from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Logs>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetConversationMembers(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the members in a conversation

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>> GetConversationMembers(string id, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier whose members should be retrieved.

limit int?

An optional limit on the number of members to retrieve in each page.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to retrieve the conversation members from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetConversationMembers(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the members in a conversation

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>> GetConversationMembers(string id, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier whose members should be retrieved.

limit int?

An optional limit on the number of members to retrieve in each page.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to retrieve the conversation members from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetConversationMembers(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the members in a conversation

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>> GetConversationMembers(string id, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier whose members should be retrieved.

limit int?

An optional limit on the number of members to retrieve in each page.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to retrieve the conversation members from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetDrafts(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get a paged list of suggested drafts for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<DraftView>>> GetDrafts(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of drafts to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<DraftView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

GetDrafts(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get a paged list of suggested drafts for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<DraftView>>> GetDrafts(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of drafts to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<DraftView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

GetDrafts(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get a paged list of suggested drafts for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<DraftView>>> GetDrafts(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of drafts to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<DraftView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

GetEmbedExternalView(Uri, AtUri[], Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Resolve one or more idunno.AtProto.AtUris into the data needed to render an enhanced external embed.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmbeddedExternalView>> GetEmbedExternalView(Uri url, AtUri[] uris, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

url Uri

The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used as the returned view's uri. May be used for validation in the future.

uris AtUri[]

An array of AT-URIs to resolve into the data needed for the embed.

service Uri

The service URI to use for the request.

accessCredentials AccessCredentials?

Optional access credentials for authentication.

httpClient HttpClient

The HTTP client to use for the request.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

Optional callback for when credentials are updated.

loggerFactory ILoggerFactory?

Optional logger factory for logging.

subscribedLabelers IEnumerable<Did>?

Optional list of subscribed labelers.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

Optional cancellation token.

Returns

Task<AtProtoHttpResult<EmbeddedExternalView>>

The task object representing the asynchronous operation.

Remarks

Only the hydrated view is returned. The associated references the service echoes back are the ones supplied in uris, and the raw associated records are not surfaced.

The service returns an empty response when no records were resolvable, or when validation determined the resolved records do not actually back the requested url. That case is reported as an unsuccessful result whose idunno.AtProto.AtProtoHttpResult`1.StatusCode is System.Net.HttpStatusCode.NoContent and whose idunno.AtProto.AtProtoHttpResult`1.AtErrorDetail is null. Callers should fall back to their own link card rendering in that case and skip writing strong references to the post.

Exceptions

ArgumentNullException

Thrown when a required argument is null.

ArgumentOutOfRangeException

Thrown when uris is empty or has more than idunno.Bluesky.Maximum.EmbedExternalViewUris elements.

GetEmbedExternalView(Uri, AtUri[], Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Resolve one or more idunno.AtProto.AtUris into the data needed to render an enhanced external embed.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmbeddedExternalView>> GetEmbedExternalView(Uri url, AtUri[] uris, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

url Uri

The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used as the returned view's uri. May be used for validation in the future.

uris AtUri[]

An array of AT-URIs to resolve into the data needed for the embed.

service Uri

The service URI to use for the request.

accessCredentials AccessCredentials?

Optional access credentials for authentication.

httpClient HttpClient

The HTTP client to use for the request.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

Optional callback for when credentials are updated.

loggerFactory ILoggerFactory?

Optional logger factory for logging.

subscribedLabelers IEnumerable<Did>?

Optional list of subscribed labelers.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

Optional cancellation token.

Returns

Task<AtProtoHttpResult<EmbeddedExternalView>>

The task object representing the asynchronous operation.

Remarks

Only the hydrated view is returned. The associated references the service echoes back are the ones supplied in uris, and the raw associated records are not surfaced.

The service returns an empty response when no records were resolvable, or when validation determined the resolved records do not actually back the requested url. That case is reported as an unsuccessful result whose idunno.AtProto.AtProtoHttpResult`1.StatusCode is System.Net.HttpStatusCode.NoContent and whose idunno.AtProto.AtProtoHttpResult`1.AtErrorDetail is null. Callers should fall back to their own link card rendering in that case and skip writing strong references to the post.

Exceptions

ArgumentNullException

Thrown when a required argument is null.

ArgumentOutOfRangeException

Thrown when uris is empty or has more than idunno.Bluesky.Maximum.EmbedExternalViewUris elements.

GetEmbedExternalView(Uri, AtUri[], Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Resolve one or more idunno.AtProto.AtUris into the data needed to render an enhanced external embed.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmbeddedExternalView>> GetEmbedExternalView(Uri url, AtUri[] uris, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

url Uri

The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used as the returned view's uri. May be used for validation in the future.

uris AtUri[]

An array of AT-URIs to resolve into the data needed for the embed.

service Uri

The service URI to use for the request.

accessCredentials AccessCredentials?

Optional access credentials for authentication.

httpClient HttpClient

The HTTP client to use for the request.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

Optional callback for when credentials are updated.

loggerFactory ILoggerFactory?

Optional logger factory for logging.

subscribedLabelers IEnumerable<Did>?

Optional list of subscribed labelers.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

Optional cancellation token.

Returns

Task<AtProtoHttpResult<EmbeddedExternalView>>

The task object representing the asynchronous operation.

Remarks

Only the hydrated view is returned. The associated references the service echoes back are the ones supplied in uris, and the raw associated records are not surfaced.

The service returns an empty response when no records were resolvable, or when validation determined the resolved records do not actually back the requested url. That case is reported as an unsuccessful result whose idunno.AtProto.AtProtoHttpResult`1.StatusCode is System.Net.HttpStatusCode.NoContent and whose idunno.AtProto.AtProtoHttpResult`1.AtErrorDetail is null. Callers should fall back to their own link card rendering in that case and skip writing strong references to the post.

Exceptions

ArgumentNullException

Thrown when a required argument is null.

ArgumentOutOfRangeException

Thrown when uris is empty or has more than idunno.Bluesky.Maximum.EmbedExternalViewUris elements.

GetFeed(AtUri, int?, string?, Uri, AccessCredentials?, HttpClient, ICollection<NameValueHeaderValue>?, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a hydrated feed from an actor's selected feed generator.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetFeed(AtUri feed, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, ICollection<NameValueHeaderValue>? headers = null, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

feed AtUri

The idunno.AtProto.AtIdentifier of the feed to be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the feed from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

headers ICollection<NameValueHeaderValue>?

A collection of HTTP headers to send with the request.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when feed, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetFeed(AtUri, int?, string?, Uri, AccessCredentials?, HttpClient, ICollection<NameValueHeaderValue>?, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a hydrated feed from an actor's selected feed generator.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetFeed(AtUri feed, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, ICollection<NameValueHeaderValue>? headers = null, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

feed AtUri

The idunno.AtProto.AtIdentifier of the feed to be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the feed from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

headers ICollection<NameValueHeaderValue>?

A collection of HTTP headers to send with the request.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when feed, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetFeed(AtUri, int?, string?, Uri, AccessCredentials?, HttpClient, ICollection<NameValueHeaderValue>?, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a hydrated feed from an actor's selected feed generator.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetFeed(AtUri feed, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, ICollection<NameValueHeaderValue>? headers = null, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

feed AtUri

The idunno.AtProto.AtIdentifier of the feed to be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the feed from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

headers ICollection<NameValueHeaderValue>?

A collection of HTTP headers to send with the request.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when feed, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetFeedGenerator(AtUri, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets information about the specified feed generator.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<FeedGenerator>> GetFeedGenerator(AtUri feed, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

feed AtUri

The idunno.AtProto.AtUri of the feed generator whose information should be retrieved.

service Uri

The System.Uri of the service to retrieve the information from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<FeedGenerator>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when feed, service or httpClient is null.

GetFeedGenerator(AtUri, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets information about the specified feed generator.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<FeedGenerator>> GetFeedGenerator(AtUri feed, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

feed AtUri

The idunno.AtProto.AtUri of the feed generator whose information should be retrieved.

service Uri

The System.Uri of the service to retrieve the information from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<FeedGenerator>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when feed, service or httpClient is null.

GetFeedGenerator(AtUri, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets information about the specified feed generator.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<FeedGenerator>> GetFeedGenerator(AtUri feed, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

feed AtUri

The idunno.AtProto.AtUri of the feed generator whose information should be retrieved.

service Uri

The System.Uri of the service to retrieve the information from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<FeedGenerator>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when feed, service or httpClient is null.

GetFeedGeneratorDescription(Uri, HttpClient, ILoggerFactory?, int, CancellationToken)

Gets a description for the feed generator at generatorUri.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<FeedGeneratorDescription>> GetFeedGeneratorDescription(Uri generatorUri, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

generatorUri Uri

The System.Uri of the generator whose description should be retrieved.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<FeedGeneratorDescription>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when generatorUri or httpClient is null.

GetFeedGeneratorDescription(Uri, HttpClient, ILoggerFactory?, int, CancellationToken)

Gets a description for the feed generator at generatorUri.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<FeedGeneratorDescription>> GetFeedGeneratorDescription(Uri generatorUri, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

generatorUri Uri

The System.Uri of the generator whose description should be retrieved.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<FeedGeneratorDescription>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when generatorUri or httpClient is null.

GetFeedGeneratorDescription(Uri, HttpClient, ILoggerFactory?, int, CancellationToken)

Gets a description for the feed generator at generatorUri.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<FeedGeneratorDescription>> GetFeedGeneratorDescription(Uri generatorUri, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

generatorUri Uri

The System.Uri of the generator whose description should be retrieved.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<FeedGeneratorDescription>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when generatorUri or httpClient is null.

GetFeedGenerators(IEnumerable<AtUri>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets information about the specified feed generators.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<GeneratorView>>> GetFeedGenerators(IEnumerable<AtUri> feeds, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

feeds IEnumerable<AtUri>

A collection of idunno.AtProto.AtUris of the feed generators whose information should be retrieved.

service Uri

The System.Uri of the service to retrieve the information from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<GeneratorView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when feeds, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when feeds contains no items.

GetFeedGenerators(IEnumerable<AtUri>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets information about the specified feed generators.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<GeneratorView>>> GetFeedGenerators(IEnumerable<AtUri> feeds, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

feeds IEnumerable<AtUri>

A collection of idunno.AtProto.AtUris of the feed generators whose information should be retrieved.

service Uri

The System.Uri of the service to retrieve the information from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<GeneratorView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when feeds, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when feeds contains no items.

GetFeedGenerators(IEnumerable<AtUri>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets information about the specified feed generators.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<GeneratorView>>> GetFeedGenerators(IEnumerable<AtUri> feeds, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

feeds IEnumerable<AtUri>

A collection of idunno.AtProto.AtUris of the feed generators whose information should be retrieved.

service Uri

The System.Uri of the service to retrieve the information from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<GeneratorView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when feeds, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when feeds contains no items.

GetFollowers(AtIdentifier, int?, string?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates accounts which follow a specified account (actor).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Followers>> GetFollowers(AtIdentifier actor, int? limit, string? cursor, string? sort, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose followers should be enumerated.

limit int?

The maximum number of followers that should be returned in a page.

cursor string?

An optional cursor for pagination.

sort string?

An optional sort order. Known values are "latest" and "top".

service Uri

The System.Uri of the service to retrieve the followers from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Followers>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetFollowers(AtIdentifier, int?, string?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates accounts which follow a specified account (actor).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Followers>> GetFollowers(AtIdentifier actor, int? limit, string? cursor, string? sort, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose followers should be enumerated.

limit int?

The maximum number of followers that should be returned in a page.

cursor string?

An optional cursor for pagination.

sort string?

An optional sort order. Known values are "latest" and "top".

service Uri

The System.Uri of the service to retrieve the followers from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Followers>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetFollowers(AtIdentifier, int?, string?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates accounts which follow a specified account (actor).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Followers>> GetFollowers(AtIdentifier actor, int? limit, string? cursor, string? sort, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose followers should be enumerated.

limit int?

The maximum number of followers that should be returned in a page.

cursor string?

An optional cursor for pagination.

sort string?

An optional sort order. Known values are "latest" and "top".

service Uri

The System.Uri of the service to retrieve the followers from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Followers>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetFollows(AtIdentifier, int?, string?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a paged list of accounts whom an actor follows.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Follows>> GetFollows(AtIdentifier actor, int? limit, string? cursor, string? sort, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose follows should be enumerated.

limit int?

The maximum number of follows that should be returned in a page.

cursor string?

An optional cursor for pagination.

sort string?

An optional sort order. Known values are "latest" and "top".

service Uri

The System.Uri of the service to retrieve the follows from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Follows>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetFollows(AtIdentifier, int?, string?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a paged list of accounts whom an actor follows.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Follows>> GetFollows(AtIdentifier actor, int? limit, string? cursor, string? sort, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose follows should be enumerated.

limit int?

The maximum number of follows that should be returned in a page.

cursor string?

An optional cursor for pagination.

sort string?

An optional sort order. Known values are "latest" and "top".

service Uri

The System.Uri of the service to retrieve the follows from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Follows>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetFollows(AtIdentifier, int?, string?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a paged list of accounts whom an actor follows.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Follows>> GetFollows(AtIdentifier actor, int? limit, string? cursor, string? sort, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose follows should be enumerated.

limit int?

The maximum number of follows that should be returned in a page.

cursor string?

An optional cursor for pagination.

sort string?

An optional sort order. Known values are "latest" and "top".

service Uri

The System.Uri of the service to retrieve the follows from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Follows>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetJobStatus(string, Uri, HttpClient, ILoggerFactory?, int, CancellationToken)

Gets the status details for the specified single part video processing job.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<JobStatus>> GetJobStatus(string jobId, Uri service, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id whose status should be queried.

service Uri

The System.Uri of the service to query the status against.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<JobStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service or httpClient are null.

GetJobStatus(string, Uri, HttpClient, ILoggerFactory?, int, CancellationToken)

Gets the status details for the specified single part video processing job.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<JobStatus>> GetJobStatus(string jobId, Uri service, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id whose status should be queried.

service Uri

The System.Uri of the service to query the status against.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<JobStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service or httpClient are null.

GetJobStatus(string, Uri, HttpClient, ILoggerFactory?, int, CancellationToken)

Gets the status details for the specified single part video processing job.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<JobStatus>> GetJobStatus(string jobId, Uri service, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id whose status should be queried.

service Uri

The System.Uri of the service to query the status against.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<JobStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service or httpClient are null.

GetJoinGroupLinkPreviews(ICollection<string>, AccessCredentials, Uri, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get public information about groups from join links. The output array matches the input codes one-to-one by position (and each view also carries its 'code'). Disabled codes return a disabledJoinLinkPreviewView, and codes that do not map to a previewable link return an invalidJoinLinkPreviewView.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<GetJoinLinkPreviewsResponse>> GetJoinGroupLinkPreviews(ICollection<string> codes, AccessCredentials accessCredentials, Uri service, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

codes ICollection<string>

The codes of the group conversations to get join link previews for.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to the service.

service Uri

The System.Uri of the service to use when making a request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<GetJoinLinkPreviewsResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when codes, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when codes is empty.

ArgumentOutOfRangeException

Thrown when codes contains more than idunno.Bluesky.Maximum.JoinLinkPreviewCodes items.

GetJoinGroupLinkPreviews(ICollection<string>, AccessCredentials, Uri, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get public information about groups from join links. The output array matches the input codes one-to-one by position (and each view also carries its 'code'). Disabled codes return a disabledJoinLinkPreviewView, and codes that do not map to a previewable link return an invalidJoinLinkPreviewView.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<GetJoinLinkPreviewsResponse>> GetJoinGroupLinkPreviews(ICollection<string> codes, AccessCredentials accessCredentials, Uri service, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

codes ICollection<string>

The codes of the group conversations to get join link previews for.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to the service.

service Uri

The System.Uri of the service to use when making a request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<GetJoinLinkPreviewsResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when codes, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when codes is empty.

ArgumentOutOfRangeException

Thrown when codes contains more than idunno.Bluesky.Maximum.JoinLinkPreviewCodes items.

GetJoinGroupLinkPreviews(ICollection<string>, AccessCredentials, Uri, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get public information about groups from join links. The output array matches the input codes one-to-one by position (and each view also carries its 'code'). Disabled codes return a disabledJoinLinkPreviewView, and codes that do not map to a previewable link return an invalidJoinLinkPreviewView.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<GetJoinLinkPreviewsResponse>> GetJoinGroupLinkPreviews(ICollection<string> codes, AccessCredentials accessCredentials, Uri service, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

codes ICollection<string>

The codes of the group conversations to get join link previews for.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to the service.

service Uri

The System.Uri of the service to use when making a request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<GetJoinLinkPreviewsResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when codes, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when codes is empty.

ArgumentOutOfRangeException

Thrown when codes contains more than idunno.Bluesky.Maximum.JoinLinkPreviewCodes items.

GetKnownFollowers(AtIdentifier, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a paged list of accounts which follow a specified account (actor) and are followed by the viewer. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Followers>> GetKnownFollowers(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose follows should be enumerated.

limit int?

The maximum number of followers that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the known followers from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Followers>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetKnownFollowers(AtIdentifier, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a paged list of accounts which follow a specified account (actor) and are followed by the viewer. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Followers>> GetKnownFollowers(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose follows should be enumerated.

limit int?

The maximum number of followers that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the known followers from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Followers>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetKnownFollowers(AtIdentifier, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a paged list of accounts which follow a specified account (actor) and are followed by the viewer. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Followers>> GetKnownFollowers(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor whose follows should be enumerated.

limit int?

The maximum number of followers that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the known followers from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Followers>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetLabelerServices(IEnumerable<Did>, bool, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets information about the labeller services identified by the specified dids.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ICollection<LabelerView>>> GetLabelerServices(IEnumerable<Did> dids, bool getDetailedViews, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

dids IEnumerable<Did>

A collection of idunno.AtProto.Dids for the labellers whose service views should be returned

getDetailedViews bool

Flag indicating whether a detailed view for each service should be returned.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<LabelerView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of dids, service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when dids is empty.

GetLabelerServices(IEnumerable<Did>, bool, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets information about the labeller services identified by the specified dids.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ICollection<LabelerView>>> GetLabelerServices(IEnumerable<Did> dids, bool getDetailedViews, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

dids IEnumerable<Did>

A collection of idunno.AtProto.Dids for the labellers whose service views should be returned

getDetailedViews bool

Flag indicating whether a detailed view for each service should be returned.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<LabelerView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of dids, service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when dids is empty.

GetLabelerServices(IEnumerable<Did>, bool, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets information about the labeller services identified by the specified dids.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ICollection<LabelerView>>> GetLabelerServices(IEnumerable<Did> dids, bool getDetailedViews, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

dids IEnumerable<Did>

A collection of idunno.AtProto.Dids for the labellers whose service views should be returned

getDetailedViews bool

Flag indicating whether a detailed view for each service should be returned.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<LabelerView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of dids, service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when dids is empty.

GetLikes(AtUri, Cid?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get like records which reference a subject, by uri and, optionally, cid.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<LikesCollection>> GetLikes(AtUri uri, Cid? cid, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the subject whose likes should be retrieved.

cid Cid?

The idunno.AtProto.Cid of the subject whose likes should be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the likes from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<LikesCollection>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetLikes(AtUri, Cid?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get like records which reference a subject, by uri and, optionally, cid.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<LikesCollection>> GetLikes(AtUri uri, Cid? cid, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the subject whose likes should be retrieved.

cid Cid?

The idunno.AtProto.Cid of the subject whose likes should be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the likes from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<LikesCollection>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetLikes(AtUri, Cid?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Get like records which reference a subject, by uri and, optionally, cid.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<LikesCollection>> GetLikes(AtUri uri, Cid? cid, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the subject whose likes should be retrieved.

cid Cid?

The idunno.AtProto.Cid of the subject whose likes should be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the likes from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<LikesCollection>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetList(AtUri, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a idunno.Bluesky.Graph.ListView of a Bluesky list and a paginated collection of idunno.Bluesky.Graph.ListItemViews of its items.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ListViewWithItems>> GetList(AtUri list, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

list AtUri

The idunno.AtProto.AtUri of the list to get.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the list from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service, if any. Pass null to make an unauthenticated request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ListViewWithItems>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when list, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetList(AtUri, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a idunno.Bluesky.Graph.ListView of a Bluesky list and a paginated collection of idunno.Bluesky.Graph.ListItemViews of its items.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ListViewWithItems>> GetList(AtUri list, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

list AtUri

The idunno.AtProto.AtUri of the list to get.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the list from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service, if any. Pass null to make an unauthenticated request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ListViewWithItems>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when list, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetList(AtUri, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a idunno.Bluesky.Graph.ListView of a Bluesky list and a paginated collection of idunno.Bluesky.Graph.ListItemViews of its items.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ListViewWithItems>> GetList(AtUri list, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

list AtUri

The idunno.AtProto.AtUri of the list to get.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the list from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service, if any. Pass null to make an unauthenticated request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ListViewWithItems>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when list, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListBlocks(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paged list of mod lists that the requesting account (actor) is blocking. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>> GetListBlocks(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the list blocks from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListBlocks(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paged list of mod lists that the requesting account (actor) is blocking. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>> GetListBlocks(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the list blocks from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListBlocks(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paged list of mod lists that the requesting account (actor) is blocking. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>> GetListBlocks(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the list blocks from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListFeed(AtUri, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a feed of recent posts from a list (posts and reposts from any actors on the list).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetListFeed(AtUri list, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

list AtUri

The idunno.AtProto.AtUri of the list whose recent posts should be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the likes from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when list, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListFeed(AtUri, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a feed of recent posts from a list (posts and reposts from any actors on the list).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetListFeed(AtUri list, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

list AtUri

The idunno.AtProto.AtUri of the list whose recent posts should be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the likes from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when list, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListFeed(AtUri, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a feed of recent posts from a list (posts and reposts from any actors on the list).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>> GetListFeed(AtUri list, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

list AtUri

The idunno.AtProto.AtUri of the list whose recent posts should be retrieved.

limit int?

The maximum number of items to return from the api.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the likes from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<FeedViewPost>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when list, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListMutes(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paged list of mod lists that the requesting account (actor) is muting. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>> GetListMutes(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the list mutes from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListMutes(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paged list of mod lists that the requesting account (actor) is muting. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>> GetListMutes(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the list mutes from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListMutes(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paged list of mod lists that the requesting account (actor) is muting. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>> GetListMutes(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the list mutes from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetLists(AtIdentifier, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paged list of lists that created by the specified actor.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>> GetLists(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The actor whose lists to enumerate.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the lists from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetLists(AtIdentifier, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paged list of lists that created by the specified actor.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>> GetLists(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The actor whose lists to enumerate.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the lists from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetLists(AtIdentifier, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a paged list of lists that created by the specified actor.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>> GetLists(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The actor whose lists to enumerate.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the lists from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListsWithMembership(AtIdentifier, int?, string?, string[]?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates the lists created by the session user, and includes membership information about actor in those lists. Only supports curation and moderation lists (no reference lists, used in starter packs). Requires auth.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListWithMembership>>> GetListsWithMembership(AtIdentifier actor, int? limit, string? cursor, string[]? purposes, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The account (actor) to check for membership.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

purposes string[]?

Optional filter by list purpose. If not specified, all supported types are returned. Possible values: [modlist, curatelist]

service Uri

The System.Uri of the service to retrieve the lists from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListWithMembership>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, accessCredentials, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListsWithMembership(AtIdentifier, int?, string?, string[]?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates the lists created by the session user, and includes membership information about actor in those lists. Only supports curation and moderation lists (no reference lists, used in starter packs). Requires auth.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListWithMembership>>> GetListsWithMembership(AtIdentifier actor, int? limit, string? cursor, string[]? purposes, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The account (actor) to check for membership.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

purposes string[]?

Optional filter by list purpose. If not specified, all supported types are returned. Possible values: [modlist, curatelist]

service Uri

The System.Uri of the service to retrieve the lists from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListWithMembership>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, accessCredentials, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetListsWithMembership(AtIdentifier, int?, string?, string[]?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates the lists created by the session user, and includes membership information about actor in those lists. Only supports curation and moderation lists (no reference lists, used in starter packs). Requires auth.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListWithMembership>>> GetListsWithMembership(AtIdentifier actor, int? limit, string? cursor, string[]? purposes, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The account (actor) to check for membership.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

purposes string[]?

Optional filter by list purpose. If not specified, all supported types are returned. Possible values: [modlist, curatelist]

service Uri

The System.Uri of the service to retrieve the lists from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ListWithMembership>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, accessCredentials, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetMessages(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the messages in a conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Messages>> GetMessages(string id, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier whose messages should be retrieved.

limit int?

An optional limit on the number of messages to retrieve in each page.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to retrieve the conversation messages from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Messages>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetMessages(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the messages in a conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Messages>> GetMessages(string id, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier whose messages should be retrieved.

limit int?

An optional limit on the number of messages to retrieve in each page.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to retrieve the conversation messages from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Messages>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetMessages(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the messages in a conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Messages>> GetMessages(string id, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier whose messages should be retrieved.

limit int?

An optional limit on the number of messages to retrieve in each page.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to retrieve the conversation messages from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Messages>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetMutes(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates accounts that the requesting account (actor) currently has fully muted. Mutes scoped to specific kinds of content (only reposts, only quote posts) are not included. Responses may contain more items than the requested limit. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> GetMutes(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the mutes from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetMutes(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates accounts that the requesting account (actor) currently has fully muted. Mutes scoped to specific kinds of content (only reposts, only quote posts) are not included. Responses may contain more items than the requested limit. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> GetMutes(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the mutes from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetMutes(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates accounts that the requesting account (actor) currently has fully muted. Mutes scoped to specific kinds of content (only reposts, only quote posts) are not included. Responses may contain more items than the requested limit. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> GetMutes(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the mutes from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or > 100.

GetNotificationPreferences(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the notification preferences for the current user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Preferences>> GetNotificationPreferences(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

GetNotificationPreferences(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the notification preferences for the current user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Preferences>> GetNotificationPreferences(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

GetNotificationPreferences(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the notification preferences for the current user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Preferences>> GetNotificationPreferences(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

GetNotificationUnreadCount(DateTimeOffset?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the number of unread notifications for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<int?>> GetNotificationUnreadCount(DateTimeOffset? seenAt, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

seenAt DateTimeOffset?

The date and time notifications were last checked.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<int?>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

GetNotificationUnreadCount(DateTimeOffset?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the number of unread notifications for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<int?>> GetNotificationUnreadCount(DateTimeOffset? seenAt, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

seenAt DateTimeOffset?

The date and time notifications were last checked.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<int?>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

GetNotificationUnreadCount(DateTimeOffset?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the number of unread notifications for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<int?>> GetNotificationUnreadCount(DateTimeOffset? seenAt, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

seenAt DateTimeOffset?

The date and time notifications were last checked.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<int?>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

GetPopularFeedGenerators(string?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get an unspecced, paged list of views over globally popular feed generators.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>> GetPopularFeedGenerators(string? query, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

query string?

Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The maximum number of feed generators to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >100.

GetPopularFeedGenerators(string?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get an unspecced, paged list of views over globally popular feed generators.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>> GetPopularFeedGenerators(string? query, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

query string?

Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The maximum number of feed generators to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >100.

GetPopularFeedGenerators(string?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get an unspecced, paged list of views over globally popular feed generators.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>> GetPopularFeedGenerators(string? query, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

query string?

Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The maximum number of feed generators to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<GeneratorView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >100.

GetPostRecord(AtUri, Cid?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the record for the idunno.Bluesky.Post identified by uri and, optional cid.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<AtProtoRepositoryRecord<Post>>> GetPostRecord(AtUri uri, Cid? cid, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post to return hydrated views for.

cid Cid?

An optional idunno.AtProto.Cid of the post to return hydrated views for.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AtProtoRepositoryRecord<Post>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri or its RecordKey property is null.

GetPostRecord(AtUri, Cid?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the record for the idunno.Bluesky.Post identified by uri and, optional cid.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<AtProtoRepositoryRecord<Post>>> GetPostRecord(AtUri uri, Cid? cid, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post to return hydrated views for.

cid Cid?

An optional idunno.AtProto.Cid of the post to return hydrated views for.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AtProtoRepositoryRecord<Post>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri or its RecordKey property is null.

GetPostRecord(AtUri, Cid?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the record for the idunno.Bluesky.Post identified by uri and, optional cid.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<AtProtoRepositoryRecord<Post>>> GetPostRecord(AtUri uri, Cid? cid, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post to return hydrated views for.

cid Cid?

An optional idunno.AtProto.Cid of the post to return hydrated views for.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<AtProtoRepositoryRecord<Post>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri or its RecordKey property is null.

GetPostThread(AtUri, int?, int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get posts in a thread. Does not require authentication, but additional metadata and filtering will be applied for authenticated requests.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PostThread>> GetPostThread(AtUri uri, int? depth, int? parentHeight, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post record whose thread should be retrieved.

depth int?

How many levels of reply depth should be included in response.

parentHeight int?

How many levels of parent (and grandparent, etc) post to include.

service Uri

The System.Uri of the service to retrieve the likes from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PostThread>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when parentHeight or depth is < 0 or > 1000.

GetPostThread(AtUri, int?, int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get posts in a thread. Does not require authentication, but additional metadata and filtering will be applied for authenticated requests.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PostThread>> GetPostThread(AtUri uri, int? depth, int? parentHeight, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post record whose thread should be retrieved.

depth int?

How many levels of reply depth should be included in response.

parentHeight int?

How many levels of parent (and grandparent, etc) post to include.

service Uri

The System.Uri of the service to retrieve the likes from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PostThread>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when parentHeight or depth is < 0 or > 1000.

GetPostThread(AtUri, int?, int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get posts in a thread. Does not require authentication, but additional metadata and filtering will be applied for authenticated requests.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PostThread>> GetPostThread(AtUri uri, int? depth, int? parentHeight, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the post record whose thread should be retrieved.

depth int?

How many levels of reply depth should be included in response.

parentHeight int?

How many levels of parent (and grandparent, etc) post to include.

service Uri

The System.Uri of the service to retrieve the likes from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PostThread>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when parentHeight or depth is < 0 or > 1000.

GetPostThreadOtherV2(AtUri, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get additional posts under a thread e.g. replies hidden by threadgate. Based on an anchor post at any depth of the tree, returns top-level replies below that anchor. It does not include ancestors nor the anchor itself. This should be called after exhausting idunno.Bluesky.BlueskyServer.GetPostThreadV2(idunno.AtProto.AtUri,System.Nullable{System.Boolean},System.Nullable{System.Int32},System.Nullable{System.Int32},System.String,System.Uri,idunno.AtProto.Authentication.AccessCredentials,System.Net.Http.HttpClient,System.Func{idunno.AtProto.Authentication.AtProtoCredential,System.Threading.CancellationToken,System.Threading.Tasks.Task},Microsoft.Extensions.Logging.ILoggerFactory,System.Collections.Generic.IEnumerable{idunno.AtProto.Did},System.Int32,System.Threading.CancellationToken). Does not require authentication, but additional metadata and filtering will be applied for authed requests.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<ThreadItem>>> GetPostThreadOtherV2(AtUri anchor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

anchor AtUri

Reference idunno.AtProto.AtUri to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<ThreadItem>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when anchor, accessCredentials, service or httpClient are null.

GetPostThreadOtherV2(AtUri, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get additional posts under a thread e.g. replies hidden by threadgate. Based on an anchor post at any depth of the tree, returns top-level replies below that anchor. It does not include ancestors nor the anchor itself. This should be called after exhausting idunno.Bluesky.BlueskyServer.GetPostThreadV2(idunno.AtProto.AtUri,System.Nullable{System.Boolean},System.Nullable{System.Int32},System.Nullable{System.Int32},System.String,System.Uri,idunno.AtProto.Authentication.AccessCredentials,System.Net.Http.HttpClient,System.Func{idunno.AtProto.Authentication.AtProtoCredential,System.Threading.CancellationToken,System.Threading.Tasks.Task},Microsoft.Extensions.Logging.ILoggerFactory,System.Collections.Generic.IEnumerable{idunno.AtProto.Did},System.Int32,System.Threading.CancellationToken). Does not require authentication, but additional metadata and filtering will be applied for authed requests.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<ThreadItem>>> GetPostThreadOtherV2(AtUri anchor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

anchor AtUri

Reference idunno.AtProto.AtUri to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<ThreadItem>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when anchor, accessCredentials, service or httpClient are null.

GetPostThreadOtherV2(AtUri, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get additional posts under a thread e.g. replies hidden by threadgate. Based on an anchor post at any depth of the tree, returns top-level replies below that anchor. It does not include ancestors nor the anchor itself. This should be called after exhausting idunno.Bluesky.BlueskyServer.GetPostThreadV2(idunno.AtProto.AtUri,System.Nullable{System.Boolean},System.Nullable{System.Int32},System.Nullable{System.Int32},System.String,System.Uri,idunno.AtProto.Authentication.AccessCredentials,System.Net.Http.HttpClient,System.Func{idunno.AtProto.Authentication.AtProtoCredential,System.Threading.CancellationToken,System.Threading.Tasks.Task},Microsoft.Extensions.Logging.ILoggerFactory,System.Collections.Generic.IEnumerable{idunno.AtProto.Did},System.Int32,System.Threading.CancellationToken). Does not require authentication, but additional metadata and filtering will be applied for authed requests.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<ThreadItem>>> GetPostThreadOtherV2(AtUri anchor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

anchor AtUri

Reference idunno.AtProto.AtUri to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<ThreadItem>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when anchor, accessCredentials, service or httpClient are null.

GetPostThreadV2(AtUri, bool?, int?, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get posts in a thread. It is based in an anchor post at any depth of the tree, and returns posts above it (recursively resolving the parent, without further branching to their replies) and below it

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<PostThreadV2>> GetPostThreadV2(AtUri anchor, bool? above, int? below, int? branchingFactor, string? sort, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

anchor AtUri

Reference idunno.AtProto.AtUri to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.

above bool?

Flag indicating whether to include parents above the anchor.

below int?

How many levels to include below the anchor.

branchingFactor int?

Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated).

sort string?

The sort order for the thread.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PostThreadV2>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when anchor, accessCredentials, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when below or branchingFactor are negative or greater than their maximum permitted values.

GetPostThreadV2(AtUri, bool?, int?, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get posts in a thread. It is based in an anchor post at any depth of the tree, and returns posts above it (recursively resolving the parent, without further branching to their replies) and below it

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<PostThreadV2>> GetPostThreadV2(AtUri anchor, bool? above, int? below, int? branchingFactor, string? sort, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

anchor AtUri

Reference idunno.AtProto.AtUri to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.

above bool?

Flag indicating whether to include parents above the anchor.

below int?

How many levels to include below the anchor.

branchingFactor int?

Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated).

sort string?

The sort order for the thread.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PostThreadV2>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when anchor, accessCredentials, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when below or branchingFactor are negative or greater than their maximum permitted values.

GetPostThreadV2(AtUri, bool?, int?, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get posts in a thread. It is based in an anchor post at any depth of the tree, and returns posts above it (recursively resolving the parent, without further branching to their replies) and below it

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<PostThreadV2>> GetPostThreadV2(AtUri anchor, bool? above, int? below, int? branchingFactor, string? sort, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

anchor AtUri

Reference idunno.AtProto.AtUri to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.

above bool?

Flag indicating whether to include parents above the anchor.

below int?

How many levels to include below the anchor.

branchingFactor int?

Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated).

sort string?

The sort order for the thread.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PostThreadV2>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when anchor, accessCredentials, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when below or branchingFactor are negative or greater than their maximum permitted values.

GetPosts(IEnumerable<AtUri>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets the post views for a specified list of posts (by idunno.AtProto.AtUri).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<PostView>>> GetPosts(IEnumerable<AtUri> uris, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uris IEnumerable<AtUri>

List of post idunno.AtProto.AtUri to return hydrated views for.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<PostView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uris, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when uris does not contain any idunno.AtProto.AtUris or has > 25 idunno.AtProto.AtUris.

GetPosts(IEnumerable<AtUri>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets the post views for a specified list of posts (by idunno.AtProto.AtUri).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<PostView>>> GetPosts(IEnumerable<AtUri> uris, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uris IEnumerable<AtUri>

List of post idunno.AtProto.AtUri to return hydrated views for.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<PostView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uris, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when uris does not contain any idunno.AtProto.AtUris or has > 25 idunno.AtProto.AtUris.

GetPosts(IEnumerable<AtUri>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets the post views for a specified list of posts (by idunno.AtProto.AtUri).

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<PostView>>> GetPosts(IEnumerable<AtUri> uris, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uris IEnumerable<AtUri>

List of post idunno.AtProto.AtUri to return hydrated views for.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<PostView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uris, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when uris does not contain any idunno.AtProto.AtUris or has > 25 idunno.AtProto.AtUris.

GetPreferences(bool, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the preferences for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Preferences>> GetPreferences(bool includeBlueskyModerationLabeler, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

includeBlueskyModerationLabeler bool

Flag indicating whether the Bluesky moderation service should be returned as part of the labeler subscriptions.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service,accessCredentials or httpClient are null.

GetPreferences(bool, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the preferences for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Preferences>> GetPreferences(bool includeBlueskyModerationLabeler, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

includeBlueskyModerationLabeler bool

Flag indicating whether the Bluesky moderation service should be returned as part of the labeler subscriptions.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service,accessCredentials or httpClient are null.

GetPreferences(bool, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the preferences for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Preferences>> GetPreferences(bool includeBlueskyModerationLabeler, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

includeBlueskyModerationLabeler bool

Flag indicating whether the Bluesky moderation service should be returned as part of the labeler subscriptions.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service,accessCredentials or httpClient are null.

GetProfile(AtIdentifier, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a detailed profile view of an account. Does not require authentication, but if an access token is provided will contain relevant metadata about the requesting actor's relationship to the requested account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ProfileViewDetailed>> GetProfile(AtIdentifier actor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The handle or DID of the account to fetch profile of.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ProfileViewDetailed>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actor, service or httpClient are null.

GetProfile(AtIdentifier, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a detailed profile view of an account. Does not require authentication, but if an access token is provided will contain relevant metadata about the requesting actor's relationship to the requested account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ProfileViewDetailed>> GetProfile(AtIdentifier actor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The handle or DID of the account to fetch profile of.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ProfileViewDetailed>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actor, service or httpClient are null.

GetProfile(AtIdentifier, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a detailed profile view of an account. Does not require authentication, but if an access token is provided will contain relevant metadata about the requesting actor's relationship to the requested account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<ProfileViewDetailed>> GetProfile(AtIdentifier actor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The handle or DID of the account to fetch profile of.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ProfileViewDetailed>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actor, service or httpClient are null.

GetProfiles(IEnumerable<AtIdentifier>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a detailed profile view of accounts. Does not require authentication, but if an access token is provided will contain relevant metadata about the requesting actor's relationship to the requested account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<ProfileViewDetailed>>> GetProfiles(IEnumerable<AtIdentifier> actors, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actors IEnumerable<AtIdentifier>

The handle or DID of the accounts to fetch profiles for.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<ProfileViewDetailed>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actors, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when actors is an empty collection or if it contains >25 handles.

GetProfiles(IEnumerable<AtIdentifier>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a detailed profile view of accounts. Does not require authentication, but if an access token is provided will contain relevant metadata about the requesting actor's relationship to the requested account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<ProfileViewDetailed>>> GetProfiles(IEnumerable<AtIdentifier> actors, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actors IEnumerable<AtIdentifier>

The handle or DID of the accounts to fetch profiles for.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<ProfileViewDetailed>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actors, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when actors is an empty collection or if it contains >25 handles.

GetProfiles(IEnumerable<AtIdentifier>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a detailed profile view of accounts. Does not require authentication, but if an access token is provided will contain relevant metadata about the requesting actor's relationship to the requested account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyCollection<ProfileViewDetailed>>> GetProfiles(IEnumerable<AtIdentifier> actors, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actors IEnumerable<AtIdentifier>

The handle or DID of the accounts to fetch profiles for.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyCollection<ProfileViewDetailed>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actors, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when actors is an empty collection or if it contains >25 handles.

GetQuotes(AtUri, Cid?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of quotes for a given post.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<QuotesCollection>> GetQuotes(AtUri uri, Cid? cid, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

idunno.AtProto.AtUri of post record whose quotes should be retrieved.

cid Cid?

If supplied, filters to quotes of specific version (by content identifier) of the post record.

limit int?

The maximum number of posts to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service, or null to make an unauthenticated request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<QuotesCollection>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

GetQuotes(AtUri, Cid?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of quotes for a given post.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<QuotesCollection>> GetQuotes(AtUri uri, Cid? cid, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

idunno.AtProto.AtUri of post record whose quotes should be retrieved.

cid Cid?

If supplied, filters to quotes of specific version (by content identifier) of the post record.

limit int?

The maximum number of posts to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service, or null to make an unauthenticated request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<QuotesCollection>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

GetQuotes(AtUri, Cid?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of quotes for a given post.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<QuotesCollection>> GetQuotes(AtUri uri, Cid? cid, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

idunno.AtProto.AtUri of post record whose quotes should be retrieved.

cid Cid?

If supplied, filters to quotes of specific version (by content identifier) of the post record.

limit int?

The maximum number of posts to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service, or null to make an unauthenticated request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<QuotesCollection>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

GetRelationships(AtIdentifier, ICollection<AtIdentifier>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates public relationships between one account, and a list of other accounts.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<RelationshipMap>> GetRelationships(AtIdentifier actor, ICollection<AtIdentifier> others, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

Primary account requesting relationships for.

others ICollection<AtIdentifier>

List of 'other' accounts to be related back to the primary.

service Uri

The System.Uri of the service to get relationships from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RelationshipMap>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, others, service, httpClient.

ArgumentException

Thrown when others is empty or contains more than 30 identifers.

GetRelationships(AtIdentifier, ICollection<AtIdentifier>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates public relationships between one account, and a list of other accounts.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<RelationshipMap>> GetRelationships(AtIdentifier actor, ICollection<AtIdentifier> others, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

Primary account requesting relationships for.

others ICollection<AtIdentifier>

List of 'other' accounts to be related back to the primary.

service Uri

The System.Uri of the service to get relationships from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RelationshipMap>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, others, service, httpClient.

ArgumentException

Thrown when others is empty or contains more than 30 identifers.

GetRelationships(AtIdentifier, ICollection<AtIdentifier>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates public relationships between one account, and a list of other accounts.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<RelationshipMap>> GetRelationships(AtIdentifier actor, ICollection<AtIdentifier> others, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

Primary account requesting relationships for.

others ICollection<AtIdentifier>

List of 'other' accounts to be related back to the primary.

service Uri

The System.Uri of the service to get relationships from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RelationshipMap>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, others, service, httpClient.

ArgumentException

Thrown when others is empty or contains more than 30 identifers.

GetRepostedBy(AtUri, Cid?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of profiles who reposted the specified post.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<RepostedBy>> GetRepostedBy(AtUri uri, Cid? cid, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

idunno.AtProto.AtUri of post record whose repost authors should be retrieved.

cid Cid?

If supplied, filters to quotes of specific version (by content identifier) of the post record.

limit int?

The maximum number of posts to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RepostedBy>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

GetRepostedBy(AtUri, Cid?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of profiles who reposted the specified post.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<RepostedBy>> GetRepostedBy(AtUri uri, Cid? cid, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

idunno.AtProto.AtUri of post record whose repost authors should be retrieved.

cid Cid?

If supplied, filters to quotes of specific version (by content identifier) of the post record.

limit int?

The maximum number of posts to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RepostedBy>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

GetRepostedBy(AtUri, Cid?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of profiles who reposted the specified post.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<RepostedBy>> GetRepostedBy(AtUri uri, Cid? cid, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

idunno.AtProto.AtUri of post record whose repost authors should be retrieved.

cid Cid?

If supplied, filters to quotes of specific version (by content identifier) of the post record.

limit int?

The maximum number of posts to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RepostedBy>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

GetStarterPack(AtUri, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a view of a starter pack.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<StarterPackView>> GetStarterPack(AtUri uri, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the starter pack to view.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<StarterPackView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

GetStarterPack(AtUri, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a view of a starter pack.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<StarterPackView>> GetStarterPack(AtUri uri, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the starter pack to view.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<StarterPackView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

GetStarterPack(AtUri, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a view of a starter pack.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<StarterPackView>> GetStarterPack(AtUri uri, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the starter pack to view.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<StarterPackView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uri, service or httpClient is null.

GetStarterPacks(ICollection<AtUri>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a basic view of the specified starter packs.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyList<StarterPackViewBasic>>> GetStarterPacks(ICollection<AtUri> uris, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uris ICollection<AtUri>

A collection of idunno.AtProto.AtUris for the starter packs to view.

service Uri

The System.Uri of the service to retrieve the starter packs from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyList<StarterPackViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uris, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when number uris is < 1 or > 25.

GetStarterPacks(ICollection<AtUri>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a basic view of the specified starter packs.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyList<StarterPackViewBasic>>> GetStarterPacks(ICollection<AtUri> uris, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uris ICollection<AtUri>

A collection of idunno.AtProto.AtUris for the starter packs to view.

service Uri

The System.Uri of the service to retrieve the starter packs from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyList<StarterPackViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uris, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when number uris is < 1 or > 25.

GetStarterPacks(ICollection<AtUri>, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets a basic view of the specified starter packs.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<IReadOnlyList<StarterPackViewBasic>>> GetStarterPacks(ICollection<AtUri> uris, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

uris ICollection<AtUri>

A collection of idunno.AtProto.AtUris for the starter packs to view.

service Uri

The System.Uri of the service to retrieve the starter packs from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<IReadOnlyList<StarterPackViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when uris, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when number uris is < 1 or > 25.

GetStarterPacksWithMembership(AtIdentifier, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the starter packs created by the authenticated user, and includes membership information about actor in those starter packs. Requires auth.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackWithMembership>>> GetStarterPacksWithMembership(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The account (actor) to check for membership.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to get starter packs from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackWithMembership>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, httpClient.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

GetStarterPacksWithMembership(AtIdentifier, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the starter packs created by the authenticated user, and includes membership information about actor in those starter packs. Requires auth.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackWithMembership>>> GetStarterPacksWithMembership(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The account (actor) to check for membership.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to get starter packs from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackWithMembership>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, httpClient.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

GetStarterPacksWithMembership(AtIdentifier, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates the starter packs created by the authenticated user, and includes membership information about actor in those starter packs. Requires auth.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackWithMembership>>> GetStarterPacksWithMembership(AtIdentifier actor, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The account (actor) to check for membership.

limit int?

The maximum number of lists that should be return in a page.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to get starter packs from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackWithMembership>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service, httpClient.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

GetSuggestedFeeds(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of suggested feeds for the user whose access token is supplied.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SuggestedFeeds>> GetSuggestedFeeds(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SuggestedFeeds>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

GetSuggestedFeeds(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of suggested feeds for the user whose access token is supplied.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SuggestedFeeds>> GetSuggestedFeeds(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SuggestedFeeds>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

GetSuggestedFeeds(Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of suggested feeds for the user whose access token is supplied.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SuggestedFeeds>> GetSuggestedFeeds(Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SuggestedFeeds>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

GetSuggestedFollowsByActor(AtIdentifier, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates follows similar to a given account (actor). Expected use is to recommend additional accounts immediately after following one account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SuggestedActors>> GetSuggestedFollowsByActor(AtIdentifier actor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The account to enumerate suggested follows for.

service Uri

The System.Uri of the service to retrieve the follows from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SuggestedActors>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

GetSuggestedFollowsByActor(AtIdentifier, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates follows similar to a given account (actor). Expected use is to recommend additional accounts immediately after following one account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SuggestedActors>> GetSuggestedFollowsByActor(AtIdentifier actor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The account to enumerate suggested follows for.

service Uri

The System.Uri of the service to retrieve the follows from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SuggestedActors>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

GetSuggestedFollowsByActor(AtIdentifier, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Enumerates follows similar to a given account (actor). Expected use is to recommend additional accounts immediately after following one account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SuggestedActors>> GetSuggestedFollowsByActor(AtIdentifier actor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The account to enumerate suggested follows for.

service Uri

The System.Uri of the service to retrieve the follows from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SuggestedActors>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when actor, service or httpClient is null.

GetSuggestedStarterPacks(int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of suggested idunno.Bluesky.Graph.StarterPackViews.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<ICollection<StarterPackView>>> GetSuggestedStarterPacks(int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of starter packs to return. Must be between 1 and 25.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<StarterPackView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >25.

GetSuggestedStarterPacks(int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of suggested idunno.Bluesky.Graph.StarterPackViews.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<ICollection<StarterPackView>>> GetSuggestedStarterPacks(int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of starter packs to return. Must be between 1 and 25.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<StarterPackView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >25.

GetSuggestedStarterPacks(int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of suggested idunno.Bluesky.Graph.StarterPackViews.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<ICollection<StarterPackView>>> GetSuggestedStarterPacks(int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of starter packs to return. Must be between 1 and 25.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<StarterPackView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >25.

GetSuggestedUsers(string?, int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a idunno.AtProto.PagedReadOnlyCollection`1 of idunno.Bluesky.Actor.ProfileViews of suggested actors.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<RecommendationReadOnlyCollection<ProfileView>>> GetSuggestedUsers(string? category, int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

category string?

An optional category of users to get suggestions for.

limit int?

The number of topics to return. Must be between 1 and 50.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RecommendationReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >50.

GetSuggestedUsers(string?, int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a idunno.AtProto.PagedReadOnlyCollection`1 of idunno.Bluesky.Actor.ProfileViews of suggested actors.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<RecommendationReadOnlyCollection<ProfileView>>> GetSuggestedUsers(string? category, int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

category string?

An optional category of users to get suggestions for.

limit int?

The number of topics to return. Must be between 1 and 50.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RecommendationReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >50.

GetSuggestedUsers(string?, int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a idunno.AtProto.PagedReadOnlyCollection`1 of idunno.Bluesky.Actor.ProfileViews of suggested actors.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<RecommendationReadOnlyCollection<ProfileView>>> GetSuggestedUsers(string? category, int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

category string?

An optional category of users to get suggestions for.

limit int?

The number of topics to return. Must be between 1 and 50.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RecommendationReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >50.

GetSuggestions(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of suggested actors for the authenticated user. The expected use is discovery of accounts to follow during new account onboarding.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SuggestedProfiles>> GetSuggestions(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of suggested actors to return. Defaults to 50 if null.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SuggestedProfiles>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

GetSuggestions(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of suggested actors for the authenticated user. The expected use is discovery of accounts to follow during new account onboarding.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SuggestedProfiles>> GetSuggestions(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of suggested actors to return. Defaults to 50 if null.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SuggestedProfiles>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

GetSuggestions(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a list of suggested actors for the authenticated user. The expected use is discovery of accounts to follow during new account onboarding.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SuggestedProfiles>> GetSuggestions(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of suggested actors to return. Defaults to 50 if null.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SuggestedProfiles>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

GetTaggedSuggestions(ICollection<KeyValuePair<string, object>>?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of tagged suggestions.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<ICollection<Suggestion>>> GetTaggedSuggestions(ICollection<KeyValuePair<string, object>>? parameters, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

parameters ICollection<KeyValuePair<string, object>>?

Any parameters to send to the endpoint. Parameter values will automatically be query string encoded.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<Suggestion>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

GetTaggedSuggestions(ICollection<KeyValuePair<string, object>>?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of tagged suggestions.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<ICollection<Suggestion>>> GetTaggedSuggestions(ICollection<KeyValuePair<string, object>>? parameters, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

parameters ICollection<KeyValuePair<string, object>>?

Any parameters to send to the endpoint. Parameter values will automatically be query string encoded.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<Suggestion>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

GetTaggedSuggestions(ICollection<KeyValuePair<string, object>>?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of tagged suggestions.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<ICollection<Suggestion>>> GetTaggedSuggestions(ICollection<KeyValuePair<string, object>>? parameters, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

parameters ICollection<KeyValuePair<string, object>>?

Any parameters to send to the endpoint. Parameter values will automatically be query string encoded.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<Suggestion>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

GetTimeline(string?, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Timeline>> GetTimeline(string? algorithm, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

algorithm string?

Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism.

limit int?

The maximum number of post views to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Timeline>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

GetTimeline(string?, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Timeline>> GetTimeline(string? algorithm, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

algorithm string?

Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism.

limit int?

The maximum number of post views to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Timeline>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

GetTimeline(string?, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Timeline>> GetTimeline(string? algorithm, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

algorithm string?

Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism.

limit int?

The maximum number of post views to return.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Timeline>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

GetTrendingTopics(int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of trending topics

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<TrendingTopics>> GetTrendingTopics(int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of topics to return. Must be between 1 and 25.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<TrendingTopics>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >25.

GetTrendingTopics(int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of trending topics

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<TrendingTopics>> GetTrendingTopics(int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of topics to return. Must be between 1 and 25.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<TrendingTopics>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >25.

GetTrendingTopics(int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of trending topics

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<TrendingTopics>> GetTrendingTopics(int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of topics to return. Must be between 1 and 25.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<TrendingTopics>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >25.

GetTrends(int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of trends

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<RecommendationReadOnlyCollection<TrendView>>> GetTrends(int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of trends to return. Must be between 1 and 25.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RecommendationReadOnlyCollection<TrendView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >25.

GetTrends(int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of trends

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<RecommendationReadOnlyCollection<TrendView>>> GetTrends(int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of trends to return. Must be between 1 and 25.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RecommendationReadOnlyCollection<TrendView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >25.

GetTrends(int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken) Preview

Get a collection of trends

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[Experimental("BSKYUnspecced", UrlFormat = "https://bluesky.idunno.dev/docs/unspecced.html")]
public static Task<AtProtoHttpResult<RecommendationReadOnlyCollection<TrendView>>> GetTrends(int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of trends to return. Must be between 1 and 25.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RecommendationReadOnlyCollection<TrendView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is < 1 or >25.

GetUnreadCounts(bool, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the count of unread conversations for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<UnreadConversationCounts>> GetUnreadCounts(bool includeGroupChats, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

includeGroupChats bool

Flag indicating whether to include group conversations. When false, group conversations are excluded from the counts.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UnreadConversationCounts>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetUnreadCounts(bool, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the count of unread conversations for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<UnreadConversationCounts>> GetUnreadCounts(bool includeGroupChats, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

includeGroupChats bool

Flag indicating whether to include group conversations. When false, group conversations are excluded from the counts.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UnreadConversationCounts>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetUnreadCounts(bool, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Gets the count of unread conversations for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<UnreadConversationCounts>> GetUnreadCounts(bool includeGroupChats, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

includeGroupChats bool

Flag indicating whether to include group conversations. When false, group conversations are excluded from the counts.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UnreadConversationCounts>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

GetUploadLimits(Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Gets the upload limits for authenticated user, specified by the serviceCredential.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<UploadLimits>> GetUploadLimits(Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to send the abort request to.

serviceCredential ServiceCredential

The credentials to use for the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UploadLimits>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, serviceCredential, or httpClient are null.

GetUploadLimits(Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Gets the upload limits for authenticated user, specified by the serviceCredential.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<UploadLimits>> GetUploadLimits(Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to send the abort request to.

serviceCredential ServiceCredential

The credentials to use for the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UploadLimits>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, serviceCredential, or httpClient are null.

GetUploadLimits(Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Gets the upload limits for authenticated user, specified by the serviceCredential.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<UploadLimits>> GetUploadLimits(Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

service Uri

The System.Uri of the service to send the abort request to.

serviceCredential ServiceCredential

The credentials to use for the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UploadLimits>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, serviceCredential, or httpClient are null.

GetUploadStatus(string, Uri, HttpClient, ILoggerFactory?, int, CancellationToken)

Get the authoritative status of the upload phase of a multi part video upload.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<UploadStatus>> GetUploadStatus(string jobId, Uri service, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id whose status should be queried.

service Uri

The System.Uri of the service to query the status against.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UploadStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service or httpClient are null.

GetUploadStatus(string, Uri, HttpClient, ILoggerFactory?, int, CancellationToken)

Get the authoritative status of the upload phase of a multi part video upload.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<UploadStatus>> GetUploadStatus(string jobId, Uri service, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id whose status should be queried.

service Uri

The System.Uri of the service to query the status against.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UploadStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service or httpClient are null.

GetUploadStatus(string, Uri, HttpClient, ILoggerFactory?, int, CancellationToken)

Get the authoritative status of the upload phase of a multi part video upload.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<UploadStatus>> GetUploadStatus(string jobId, Uri service, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id whose status should be queried.

service Uri

The System.Uri of the service to query the status against.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UploadStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when jobId is null or whitespace.

ArgumentNullException

Thrown when service or httpClient are null.

LeaveConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Leaves the conversation identified by id.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationReference>> LeaveConversation(string id, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier to leave.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationReference>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

LeaveConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Leaves the conversation identified by id.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationReference>> LeaveConversation(string id, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier to leave.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationReference>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

LeaveConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Leaves the conversation identified by id.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationReference>> LeaveConversation(string id, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier to leave.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationReference>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ListActivitySubscriptions(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets the activity subscriptions for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> ListActivitySubscriptions(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of activity subscriptions to return. If specified this should be greater than 1 and less than or equal to 100.

cursor string?

An optional cursor. See https://atproto.com/specs/xrpc#cursors-and-pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

A optional list of labeler idunno.AtProto.Dids to accept labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

ListActivitySubscriptions(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets the activity subscriptions for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> ListActivitySubscriptions(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of activity subscriptions to return. If specified this should be greater than 1 and less than or equal to 100.

cursor string?

An optional cursor. See https://atproto.com/specs/xrpc#cursors-and-pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

A optional list of labeler idunno.AtProto.Dids to accept labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

ListActivitySubscriptions(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets the activity subscriptions for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> ListActivitySubscriptions(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of activity subscriptions to return. If specified this should be greater than 1 and less than or equal to 100.

cursor string?

An optional cursor. See https://atproto.com/specs/xrpc#cursors-and-pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

A optional list of labeler idunno.AtProto.Dids to accept labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

ListConversationRequests(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Returns a page of incoming conversation requests for the user. Direct conversation requests are returned as idunno.Bluesky.Chat.ConversationView; group join requests made by the user are returned as idunno.Bluesky.Chat.Group.JoinRequestConversationView.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationViewBase>>> ListConversationRequests(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of requests to return. Must be between 1 and 100.

cursor string?

The cursor to use for pagination.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationViewBase>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is out of range.

ListConversationRequests(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Returns a page of incoming conversation requests for the user. Direct conversation requests are returned as idunno.Bluesky.Chat.ConversationView; group join requests made by the user are returned as idunno.Bluesky.Chat.Group.JoinRequestConversationView.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationViewBase>>> ListConversationRequests(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of requests to return. Must be between 1 and 100.

cursor string?

The cursor to use for pagination.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationViewBase>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is out of range.

ListConversationRequests(int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Returns a page of incoming conversation requests for the user. Direct conversation requests are returned as idunno.Bluesky.Chat.ConversationView; group join requests made by the user are returned as idunno.Bluesky.Chat.Group.JoinRequestConversationView.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationViewBase>>> ListConversationRequests(int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of requests to return. Must be between 1 and 100.

cursor string?

The cursor to use for pagination.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationViewBase>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when service, accessCredentials, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is out of range.

ListConversations(int?, string?, string?, string?, string?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates a list of conversations the current user is a part of.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Conversations>> ListConversations(int? limit, string? cursor, string? readState, string? status, string? kind, string? lockStatus, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of conversations to return.

cursor string?

A cursor used for pagination.

readState string?

An optional filter limiting the results to conversations in the specified read state. Known values are defined in idunno.Bluesky.Chat.ConversationReadState.

status string?

An optional filter limiting the results to conversations with the specified status. Known values are defined in idunno.Bluesky.Chat.ConversationStatus.

kind string?

An optional filter limiting the results to conversations of the specified kind. Known values are defined in idunno.Bluesky.Chat.ConversationKind.

lockStatus string?

An optional filter limiting the results to conversations with the specified lock status. Known values are defined in idunno.Bluesky.Chat.ConversationLockStatus.

service Uri

The System.Uri of the service to retrieve the conversations from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Conversations>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when any of readState, status, kind or lockStatus is specified and is whitespace.

ArgumentNullException

Thrown when any of accessCredentials, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limitis <1 or > the maximum number of conversations to list.

ListConversations(int?, string?, string?, string?, string?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates a list of conversations the current user is a part of.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Conversations>> ListConversations(int? limit, string? cursor, string? readState, string? status, string? kind, string? lockStatus, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of conversations to return.

cursor string?

A cursor used for pagination.

readState string?

An optional filter limiting the results to conversations in the specified read state. Known values are defined in idunno.Bluesky.Chat.ConversationReadState.

status string?

An optional filter limiting the results to conversations with the specified status. Known values are defined in idunno.Bluesky.Chat.ConversationStatus.

kind string?

An optional filter limiting the results to conversations of the specified kind. Known values are defined in idunno.Bluesky.Chat.ConversationKind.

lockStatus string?

An optional filter limiting the results to conversations with the specified lock status. Known values are defined in idunno.Bluesky.Chat.ConversationLockStatus.

service Uri

The System.Uri of the service to retrieve the conversations from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Conversations>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when any of readState, status, kind or lockStatus is specified and is whitespace.

ArgumentNullException

Thrown when any of accessCredentials, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limitis <1 or > the maximum number of conversations to list.

ListConversations(int?, string?, string?, string?, string?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Enumerates a list of conversations the current user is a part of.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<Conversations>> ListConversations(int? limit, string? cursor, string? readState, string? status, string? kind, string? lockStatus, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The number of conversations to return.

cursor string?

A cursor used for pagination.

readState string?

An optional filter limiting the results to conversations in the specified read state. Known values are defined in idunno.Bluesky.Chat.ConversationReadState.

status string?

An optional filter limiting the results to conversations with the specified status. Known values are defined in idunno.Bluesky.Chat.ConversationStatus.

kind string?

An optional filter limiting the results to conversations of the specified kind. Known values are defined in idunno.Bluesky.Chat.ConversationKind.

lockStatus string?

An optional filter limiting the results to conversations with the specified lock status. Known values are defined in idunno.Bluesky.Chat.ConversationLockStatus.

service Uri

The System.Uri of the service to retrieve the conversations from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Conversations>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when any of readState, status, kind or lockStatus is specified and is whitespace.

ArgumentNullException

Thrown when any of accessCredentials, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when limitis <1 or > the maximum number of conversations to list.

ListJoinGroupRequests(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Lists a page of requests as a idunno.Bluesky.PagedViewReadOnlyCollection`1 to join a group (via join link) the user owns. Shows the data from the owner's point of view.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<JoinRequestView>>> ListJoinGroupRequests(string conversationId, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to list join requests for.

limit int?

The maximum number of join requests to return. Must be between 1 and 100.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<JoinRequestView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when conversationId is empty.

ArgumentOutOfRangeException

Thrown when limit is out of range.

ListJoinGroupRequests(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Lists a page of requests as a idunno.Bluesky.PagedViewReadOnlyCollection`1 to join a group (via join link) the user owns. Shows the data from the owner's point of view.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<JoinRequestView>>> ListJoinGroupRequests(string conversationId, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to list join requests for.

limit int?

The maximum number of join requests to return. Must be between 1 and 100.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<JoinRequestView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when conversationId is empty.

ArgumentOutOfRangeException

Thrown when limit is out of range.

ListJoinGroupRequests(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Lists a page of requests as a idunno.Bluesky.PagedViewReadOnlyCollection`1 to join a group (via join link) the user owns. Shows the data from the owner's point of view.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<JoinRequestView>>> ListJoinGroupRequests(string conversationId, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the conversation to list join requests for.

limit int?

The maximum number of join requests to return. Must be between 1 and 100.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<JoinRequestView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, service, accessCredentials or httpClient is null.

ArgumentException

Thrown when conversationId is empty.

ArgumentOutOfRangeException

Thrown when limit is out of range.

ListMutualGroups(Did, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Lists a page of mutual groups as a idunno.Bluesky.PagedViewReadOnlyCollection`1 for the specified user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationView>>> ListMutualGroups(Did subject, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

subject Did

The idunno.AtProto.Did of the user to list mutual groups for.

limit int?

An optional limit for the number of items to return.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when subject, service, accessCredentials or httpClient is null.

ListMutualGroups(Did, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Lists a page of mutual groups as a idunno.Bluesky.PagedViewReadOnlyCollection`1 for the specified user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationView>>> ListMutualGroups(Did subject, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

subject Did

The idunno.AtProto.Did of the user to list mutual groups for.

limit int?

An optional limit for the number of items to return.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when subject, service, accessCredentials or httpClient is null.

ListMutualGroups(Did, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Lists a page of mutual groups as a idunno.Bluesky.PagedViewReadOnlyCollection`1 for the specified user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationView>>> ListMutualGroups(Did subject, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

subject Did

The idunno.AtProto.Did of the user to list mutual groups for.

limit int?

An optional limit for the number of items to return.

cursor string?

An optional cursor used for pagination.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ConversationView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when subject, service, accessCredentials or httpClient is null.

ListNotifications(int?, string?, IEnumerable<NotificationReason>?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets the notifications for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<NotificationCollection>> ListNotifications(int? limit, string? cursor, IEnumerable<NotificationReason>? reasons, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of notifications to return. If specified this should be greater than 1 and less than or equal to 100.

cursor string?

An optional cursor. See https://atproto.com/specs/xrpc#cursors-and-pagination.

reasons IEnumerable<NotificationReason>?

An optional collection of idunno.Bluesky.Notifications.NotificationReasons to limit the results to.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

A optional list of labeler idunno.AtProto.Dids to accept labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<NotificationCollection>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

ArgumentException

Thrown when reasons contains idunno.Bluesky.Notifications.NotificationReason.Unknown.

ListNotifications(int?, string?, IEnumerable<NotificationReason>?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets the notifications for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<NotificationCollection>> ListNotifications(int? limit, string? cursor, IEnumerable<NotificationReason>? reasons, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of notifications to return. If specified this should be greater than 1 and less than or equal to 100.

cursor string?

An optional cursor. See https://atproto.com/specs/xrpc#cursors-and-pagination.

reasons IEnumerable<NotificationReason>?

An optional collection of idunno.Bluesky.Notifications.NotificationReasons to limit the results to.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

A optional list of labeler idunno.AtProto.Dids to accept labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<NotificationCollection>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

ArgumentException

Thrown when reasons contains idunno.Bluesky.Notifications.NotificationReason.Unknown.

ListNotifications(int?, string?, IEnumerable<NotificationReason>?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Gets the notifications for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<NotificationCollection>> ListNotifications(int? limit, string? cursor, IEnumerable<NotificationReason>? reasons, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

limit int?

The maximum number of notifications to return. If specified this should be greater than 1 and less than or equal to 100.

cursor string?

An optional cursor. See https://atproto.com/specs/xrpc#cursors-and-pagination.

reasons IEnumerable<NotificationReason>?

An optional collection of idunno.Bluesky.Notifications.NotificationReasons to limit the results to.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

A optional list of labeler idunno.AtProto.Dids to accept labels from.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<NotificationCollection>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

ArgumentException

Thrown when reasons contains idunno.Bluesky.Notifications.NotificationReason.Unknown.

LockConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Locks a group conversation so no more content (messages, reactions) can be added to it.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> LockConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation to lock.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentException

Thrown when conversationId is null or empty.

LockConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Locks a group conversation so no more content (messages, reactions) can be added to it.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> LockConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation to lock.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentException

Thrown when conversationId is null or empty.

LockConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Locks a group conversation so no more content (messages, reactions) can be added to it.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> LockConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation to lock.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentException

Thrown when conversationId is null or empty.

MuteActor(AtIdentifier, bool?, bool?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates or updates a mute relationship for the specified account. If a mute already exists for the account, it is updated in place: the stored scope is replaced with the scope in this request. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> MuteActor(AtIdentifier actor, bool? onlyReposts, bool? onlyQuotePosts, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor to mute

onlyReposts bool?

Flag indicating whether to restrict the mute to the account's reposts. When true, just the scoped content is muted; when no scoped mutes are set the account is fully muted.

onlyQuotePosts bool?

Flag indicating whether to restrict the mute to the account's quotes. When true, just the scoped content is muted; when no scoped mutes are set the account is fully muted.

service Uri

The System.Uri of the service to create the mute on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actor, service, accessCredentials or httpClient are null.

MuteActor(AtIdentifier, bool?, bool?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates or updates a mute relationship for the specified account. If a mute already exists for the account, it is updated in place: the stored scope is replaced with the scope in this request. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> MuteActor(AtIdentifier actor, bool? onlyReposts, bool? onlyQuotePosts, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor to mute

onlyReposts bool?

Flag indicating whether to restrict the mute to the account's reposts. When true, just the scoped content is muted; when no scoped mutes are set the account is fully muted.

onlyQuotePosts bool?

Flag indicating whether to restrict the mute to the account's quotes. When true, just the scoped content is muted; when no scoped mutes are set the account is fully muted.

service Uri

The System.Uri of the service to create the mute on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actor, service, accessCredentials or httpClient are null.

MuteActor(AtIdentifier, bool?, bool?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates or updates a mute relationship for the specified account. If a mute already exists for the account, it is updated in place: the stored scope is replaced with the scope in this request. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> MuteActor(AtIdentifier actor, bool? onlyReposts, bool? onlyQuotePosts, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor to mute

onlyReposts bool?

Flag indicating whether to restrict the mute to the account's reposts. When true, just the scoped content is muted; when no scoped mutes are set the account is fully muted.

onlyQuotePosts bool?

Flag indicating whether to restrict the mute to the account's quotes. When true, just the scoped content is muted; when no scoped mutes are set the account is fully muted.

service Uri

The System.Uri of the service to create the mute on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actor, service, accessCredentials or httpClient are null.

MuteActorList(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a mute relationship for the specified list of accounts. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> MuteActorList(AtUri listUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

listUri AtUri

The idunno.AtProto.AtUri of the list of actors to mute.

service Uri

The System.Uri of the service to create the mutes on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of listUri, service, accessCredentials or httpClient are null.

MuteActorList(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a mute relationship for the specified list of accounts. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> MuteActorList(AtUri listUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

listUri AtUri

The idunno.AtProto.AtUri of the list of actors to mute.

service Uri

The System.Uri of the service to create the mutes on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of listUri, service, accessCredentials or httpClient are null.

MuteActorList(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates a mute relationship for the specified list of accounts. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> MuteActorList(AtUri listUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

listUri AtUri

The idunno.AtProto.AtUri of the list of actors to mute.

service Uri

The System.Uri of the service to create the mutes on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of listUri, service, accessCredentials or httpClient are null.

MuteConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Mutes the conversation identified by id.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> MuteConversation(string id, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier to mute.

service Uri

The System.Uri of the service to mute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

MuteConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Mutes the conversation identified by id.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> MuteConversation(string id, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier to mute.

service Uri

The System.Uri of the service to mute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

MuteConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Mutes the conversation identified by id.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> MuteConversation(string id, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

id string

The conversation identifier to mute.

service Uri

The System.Uri of the service to mute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when id is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

MuteThread(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Mutes a thread preventing notifications from the thread and any of its children. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> MuteThread(AtUri rootUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

rootUri AtUri

The idunno.AtProto.AtUri of the thread to mute

service Uri

The System.Uri of the service to mute the thread on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of rootUri, service, accessCredentials or httpClient are null.

MuteThread(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Mutes a thread preventing notifications from the thread and any of its children. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> MuteThread(AtUri rootUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

rootUri AtUri

The idunno.AtProto.AtUri of the thread to mute

service Uri

The System.Uri of the service to mute the thread on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of rootUri, service, accessCredentials or httpClient are null.

MuteThread(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Mutes a thread preventing notifications from the thread and any of its children. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> MuteThread(AtUri rootUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

rootUri AtUri

The idunno.AtProto.AtUri of the thread to mute

service Uri

The System.Uri of the service to mute the thread on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of rootUri, service, accessCredentials or httpClient are null.

PutActivitySubscription(SubjectActivitySubscription, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Puts the supplied subscriptionSettings for activity notifications

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<SubjectActivitySubscription>> PutActivitySubscription(SubjectActivitySubscription subscriptionSettings, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

subscriptionSettings SubjectActivitySubscription

The idunno.Bluesky.Notifications.SubjectActivitySubscription to send.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SubjectActivitySubscription>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of subscriptionSettings, service, accessCredentials or httpClient are null.

ArgumentException

Thrown when the idunno.Bluesky.Notifications.SubjectActivitySubscription.ActivitySubscription property of subscriptionSettings is null.

PutActivitySubscription(SubjectActivitySubscription, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Puts the supplied subscriptionSettings for activity notifications

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<SubjectActivitySubscription>> PutActivitySubscription(SubjectActivitySubscription subscriptionSettings, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

subscriptionSettings SubjectActivitySubscription

The idunno.Bluesky.Notifications.SubjectActivitySubscription to send.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SubjectActivitySubscription>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of subscriptionSettings, service, accessCredentials or httpClient are null.

ArgumentException

Thrown when the idunno.Bluesky.Notifications.SubjectActivitySubscription.ActivitySubscription property of subscriptionSettings is null.

PutActivitySubscription(SubjectActivitySubscription, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Puts the supplied subscriptionSettings for activity notifications

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<SubjectActivitySubscription>> PutActivitySubscription(SubjectActivitySubscription subscriptionSettings, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

subscriptionSettings SubjectActivitySubscription

The idunno.Bluesky.Notifications.SubjectActivitySubscription to send.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SubjectActivitySubscription>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of subscriptionSettings, service, accessCredentials or httpClient are null.

ArgumentException

Thrown when the idunno.Bluesky.Notifications.SubjectActivitySubscription.ActivitySubscription property of subscriptionSettings is null.

PutChatNotificationPreferences(Preference?, Preference?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Set the requesting account's chat notification preferences. Only the provided preferences are updated; omitted preferences are left unchanged.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<Preferences>> PutChatNotificationPreferences(Preference? chat, Preference? chatRequest, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

chat Preference?

Notification preferences for chats.

chatRequest Preference?

Notification preferences for chat requests.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentException

Thrown when both chat and chatRequest are null.

PutChatNotificationPreferences(Preference?, Preference?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Set the requesting account's chat notification preferences. Only the provided preferences are updated; omitted preferences are left unchanged.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<Preferences>> PutChatNotificationPreferences(Preference? chat, Preference? chatRequest, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

chat Preference?

Notification preferences for chats.

chatRequest Preference?

Notification preferences for chat requests.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentException

Thrown when both chat and chatRequest are null.

PutChatNotificationPreferences(Preference?, Preference?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Set the requesting account's chat notification preferences. Only the provided preferences are updated; omitted preferences are left unchanged.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<Preferences>> PutChatNotificationPreferences(Preference? chat, Preference? chatRequest, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

chat Preference?

Notification preferences for chats.

chatRequest Preference?

Notification preferences for chat requests.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentException

Thrown when both chat and chatRequest are null.

PutNotificationPreferences(Preferences, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Puts the notification preferences for the current user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<Preferences>> PutNotificationPreferences(Preferences preferences, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

preferences Preferences

The idunno.Bluesky.Notifications.Preferences to set.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of preferences, service, accessCredentials or httpClient are null.

PutNotificationPreferences(Preferences, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Puts the notification preferences for the current user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<Preferences>> PutNotificationPreferences(Preferences preferences, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

preferences Preferences

The idunno.Bluesky.Notifications.Preferences to set.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of preferences, service, accessCredentials or httpClient are null.

PutNotificationPreferences(Preferences, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Puts the notification preferences for the current user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<Preferences>> PutNotificationPreferences(Preferences preferences, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

preferences Preferences

The idunno.Bluesky.Notifications.Preferences to set.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<Preferences>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of preferences, service, accessCredentials or httpClient are null.

PutPreferences(IList<Preference>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates or updates the preferences for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> PutPreferences(IList<Preference> preferences, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

preferences IList<Preference>

The preferences to create or update

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of preferences, service,accessCredentials or httpClient are null.

PutPreferences(IList<Preference>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates or updates the preferences for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> PutPreferences(IList<Preference> preferences, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

preferences IList<Preference>

The preferences to create or update

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of preferences, service,accessCredentials or httpClient are null.

PutPreferences(IList<Preference>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Creates or updates the preferences for the requesting account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> PutPreferences(IList<Preference> preferences, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

preferences IList<Preference>

The preferences to create or update

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of preferences, service,accessCredentials or httpClient are null.

RejectJoinGroupRequest(string, Did, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Rejects a request to join a group (via join link) the user owns.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> RejectJoinGroupRequest(string conversationId, Did member, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the group to reject the join request for.

member Did

The idunno.AtProto.Did of the user to reject the join request for.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, member, service, accessCredentials or httpClient is null.

RejectJoinGroupRequest(string, Did, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Rejects a request to join a group (via join link) the user owns.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> RejectJoinGroupRequest(string conversationId, Did member, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the group to reject the join request for.

member Did

The idunno.AtProto.Did of the user to reject the join request for.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, member, service, accessCredentials or httpClient is null.

RejectJoinGroupRequest(string, Did, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Rejects a request to join a group (via join link) the user owns.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> RejectJoinGroupRequest(string conversationId, Did member, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the group to reject the join request for.

member Did

The idunno.AtProto.Did of the user to reject the join request for.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, member, service, accessCredentials or httpClient is null.

RemoveGroupMembers(string, ICollection<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Remove members from a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<RemoveMembersResponse>> RemoveGroupMembers(string conversationId, ICollection<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the group to remove members from.

members ICollection<Did>

The System.Collections.Generic.ICollection`1 of users to remove from the group.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RemoveMembersResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, members, service, accessCredentials or httpClient is null.

RemoveGroupMembers(string, ICollection<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Remove members from a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<RemoveMembersResponse>> RemoveGroupMembers(string conversationId, ICollection<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the group to remove members from.

members ICollection<Did>

The System.Collections.Generic.ICollection`1 of users to remove from the group.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RemoveMembersResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, members, service, accessCredentials or httpClient is null.

RemoveGroupMembers(string, ICollection<Did>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Remove members from a group conversation.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<RemoveMembersResponse>> RemoveGroupMembers(string conversationId, ICollection<Did> members, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The id of the group to remove members from.

members ICollection<Did>

The System.Collections.Generic.ICollection`1 of users to remove from the group.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RemoveMembersResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when conversationId, members, service, accessCredentials or httpClient is null.

RemoveReaction(string, string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Removes the specified reaction to the message identified by messageId from the conversation identified by conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<MessageView>> RemoveReaction(string conversationId, string messageId, string value, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to remove the reaction to identified by messageId from.

messageId string

The message identifier to remove the reaction to from conversationId.

value string

The reaction to remove.

service Uri

The System.Uri of the service to delete the message from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<MessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId, messageId or value is whitespace.

ArgumentNullException

Thrown when conversationId, messageId, value, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when value has a grapheme length that does not equal 1.

RemoveReaction(string, string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Removes the specified reaction to the message identified by messageId from the conversation identified by conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<MessageView>> RemoveReaction(string conversationId, string messageId, string value, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to remove the reaction to identified by messageId from.

messageId string

The message identifier to remove the reaction to from conversationId.

value string

The reaction to remove.

service Uri

The System.Uri of the service to delete the message from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<MessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId, messageId or value is whitespace.

ArgumentNullException

Thrown when conversationId, messageId, value, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when value has a grapheme length that does not equal 1.

RemoveReaction(string, string, string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Removes the specified reaction to the message identified by messageId from the conversation identified by conversationId for the authenticated user.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<MessageView>> RemoveReaction(string conversationId, string messageId, string value, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to remove the reaction to identified by messageId from.

messageId string

The message identifier to remove the reaction to from conversationId.

value string

The reaction to remove.

service Uri

The System.Uri of the service to delete the message from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<MessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId, messageId or value is whitespace.

ArgumentNullException

Thrown when conversationId, messageId, value, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when value has a grapheme length that does not equal 1.

RequestJoinGroup(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Request to join a group via a group link.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<RequestJoinResponse>> RequestJoinGroup(string code, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

code string

The code from the group link.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RequestJoinResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when code is null or whitespace.

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

RequestJoinGroup(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Request to join a group via a group link.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<RequestJoinResponse>> RequestJoinGroup(string code, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

code string

The code from the group link.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RequestJoinResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when code is null or whitespace.

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

RequestJoinGroup(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Request to join a group via a group link.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<RequestJoinResponse>> RequestJoinGroup(string code, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

code string

The code from the group link.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<RequestJoinResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when code is null or whitespace.

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

SearchActors(string, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find actors (profiles) matching search criteria. Does not require authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> SearchActors(string q, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

The search query string. Syntax, phrase, Boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The number of suggested actors to return. Defaults to 25 if null.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when q is null or whitespace.

ArgumentNullException

Thrown when service, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

SearchActors(string, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find actors (profiles) matching search criteria. Does not require authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> SearchActors(string q, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

The search query string. Syntax, phrase, Boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The number of suggested actors to return. Defaults to 25 if null.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when q is null or whitespace.

ArgumentNullException

Thrown when service, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

SearchActors(string, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find actors (profiles) matching search criteria. Does not require authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>> SearchActors(string q, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

The search query string. Syntax, phrase, Boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The number of suggested actors to return. Defaults to 25 if null.

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when q is null or whitespace.

ArgumentNullException

Thrown when service, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

SearchActorsTypeahead(string, int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find actor suggestions for a prefix search term. Expected use is for auto-completion during text field entry. Does not require authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>> SearchActorsTypeahead(string q, int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

"Search query prefix; not a full query string.

limit int?

The number of suggested actors to return. Defaults to 10 if null.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when q is null.

ArgumentNullException

Thrown when service, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

SearchActorsTypeahead(string, int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find actor suggestions for a prefix search term. Expected use is for auto-completion during text field entry. Does not require authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>> SearchActorsTypeahead(string q, int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

"Search query prefix; not a full query string.

limit int?

The number of suggested actors to return. Defaults to 10 if null.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when q is null.

ArgumentNullException

Thrown when service, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

SearchActorsTypeahead(string, int?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find actor suggestions for a prefix search term. Expected use is for auto-completion during text field entry. Does not require authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>> SearchActorsTypeahead(string q, int? limit, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

"Search query prefix; not a full query string.

limit int?

The number of suggested actors to return. Defaults to 10 if null.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the account.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<ProfileViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when q is null.

ArgumentNullException

Thrown when service, or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is <=0 or >100.

SearchPosts(string, SearchOrder?, string?, string?, AtIdentifier?, AtIdentifier?, string?, string?, Uri?, ICollection<string>?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find posts matching search criteria, returning views of those posts

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SearchResults>> SearchPosts(string query, SearchOrder? searchOrder, string? since, string? until, AtIdentifier? mentions, AtIdentifier? author, string? lang, string? domain, Uri? url, ICollection<string>? tags, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

query string

Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

searchOrder SearchOrder?

Specifies the ranking order of results.

since string?

Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).

until string?

Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).

mentions AtIdentifier?

Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.

author AtIdentifier?

Filter to posts by the given account. Handles are resolved to DID before query-time.

lang string?

Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.

domain string?

Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.

url Uri?

Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.

tags ICollection<string>?

Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix.

limit int?

The maximum number of post views to return

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve search information from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service, or null to make an unauthenticated request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SearchResults>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when query, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

SearchPosts(string, SearchOrder?, string?, string?, AtIdentifier?, AtIdentifier?, string?, string?, Uri?, ICollection<string>?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find posts matching search criteria, returning views of those posts

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SearchResults>> SearchPosts(string query, SearchOrder? searchOrder, string? since, string? until, AtIdentifier? mentions, AtIdentifier? author, string? lang, string? domain, Uri? url, ICollection<string>? tags, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

query string

Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

searchOrder SearchOrder?

Specifies the ranking order of results.

since string?

Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).

until string?

Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).

mentions AtIdentifier?

Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.

author AtIdentifier?

Filter to posts by the given account. Handles are resolved to DID before query-time.

lang string?

Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.

domain string?

Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.

url Uri?

Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.

tags ICollection<string>?

Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix.

limit int?

The maximum number of post views to return

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve search information from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service, or null to make an unauthenticated request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SearchResults>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when query, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

SearchPosts(string, SearchOrder?, string?, string?, AtIdentifier?, AtIdentifier?, string?, string?, Uri?, ICollection<string>?, int?, string?, Uri, AccessCredentials?, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find posts matching search criteria, returning views of those posts

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SearchResults>> SearchPosts(string query, SearchOrder? searchOrder, string? since, string? until, AtIdentifier? mentions, AtIdentifier? author, string? lang, string? domain, Uri? url, ICollection<string>? tags, int? limit, string? cursor, Uri service, AccessCredentials? accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

query string

Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

searchOrder SearchOrder?

Specifies the ranking order of results.

since string?

Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).

until string?

Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).

mentions AtIdentifier?

Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.

author AtIdentifier?

Filter to posts by the given account. Handles are resolved to DID before query-time.

lang string?

Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.

domain string?

Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.

url Uri?

Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.

tags ICollection<string>?

Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix.

limit int?

The maximum number of post views to return

cursor string?

An optional cursor for pagination.

service Uri

The System.Uri of the service to retrieve search information from.

accessCredentials AccessCredentials?

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service, or null to make an unauthenticated request.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SearchResults>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when query, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit <1 or >100.

SearchPostsV2(string?, int?, string?, SortOrder?, ICollection<AtIdentifier>?, ICollection<AtIdentifier>?, ICollection<string>?, ICollection<Uri>?, ICollection<AtUri>?, ICollection<string>?, ICollection<AtIdentifier>?, ICollection<AtIdentifier>?, ICollection<string>?, ICollection<Uri>?, ICollection<AtUri>?, ICollection<string>?, DateTimeOffset?, DateTimeOffset?, bool?, ICollection<string>?, ICollection<string>?, bool?, bool?, AtUri?, AtUri?, bool?, bool?, bool?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find posts matching a search query or filters, returning search hits for matching post records.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SearchV2Results>> SearchPostsV2(string? cursor, int? limit, string? query, SortOrder? sort, ICollection<AtIdentifier>? authors, ICollection<AtIdentifier>? mentions, ICollection<string>? domains, ICollection<Uri>? urls, ICollection<AtUri>? embeddedAtUris, ICollection<string>? hashTags, ICollection<AtIdentifier>? excludeAuthors, ICollection<AtIdentifier>? excludeMentions, ICollection<string>? excludeDomains, ICollection<Uri>? excludeUrls, ICollection<AtUri>? excludeEmbeddedAtUris, ICollection<string>? excludeHashTags, DateTimeOffset? since, DateTimeOffset? until, bool? allTime, ICollection<string>? languages, ICollection<string>? excludeLanguages, bool? hasMedia, bool? hasVideo, AtUri? replyParentUri, AtUri? threadRootUri, bool? excludeReplies, bool? repliesOnly, bool? following, string? queryLanguage, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

cursor string?

Optional pagination cursor.

limit int?

Optional maximum number of results to return.

query string?

Search query string. A query or at least one filter is required.

sort SortOrder?

Ranking order for results. 'recent' sorts by recency; 'top' uses search ranking.

authors ICollection<AtIdentifier>?

If provided, include posts by any of these authors. idunno.AtProto.Handles are resolved to DIDs before searching.

mentions ICollection<AtIdentifier>?

If provided, include posts that mention any of these accounts. idunno.AtProto.Handles are resolved to DIDs before searching.

domains ICollection<string>?

If provided, include posts that link to any of these domains.

urls ICollection<Uri>?

If provided, include posts with links pointing to any of these System.Uri.

embeddedAtUris ICollection<AtUri>?

If provided, include posts with embed any of the provided idunno.AtProto.AtUri.

hashTags ICollection<string>?

If provided, include posts with tagged with any of these hashtags. Do not include the hash (#) prefix.

excludeAuthors ICollection<AtIdentifier>?

If provided, exclude posts by any of these authors. idunno.AtProto.Handles are resolved to DIDs before searching.

excludeMentions ICollection<AtIdentifier>?

If provided, exclude posts that mention any of these accounts. idunno.AtProto.Handles are resolved to DIDs before searching.

excludeDomains ICollection<string>?

If provided, exclude posts that link to any of these domains.

excludeUrls ICollection<Uri>?

If provided, exclude posts with links pointing to any of these System.Uri.

excludeEmbeddedAtUris ICollection<AtUri>?

If provided, exclude posts with embed any of the provided idunno.AtProto.AtUri.

excludeHashTags ICollection<string>?

If provided, exclude posts with tagged with any of these hashtags. Do not include the hash (#) prefix.

since DateTimeOffset?

If provided, include posts indexed at or after this timestamp.

until DateTimeOffset?

If provided, include posts indexed before this timestamp.

allTime bool?

Optional flag indicating whether to search the full index instead of the recent-post window.

languages ICollection<string>?

If provided, include posts whose language matches any of these language codes.

excludeLanguages ICollection<string>?

If provided, exclude posts whose language matches any of these language codes.

hasMedia bool?

Optional flag indicating whether to only include posts with media.

hasVideo bool?

Optional flag indicating whether to only include posts with video.

replyParentUri AtUri?

If provided, Include only direct replies to this parent post idunno.AtProto.AtUri.

threadRootUri AtUri?

If provided, include only posts in the thread rooted at this post idunno.AtProto.AtUri.

excludeReplies bool?

Optional flag indicating whether to exclude replies from results. Mutually exclusive with repliesOnly.

repliesOnly bool?

Optional flag indicating whether to include only replies in results. Mutually exclusive with excludeReplies.

following bool?

Optional flag indicating whether to include only posts from accounts followed by the viewer.

queryLanguage string?

Optional Language analyzer hint for the query text. If unset, the server auto-detects when possible.

service Uri

The System.Uri of the service to retrieve search information from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SearchV2Results>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown if service, accessCredentials, or httpClient is null.

ArgumentException

Thrown if any of the provided arguments are invalid.

SearchPostsV2(string?, int?, string?, SortOrder?, ICollection<AtIdentifier>?, ICollection<AtIdentifier>?, ICollection<string>?, ICollection<Uri>?, ICollection<AtUri>?, ICollection<string>?, ICollection<AtIdentifier>?, ICollection<AtIdentifier>?, ICollection<string>?, ICollection<Uri>?, ICollection<AtUri>?, ICollection<string>?, DateTimeOffset?, DateTimeOffset?, bool?, ICollection<string>?, ICollection<string>?, bool?, bool?, AtUri?, AtUri?, bool?, bool?, bool?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find posts matching a search query or filters, returning search hits for matching post records.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SearchV2Results>> SearchPostsV2(string? cursor, int? limit, string? query, SortOrder? sort, ICollection<AtIdentifier>? authors, ICollection<AtIdentifier>? mentions, ICollection<string>? domains, ICollection<Uri>? urls, ICollection<AtUri>? embeddedAtUris, ICollection<string>? hashTags, ICollection<AtIdentifier>? excludeAuthors, ICollection<AtIdentifier>? excludeMentions, ICollection<string>? excludeDomains, ICollection<Uri>? excludeUrls, ICollection<AtUri>? excludeEmbeddedAtUris, ICollection<string>? excludeHashTags, DateTimeOffset? since, DateTimeOffset? until, bool? allTime, ICollection<string>? languages, ICollection<string>? excludeLanguages, bool? hasMedia, bool? hasVideo, AtUri? replyParentUri, AtUri? threadRootUri, bool? excludeReplies, bool? repliesOnly, bool? following, string? queryLanguage, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

cursor string?

Optional pagination cursor.

limit int?

Optional maximum number of results to return.

query string?

Search query string. A query or at least one filter is required.

sort SortOrder?

Ranking order for results. 'recent' sorts by recency; 'top' uses search ranking.

authors ICollection<AtIdentifier>?

If provided, include posts by any of these authors. idunno.AtProto.Handles are resolved to DIDs before searching.

mentions ICollection<AtIdentifier>?

If provided, include posts that mention any of these accounts. idunno.AtProto.Handles are resolved to DIDs before searching.

domains ICollection<string>?

If provided, include posts that link to any of these domains.

urls ICollection<Uri>?

If provided, include posts with links pointing to any of these System.Uri.

embeddedAtUris ICollection<AtUri>?

If provided, include posts with embed any of the provided idunno.AtProto.AtUri.

hashTags ICollection<string>?

If provided, include posts with tagged with any of these hashtags. Do not include the hash (#) prefix.

excludeAuthors ICollection<AtIdentifier>?

If provided, exclude posts by any of these authors. idunno.AtProto.Handles are resolved to DIDs before searching.

excludeMentions ICollection<AtIdentifier>?

If provided, exclude posts that mention any of these accounts. idunno.AtProto.Handles are resolved to DIDs before searching.

excludeDomains ICollection<string>?

If provided, exclude posts that link to any of these domains.

excludeUrls ICollection<Uri>?

If provided, exclude posts with links pointing to any of these System.Uri.

excludeEmbeddedAtUris ICollection<AtUri>?

If provided, exclude posts with embed any of the provided idunno.AtProto.AtUri.

excludeHashTags ICollection<string>?

If provided, exclude posts with tagged with any of these hashtags. Do not include the hash (#) prefix.

since DateTimeOffset?

If provided, include posts indexed at or after this timestamp.

until DateTimeOffset?

If provided, include posts indexed before this timestamp.

allTime bool?

Optional flag indicating whether to search the full index instead of the recent-post window.

languages ICollection<string>?

If provided, include posts whose language matches any of these language codes.

excludeLanguages ICollection<string>?

If provided, exclude posts whose language matches any of these language codes.

hasMedia bool?

Optional flag indicating whether to only include posts with media.

hasVideo bool?

Optional flag indicating whether to only include posts with video.

replyParentUri AtUri?

If provided, Include only direct replies to this parent post idunno.AtProto.AtUri.

threadRootUri AtUri?

If provided, include only posts in the thread rooted at this post idunno.AtProto.AtUri.

excludeReplies bool?

Optional flag indicating whether to exclude replies from results. Mutually exclusive with repliesOnly.

repliesOnly bool?

Optional flag indicating whether to include only replies in results. Mutually exclusive with excludeReplies.

following bool?

Optional flag indicating whether to include only posts from accounts followed by the viewer.

queryLanguage string?

Optional Language analyzer hint for the query text. If unset, the server auto-detects when possible.

service Uri

The System.Uri of the service to retrieve search information from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SearchV2Results>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown if service, accessCredentials, or httpClient is null.

ArgumentException

Thrown if any of the provided arguments are invalid.

SearchPostsV2(string?, int?, string?, SortOrder?, ICollection<AtIdentifier>?, ICollection<AtIdentifier>?, ICollection<string>?, ICollection<Uri>?, ICollection<AtUri>?, ICollection<string>?, ICollection<AtIdentifier>?, ICollection<AtIdentifier>?, ICollection<string>?, ICollection<Uri>?, ICollection<AtUri>?, ICollection<string>?, DateTimeOffset?, DateTimeOffset?, bool?, ICollection<string>?, ICollection<string>?, bool?, bool?, AtUri?, AtUri?, bool?, bool?, bool?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, IEnumerable<Did>?, int, CancellationToken)

Find posts matching a search query or filters, returning search hits for matching post records.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SearchV2Results>> SearchPostsV2(string? cursor, int? limit, string? query, SortOrder? sort, ICollection<AtIdentifier>? authors, ICollection<AtIdentifier>? mentions, ICollection<string>? domains, ICollection<Uri>? urls, ICollection<AtUri>? embeddedAtUris, ICollection<string>? hashTags, ICollection<AtIdentifier>? excludeAuthors, ICollection<AtIdentifier>? excludeMentions, ICollection<string>? excludeDomains, ICollection<Uri>? excludeUrls, ICollection<AtUri>? excludeEmbeddedAtUris, ICollection<string>? excludeHashTags, DateTimeOffset? since, DateTimeOffset? until, bool? allTime, ICollection<string>? languages, ICollection<string>? excludeLanguages, bool? hasMedia, bool? hasVideo, AtUri? replyParentUri, AtUri? threadRootUri, bool? excludeReplies, bool? repliesOnly, bool? following, string? queryLanguage, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, IEnumerable<Did>? subscribedLabelers = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

cursor string?

Optional pagination cursor.

limit int?

Optional maximum number of results to return.

query string?

Search query string. A query or at least one filter is required.

sort SortOrder?

Ranking order for results. 'recent' sorts by recency; 'top' uses search ranking.

authors ICollection<AtIdentifier>?

If provided, include posts by any of these authors. idunno.AtProto.Handles are resolved to DIDs before searching.

mentions ICollection<AtIdentifier>?

If provided, include posts that mention any of these accounts. idunno.AtProto.Handles are resolved to DIDs before searching.

domains ICollection<string>?

If provided, include posts that link to any of these domains.

urls ICollection<Uri>?

If provided, include posts with links pointing to any of these System.Uri.

embeddedAtUris ICollection<AtUri>?

If provided, include posts with embed any of the provided idunno.AtProto.AtUri.

hashTags ICollection<string>?

If provided, include posts with tagged with any of these hashtags. Do not include the hash (#) prefix.

excludeAuthors ICollection<AtIdentifier>?

If provided, exclude posts by any of these authors. idunno.AtProto.Handles are resolved to DIDs before searching.

excludeMentions ICollection<AtIdentifier>?

If provided, exclude posts that mention any of these accounts. idunno.AtProto.Handles are resolved to DIDs before searching.

excludeDomains ICollection<string>?

If provided, exclude posts that link to any of these domains.

excludeUrls ICollection<Uri>?

If provided, exclude posts with links pointing to any of these System.Uri.

excludeEmbeddedAtUris ICollection<AtUri>?

If provided, exclude posts with embed any of the provided idunno.AtProto.AtUri.

excludeHashTags ICollection<string>?

If provided, exclude posts with tagged with any of these hashtags. Do not include the hash (#) prefix.

since DateTimeOffset?

If provided, include posts indexed at or after this timestamp.

until DateTimeOffset?

If provided, include posts indexed before this timestamp.

allTime bool?

Optional flag indicating whether to search the full index instead of the recent-post window.

languages ICollection<string>?

If provided, include posts whose language matches any of these language codes.

excludeLanguages ICollection<string>?

If provided, exclude posts whose language matches any of these language codes.

hasMedia bool?

Optional flag indicating whether to only include posts with media.

hasVideo bool?

Optional flag indicating whether to only include posts with video.

replyParentUri AtUri?

If provided, Include only direct replies to this parent post idunno.AtProto.AtUri.

threadRootUri AtUri?

If provided, include only posts in the thread rooted at this post idunno.AtProto.AtUri.

excludeReplies bool?

Optional flag indicating whether to exclude replies from results. Mutually exclusive with repliesOnly.

repliesOnly bool?

Optional flag indicating whether to include only replies in results. Mutually exclusive with excludeReplies.

following bool?

Optional flag indicating whether to include only posts from accounts followed by the viewer.

queryLanguage string?

Optional Language analyzer hint for the query text. If unset, the server auto-detects when possible.

service Uri

The System.Uri of the service to retrieve search information from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

subscribedLabelers IEnumerable<Did>?

An optional list of idunno.AtProto.Dids of labelers to retrieve labels applied to the post view.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SearchV2Results>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown if service, accessCredentials, or httpClient is null.

ArgumentException

Thrown if any of the provided arguments are invalid.

SearchStarterPacks(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Find starter packs matching search criteria.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>> SearchStarterPacks(string q, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The maximum number of results to return.

cursor string?

The cursor for pagination.

service Uri

The System.Uri of the service to search starter packs from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when q, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

SearchStarterPacks(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Find starter packs matching search criteria.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>> SearchStarterPacks(string q, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The maximum number of results to return.

cursor string?

The cursor for pagination.

service Uri

The System.Uri of the service to search starter packs from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when q, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

SearchStarterPacks(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Find starter packs matching search criteria.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>> SearchStarterPacks(string q, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The maximum number of results to return.

cursor string?

The cursor for pagination.

service Uri

The System.Uri of the service to search starter packs from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<PagedViewReadOnlyCollection<StarterPackViewBasic>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when q, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

SearchStarterPacksV2(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Find starter packs matching search criteria.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SearchStarterPacksV2Result>> SearchStarterPacksV2(string q, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The maximum number of results to return.

cursor string?

The cursor for pagination.

service Uri

The System.Uri of the service to search starter packs from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SearchStarterPacksV2Result>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when q, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

SearchStarterPacksV2(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Find starter packs matching search criteria.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SearchStarterPacksV2Result>> SearchStarterPacksV2(string q, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The maximum number of results to return.

cursor string?

The cursor for pagination.

service Uri

The System.Uri of the service to search starter packs from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SearchStarterPacksV2Result>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when q, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

SearchStarterPacksV2(string, int?, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Find starter packs matching search criteria.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<SearchStarterPacksV2Result>> SearchStarterPacksV2(string q, int? limit, string? cursor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

q string

Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

limit int?

The maximum number of results to return.

cursor string?

The cursor for pagination.

service Uri

The System.Uri of the service to search starter packs from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<SearchStarterPacksV2Result>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when q, service, accessCredentials or httpClient is null.

ArgumentOutOfRangeException

Thrown when limit is less than 1 or greater than 100.

SendMessage(string, MessageInput, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Sends the specified idunno.Bluesky.Chat.MessageInput to the conversation identified by conversationId.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<MessageView>> SendMessage(string conversationId, MessageInput message, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to send the message to.

message MessageInput

The idunno.Bluesky.Chat.MessageInput to send.

service Uri

The System.Uri of the service to unmute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<MessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or empty.

ArgumentNullException

Thrown when message, accessCredentials, service or httpClient is null.

SendMessage(string, MessageInput, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Sends the specified idunno.Bluesky.Chat.MessageInput to the conversation identified by conversationId.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<MessageView>> SendMessage(string conversationId, MessageInput message, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to send the message to.

message MessageInput

The idunno.Bluesky.Chat.MessageInput to send.

service Uri

The System.Uri of the service to unmute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<MessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or empty.

ArgumentNullException

Thrown when message, accessCredentials, service or httpClient is null.

SendMessage(string, MessageInput, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Sends the specified idunno.Bluesky.Chat.MessageInput to the conversation identified by conversationId.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<MessageView>> SendMessage(string conversationId, MessageInput message, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to send the message to.

message MessageInput

The idunno.Bluesky.Chat.MessageInput to send.

service Uri

The System.Uri of the service to unmute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<MessageView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or empty.

ArgumentNullException

Thrown when message, accessCredentials, service or httpClient is null.

SendMessageBatch(ICollection<BatchedMessage>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Sends the specified batchedMessages.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ICollection<MessageView>>> SendMessageBatch(ICollection<BatchedMessage> batchedMessages, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

batchedMessages ICollection<BatchedMessage>

The collection of idunno.Bluesky.Chat.BatchedMessages to send.

service Uri

The System.Uri of the service to unmute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<MessageView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when batchedMessages, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when batchedMessages is empty or has greater than the maximum allowed number of messages.

SendMessageBatch(ICollection<BatchedMessage>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Sends the specified batchedMessages.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ICollection<MessageView>>> SendMessageBatch(ICollection<BatchedMessage> batchedMessages, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

batchedMessages ICollection<BatchedMessage>

The collection of idunno.Bluesky.Chat.BatchedMessages to send.

service Uri

The System.Uri of the service to unmute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<MessageView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when batchedMessages, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when batchedMessages is empty or has greater than the maximum allowed number of messages.

SendMessageBatch(ICollection<BatchedMessage>, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Sends the specified batchedMessages.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ICollection<MessageView>>> SendMessageBatch(ICollection<BatchedMessage> batchedMessages, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

batchedMessages ICollection<BatchedMessage>

The collection of idunno.Bluesky.Chat.BatchedMessages to send.

service Uri

The System.Uri of the service to unmute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ICollection<MessageView>>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when batchedMessages, accessCredentials, service or httpClient is null.

ArgumentOutOfRangeException

Thrown when batchedMessages is empty or has greater than the maximum allowed number of messages.

StartUpload(long, string, string?, long?, int?, int?, Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Start a multipart video upload. The declared size is exact, while optional media properties are advisory and used only for early failure; the authoritative probe runs asynchronously after upload.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<StartUploadResponse>> StartUpload(long size, string mimeType, string? name, long? duration, int? width, int? height, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

size long

Exact size, in bytes, of the complete upload-ready video file before it is split into parts.

mimeType string

Declared MIME type of the video.

name string?

An optional client-provided file name.

duration long?

An optional duration of the video in milliseconds.

width int?

An optional width of the video in pixels.

height int?

An optional height of the video in pixels.

service Uri

The URI of the service to which the video will be uploaded.

serviceCredential ServiceCredential

The credentials used to authenticate with the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<StartUploadResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentOutOfRangeException

Thrown when a provided argument is out of the allowable range.

ArgumentException

Thrown when a provided argument is invalid.

StartUpload(long, string, string?, long?, int?, int?, Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Start a multipart video upload. The declared size is exact, while optional media properties are advisory and used only for early failure; the authoritative probe runs asynchronously after upload.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<StartUploadResponse>> StartUpload(long size, string mimeType, string? name, long? duration, int? width, int? height, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

size long

Exact size, in bytes, of the complete upload-ready video file before it is split into parts.

mimeType string

Declared MIME type of the video.

name string?

An optional client-provided file name.

duration long?

An optional duration of the video in milliseconds.

width int?

An optional width of the video in pixels.

height int?

An optional height of the video in pixels.

service Uri

The URI of the service to which the video will be uploaded.

serviceCredential ServiceCredential

The credentials used to authenticate with the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<StartUploadResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentOutOfRangeException

Thrown when a provided argument is out of the allowable range.

ArgumentException

Thrown when a provided argument is invalid.

StartUpload(long, string, string?, long?, int?, int?, Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Start a multipart video upload. The declared size is exact, while optional media properties are advisory and used only for early failure; the authoritative probe runs asynchronously after upload.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<StartUploadResponse>> StartUpload(long size, string mimeType, string? name, long? duration, int? width, int? height, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

size long

Exact size, in bytes, of the complete upload-ready video file before it is split into parts.

mimeType string

Declared MIME type of the video.

name string?

An optional client-provided file name.

duration long?

An optional duration of the video in milliseconds.

width int?

An optional width of the video in pixels.

height int?

An optional height of the video in pixels.

service Uri

The URI of the service to which the video will be uploaded.

serviceCredential ServiceCredential

The credentials used to authenticate with the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<StartUploadResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentOutOfRangeException

Thrown when a provided argument is out of the allowable range.

ArgumentException

Thrown when a provided argument is invalid.

UnlockConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unlocks a group conversation so content (messages, reactions) can be added to it again.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> UnlockConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation to unlock.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentException

Thrown when conversationId is null or empty.

UnlockConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unlocks a group conversation so content (messages, reactions) can be added to it again.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> UnlockConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation to unlock.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentException

Thrown when conversationId is null or empty.

UnlockConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unlocks a group conversation so content (messages, reactions) can be added to it again.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> UnlockConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation to unlock.

service Uri

The System.Uri of the service to leave the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

ArgumentException

Thrown when conversationId is null or empty.

UnmuteActor(AtIdentifier, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes the specified account. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UnmuteActor(AtIdentifier actor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor to unmute

service Uri

The System.Uri of the service remote the mute from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actor, service, accessCredentials or httpClient are null.

UnmuteActor(AtIdentifier, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes the specified account. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UnmuteActor(AtIdentifier actor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor to unmute

service Uri

The System.Uri of the service remote the mute from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actor, service, accessCredentials or httpClient are null.

UnmuteActor(AtIdentifier, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes the specified account. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UnmuteActor(AtIdentifier actor, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

actor AtIdentifier

The idunno.AtProto.AtIdentifier of the actor to unmute

service Uri

The System.Uri of the service remote the mute from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of actor, service, accessCredentials or httpClient are null.

UnmuteActorList(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes the specified list of accounts. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UnmuteActorList(AtUri listUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

listUri AtUri

The idunno.AtProto.AtUri of the list of actors to unmute.

service Uri

The System.Uri of the service to remove the mutes from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of listUri, service, accessCredentials or httpClient are null.

UnmuteActorList(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes the specified list of accounts. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UnmuteActorList(AtUri listUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

listUri AtUri

The idunno.AtProto.AtUri of the list of actors to unmute.

service Uri

The System.Uri of the service to remove the mutes from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of listUri, service, accessCredentials or httpClient are null.

UnmuteActorList(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes the specified list of accounts. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UnmuteActorList(AtUri listUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

listUri AtUri

The idunno.AtProto.AtUri of the list of actors to unmute.

service Uri

The System.Uri of the service to remove the mutes from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of listUri, service, accessCredentials or httpClient are null.

UnmuteConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes the conversation identified by conversationId.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> UnmuteConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to unmute.

service Uri

The System.Uri of the service to unmute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

UnmuteConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes the conversation identified by conversationId.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> UnmuteConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to unmute.

service Uri

The System.Uri of the service to unmute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

UnmuteConversation(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes the conversation identified by conversationId.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> UnmuteConversation(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to unmute.

service Uri

The System.Uri of the service to unmute the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or empty.

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

UnmuteThread(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes a thread. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UnmuteThread(AtUri rootUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

rootUri AtUri

The idunno.AtProto.AtUri of the thread to unmute

service Uri

The System.Uri of the service remove the mute from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of rootUri, service, accessCredentials or httpClient are null.

UnmuteThread(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes a thread. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UnmuteThread(AtUri rootUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

rootUri AtUri

The idunno.AtProto.AtUri of the thread to unmute

service Uri

The System.Uri of the service remove the mute from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of rootUri, service, accessCredentials or httpClient are null.

UnmuteThread(AtUri, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Unmutes a thread. Requires authentication.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UnmuteThread(AtUri rootUri, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

rootUri AtUri

The idunno.AtProto.AtUri of the thread to unmute

service Uri

The System.Uri of the service remove the mute from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of rootUri, service, accessCredentials or httpClient are null.

UpdateAllRead(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Marks all conversations with the specified status as read.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ulong?>> UpdateAllRead(string status, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

status string

The status of the conversations to mark as read. Known values are held in idunno.Bluesky.Chat.ConversationStatus.

service Uri

The System.Uri of the service to mark the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ulong?>>

The task object representing the asynchronous operation.

Remarks

The result is null if the API call failed, which is distinct from a successful call which marked no conversations as read.

Exceptions

ArgumentNullException

Thrown when status, accessCredentials, service or httpClient is null.

UpdateAllRead(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Marks all conversations with the specified status as read.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ulong?>> UpdateAllRead(string status, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

status string

The status of the conversations to mark as read. Known values are held in idunno.Bluesky.Chat.ConversationStatus.

service Uri

The System.Uri of the service to mark the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ulong?>>

The task object representing the asynchronous operation.

Remarks

The result is null if the API call failed, which is distinct from a successful call which marked no conversations as read.

Exceptions

ArgumentNullException

Thrown when status, accessCredentials, service or httpClient is null.

UpdateAllRead(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Marks all conversations with the specified status as read.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ulong?>> UpdateAllRead(string status, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

status string

The status of the conversations to mark as read. Known values are held in idunno.Bluesky.Chat.ConversationStatus.

service Uri

The System.Uri of the service to mark the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ulong?>>

The task object representing the asynchronous operation.

Remarks

The result is null if the API call failed, which is distinct from a successful call which marked no conversations as read.

Exceptions

ArgumentNullException

Thrown when status, accessCredentials, service or httpClient is null.

UpdateDraft(DraftWithId, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Updates the draft for the authenticated user. If the draft ID points to a non-existing ID, the update will be silently ignored.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UpdateDraft(DraftWithId draftWithId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

draftWithId DraftWithId

The idunno.Bluesky.Drafts.DraftWithId to create.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of draftWithId, service, accessCredentials or httpClient are null.

UpdateDraft(DraftWithId, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Updates the draft for the authenticated user. If the draft ID points to a non-existing ID, the update will be silently ignored.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UpdateDraft(DraftWithId draftWithId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

draftWithId DraftWithId

The idunno.Bluesky.Drafts.DraftWithId to create.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of draftWithId, service, accessCredentials or httpClient are null.

UpdateDraft(DraftWithId, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Updates the draft for the authenticated user. If the draft ID points to a non-existing ID, the update will be silently ignored.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Get().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UpdateDraft(DraftWithId draftWithId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

draftWithId DraftWithId

The idunno.Bluesky.Drafts.DraftWithId to create.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of draftWithId, service, accessCredentials or httpClient are null.

UpdateJoinGroupRequestsRead(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Marks all join requests as read for the group owner.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UpdateJoinGroupRequestsRead(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation whose join requests should be marked as read.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or whitespace.

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

UpdateJoinGroupRequestsRead(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Marks all join requests as read for the group owner.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UpdateJoinGroupRequestsRead(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation whose join requests should be marked as read.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or whitespace.

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

UpdateJoinGroupRequestsRead(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Marks all join requests as read for the group owner.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UpdateJoinGroupRequestsRead(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation whose join requests should be marked as read.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or whitespace.

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

UpdateNotificationSeenAt(DateTimeOffset, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Updates the time notifications were last seen for the current account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UpdateNotificationSeenAt(DateTimeOffset seenAt, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

seenAt DateTimeOffset

The date and time notifications were last checked.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

UpdateNotificationSeenAt(DateTimeOffset, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Updates the time notifications were last seen for the current account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UpdateNotificationSeenAt(DateTimeOffset seenAt, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

seenAt DateTimeOffset

The date and time notifications were last checked.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

UpdateNotificationSeenAt(DateTimeOffset, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Updates the time notifications were last seen for the current account.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> UpdateNotificationSeenAt(DateTimeOffset seenAt, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

seenAt DateTimeOffset

The date and time notifications were last checked.

service Uri

The System.Uri of the service to retrieve the profile from.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

Thrown when any of service, accessCredentials or httpClient are null.

UpdateRead(string, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Marks a conversation, and optionally a message, as read.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> UpdateRead(string conversationId, string? messageId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to mark as read.

messageId string?

The message identifier in the conversation identified by conversationId to mark as read.

service Uri

The System.Uri of the service to mark the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or whitespace, messageId is empty or whitespace,

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

UpdateRead(string, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Marks a conversation, and optionally a message, as read.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> UpdateRead(string conversationId, string? messageId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to mark as read.

messageId string?

The message identifier in the conversation identified by conversationId to mark as read.

service Uri

The System.Uri of the service to mark the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or whitespace, messageId is empty or whitespace,

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

UpdateRead(string, string?, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Marks a conversation, and optionally a message, as read.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<ConversationView>> UpdateRead(string conversationId, string? messageId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The conversation identifier to mark as read.

messageId string?

The message identifier in the conversation identified by conversationId to mark as read.

service Uri

The System.Uri of the service to mark the conversation on.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials to use when accessing the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<ConversationView>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or whitespace, messageId is empty or whitespace,

ArgumentNullException

Thrown when accessCredentials, service or httpClient is null.

UploadPart(string, long, byte[], Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Upload one part of a multi-part upload started with idunno.Bluesky.BlueskyServer.StartUpload(System.Int64,System.String,System.String,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Uri,idunno.AtProto.Authentication.ServiceCredential,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILoggerFactory,System.Int32,System.Threading.CancellationToken). Parts are idempotent and may be retried or re-sent while the session is created. Each expected length is derived from the upload size and part size, and Content-Length must match exactly. ETags are never exposed to clients.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<UploadPartResponse>> UploadPart(string jobId, long part, byte[] bytes, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id of the upload to which this part belongs.

part long

The part number of the part being uploaded.

bytes byte[]

The bytes of the part being uploaded.

service Uri

The URI of the service to which the video will be uploaded.

serviceCredential ServiceCredential

The credentials used to authenticate with the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UploadPartResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentOutOfRangeException

Thrown when a provided argument is out of the allowable range.

ArgumentException

Thrown when a provided argument is invalid.

UploadPart(string, long, byte[], Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Upload one part of a multi-part upload started with idunno.Bluesky.BlueskyServer.StartUpload(System.Int64,System.String,System.String,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Uri,idunno.AtProto.Authentication.ServiceCredential,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILoggerFactory,System.Int32,System.Threading.CancellationToken). Parts are idempotent and may be retried or re-sent while the session is created. Each expected length is derived from the upload size and part size, and Content-Length must match exactly. ETags are never exposed to clients.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<UploadPartResponse>> UploadPart(string jobId, long part, byte[] bytes, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id of the upload to which this part belongs.

part long

The part number of the part being uploaded.

bytes byte[]

The bytes of the part being uploaded.

service Uri

The URI of the service to which the video will be uploaded.

serviceCredential ServiceCredential

The credentials used to authenticate with the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UploadPartResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentOutOfRangeException

Thrown when a provided argument is out of the allowable range.

ArgumentException

Thrown when a provided argument is invalid.

UploadPart(string, long, byte[], Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Upload one part of a multi-part upload started with idunno.Bluesky.BlueskyServer.StartUpload(System.Int64,System.String,System.String,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Uri,idunno.AtProto.Authentication.ServiceCredential,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILoggerFactory,System.Int32,System.Threading.CancellationToken). Parts are idempotent and may be retried or re-sent while the session is created. Each expected length is derived from the upload size and part size, and Content-Length must match exactly. ETags are never exposed to clients.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<UploadPartResponse>> UploadPart(string jobId, long part, byte[] bytes, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

jobId string

The job id of the upload to which this part belongs.

part long

The part number of the part being uploaded.

bytes byte[]

The bytes of the part being uploaded.

service Uri

The URI of the service to which the video will be uploaded.

serviceCredential ServiceCredential

The credentials used to authenticate with the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<UploadPartResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentOutOfRangeException

Thrown when a provided argument is out of the allowable range.

ArgumentException

Thrown when a provided argument is invalid.

UploadVideo(Did, string, string, byte[], Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Uploads media to be processed and stored on the specified service.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<JobStatus>> UploadVideo(Did did, string fileName, string mimeType, byte[] media, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

did Did

The idunno.AtProto.Did of the account uploading the media.

fileName string

The filename of the media.

mimeType string

The MIME type of the media.

media byte[]

The media to upload.

service Uri

The System.Uri of the service to upload media to.

serviceCredential ServiceCredential

AccessCredentials for service access used to authenticate against the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<JobStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when fileName is null or empty, or when mimeType is null, whitespace, or is not a valid media type.

ArgumentNullException

Thrown when any of did, serviceCredential, media, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when media is empty, or when mimeType is outside the allowable length.

UploadVideo(Did, string, string, byte[], Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Uploads media to be processed and stored on the specified service.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<JobStatus>> UploadVideo(Did did, string fileName, string mimeType, byte[] media, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

did Did

The idunno.AtProto.Did of the account uploading the media.

fileName string

The filename of the media.

mimeType string

The MIME type of the media.

media byte[]

The media to upload.

service Uri

The System.Uri of the service to upload media to.

serviceCredential ServiceCredential

AccessCredentials for service access used to authenticate against the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<JobStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when fileName is null or empty, or when mimeType is null, whitespace, or is not a valid media type.

ArgumentNullException

Thrown when any of did, serviceCredential, media, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when media is empty, or when mimeType is outside the allowable length.

UploadVideo(Did, string, string, byte[], Uri, ServiceCredential, HttpClient, ILoggerFactory?, int, CancellationToken)

Uploads media to be processed and stored on the specified service.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<JobStatus>> UploadVideo(Did did, string fileName, string mimeType, byte[] media, Uri service, ServiceCredential serviceCredential, HttpClient httpClient, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

did Did

The idunno.AtProto.Did of the account uploading the media.

fileName string

The filename of the media.

mimeType string

The MIME type of the media.

media byte[]

The media to upload.

service Uri

The System.Uri of the service to upload media to.

serviceCredential ServiceCredential

AccessCredentials for service access used to authenticate against the service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<JobStatus>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when fileName is null or empty, or when mimeType is null, whitespace, or is not a valid media type.

ArgumentNullException

Thrown when any of did, serviceCredential, media, service or httpClient are null.

ArgumentOutOfRangeException

Thrown when media is empty, or when mimeType is outside the allowable length.

WithdrawJoinGroupRequest(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Withdraws a pending request to join a group.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> WithdrawJoinGroupRequest(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation whose join request should be withdrawn.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or whitespace.

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

WithdrawJoinGroupRequest(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Withdraws a pending request to join a group.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> WithdrawJoinGroupRequest(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation whose join request should be withdrawn.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or whitespace.

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.

WithdrawJoinGroupRequest(string, Uri, AccessCredentials, HttpClient, Func<AtProtoCredential, CancellationToken, Task>?, ILoggerFactory?, int, CancellationToken)

Withdraws a pending request to join a group.

[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", Justification = "All types are preserved in the JsonSerializerOptions call to Post().")]
public static Task<AtProtoHttpResult<EmptyResponse>> WithdrawJoinGroupRequest(string conversationId, Uri service, AccessCredentials accessCredentials, HttpClient httpClient, Func<AtProtoCredential, CancellationToken, Task>? onCredentialsUpdated = null, ILoggerFactory? loggerFactory = null, int maximumResponseSize = 33554432, CancellationToken cancellationToken = default)

Parameters

conversationId string

The ID of the conversation whose join request should be withdrawn.

service Uri

The System.Uri of the service to call.

accessCredentials AccessCredentials

The idunno.AtProto.Authentication.AccessCredentials used to authenticate to service.

httpClient HttpClient

An System.Net.Http.HttpClient to use when making a request to the service.

onCredentialsUpdated Func<AtProtoCredential, CancellationToken, Task>?

An System.Func`3 to await if the credentials in the request need updating.

loggerFactory ILoggerFactory?

An instance of Microsoft.Extensions.Logging.ILoggerFactory to use to create a logger.

maximumResponseSize int

The maximum number of bytes to read from the response body.

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<AtProtoHttpResult<EmptyResponse>>

The task object representing the asynchronous operation.

Exceptions

ArgumentException

Thrown when conversationId is null or whitespace.

ArgumentNullException

Thrown when service, accessCredentials or httpClient is null.