Initializes a permissions object for an account associated with the specified client id and secret.
The account client id.
The account client secret.
Returns whether the account has access to the specified endpoint or destination.
Returns a Promise containing the permissions data, fetching the data from the API initially if required.
Returns whether the listeners are registered for the specified event name.
A Boolean value indicating if permissions have been loaded.
A Boolean value indicating if permissions data is currently being requested from the API.
Removes a registered listener function for the specified event.
Name of the event to remove the listener for.
Handler function to remove so it won't be executed next time the event is triggered.
Registers a listener function to be executed each time an event occurs
Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.
Handler function to be called when the event occurs
Registers a listener function to be executed the first time an event occurs.
Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.
Handler function to be called when the event occurs
Triggers the specified event so that all registered listeners will be executed with the specified parameters.
Event name to trigger
Generated using TypeDoc
A
Permissions
object is responsible for requesting and storing access permissions information associated with an Aeris API account.