core library

Classes

AtUri
This is the Dart implementation of AT Uri in AT Protocol.
AuthToken
Represents an issued token associated session.
Blob
https://atproto.com/specs/data-model#blob-type
BlobConverter
BlobRef
https://atproto.com/specs/data-model#blob-type
CID
This is a simple implementation of V1 CID, or a content identifier. CID is a label used to point to material in IPFS.
EmptyData
An object representing a state that is empty instead of null.
Jitter
NSID
This is the Dart implementation of NSID in AT Protocol.
RateLimit
Represents the rate limit applied to an API or a service.
RateLimitPolicy
Represents a policy for rate limiting.
RetryConfig
This class represents an automatic retry configuration.
RetryEvent
This class represents the event during the retry process.
Serializable
Session
Represents a user session.
XRPCError
XRPCRequest
A class that represents a Request sent during XRPC communication.
XRPCResponse<D>
The class represents the response from ATP server.

Enums

AuthScope
HttpMethod
HttpStatus
Multicodec
Represents multicodecs types.
Protocol

Extensions

SessionExtension on Session

Functions

decodeJwt(String jwt) AuthToken
Returns the decoded AuthToken based on jwt.
isValidAppPassword(String appPassword) bool
Checks if a given application password is valid based on a predefined regular expression pattern.

Typedefs

GetClient = Future<Response> Function(Uri url, {Map<String, String>? headers})
A function type abstracted from http.get, mainly for mocking at test time.
PostClient = Future<Response> Function(Uri url, {Object? body, Encoding? encoding, Map<String, String>? headers})
A function type abstracted from http.post, mainly for mocking at test time.
ResponseDataAdaptor = Map<String, dynamic> Function(dynamic data)
Function to convert response data to an specific structure.
ResponseDataBuilder<T> = T Function(Map<String, Object?> json)
A function type that expresses the function of converting response body to model objects.

Exceptions / Errors

InternalServerErrorException
InvalidCidError
Indicates that the passed CID could not be parsed.
InvalidRequestException
RateLimitExceededException
UnauthorizedException
XRPCException
This exception indicates that an unexpected error occurred when communicating with the ATP server.
XRPCNotSupportedException