diff --git a/src/controllers/credentials/CredentialController.ts b/src/controllers/credentials/CredentialController.ts index bf870114..6d1a218d 100644 --- a/src/controllers/credentials/CredentialController.ts +++ b/src/controllers/credentials/CredentialController.ts @@ -221,6 +221,7 @@ export class CredentialController extends Controller { handshakeProtocols: [HandshakeProtocol.Connections], messages: [credentialMessage], autoAcceptConnection: true, + imageUrl: outOfBandOption?.imageUrl, }) return { invitationUrl: outOfBandRecord.outOfBandInvitation.toUrl({ diff --git a/src/controllers/multi-tenancy/MultiTenancyController.ts b/src/controllers/multi-tenancy/MultiTenancyController.ts index 7f7ef44e..f60486fc 100644 --- a/src/controllers/multi-tenancy/MultiTenancyController.ts +++ b/src/controllers/multi-tenancy/MultiTenancyController.ts @@ -50,9 +50,7 @@ import { BCOVRIN_REGISTER_URL, INDICIO_NYM_URL } from '../../utils/util' import { SchemaId, CredentialDefinitionId, RecordId, ProofRecordExample, ConnectionRecordExample } from '../examples' import { RequestProofOptions, - CreateOfferOobOptions, CreateOfferOptions, - CreateProofRequestOobOptions, CreateTenantOptions, DidCreate, DidNymTransaction, @@ -60,6 +58,8 @@ import { ReceiveInvitationByUrlProps, ReceiveInvitationProps, WriteTransaction, + CreateProofRequestOobOptions, + CreateOfferOobOptions, } from '../types' import { @@ -888,6 +888,7 @@ export class MultiTenancyController extends Controller { }, options: {}, }) + if (!credentialDefinitionState?.credentialDefinitionId) { throw new Error('Credential Definition Id not found') } @@ -1017,6 +1018,7 @@ export class MultiTenancyController extends Controller { handshakeProtocols: [HandshakeProtocol.Connections], messages: [credentialMessage], autoAcceptConnection: true, + imageUrl: createOfferOptions?.imageUrl, }) createOfferOobRecord = { @@ -1219,6 +1221,7 @@ export class MultiTenancyController extends Controller { handshakeProtocols: [HandshakeProtocol.Connections], messages: [proofMessage], autoAcceptConnection: true, + imageUrl: createRequestOptions?.imageUrl, }) oobProofRecord = { diff --git a/src/controllers/proofs/ProofController.ts b/src/controllers/proofs/ProofController.ts index c787c7dc..60297e32 100644 --- a/src/controllers/proofs/ProofController.ts +++ b/src/controllers/proofs/ProofController.ts @@ -183,6 +183,7 @@ export class ProofController extends Controller { handshakeProtocols: [HandshakeProtocol.Connections], messages: [proofMessage], autoAcceptConnection: true, + imageUrl: createRequestOptions?.imageUrl, }) return { diff --git a/src/controllers/types.ts b/src/controllers/types.ts index 3080307f..9c8d5276 100644 --- a/src/controllers/types.ts +++ b/src/controllers/types.ts @@ -121,6 +121,7 @@ export interface CreateOfferOobOptions { parentThreadId?: string willConfirm?: boolean label?: string + imageUrl?: string } export interface CredentialCreateOfferOptions { credentialRecord: CredentialExchangeRecord @@ -138,6 +139,7 @@ export interface CreateProofRequestOobOptions { autoAcceptProof?: AutoAcceptProof comment?: string label?: string + imageUrl?: string } export interface OfferCredentialOptions { diff --git a/src/routes/routes.ts b/src/routes/routes.ts index c53c9efa..c02697a7 100644 --- a/src/routes/routes.ts +++ b/src/routes/routes.ts @@ -545,6 +545,7 @@ const models: TsoaRoute.Models = { "parentThreadId": {"dataType":"string"}, "willConfirm": {"dataType":"boolean"}, "label": {"dataType":"string"}, + "imageUrl": {"dataType":"string"}, }, "additionalProperties": false, }, @@ -601,6 +602,7 @@ const models: TsoaRoute.Models = { "autoAcceptProof": {"ref":"AutoAcceptProof"}, "comment": {"dataType":"string"}, "label": {"dataType":"string"}, + "imageUrl": {"dataType":"string"}, }, "additionalProperties": false, }, diff --git a/src/routes/swagger.json b/src/routes/swagger.json index bad7d7c7..9d54db31 100644 --- a/src/routes/swagger.json +++ b/src/routes/swagger.json @@ -1202,6 +1202,9 @@ }, "label": { "type": "string" + }, + "imageUrl": { + "type": "string" } }, "required": [ @@ -1322,6 +1325,9 @@ }, "label": { "type": "string" + }, + "imageUrl": { + "type": "string" } }, "required": [