File tree Expand file tree Collapse file tree
packages/core/src/delegation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import {logger} from '@docknetwork/wallet-sdk-data-store/src/logger';
44import { getAllDIDs , getDefaultDID } from '../did-provider' ;
55import { delegateCredential } from './delegation-issuance' ;
66import { getDelegationChain } from './delegation-chain' ;
7- import { getDelegationDetails } from './delegation-policy' ;
7+ import { getDelegationDetails , getRole } from './delegation-policy' ;
88import { isDelegatableCredential } from './delegation-utils' ;
99import {
1010 assertPolicyConformsToParent ,
@@ -52,6 +52,7 @@ export type DelegationOfferPreview = {
5252 issuerDID : string ;
5353 issuerName ?: string ;
5454 role : string ;
55+ roleLabel ?: string ;
5556 createdAt : string ;
5657 expiresAt ?: string ;
5758} ;
@@ -148,6 +149,8 @@ export function createOOBInvitation(
148149 issuerDID : issuerDID ,
149150 issuerName : finalIssuerName ,
150151 role : delegationOffer . delegationRole ,
152+ roleLabel : getRole ( delegationOffer . delegationRole , delegationOffer . delegationPolicy )
153+ ?. label ,
151154 createdAt : delegationOffer . sentAt ,
152155 expiresAt : delegationOffer . expiresAt ,
153156 } ;
You can’t perform that action at this time.
0 commit comments