-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow to supply data for VCI Issuer REST client and server duri…
…ng offer
- Loading branch information
Showing
11 changed files
with
82 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 11 additions & 8 deletions
19
packages/oid4vci-issuer-rest-client/src/types/IOID4VCIRestClient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
import { IAgentContext, IPluginMethodMap } from '@veramo/core' | ||
import { CredentialOfferFormat, Grant, IssueStatusResponse } from '@sphereon/oid4vci-common' | ||
import { | ||
CredentialOfferFormat, | ||
Grant, | ||
IssueStatusResponse, | ||
CredentialDataSupplierInput, | ||
CreateCredentialOfferURIResult, | ||
} from '@sphereon/oid4vci-common' | ||
|
||
export interface IOID4VCIRestClient extends IPluginMethodMap { | ||
oid4vciClientCreateOfferUri(args: IOID4VCIClientCreateOfferUriRequestArgs, context: IRequiredContext): Promise<IOID4VCIClientCreateOfferUriResponse> | ||
oid4vciClientGetIssueStatus(args: IOID4VCIClientGetIssueStatusArgs, context: IRequiredContext): Promise<IssueStatusResponse> | ||
} | ||
|
||
export interface IOID4VCIClientCreateOfferUriRequestArgs { | ||
grants: Grant | ||
credentials: (CredentialOfferFormat | string)[] | ||
baseUrl?: string | ||
export interface IOID4VCIClientCreateOfferUriRequestArgs extends IOID4VCIClientCreateOfferUriRequest { | ||
agentBaseUrl?: string | ||
} | ||
|
||
export interface IOID4VCIClientGetIssueStatusArgs { | ||
id: string | ||
baseUrl?: string | ||
} | ||
|
||
export interface IOID4VCIClientCreateOfferUriResponse { | ||
uri: string | ||
} | ||
export type IOID4VCIClientCreateOfferUriResponse = Omit<CreateCredentialOfferURIResult, 'session'> | ||
|
||
export interface IOID4VCIClientCreateOfferUriRequest { | ||
credentials: (CredentialOfferFormat | string)[] | ||
grants: Grant | ||
credentialDataSupplierInput?: CredentialDataSupplierInput | ||
} | ||
|
||
export type IRequiredContext = IAgentContext<never> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.