comAtprotoManagedspaceCheckAccess function

Future<XRPCResponse<ManagedspaceCheckAccessOutput>> comAtprotoManagedspaceCheckAccess({
  1. required String space,
  2. String? repo,
  3. String? clientId,
  4. required ServiceContext $ctx,
  5. String? $service,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

Check an account's read and write access to a managed space. Called by the space host, implemented by the space's managing app. Requires service auth.

Implementation

Future<XRPCResponse<ManagedspaceCheckAccessOutput>>
comAtprotoManagedspaceCheckAccess({
  required String space,
  String? repo,
  String? clientId,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoManagedspaceCheckAccess,
  service: $service,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'space': space,
    if (repo != null) 'repo': repo,
    if (clientId != null) 'clientId': clientId,
  },
  to: const ManagedspaceCheckAccessOutputConverter().fromJson,
);