@triveria/wallet / Exports / DefaultApi
Class: DefaultApi
DefaultApi - object-oriented interface
Hierarchy
-
BaseAPI↳
DefaultApi↳↳
Client
Table of contents
Constructors
Properties
Methods
- credentialCreate
- credentialGet
- credentialImport
- credentialIssuanceInit
- credentialList
- credentialMetadataPatch
- credentialPatch
- credentialRequestInit
- credentialRevoke
- deferredStatus
- didDocumentGet
- healthCheck
- holderCreateAuthOffer
- holderCredentialsPresentAfterConsent
- holderIdTokenSend
- holderLinkedVpCreate
- holderLinkedVpDelete
- holderLinkedVpGetDetails
- holderLinkedVpList
- holderOfferPassAuthInfo
- holderOfferProcessAfterConsent
- holderPresentPassAuthInfo
- idTokenRequestCreate
- issuerCredentialTypesList
- issuerInitiateAuthOffer
- issuerInitiatePreauthOffer
- issuerXadesSign
- pdfCredentialMakeVp
- pdfCredentialTwinDelete
- pdfCredentialTwinGet
- pdfCredentialTwinUpload
- tfAccreditAs
- tfAccreditRequest
- tfOnboard
- tfOnboardRequest
- tfRevokeAccreditation
- tfX509CertificateIssue
- verifierInitUrlCreate
- verifierLinkedVpVerify
- verifierPdfVerify
- walletCreate
- walletDelete
- walletGet
- walletIdentifierGet
- walletIdentifierUpdate
- walletKeys
- walletList
- walletNotificationGetByState
- walletNotificationHistory
- walletNotifications
- walletPatch
- walletVerifiedCredentialsByState
- walletVerifiedCredentialsDeleteByState
- walletX509CSRCreate
- walletX509CertificateGet
- walletX509CertificateImport
- wmpAcceptInvitation
- wmpClientGetPendingRequests
- wmpClientProcessRequest
- wmpCreateNewInvitation
- wmpEntityConnectionGet
- wmpEntityDelete
- wmpEntityGet
- wmpEntityList
- wmpEntityServerConnect
Constructors
constructor
• new DefaultApi(configuration?, basePath?, axios?): DefaultApi
Parameters
| Name | Type | Default value |
|---|---|---|
configuration? | Configuration | undefined |
basePath | string | BASE_PATH |
axios | AxiosInstance | globalAxios |
Returns
Inherited from
BaseAPI.constructor
Defined in
Properties
axios
• Protected axios: AxiosInstance = globalAxios
Inherited from
BaseAPI.axios
Defined in
basePath
• Protected basePath: string = BASE_PATH
Inherited from
BaseAPI.basePath
Defined in
configuration
• Protected configuration: undefined | Configuration
Inherited from
BaseAPI.configuration
Defined in
Methods
credentialCreate
▸ credentialCreate(walletId, credentialPayload?, options?): Promise<AxiosResponse<CredentialIdObject, any>>
Creates a new draft credential.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
credentialPayload? | CredentialPayload | A Verifiable Credential payload in JSON format. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CredentialIdObject, any>>
Throws
Defined in
credentialGet
▸ credentialGet(credentialId, walletId, options?): Promise<AxiosResponse<CredentialWrapper, any>>
Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
Parameters
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CredentialWrapper, any>>
Throws
Defined in
credentialImport
▸ credentialImport(walletId, credentialImport?, options?): Promise<AxiosResponse<CredentialWrapper, any>>
Import pre-signed credential into wallet
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
credentialImport? | CredentialImport | A Verifiable Credential payload in JSON format. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CredentialWrapper, any>>
Throws
Defined in
credentialIssuanceInit
▸ credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit?, options?): Promise<AxiosResponse<CredentialIssuanceInitResult, any>>
Prepares created Verifiable Credential draft for its issuance for a specific client.
Parameters
| Name | Type | Description |
|---|---|---|
credentialId | string | |
walletId | string | |
credentialIssuanceInit? | CredentialIssuanceInit | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CredentialIssuanceInitResult, any>>
Throws
Defined in
credentialList
▸ credentialList(walletId, interaction?, type?, valid?, limit?, nextMarker?, sort?, searchPath?, filter?, options?): Promise<AxiosResponse<CredentialList, any>>
Retrieves a list of credentials.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
interaction? | CredentialListInteractionEnum | The interaction that is the origin of the credential. This parameter is mutually exclusive with the "type" parameter. |
type? | string | The credential type as comma delimited list representing a single type. This parameter is mutually exclusive with the "interaction" parameter. I.e. VerifiableCredential,VerifiableAttestation,Europass. |
valid? | boolean | The credential validity flag. If not provided credentials with any validity will be returned. |
limit? | number | The number of items |
nextMarker? | string | Marking the next set of items |
sort? | ListSort | Sort flag controls the sort direction by the time updated or issued |
searchPath? | string | JSON path specification for the filter to apply |
filter? | string | JSON schema filter used to select the credentials (base64 encoded) |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CredentialList, any>>
Throws
Defined in
credentialMetadataPatch
▸ credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload?, options?): Promise<AxiosResponse<CredentialIdObject, any>>
Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
Parameters
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
credentialMetadataPatchPayload? | CredentialMetadataPatchPayload | Verifiable Credential metadata in JSON |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CredentialIdObject, any>>
Throws
Defined in
credentialPatch
▸ credentialPatch(credentialId, walletId, credentialPatchPayload?, options?): Promise<AxiosResponse<CredentialIdObject, any>>
Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
Parameters
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
credentialPatchPayload? | CredentialPatchPayload | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CredentialIdObject, any>>
Throws
Defined in
credentialRequestInit
▸ credentialRequestInit(walletId, credentialRequest?, options?): Promise<AxiosResponse<string[], any>>
Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
credentialRequest? | CredentialRequest | A Verifiable Credential request: types and URL of the issuer |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<string[], any>>
Throws
Defined in
credentialRevoke
▸ credentialRevoke(credentialId, walletId, options?): Promise<AxiosResponse<void, any>>
Revoke a specific Verifiable Credential
Parameters
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
deferredStatus
▸ deferredStatus(deferredId, walletId, options?): Promise<AxiosResponse<Deferred, any>>
Parameters
| Name | Type | Description |
|---|---|---|
deferredId | string | Deferred token |
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<Deferred, any>>
Throws
Defined in
didDocumentGet
▸ didDocumentGet(walletId, options?): Promise<AxiosResponse<object, any>>
Gets the DID Document of the wallet.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<object, any>>
Throws
Defined in
healthCheck
▸ healthCheck(options?): Promise<AxiosResponse<HealthStatus, any>>
Parameters
| Name | Type | Description |
|---|---|---|
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<HealthStatus, any>>
Throws
Defined in
holderCreateAuthOffer
▸ holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest?, options?): Promise<AxiosResponse<void, any>>
Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
holderAuthOfferCreationRequest? | HolderAuthOfferCreationRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
holderCredentialsPresentAfterConsent
▸ holderCredentialsPresentAfterConsent(walletId, interactionId, interactionAuthorizationConsent?, options?): Promise<AxiosResponse<void, any>>
Presenting Verifiable Credentials after holder's consent.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
interactionId | string | |
interactionAuthorizationConsent? | InteractionAuthorizationConsent | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
holderIdTokenSend
▸ holderIdTokenSend(walletId, idTokenSendRequest?, options?): Promise<AxiosResponse<void, any>>
Responds to an ID token request
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
idTokenSendRequest? | IdTokenSendRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
holderLinkedVpCreate
▸ holderLinkedVpCreate(walletId, linkedVpCreateRequest?, options?): Promise<AxiosResponse<LinkedVpMetadata, any>>
Creates a new public Linked VP of specified credentials and adds it to the wallet's DID document
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
linkedVpCreateRequest? | LinkedVpCreateRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<LinkedVpMetadata, any>>
Throws
Defined in
holderLinkedVpDelete
▸ holderLinkedVpDelete(walletId, linkedVpId, options?): Promise<AxiosResponse<void, any>>
Deletes a linked VP
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
linkedVpId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
holderLinkedVpGetDetails
▸ holderLinkedVpGetDetails(walletId, linkedVpId, options?): Promise<AxiosResponse<LinkedVpMetadata, any>>
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
linkedVpId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<LinkedVpMetadata, any>>
Throws
Defined in
holderLinkedVpList
▸ holderLinkedVpList(walletId, options?): Promise<AxiosResponse<LinkedVpMetadata[], any>>
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<LinkedVpMetadata[], any>>
Throws
Defined in
holderOfferPassAuthInfo
▸ holderOfferPassAuthInfo(walletId, vcOffer?, options?): Promise<AxiosResponse<InteractionAuthorizationRequirements, any>>
Issue the Verifiable Credential using OIDC4VCI offer acceptance
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
vcOffer? | VcOffer | Verifiable Credential offer |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<InteractionAuthorizationRequirements, any>>
Throws
Defined in
holderOfferProcessAfterConsent
▸ holderOfferProcessAfterConsent(walletId, interactionId, interactionAuthorizationConsent?, options?): Promise<AxiosResponse<string[], any>>
Gives consent to process credential offer specified by interaction_id
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
interactionId | string | |
interactionAuthorizationConsent? | InteractionAuthorizationConsent | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<string[], any>>
Throws
Defined in
holderPresentPassAuthInfo
▸ holderPresentPassAuthInfo(walletId, presentationRequest?, options?): Promise<AxiosResponse<InteractionAuthorizationRequirements, any>>
Initiates a presentation of credentials to a verifier.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
presentationRequest? | PresentationRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<InteractionAuthorizationRequirements, any>>
Throws
Defined in
idTokenRequestCreate
▸ idTokenRequestCreate(walletId, options?): Promise<AxiosResponse<IdTokenRequest, any>>
Creates an ID token request.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<IdTokenRequest, any>>
Throws
Defined in
issuerCredentialTypesList
▸ issuerCredentialTypesList(url, options?): Promise<AxiosResponse<CredentialType[], any>>
Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example "jwt_vc") - type: a list of strings that define supported verifiable credential type(s)
Parameters
| Name | Type | Description |
|---|---|---|
url | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CredentialType[], any>>
Throws
Defined in
issuerInitiateAuthOffer
▸ issuerInitiateAuthOffer(walletId, initAuthOffer?, options?): Promise<AxiosResponse<AuthOffer, any>>
Initiates issuing of Verifiable Credentials using authorized flow.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
initAuthOffer? | InitAuthOffer | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<AuthOffer, any>>
Throws
Defined in
issuerInitiatePreauthOffer
▸ issuerInitiatePreauthOffer(walletId, initPreAuthOffer?, options?): Promise<AxiosResponse<PreAuthOffer, any>>
Initiates issuing of Verifiable Credentials using pre-authorized flow.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
initPreAuthOffer? | InitPreAuthOffer | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<PreAuthOffer, any>>
Throws
Defined in
issuerXadesSign
▸ issuerXadesSign(walletId, xadesSignatureType, xml?, options?): Promise<AxiosResponse<object, any>>
Signs an XML document with XAdES signature
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
xadesSignatureType | "tsl" | |
xml? | File | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<object, any>>
Throws
Defined in
pdfCredentialMakeVp
▸ pdfCredentialMakeVp(credentialId, signPdf, walletId, options?): Promise<AxiosResponse<File, any>>
Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
Parameters
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
signPdf | boolean | Whether to sign the PDF with holder's X509 certificate or not |
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<File, any>>
Throws
Defined in
pdfCredentialTwinDelete
▸ pdfCredentialTwinDelete(credentialId, walletId, options?): Promise<AxiosResponse<void, any>>
Deletes the PDF associated with the verifiable credential. Can be used only for credentials in Draft state.
Parameters
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
pdfCredentialTwinGet
▸ pdfCredentialTwinGet(credentialId, walletId, options?): Promise<AxiosResponse<File, any>>
Returns either an unsigned PDF that was uploaded to be signed and embedded into a verifiable credential in case of credential in Draft state, or a signed PDF embedded in an issued VC.
Parameters
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<File, any>>
Throws
Defined in
pdfCredentialTwinUpload
▸ pdfCredentialTwinUpload(credentialId, walletId, pdf?, options?): Promise<AxiosResponse<void, any>>
Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximal size of the PDF document is 50 MB.
Parameters
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
pdf? | File | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
tfAccreditAs
▸ tfAccreditAs(walletId, accreditationRequest?, options?): Promise<AxiosResponse<void, any>>
Accredits a legal entity as RTAO, TAO or TI.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
accreditationRequest? | AccreditationRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
tfAccreditRequest
▸ tfAccreditRequest(walletId, entityAccreditationRequest?, options?): Promise<AxiosResponse<void, any>>
Processes a request to accredit another legal entity.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityAccreditationRequest? | EntityAccreditationRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
tfOnboard
▸ tfOnboard(walletId, options?): Promise<AxiosResponse<OnboardResult, any>>
Onboards legal entity to the trust framework based on the wallet configuration.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<OnboardResult, any>>
Throws
Defined in
tfOnboardRequest
▸ tfOnboardRequest(walletId, entityOnboardingRequest?, options?): Promise<AxiosResponse<void, any>>
Processes a request to onboard another legal entity.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityOnboardingRequest? | EntityOnboardingRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
tfRevokeAccreditation
▸ tfRevokeAccreditation(walletId, revokeAccreditationRequest?, options?): Promise<AxiosResponse<void, any>>
Revokes another legal entity's wallet DID accreditation.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
revokeAccreditationRequest? | RevokeAccreditationRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
tfX509CertificateIssue
▸ tfX509CertificateIssue(walletId, certificateIssueRequest?, options?): Promise<AxiosResponse<CertificateIssueResponse, any>>
Issues a certificate based on the provided certificate request
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
certificateIssueRequest? | CertificateIssueRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CertificateIssueResponse, any>>
Throws
Defined in
verifierInitUrlCreate
▸ verifierInitUrlCreate(walletId, verifyInitRequest?, options?): Promise<AxiosResponse<VerifyInitResponse, any>>
Returns an url where verifier accepts presentations from a holder.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
verifyInitRequest? | VerifyInitRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<VerifyInitResponse, any>>
Throws
Defined in
verifierLinkedVpVerify
▸ verifierLinkedVpVerify(walletId, did, options?): Promise<AxiosResponse<VerifiedLinkedVp[], any>>
Fetches linked presentations from DID document and verifies them.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
did | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<VerifiedLinkedVp[], any>>
Throws
Defined in
verifierPdfVerify
▸ verifierPdfVerify(walletId, extractVp, pdf?, trustedCertificates?, trustedListsUrl?, trustedListSigningCertificates?, options?): Promise<AxiosResponse<PdfVerificationResponse, any>>
Verifies the signatures of uploaded PDF and extracts and verifies VP in the PDF document Maximum size of the PDF document is 50 MB.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
extractVp | boolean | Whether to extract VP attachment from the PDF |
pdf? | File | |
trustedCertificates? | string[] | Base64 encoded x509 certificates with which the PDF may be signed. |
trustedListsUrl? | string[] | URLs of ETSI trusted lists that will be used for verification purposes. If not provided, ETSI trust list configured for the wallet will be used. |
trustedListSigningCertificates? | string[] | Base64 encoded x509 certificates with which the ETSI trusted lists may be signed. If not provided, values from wallet config will be used. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<PdfVerificationResponse, any>>
Throws
Defined in
walletCreate
▸ walletCreate(walletCreatePayload?, options?): Promise<AxiosResponse<WalletIdObject, any>>
Creates a new wallet for the authenticated client.
Parameters
| Name | Type | Description |
|---|---|---|
walletCreatePayload? | WalletCreatePayload | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletIdObject, any>>
Throws
Defined in
walletDelete
▸ walletDelete(walletId, options?): Promise<AxiosResponse<void, any>>
Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
walletGet
▸ walletGet(walletId, options?): Promise<AxiosResponse<Wallet, any>>
Provides wallet details
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<Wallet, any>>
Throws
Defined in
walletIdentifierGet
▸ walletIdentifierGet(walletId, options?): Promise<AxiosResponse<WalletIdentifier, any>>
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletIdentifier, any>>
Throws
Defined in
walletIdentifierUpdate
▸ walletIdentifierUpdate(walletId, walletIdentifier?, options?): Promise<AxiosResponse<WalletIdentifier, any>>
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
walletIdentifier? | WalletIdentifier | The new wallet identifier |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletIdentifier, any>>
Throws
Defined in
walletKeys
▸ walletKeys(walletId, options?): Promise<AxiosResponse<{ [key: string]: any; }, any>>
Provides wallet keys used for signing.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<{ [key: string]: any; }, any>>
Throws
Defined in
walletList
▸ walletList(ownerId?, searchName?, options?): Promise<AxiosResponse<WalletListItem[], any>>
Provides list of wallets owned by the authenticated client.
Parameters
| Name | Type | Description |
|---|---|---|
ownerId? | string | |
searchName? | string | Wallet name to search using "begins-with" filter |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletListItem[], any>>
Throws
Defined in
walletNotificationGetByState
▸ walletNotificationGetByState(walletId, eventType, state, options?): Promise<AxiosResponse<WalletNotification, any>>
Gets a specific notification by state
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
eventType | string | Event type |
state | string | Event identifier |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletNotification, any>>
Throws
Defined in
walletNotificationHistory
▸ walletNotificationHistory(walletId, limit?, nextMarker?, type?, sort?, options?): Promise<AxiosResponse<WalletNotificationHistory, any>>
Provides wallet notifications that can be used to audit the wallet activity.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
limit? | number | The number of items |
nextMarker? | string | Marking the next set of items |
type? | WalletNotificationEventType[] | Notification types |
sort? | ListSort | Sort flag controls the sort direction by the time created |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletNotificationHistory, any>>
Throws
Defined in
walletNotifications
▸ walletNotifications(walletId, options?): Promise<AxiosResponse<WalletNotification[], any>>
Provides first-in-first-out queue of notifications for a specific wallet.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletNotification[], any>>
Throws
Defined in
walletPatch
▸ walletPatch(walletId, walletPatchPayload?, options?): Promise<AxiosResponse<WalletIdObject, any>>
Update wallet metadata and configuration.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
walletPatchPayload? | WalletPatchPayload | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletIdObject, any>>
Throws
Defined in
walletVerifiedCredentialsByState
▸ walletVerifiedCredentialsByState(walletId, state, options?): Promise<AxiosResponse<VerifiedWrapper, any>>
Gets a specific verified credentials by state
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
state | string | Verifier state |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<VerifiedWrapper, any>>
Throws
Defined in
walletVerifiedCredentialsDeleteByState
▸ walletVerifiedCredentialsDeleteByState(walletId, state, options?): Promise<AxiosResponse<void, any>>
Deletes a specific verified credentials by state
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
state | string | Verifier state |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
walletX509CSRCreate
▸ walletX509CSRCreate(walletId, cSRCreateRequest?, options?): Promise<AxiosResponse<CSRCreateResponse, any>>
Creates a X509 certificate signing request for signing key.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
cSRCreateRequest? | CSRCreateRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CSRCreateResponse, any>>
Throws
Defined in
walletX509CertificateGet
▸ walletX509CertificateGet(walletId, options?): Promise<AxiosResponse<File, any>>
Returns an X509 certificate in PEM format
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<File, any>>
Throws
Defined in
walletX509CertificateImport
▸ walletX509CertificateImport(walletId, certificateImportRequest?, options?): Promise<AxiosResponse<void, any>>
Imports an X509 certificate to be used when signing credentials
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
certificateImportRequest? | CertificateImportRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
wmpAcceptInvitation
▸ wmpAcceptInvitation(walletId, wmpAcceptInvitationPayload?, options?): Promise<AxiosResponse<WmpEntityRecord, any>>
Accepts a WMP invitation
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
wmpAcceptInvitationPayload? | WmpAcceptInvitationPayload | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpEntityRecord, any>>
Throws
Defined in
wmpClientGetPendingRequests
▸ wmpClientGetPendingRequests(walletId, options?): Promise<AxiosResponse<WmpRequest[], any>>
Get pending WMP requests (credential offers or credential verification requests)
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpRequest[], any>>
Throws
Defined in
wmpClientProcessRequest
▸ wmpClientProcessRequest(walletId, requestId, options?): Promise<AxiosResponse<InteractionAuthorizationRequirements, any>>
Process WMP request
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
requestId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<InteractionAuthorizationRequirements, any>>
Throws
Defined in
wmpCreateNewInvitation
▸ wmpCreateNewInvitation(walletId, options?): Promise<AxiosResponse<WmpCreateInvitationResponse, any>>
Creates a new WMP invitation
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpCreateInvitationResponse, any>>
Throws
Defined in
wmpEntityConnectionGet
▸ wmpEntityConnectionGet(walletId, entityId, options?): Promise<AxiosResponse<WmpEntityConnectionStatus, any>>
Get entity connection status
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpEntityConnectionStatus, any>>
Throws
Defined in
wmpEntityDelete
▸ wmpEntityDelete(walletId, entityId, options?): Promise<AxiosResponse<void, any>>
Delete entity based on the entity ID
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Defined in
wmpEntityGet
▸ wmpEntityGet(walletId, entityId, options?): Promise<AxiosResponse<WmpEntityRecord, any>>
Get entity based on the entity ID
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpEntityRecord, any>>
Throws
Defined in
wmpEntityList
▸ wmpEntityList(walletId, entityType, options?): Promise<AxiosResponse<WmpEntityRecord[], any>>
Get all clients that have established WMP connection.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityType | WmpEntityListEntityTypeEnum | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpEntityRecord[], any>>
Throws
Defined in
wmpEntityServerConnect
▸ wmpEntityServerConnect(walletId, entityId, options?): Promise<AxiosResponse<void, any>>
Connect to a WMP server entity
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws