CreateOOBPresentationRequest
@hyperledger/identus-sdk v7.0.0
@hyperledger/identus-sdk / overview / CreateOOBPresentationRequest
Class: CreateOOBPresentationRequest
Defined in: src/edge-agent/didcomm/CreateOOBPresentationRequest.ts:34
Task class for creating out-of-band (OOB) presentation request invitations.
This class generates a base64-encoded JSON string representing an OOB invitation that includes a presentation request attachment. The invitation can be shared with potential credential holders to initiate the presentation verification flow.
Extends
- Task<- string,- CreateOOBPresentationRequestArgs>
Constructors
Constructor
new CreateOOBPresentationRequest(...
args: [CreateOOBPresentationRequestArgs]):CreateOOBPresentationRequest
Defined in: src/utils/tasks.ts:18
Parameters
| Parameter | Type | Description | 
|---|---|---|
| ... args | [ CreateOOBPresentationRequestArgs] | 
Returns
CreateOOBPresentationRequest
Inherited from
Accessors
attachments
Get Signature
get attachments():
AttachmentDescriptor[]
Defined in: src/edge-agent/didcomm/CreateOOBPresentationRequest.ts:53
Gets the attachments for the out-of-band invitation.
Returns
Array containing the presentation request as an attachment descriptor
oobBody
Get Signature
get oobBody(): {
accept:string[];goal:string;goal_code:string; }
Defined in: src/edge-agent/didcomm/CreateOOBPresentationRequest.ts:40
Gets the body configuration for the out-of-band invitation.
Returns
{ accept: string[]; goal: string; goal_code: string; }
The OOB invitation body with goal code, goal description, and accepted protocols
| Name | Type | Defined in | 
|---|---|---|
| accept | string[] | src/edge-agent/didcomm/CreateOOBPresentationRequest.ts:44 | 
| goal | string | src/edge-agent/didcomm/CreateOOBPresentationRequest.ts:43 | 
| goal_code | string | src/edge-agent/didcomm/CreateOOBPresentationRequest.ts:42 | 
Methods
log()
log():
unknown
Defined in: src/utils/tasks.ts:26
Returns
unknown
Inherited from
run()
run(
_ctx:AgentContext):Promise<string>
Defined in: src/edge-agent/didcomm/CreateOOBPresentationRequest.ts:74
Executes the task to create an out-of-band presentation request invitation.
This method validates the provided presentation request, generates a unique invitation ID, creates the OOB invitation structure, and returns it as a base64-encoded string.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| _ctx | AgentContext | The agent context (not used in current implementation) | 
Returns
Promise<string>
A Promise that resolves to a base64-encoded OOB invitation string
Throws
When the provided presentation request is invalid or not an instance of RequestPresentation