Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132<?php
declare(strict_types=1);
namespace Wotnak\Atproto\Auth\Permission;
/** * Defines a granular AT Protocol permission. * * @api */interface PermissionInterface {
/** * Returns the permission resource identifier. */ public function resource(): string;
/** * Returns the canonical OAuth scope. */ public function toScope(): string;
/** * Returns the Lexicon permission declaration. * * @return array<string, mixed> */ public function toLexiconPermission(): array;
}