Class: Authorizations<Parent>
Defined in: src/api/entities/common/namespaces/Authorizations.ts:35
Handles all Authorization related functionality
Extends
Namespace<Parent>
Extended by
Type Parameters
| Type Parameter |
|---|
|
Methods
getHistoricalAuthorizations()
getHistoricalAuthorizations(
opts?:object):Promise<ResultSet<AuthorizationRequest>>
Defined in: src/api/entities/common/namespaces/Authorizations.ts:159
Fetch all historical Authorization Requests for which this Signer is the target
Parameters
| Parameter | Type | Description |
|---|---|---|
| { | ‐ |
|
| page size |
|
| page offset |
| fetch only authorizations with this status. Fetches all statuses if not passed | |
| fetch only authorizations of this type. Fetches all types if not passed |
Returns
Promise<ResultSet<AuthorizationRequest>>
Note
supports pagination
Note
uses the middlewareV2
getOne()
getOne(
args:object):Promise<AuthorizationRequest>
Defined in: src/api/entities/common/namespaces/Authorizations.ts:89
Retrieve a single Authorization Request targeting this Signer by its ID
Parameters
| Parameter | Type |
|---|---|
| { |
|
|
Returns
Promise<AuthorizationRequest>
Throws
if there is no Authorization Request with the passed ID targeting this Signer
getReceived()
getReceived(
opts?:object):Promise<AuthorizationRequest[]>
Defined in: src/api/entities/common/namespaces/Authorizations.ts:42
Fetch all pending Authorization Requests for which this Signer is the target
Parameters
| Parameter | Type | Description |
|---|---|---|
| { | ‐ |
|
| whether to include expired authorizations. Defaults to true |
| fetch only authorizations of this type. Fetches all types if not passed |
Returns
Promise<AuthorizationRequest[]>