comAtprotoSpaceImportRepo function
Import the authenticated account's space repo from a STAR file, for account migration. If the account is the space's authority, the space must first be imported with importSpaceMeta. Requires auth, implemented by PDS.
Implementation
Future<XRPCResponse<EmptyData>> comAtprotoSpaceImportRepo({
required Uint8List bytes,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $parameters,
}) async => await $ctx.post(
ns.comAtprotoSpaceImportRepo,
service: $service,
headers: {'Content-type': 'application/vnd.dasl.star', ...?$headers},
parameters: $parameters,
body: bytes,
);