comAtprotoSpaceImportRepo function

Future<XRPCResponse<EmptyData>> comAtprotoSpaceImportRepo({
  1. required Uint8List bytes,
  2. required ServiceContext $ctx,
  3. String? $service,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $parameters,
})

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,
);