RepoService class base
com.atproto.repo.*
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyWrites(
{required String repo, bool? validate, required List< URepoApplyWritesWrites> writes, String? swapCommit, Map<String, String> ? $headers, Map<String, String> ? $unknown}) → Future<XRPCResponse< RepoApplyWritesOutput> > - Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.
-
createRecord(
{required String repo, required String collection, String? rkey, bool? validate, required Map< String, dynamic> record, String? swapCommit, Map<String, String> ? $headers, Map<String, String> ? $unknown}) → Future<XRPCResponse< RepoCreateRecordOutput> > - Create a single new repository record. Requires auth, implemented by PDS.
-
deleteRecord(
{required String repo, required String collection, required String rkey, String? swapRecord, String? swapCommit, Map< String, String> ? $headers, Map<String, String> ? $unknown}) → Future<XRPCResponse< RepoDeleteRecordOutput> > - Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.
-
describeRepo(
{required String repo, Map< String, String> ? $headers, Map<String, String> ? $unknown}) → Future<XRPCResponse< RepoDescribeRepoOutput> > - Get information about an account and repository, including the list of collections. Does not require auth.
-
getRecord(
{required String repo, required String collection, required String rkey, String? cid, Map< String, String> ? $headers, Map<String, String> ? $unknown}) → Future<XRPCResponse< RepoGetRecordOutput> > - Get a single record from a repository. Does not require auth.
-
importRepo(
{required Uint8List bytes, Map< String, String> ? $headers, Map<String, String> ? $parameters}) → Future<XRPCResponse< EmptyData> > - Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.
-
listMissingBlobs(
{int? limit, String? cursor, Map< String, String> ? $headers, Map<String, String> ? $unknown}) → Future<XRPCResponse< RepoListMissingBlobsOutput> > - Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.
-
listRecords(
{required String repo, required String collection, int? limit, String? cursor, bool? reverse, Map< String, String> ? $headers, Map<String, String> ? $unknown}) → Future<XRPCResponse< RepoListRecordsOutput> > - List a range of records in a repository, matching a specific collection. Does not require auth.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putRecord(
{required String repo, required String collection, required String rkey, bool? validate, required Map< String, dynamic> record, String? swapRecord, String? swapCommit, Map<String, String> ? $headers, Map<String, String> ? $unknown}) → Future<XRPCResponse< RepoPutRecordOutput> > - Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS.
-
toString(
) → String -
A string representation of this object.
inherited
-
uploadBlob(
{required Uint8List bytes, Map< String, String> ? $headers, Map<String, String> ? $parameters}) → Future<XRPCResponse< RepoUploadBlobOutput> > - Upload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited