Skip to content

Commit

Permalink
Fix ProposalRequestCredential
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed Jan 23, 2025
1 parent facc33b commit c64d7bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/iden3comm/handlers/credential-proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import { proving } from '@iden3/js-jwz';
import {
Proposal,
ProposalRequestMessage,
ProposalMessage
ProposalMessage,
ProposalRequestCredential
} from '../types/protocol/proposal-request';
import { IIdentityWallet } from '../../identity';
import { byteEncoder } from '../../utils';
Expand All @@ -28,11 +29,11 @@ import {
IProtocolMessageHandler
} from './message-handler';
import { verifyExpiresTime } from './common';
import { CredentialSchemaInfo, getProtocolMessageTypeByGoalCode } from '../types/protocol/common';
import { getProtocolMessageTypeByGoalCode } from '../types/protocol/common';

/** @beta ProposalRequestCreationOptions represents proposal-request creation options */
export type ProposalRequestCreationOptions = {
credentials: CredentialSchemaInfo[];
credentials: ProposalRequestCredential[];
did_doc?: DIDDocument;
expires_time?: Date;
attachments?: Attachment[];
Expand Down
7 changes: 5 additions & 2 deletions src/iden3comm/types/protocol/proposal-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ export type ProposalRequestMessage = BasicMessage & {
type: typeof PROTOCOL_MESSAGE_TYPE.PROPOSAL_REQUEST_MESSAGE_TYPE;
};

/** @beta ProposalRequestCredential is struct the represents proposal request credential */
export type ProposalRequestCredential = CredentialSchemaInfo;

/** @beta ProposalRequestMessageBody is struct the represents body for proposal-request */
export type ProposalRequestMessageBody = {
credentials: CredentialSchemaInfo[];
credentials: ProposalRequestCredential[];
did_doc?: DIDDocument;
};

Expand All @@ -27,7 +30,7 @@ export type ProposalMessageBody = {

/** @beta Proposal is struct the represents proposal inside proposal protocol message */
export type Proposal = {
credentials: CredentialSchemaInfo[];
credentials: ProposalRequestCredential[];
type: string;
url?: string;
expiration?: string;
Expand Down

0 comments on commit c64d7bc

Please sign in to comment.