Class: IdentityAuthorizations
Defined in: src/api/entities/Identity/IdentityAuthorizations.ts:12
Handles all Identity Authorization related functionality
Extends
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
Inherited from
Authorizations.getHistoricalAuthorizations
getOne()
getOne(
args:object):Promise<AuthorizationRequest>
Defined in: src/api/entities/Identity/IdentityAuthorizations.ts:60
Retrieve a single Authorization Request targeting or issued by this Identity by its ID
Parameters
| Parameter | Type |
|---|---|
| { |
|
|
Returns
Promise<AuthorizationRequest>
Throws
if there is no Authorization Request with the passed ID targeting or issued by this Identity
Overrides
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[]>
Inherited from
getSent()
getSent(
paginationOpts?:PaginationOptions):Promise<ResultSet<AuthorizationRequest>>
Defined in: src/api/entities/Identity/IdentityAuthorizations.ts:18
Fetch all pending authorization requests issued by this Identity
Parameters
| Parameter | Type |
|---|---|
|
Returns
Promise<ResultSet<AuthorizationRequest>>
Note
supports pagination