AuthorizationRequest

Represents a request made by an Identity to another Identity (or Account) for some sort of authorization. This has multiple uses. For example, if Alice wants to transfer ownership of one of her Assets to Bob, this method emits an authorization request for Bob, who then has to accept it in order to complete the ownership transfer

Hierarchy

Index

Properties

Methods

Properties

authId

• authId: BigNumber

Defined in src/api/entities/AuthorizationRequest.ts:99arrow-up-right

internal identifier for the Request (used to accept/reject/cancel)


Protected context

• context: Context

Inherited from CheckpointSchedule.context

Defined in src/api/entities/Entity.ts:48arrow-up-right


data

• data: Authorization

Defined in src/api/entities/AuthorizationRequest.ts:88arrow-up-right

Authorization Request data corresponding to type of Authorization

Type
Data

Add Relayer Paying Key

Beneficiary, Relayer, Allowance

Become Agent

Permission Group

Attest Primary Key Rotation

DID

Rotate Primary Key

N/A

Rotate Primary Key to Secondary

Permissions

Transfer Ticker

Ticker

Add MultiSig Signer

Account

Transfer Asset Ownership

Ticker

Join Identity

Permissions

Portfolio Custody

Portfolio


expiry

• expiry: Date | null

Defined in src/api/entities/AuthorizationRequest.ts:94arrow-up-right

date at which the Authorization Request expires and can no longer be accepted. At this point, a new Authorization Request must be emitted. Null if the Request never expires


issuer

• issuer: Identity

Defined in src/api/entities/AuthorizationRequest.ts:70arrow-up-right

Identity that emitted the request


target

• target: Signer

Defined in src/api/entities/AuthorizationRequest.ts:65arrow-up-right

Identity or Account to which the request was emitted


uuid

• uuid: string

Inherited from CheckpointSchedule.uuid

Defined in src/api/entities/Entity.ts:46arrow-up-right

Methods

accept

▸ accept(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/AuthorizationRequest.ts:183arrow-up-right

Accept the Authorization Request. You must be the target of the Request to be able to accept it

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call accept.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


exists

▸ exists(): Promise‹boolean›

Overrides Entity.exists

Defined in src/api/entities/AuthorizationRequest.ts:212arrow-up-right

Determine whether this Authorization Request exists on chain

Returns: Promise‹boolean›


isEqual

▸ isEqual(entity: Entity‹unknown, unknown›): boolean

Inherited from CheckpointSchedule.isEqual

Defined in src/api/entities/Entity.ts:61arrow-up-right

Determine whether this Entity is the same as another one

Parameters:

Name
Type

entity

Entity‹unknown, unknown›

Returns: boolean


isExpired

â–¸ isExpired(): boolean

Defined in src/api/entities/AuthorizationRequest.ts:203arrow-up-right

Returns whether the Authorization Request has expired

Returns: boolean


remove

▸ remove(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/AuthorizationRequest.ts:196arrow-up-right

Remove the Authorization Request

  • If you are the Request issuer, this will cancel the Authorization

  • If you are the Request target, this will reject the Authorization

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call remove.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


toJson

â–¸ toJson(): HumanReadablearrow-up-right

Overrides Entity.toJson

Defined in src/api/entities/AuthorizationRequest.ts:226arrow-up-right

Return the Authorization's static data

Returns: HumanReadablearrow-up-right


Static generateUuid

▸ generateUuid‹Identifiers›(identifiers: Identifiers): string

Inherited from CheckpointSchedule.generateUuid

Defined in src/api/entities/Entity.ts:14arrow-up-right

Generate the Entity's UUID from its identifying properties

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

identifiers

Identifiers

Returns: string


Static unserialize

▸ unserialize‹Identifiers›(serialized: string): Identifiers

Inherited from CheckpointSchedule.unserialize

Defined in src/api/entities/Entity.ts:23arrow-up-right

Unserialize a UUID into its Unique Identifiers

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

serialized

string

UUID to unserialize

Returns: Identifiers

Last updated

Was this helpful?