Skip to main content

@triveria/wallet / Exports / Client

Class: Client

DefaultApi - object-oriented interface

Export

DefaultApi

Hierarchy​

Table of contents​

Constructors​

Properties​

Methods​

Constructors​

constructor​

• new Client(tokenUrl, audience, clientId, clientSecret, baseURL, axios?): Client

Parameters​

NameTypeDefault value
tokenUrlstringundefined
audiencestringundefined
clientIdstringundefined
clientSecretstringundefined
baseURLstringundefined
axiosAxiosInstanceglobalAxios

Returns​

Client

Overrides​

DefaultApi.constructor

Defined in​

client.ts:22

Properties​

axios​

• Protected axios: AxiosInstance = globalAxios

Inherited from​

DefaultApi.axios

Defined in​

client.ts:22


basePath​

• Protected basePath: string = BASE_PATH

Inherited from​

DefaultApi.basePath

Defined in​

base.ts:39


baseURL​

• Protected baseURL: string

Defined in​

client.ts:22


configuration​

• Protected configuration: undefined | Configuration

Inherited from​

DefaultApi.configuration

Defined in​

base.ts:37

Methods​

credentialClaimMetadataGet​

▸ credentialClaimMetadataGet(credentialId, walletId, metadataScope?, contexts?, options?): Promise<AxiosResponse<{ [key: string]: CredentialClaimMetadata; }, any, {}>>

Returns Claim Metadata for all credential claims (supported only for JSON-LD credentials).

Parameters​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
metadataScope?CredentialClaimMetadataGetMetadataScopeEnumScope of the RDF metadata; - subject: only provide metadata for claims in credential subject - credential: provide metadata for claims in whole credential
contexts?string[]JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<{ [key: string]: CredentialClaimMetadata; }, any, {}>>

Throws

Inherited from​

DefaultApi.credentialClaimMetadataGet

Defined in​

api.ts:10750


credentialCreate​

▸ credentialCreate(walletId, credentialCreatePayload, options?): Promise<AxiosResponse<CredentialIdObject, any, {}>>

Creates a new draft credential.

Parameters​

NameTypeDescription
walletIdstring
credentialCreatePayloadCredentialCreatePayloadA Verifiable Credential payload in JSON format.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialIdObject, any, {}>>

Throws

Inherited from​

DefaultApi.credentialCreate

Defined in​

api.ts:10761


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​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialWrapper, any, {}>>

Throws

Inherited from​

DefaultApi.credentialGet

Defined in​

api.ts:10772


credentialImport​

▸ credentialImport(walletId, credentialImport, options?): Promise<AxiosResponse<CredentialWrapper, any, {}>>

Import pre-signed credential into wallet

Parameters​

NameTypeDescription
walletIdstring
credentialImportCredentialImportA Verifiable Credential payload in JSON format.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialWrapper, any, {}>>

Throws

Inherited from​

DefaultApi.credentialImport

Defined in​

api.ts:10783


credentialIssuanceInit​

▸ credentialIssuanceInit(credentialId, walletId, credentialIssuanceInit, options?): Promise<AxiosResponse<CredentialIssuanceInitResult, any, {}>>

Prepares created Verifiable Credential draft for its issuance for a specific client.

Parameters​

NameTypeDescription
credentialIdstring
walletIdstring
credentialIssuanceInitCredentialIssuanceInit
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialIssuanceInitResult, any, {}>>

Throws

Inherited from​

DefaultApi.credentialIssuanceInit

Defined in​

api.ts:10795


credentialIssueDirect​

▸ credentialIssueDirect(credentialId, walletId, idempotencyKey?, credentialIssueDirectRequest?, options?): Promise<AxiosResponse<CredentialIssueDirectResult, any, {}>>

Issues a W3C VCDM draft as a credential of the wallet itself, with no holder and no OID4VCI: for a credential that is published rather than handed to anyone, such as a UNTP Digital Product Passport (EN 18246 Annex B.5). The credential gets the wallet's status list entry and envelope, and is stored issued on the same record. With publish, it is then published as a UNTP link, like POST /untp/links; if that fails the response is 502 with the issued credentialId, and publishing is retried with POST /untp/links.

Parameters​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
idempotencyKey?stringMakes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
credentialIssueDirectRequest?CredentialIssueDirectRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialIssueDirectResult, any, {}>>

Throws

Inherited from​

DefaultApi.credentialIssueDirect

Defined in​

api.ts:10808


credentialList​

▸ credentialList(walletId, interaction?, type?, valid?, limit?, nextMarker?, sort?, searchPath?, filter?, options?): Promise<AxiosResponse<CredentialList, any, {}>>

Retrieves a list of credentials.

Parameters​

NameTypeDescription
walletIdstring
interaction?CredentialListInteractionEnumThe interaction that is the origin of the credential. At least one of `interaction` and `type` is required; when both are given, credentials must match both.
type?stringThe credential type as comma delimited list representing a single type. At least one of `interaction` and `type` is required; when both are given, credentials must match both. I.e. VerifiableCredential,VerifiableAttestation,Europass.
valid?booleanThe credential validity flag. If not provided credentials with any validity will be returned.
limit?numberThe number of items
nextMarker?stringMarking the next set of items
sort?ListSortSort flag controls the sort direction by the time updated or issued
searchPath?stringJSON path specification for the filter to apply
filter?stringJSON schema filter used to select the credentials (base64 encoded)
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialList, any, {}>>

Throws

Inherited from​

DefaultApi.credentialList

Defined in​

api.ts:10826


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​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
credentialMetadataPatchPayload?CredentialMetadataPatchPayloadVerifiable Credential metadata in JSON
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialIdObject, any, {}>>

Throws

Inherited from​

DefaultApi.credentialMetadataPatch

Defined in​

api.ts:10838


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​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
credentialPatchPayloadCredentialPatchPayload
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialIdObject, any, {}>>

Throws

Inherited from​

DefaultApi.credentialPatch

Defined in​

api.ts:10850


credentialPayloadGet​

▸ credentialPayloadGet(credentialId, walletId, form?, contexts?, options?): Promise<AxiosResponse<object, any, {}>>

Returns raw credential payload, with format depending on credential format.

Parameters​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
form?CredentialPayloadGetFormEnumForm of the returned credential payload (supported only with JSON-LD credentials)
contexts?string[]JSON-LD contexts to apply to the credential (supported only with JSON-LD credentials). The base VC context is always applied. When omitted, all contexts of the credential are applied.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<object, any, {}>>

Throws

Inherited from​

DefaultApi.credentialPayloadGet

Defined in​

api.ts:10863


credentialRawGet​

▸ credentialRawGet(credentialId, walletId, disclosedClaims?, options?): Promise<AxiosResponse<string, any, {}>>

Returns raw signed credential, with format depending on credential format: - SD-JWT VC: application/dc+sd-jwt - W3C VCDM: application/sd-jwt when it has selectively disclosable claims, application/jwt otherwise - mdoc: CBOR encoded DeviceResponse (application/cbor)

Parameters​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
disclosedClaims?string[]List of json paths of claims disclosed in the returned credential (returns all disclosures by default).
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<string, any, {}>>

Throws

Inherited from​

DefaultApi.credentialRawGet

Defined in​

api.ts:10875


credentialRender​

▸ credentialRender(credentialId, walletId, index?, suite?, mediaQuery?, options?): Promise<AxiosResponse<File, any, {}>>

Renders a W3C VCDM credential of the wallet with one of its renderMethod entries, as POST /verifier/render does. HTML is served with a Content-Security-Policy that sandboxes it.

Parameters​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
index?numberThe index of the render method to use, in the credential&#39;s `renderMethod`.
suite?RenderSuiteUse the first render method of this suite.
mediaQuery?stringUse the first render method with exactly this `mediaQuery`.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<File, any, {}>>

Throws

Inherited from​

DefaultApi.credentialRender

Defined in​

api.ts:10889


credentialRenderMethods​

▸ credentialRenderMethods(credentialId, walletId, options?): Promise<AxiosResponse<RenderMethodInfo[], any, {}>>

Lists the render methods of a W3C VCDM credential of the wallet, for a client to pick one by its media query: media queries are not evaluated by the wallet.

Parameters​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<RenderMethodInfo[], any, {}>>

Throws

Inherited from​

DefaultApi.credentialRenderMethods

Defined in​

api.ts:10900


credentialRequestInit​

▸ credentialRequestInit(walletId, credentialRequest, options?): Promise<AxiosResponse<string[], any, {}>>

Requests a credential issuance from the issuer and retrieves requirements for holder authorization.

Parameters​

NameTypeDescription
walletIdstring
credentialRequestCredentialRequestA Verifiable Credential request: types and URL of the issuer
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<string[], any, {}>>

Throws

Inherited from​

DefaultApi.credentialRequestInit

Defined in​

api.ts:10911


credentialRevoke​

▸ credentialRevoke(credentialId, walletId, idempotencyKey?, options?): Promise<AxiosResponse<void, any, {}>>

Revoke a specific Verifiable Credential. A credential published as a UNTP link stays published: a verifier following its link finds it and verifies it as revoked. DELETE /untp/links/{service_id} unpublishes it.

Parameters​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
idempotencyKey?stringMakes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.credentialRevoke

Defined in​

api.ts:10923


credentialSuspend​

▸ credentialSuspend(credentialId, walletId, options?): Promise<AxiosResponse<void, any, {}>>

Suspend a Verifiable Credential issued with the suspension status purpose (W3C Bitstring Status List v1.0). A suspension can be lifted with DELETE.

Parameters​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.credentialSuspend

Defined in​

api.ts:10934


credentialUnsuspend​

▸ credentialUnsuspend(credentialId, walletId, options?): Promise<AxiosResponse<void, any, {}>>

Lift the suspension of a Verifiable Credential.

Parameters​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.credentialUnsuspend

Defined in​

api.ts:10945


deferredStatus​

▸ deferredStatus(deferredId, walletId, options?): Promise<AxiosResponse<Deferred, any, {}>>

Polls the status of a deferred credential issuance. Returns in_progress while the operation is still pending, or completed with the resulting credential ID when done. Clients should poll this endpoint until a terminal status is reached.

Parameters​

NameTypeDescription
deferredIdstringDeferred token
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<Deferred, any, {}>>

Throws

Inherited from​

DefaultApi.deferredStatus

Defined in​

api.ts:10956


didDocumentGet​

▸ didDocumentGet(walletId, options?): Promise<AxiosResponse<object, any, {}>>

Gets the DID Document of the wallet.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<object, any, {}>>

Throws

Inherited from​

DefaultApi.didDocumentGet

Defined in​

api.ts:10966


didDocumentLocalGet​

▸ didDocumentLocalGet(walletId, options?): Promise<AxiosResponse<{ [key: string]: any; }, any, {}>>

Returns the wallet's own DID document, as published at /{wallet_id}/did.json for a self-hosted did:web.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<{ [key: string]: any; }, any, {}>>

Throws

Inherited from​

DefaultApi.didDocumentLocalGet

Defined in​

api.ts:10976


didDocumentPatch​

▸ didDocumentPatch(walletId, didDocumentPatch, options?): Promise<AxiosResponse<{ [key: string]: any; }, any, {}>>

Changes the wallet's DID document: removes the services in removeServiceIds, adds the services in addServices (a service with the same id is replaced), and, when alsoKnownAs is set, replaces the subject's other identifiers (an empty list removes them). UNTP identifies an entity's Digital Identity Anchor with a service of type https://test.uncefact.org/vocabulary/link-type/dia (untp:dia in UNTP 0.7) and registered identifiers with alsoKnownAs. Only a self-hosted did:web document can be changed; services of an EBSI DID are written to the EBSI DID registry, which does not take alsoKnownAs.

Parameters​

NameTypeDescription
walletIdstring
didDocumentPatchDidDocumentPatch
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<{ [key: string]: any; }, any, {}>>

Throws

Inherited from​

DefaultApi.didDocumentPatch

Defined in​

api.ts:10987


healthCheck​

▸ healthCheck(options?): Promise<AxiosResponse<HealthStatus, any, {}>>

Checks the health status of the service and its subsystems (database, storage, etc.). Used by load balancers and monitoring systems.

Parameters​

NameTypeDescription
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<HealthStatus, any, {}>>

Throws

Inherited from​

DefaultApi.healthCheck

Defined in​

api.ts:10996


holderCreateAuthOffer​

▸ holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options?): Promise<AxiosResponse<string, 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​

NameTypeDescription
walletIdstring
holderAuthOfferCreationRequestHolderAuthOfferCreationRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<string, any, {}>>

Throws

Inherited from​

DefaultApi.holderCreateAuthOffer

Defined in​

api.ts:11007


holderCredentialsPresentAfterConsent​

▸ holderCredentialsPresentAfterConsent(walletId, interactionId, interactionAuthorizationConsent?, options?): Promise<AxiosResponse<PresentationResponse, any, {}>>

Completes a credential presentation flow: submits the selected credentials to the verifier after the holder's explicit consent. The interaction_id is obtained from HolderPresentPassAuthInfo.

Parameters​

NameTypeDescription
walletIdstring
interactionIdstring
interactionAuthorizationConsent?InteractionAuthorizationConsent
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<PresentationResponse, any, {}>>

Throws

Inherited from​

DefaultApi.holderCredentialsPresentAfterConsent

Defined in​

api.ts:11019


holderIdTokenSend​

▸ holderIdTokenSend(walletId, idTokenSendRequest, options?): Promise<AxiosResponse<PresentationResponse, any, {}>>

Responds to an ID token request

Parameters​

NameTypeDescription
walletIdstring
idTokenSendRequestIdTokenSendRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<PresentationResponse, any, {}>>

Throws

Inherited from​

DefaultApi.holderIdTokenSend

Defined in​

api.ts:11030


holderOfferPassAuthInfo​

▸ holderOfferPassAuthInfo(walletId, vcOffer, options?): Promise<AxiosResponse<InteractionAuthorizationRequirements, any, {}>>

Processes a credential offer URL (received from an issuer via QR code, deep link, or WMP) and returns what authorization is required to accept it - pin, credential presentation or a redirect to custom authorization flow. holder needs to present to the issuer, along with matching candidates from the wallet. The returned interactionId is used in the subsequent HolderOfferProcessAfterConsent call.

Parameters​

NameTypeDescription
walletIdstring
vcOfferVcOfferVerifiable Credential offer
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<InteractionAuthorizationRequirements, any, {}>>

Throws

Inherited from​

DefaultApi.holderOfferPassAuthInfo

Defined in​

api.ts:11041


holderOfferProcessAfterConsent​

▸ holderOfferProcessAfterConsent(walletId, interactionId, interactionAuthorizationConsent?, options?): Promise<AxiosResponse<string[], any, {}>>

Completes a credential offer flow after holder consent: submits data needed for the holder to authorize candidates to the issuer for holder authorization and retrieves the issued credential(s) into the wallet. The interaction_id is obtained from HolderOfferPassAuthInfo.

Parameters​

NameTypeDescription
walletIdstring
interactionIdstring
interactionAuthorizationConsent?InteractionAuthorizationConsent
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<string[], any, {}>>

Throws

Inherited from​

DefaultApi.holderOfferProcessAfterConsent

Defined in​

api.ts:11053


holderPresentPassAuthInfo​

▸ holderPresentPassAuthInfo(walletId, presentationRequest, options?): Promise<AxiosResponse<InteractionAuthorizationRequirements, any, {}>>

Processes a verifier's presentation request URL and returns the presentation definition along with matching credential candidates from the wallet. The holder reviews which credentials will be disclosed before giving consent. The returned interactionId is used in the subsequent HolderCredentialsPresentAfterConsent call.

Parameters​

NameTypeDescription
walletIdstring
presentationRequestPresentationRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<InteractionAuthorizationRequirements, any, {}>>

Throws

Inherited from​

DefaultApi.holderPresentPassAuthInfo

Defined in​

api.ts:11064


idTokenRequestCreate​

▸ idTokenRequestCreate(walletId, options?): Promise<AxiosResponse<IdTokenRequest, any, {}>>

Creates an ID token request that will be sent to the holder for DID-based authentication. Used during the authorized credential issuance flow when the issuer requires the holder to prove control of their DID before the credential is issued. The returned request ID is passed to CredentialIssuanceInit as idTokenRequestId.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<IdTokenRequest, any, {}>>

Throws

Inherited from​

DefaultApi.idTokenRequestCreate

Defined in​

api.ts:11074


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​

NameTypeDescription
urlstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialType[], any, {}>>

Throws

Inherited from​

DefaultApi.issuerCredentialTypesList

Defined in​

api.ts:11084


issuerDetachedJwsSign​

▸ issuerDetachedJwsSign(walletId, issuerDetachedJwsSignRequest, idempotencyKey?, options?): Promise<AxiosResponse<IssuerDetachedJwsSignResult, any, {}>>

Signs an opaque payload, such as an audit log entry, with the wallet's DID key, as a compact detached JWS with an unencoded payload (RFC 7515 Appendix F, RFC 7797: b64: false, crit: [\"b64\"]): <protected header>..<signature>. The signature is verified offline against the key in the wallet's DID document, with the payload put back. typ must be one the deployment allows, which no credential or presentation verifier accepts, so a signature from here never passes as a credential.

Parameters​

NameTypeDescription
walletIdstring
issuerDetachedJwsSignRequestIssuerDetachedJwsSignRequest
idempotencyKey?stringMakes a retry safe: a repeat with the same key, for the same wallet, gets the first response (with `Idempotent-Replayed: true`) for 24 hours. The same key with a different request is `422`. A `5xx` response is not kept: a retry runs the request again. A repeat while the first request runs, or after it completed without its response being kept, is `409`.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<IssuerDetachedJwsSignResult, any, {}>>

Throws

Inherited from​

DefaultApi.issuerDetachedJwsSign

Defined in​

api.ts:11096


issuerInitiateAuthOffer​

▸ issuerInitiateAuthOffer(walletId, initAuthOffer, options?): Promise<AxiosResponse<AuthOffer, any, {}>>

Generates an authorized credential offer URL for the holder to initiate the credential issuance flow. The resulting offer URL is typically presented as a QR code or deep link. If wmpEntityId is provided, the offer is delivered directly via WMP and 204 is returned.

Parameters​

NameTypeDescription
walletIdstring
initAuthOfferInitAuthOffer
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<AuthOffer, any, {}>>

Throws

Inherited from​

DefaultApi.issuerInitiateAuthOffer

Defined in​

api.ts:11107


issuerInitiatePreauthOffer​

▸ issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options?): Promise<AxiosResponse<PreAuthOffer, any, {}>>

Generates a pre-authorized credential offer for the holder. Unlike the authorized flow, the holder does not need to authenticate with the issuer — instead a pre-authorized code (and optional PIN) is embedded in the offer URL. The resulting offer URL is returned and Generates a pre-authorized credential offer for the holder. The resulting offer URL is returned and can be shared as a QR code or deep link.

Parameters​

NameTypeDescription
walletIdstring
initPreAuthOfferInitPreAuthOffer
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<PreAuthOffer, any, {}>>

Throws

Inherited from​

DefaultApi.issuerInitiatePreauthOffer

Defined in​

api.ts:11118


issuerXadesSign​

▸ issuerXadesSign(walletId, xml, xadesSignatureType, options?): Promise<AxiosResponse<object, any, {}>>

Signs an XML document with XAdES signature

Parameters​

NameTypeDescription
walletIdstring
xmlFile
xadesSignatureTypeXadesSignatureType
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<object, any, {}>>

Throws

Inherited from​

DefaultApi.issuerXadesSign

Defined in​

api.ts:11130


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​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
signPdfbooleanWhether to sign the PDF with holder&#39;s X509 certificate or not
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<File, any, {}>>

Throws

Inherited from​

DefaultApi.pdfCredentialMakeVp

Defined in​

api.ts:11142


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​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.pdfCredentialTwinDelete

Defined in​

api.ts:11153


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​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<File, any, {}>>

Throws

Inherited from​

DefaultApi.pdfCredentialTwinGet

Defined in​

api.ts:11164


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. Maximum size of the PDF document is 20 MB.

Parameters​

NameTypeDescription
credentialIdstringVerifiable Credential Identifier
walletIdstring
pdfFile
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.pdfCredentialTwinUpload

Defined in​

api.ts:11176


streamWalletNotifications​

▸ streamWalletNotifications(walletId, options?): WalletNotificationStream

Opens a live stream of notifications for a wallet over SSE.

Parameters​

NameTypeDescription
walletIdstringWallet ID
optionsWalletNotificationStreamOptionsStream filtering/reconnect options

Returns​

WalletNotificationStream

Defined in​

client.ts:35


tenantEnrollmentEnroll​

▸ tenantEnrollmentEnroll(tenantId, state, options?): Promise<AxiosResponse<WalletIdObject, any, {}>>

Creates a wallet for the caller from a pending enrollment, in the tenant. A state can be used once. A caller whose token names another tenant is refused.

Parameters​

NameTypeDescription
tenantIdstring
statestringThe enrollment state from TenantEnrollmentInit.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WalletIdObject, any, {}>>

Throws

Inherited from​

DefaultApi.tenantEnrollmentEnroll

Defined in​

api.ts:11187


tenantEnrollmentInit​

▸ tenantEnrollmentInit(tenantId, enrollmentInitPayload, options?): Promise<AxiosResponse<EnrollmentInitResponse, any, {}>>

Prepares a wallet for the tenant and returns a one-time enrollment state. Whoever presents the state to POST /tenant/{tenant_id}/enrollment/{state} gets a wallet created from the payload, in the tenant. Only a Tenant Owner of the tenant may call it. The payload is validated now; a tenantId it carries is ignored. The state is returned only here: the wallet keeps only its hash, which is the enrollment id.

Parameters​

NameTypeDescription
tenantIdstring
enrollmentInitPayloadEnrollmentInitPayload
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<EnrollmentInitResponse, any, {}>>

Throws

Inherited from​

DefaultApi.tenantEnrollmentInit

Defined in​

api.ts:11198


tenantEnrollmentList​

▸ tenantEnrollmentList(tenantId, options?): Promise<AxiosResponse<EnrollmentListItem[], any, {}>>

Lists the tenant's pending enrollments, oldest first. Only a Tenant Owner of the tenant may.

Parameters​

NameTypeDescription
tenantIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<EnrollmentListItem[], any, {}>>

Throws

Inherited from​

DefaultApi.tenantEnrollmentList

Defined in​

api.ts:11208


tenantEnrollmentRevoke​

▸ tenantEnrollmentRevoke(tenantId, enrollmentId, options?): Promise<AxiosResponse<void, any, {}>>

Revokes a pending enrollment, so that its state no longer creates a wallet.

Parameters​

NameTypeDescription
tenantIdstring
enrollmentIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.tenantEnrollmentRevoke

Defined in​

api.ts:11219


tfAccreditAs​

▸ tfAccreditAs(walletId, accreditationRequest, options?): Promise<AxiosResponse<void, any, {}>>

Accredits a legal entity as RTAO (Root Trust Anchor Organisation), TAO (Trust Anchor Organisation), or TI (Trusted Issuer) within the trust framework hierarchy by issuing the appropriate accreditation credential to their DID.

Parameters​

NameTypeDescription
walletIdstring
accreditationRequestAccreditationRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.tfAccreditAs

Defined in​

api.ts:11230


tfAccreditRequest​

▸ tfAccreditRequest(walletId, entityAccreditationRequest, options?): Promise<AxiosResponse<void, any, {}>>

Used by a TAO/RTAO wallet to process and approve an incoming accreditation request from another legal entity. Issues an accreditation credential authorizing the entity to issue credentials of the specified type within the trust framework.

Parameters​

NameTypeDescription
walletIdstring
entityAccreditationRequestEntityAccreditationRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.tfAccreditRequest

Defined in​

api.ts:11241


tfOnboard​

▸ tfOnboard(walletId, onboardingRequest?, options?): Promise<AxiosResponse<OnboardResult, any, {}>>

Completes the trust framework onboarding of this wallet using the specified onboarding credential. After successful onboarding, the wallet's DID is registered in the trust framework's TAO/TI hierarchy, enabling it to issue or verify trust-framework credentials. A UNTP wallet onboards with a Digital Identity Anchor of its DID, held (onboardingCredentialId) or offered (offer): it verifies it, publishes it in its DID document as a dia link, and replaces the DIA it published before.

Parameters​

NameTypeDescription
walletIdstring
onboardingRequest?OnboardingRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<OnboardResult, any, {}>>

Throws

Inherited from​

DefaultApi.tfOnboard

Defined in​

api.ts:11252


tfOnboardRequest​

▸ tfOnboardRequest(walletId, entityOnboardingRequest, options?): Promise<AxiosResponse<void, any, {}>>

Used by a TAO/RTAO wallet to process and approve an incoming onboarding request from another legal entity. Issues an onboarding credential (TIA) to the requesting entity, registering them in the trust framework. A UNTP registrar wallet makes a Digital Identity Anchor (untp) pending for the DID: the member obtains it through the OpenID4VCI issuance of untp-dia (an offer from /issuer/offer/preauth with the DID as clientId), signing its proof with the DID's key.

Parameters​

NameTypeDescription
walletIdstring
entityOnboardingRequestEntityOnboardingRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.tfOnboardRequest

Defined in​

api.ts:11263


tfRevokeAccreditation​

▸ tfRevokeAccreditation(walletId, revokeAccreditationRequest, options?): Promise<AxiosResponse<void, any, {}>>

Revokes another legal entity's accreditation or trust framework registration by invalidating their credential in the trust status list.

Parameters​

NameTypeDescription
walletIdstring
revokeAccreditationRequestRevokeAccreditationRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.tfRevokeAccreditation

Defined in​

api.ts:11274


tfUntpDiaIssue​

▸ tfUntpDiaIssue(walletId, untpDiaIssueRequest, options?): Promise<AxiosResponse<UntpDiaIssueResult, any, {}>>

Issues a Digital Identity Anchor to a DID without the OpenID4VCI proof that the member controls it, for closed pilots: 403 unless the deployment sets untp.registrar.allowUnverifiedDidBinding. The member onboards with it (POST /tf/onboard with onboardingCredentialId, once it holds it). Another wallet than a UNTP registrar is 422.

Parameters​

NameTypeDescription
walletIdstring
untpDiaIssueRequestUntpDiaIssueRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<UntpDiaIssueResult, any, {}>>

Throws

Inherited from​

DefaultApi.tfUntpDiaIssue

Defined in​

api.ts:11285


tfUntpDiaList​

▸ tfUntpDiaList(walletId, did?, options?): Promise<AxiosResponse<UntpIssuedDia[], any, {}>>

Lists the Digital Identity Anchors a UNTP registrar wallet issued. Another wallet is 422.

Parameters​

NameTypeDescription
walletIdstring
did?stringOnly those issued to this DID.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<UntpIssuedDia[], any, {}>>

Throws

Inherited from​

DefaultApi.tfUntpDiaList

Defined in​

api.ts:11296


tfUntpRequestList​

▸ tfUntpRequestList(walletId, options?): Promise<AxiosResponse<UntpPendingDia[], any, {}>>

Lists the DIDs a UNTP registrar wallet is ready to issue a Digital Identity Anchor to (POST /tf/onboard_request), until they obtain it or the request expires. Another wallet is 422.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<UntpPendingDia[], any, {}>>

Throws

Inherited from​

DefaultApi.tfUntpRequestList

Defined in​

api.ts:11306


tfX509CertificateGetRecord​

▸ tfX509CertificateGetRecord(walletId, serialNumber, options?): Promise<AxiosResponse<CertificateRecordGetResponse, any, {}>>

Returns a record of an issued X509 certificate

Parameters​

NameTypeDescription
walletIdstring
serialNumberstringCertificate serial number
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CertificateRecordGetResponse, any, {}>>

Throws

Inherited from​

DefaultApi.tfX509CertificateGetRecord

Defined in​

api.ts:11317


tfX509CertificateIssue​

▸ tfX509CertificateIssue(walletId, certificateIssueRequest, options?): Promise<AxiosResponse<CertificateIssueResponse, any, {}>>

Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.

Parameters​

NameTypeDescription
walletIdstring
certificateIssueRequestCertificateIssueRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CertificateIssueResponse, any, {}>>

Throws

Inherited from​

DefaultApi.tfX509CertificateIssue

Defined in​

api.ts:11328


tfX509CertificateListRecords​

▸ tfX509CertificateListRecords(walletId, options?): Promise<AxiosResponse<CertificateRecordGetResponse[], any, {}>>

Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CertificateRecordGetResponse[], any, {}>>

Throws

Inherited from​

DefaultApi.tfX509CertificateListRecords

Defined in​

api.ts:11338


tfX509CertificateUpdateStatus​

▸ tfX509CertificateUpdateStatus(walletId, serialNumber, certificateStatusUpdateRequest, options?): Promise<AxiosResponse<void, any, {}>>

Updates a status of an already issued X509 certificate

Parameters​

NameTypeDescription
walletIdstring
serialNumberstringCertificate serial number
certificateStatusUpdateRequestCertificateStatusUpdateRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.tfX509CertificateUpdateStatus

Defined in​

api.ts:11350


trustListAdd​

▸ trustListAdd(trustListAddRequest, options?): Promise<AxiosResponse<void, any, {}>>

Starts tracking the trusted list published at the given URL, storing its contents and pinning it to the certificate that signed it. Adding a list that is already tracked refreshes it. Requires the admin role and the trustListProviderPostgres provider. This fetches the list before it answers, and adding a List of Trusted Lists also walks every list it points at, so the call takes as long as those fetches do. A list that could not be reached through the walk is left out rather than failing the registration.

Parameters​

NameTypeDescription
trustListAddRequestTrustListAddRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.trustListAdd

Defined in​

api.ts:11360


trustListDelete​

▸ trustListDelete(url, options?): Promise<AxiosResponse<void, any, {}>>

Stops tracking the trusted list published at the given URL and removes its contents. Removing a List of Trusted Lists removes the lists reached through it as well. Requires the admin role and the trustListProviderPostgres provider. A wallet whose configuration still names this list will register it again the next time it verifies against it.

Parameters​

NameTypeDescription
urlstringThe URL the trusted list is published at.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.trustListDelete

Defined in​

api.ts:11370


trustListRefresh​

▸ trustListRefresh(url, options?): Promise<AxiosResponse<void, any, {}>>

Refetches the tracked trusted list published at the given URL and stores what it fetched, whether or not the publisher has issued a new version of it. This is what separates a forced refresh from the sweep the wallet makes on its own interval, which leaves an unchanged list alone. Requires the admin role and the trustListProviderPostgres provider. The refetch is pinned to the certificate already recorded for the list, so a list cannot be moved onto a new signer by refreshing it: one signed by a different certificate is rejected with 409 and the stored copy is kept.

Parameters​

NameTypeDescription
urlstringThe URL the trusted list is published at.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.trustListRefresh

Defined in​

api.ts:11380


trustListsGet​

▸ trustListsGet(options?): Promise<AxiosResponse<TrustListsResponse, any, {}>>

Lists the trusted lists the wallet tracks. Requires the admin role, and a wallet configured with the trustListProviderPostgres trust list provider: one that fetches its lists from their publisher as it needs them tracks nothing, and answers 501. A list reached through a List of Trusted Lists is not a source of its own and is not returned here. It is refreshed and removed along with the list that points at it.

Parameters​

NameTypeDescription
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<TrustListsResponse, any, {}>>

Throws

Inherited from​

DefaultApi.trustListsGet

Defined in​

api.ts:11389


untpLinkDelete​

▸ untpLinkDelete(walletId, serviceId, options?): Promise<AxiosResponse<void, any, {}>>

Removes a UNTP link from the wallet's DID document and stops serving its credential.

Parameters​

NameTypeDescription
walletIdstring
serviceIdstringThe service id of the link, in full (`<did>#<fragment>`) or as its fragment.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.untpLinkDelete

Defined in​

api.ts:11400


▸ untpLinkList(walletId, options?): Promise<AxiosResponse<UntpLink[], any, {}>>

The UNTP links the wallet's DID document advertises for its published credentials.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<UntpLink[], any, {}>>

Throws

Inherited from​

DefaultApi.untpLinkList

Defined in​

api.ts:11410


untpLinkPublish​

▸ untpLinkPublish(walletId, untpLinkPublishRequest, options?): Promise<AxiosResponse<UntpLink, any, {}>>

Publishes an issued, valid W3C VCDM credential as a UNTP link: it is served at its public URL (/api/v1/{wallet_id}/vc/{credential_id}) and the wallet's DID document gets a service of the link type, whose endpoint is a link target to that URL. Publishing a credential again as the same link type returns the existing link. The wallet's DID document must be one it hosts (a self-hosted did:web, or an EBSI DID).

Parameters​

NameTypeDescription
walletIdstring
untpLinkPublishRequestUntpLinkPublishRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<UntpLink, any, {}>>

Throws

Inherited from​

DefaultApi.untpLinkPublish

Defined in​

api.ts:11421


untpRegistryList​

▸ untpRegistryList(walletId, options?): Promise<AxiosResponse<UntpRegistry, any, {}>>

Lists the registrars the wallet trusts to issue Digital Identity Anchors, and whether the wallet's own DID is one of them. Each registrar says where it is listed (source): in the wallet's UNTP.trustedRegistrars, the deployment's untp.dia.trustedRegistrars, or the deployment's remote registry (untp.dia.registryUrl), in that order of precedence. With a remote registry, registry says which copy of it is in use; one that cannot be fetched is reported there, and the other registrars are still listed.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<UntpRegistry, any, {}>>

Throws

Inherited from​

DefaultApi.untpRegistryList

Defined in​

api.ts:11431


verifierCredentialVerify​

▸ verifierCredentialVerify(walletId, verifierCredentialRequest, options?): Promise<AxiosResponse<VerifierCredentialResult, any, {}>>

Verifies a credential, given raw or by URL, with the wallet's trust framework, and reports each check: the signature (with the key the issuer's identifier resolves to), the validity dates, and, unless turned off, the JSON-LD document (W3C VCDM 2.0), the status, the schema and the issuer's trust. A credential that fails is still 200, with verified: false; code reuses the error codes of /verifier/untp/resolve. A url must be https, and is never fetched from a private, loopback or link-local address, so a localhost URL is refused too. It is fetched within 10 s, 5 MiB and 3 redirects on the same host, and only as a credential media type.

Parameters​

NameTypeDescription
walletIdstring
verifierCredentialRequestVerifierCredentialRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<VerifierCredentialResult, any, {}>>

Throws

Inherited from​

DefaultApi.verifierCredentialVerify

Defined in​

api.ts:11442


verifierDidVerify​

▸ verifierDidVerify(walletId, did, credentialType?, options?): Promise<AxiosResponse<DidVerification, any, {}>>

Verifies whether the wallet's trust framework trusts a DID, beyond resolving its key. A UNTP wallet requires a Digital Identity Anchor (UNTP 0.8.0, a profile of W3C Recognized Entities): the DID's DIA, found through its DID document's https://test.uncefact.org/vocabulary/link-type/dia service (or untp:dia), or a W3C WhoisService, is verified (signature, validity, status, the UNTP profile) and chained up, DIA by DIA, to a registrar the wallet trusts: its own (UNTP.trustedRegistrars), then the deployment's (untp.dia.trustedRegistrars, untp.dia.registryUrl). A registrar is itself trusted without a DIA. The details are in untp. A DID that is not trusted is still 200, with trusted: false and the reasons in failures. With credentialType, the issuer policy for that credential type is evaluated too. A wallet whose trust framework does not verify DIDs is 422.

Parameters​

NameTypeDescription
walletIdstring
didstringThe DID to verify.
credentialType?stringEvaluate the issuer policy of this credential type, e.g. `DigitalProductPassport`.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<DidVerification, any, {}>>

Throws

Inherited from​

DefaultApi.verifierDidVerify

Defined in​

api.ts:11454


verifierInitUrlCreate​

▸ verifierInitUrlCreate(walletId, verifyInitRequest, options?): Promise<AxiosResponse<VerifyInitResponse, any, {}>>

Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use WalletVerifiedCredentialsByState with the returned state to retrieve the verification result.

Parameters​

NameTypeDescription
walletIdstring
verifyInitRequestVerifyInitRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<VerifyInitResponse, any, {}>>

Throws

Inherited from​

DefaultApi.verifierInitUrlCreate

Defined in​

api.ts:11465


verifierPdfVerify​

▸ verifierPdfVerify(walletId, pdf, extractVp, 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​

NameTypeDescription
walletIdstring
pdfFile
extractVpbooleanWhether to extract VP attachment from the PDF. A missing value is `false`.
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?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<PdfVerificationResponse, any, {}>>

Throws

Inherited from​

DefaultApi.verifierPdfVerify

Defined in​

api.ts:11480


verifierRender​

▸ verifierRender(walletId, verifierRenderRequest, options?): Promise<AxiosResponse<File, any, {}>>

Renders a credential for a human with one of its renderMethod entries: a UNTP RenderTemplate2024 (Handlebars, the output in its mediaType: text/html, the default, or text/plain) or a W3C TemplateRenderMethod of the html suite (a wrapper document to show in an iframe with sandbox=\"allow-scripts\" and srcdoc) or the card suite (a JSON card). By default the first method that can be rendered is used. A signedVc is verified (its signature, validity and status) before it is rendered, and X-Credential-Verified is true; one that fails is 422. A vc is a credential document rendered as it is, with X-Credential-Verified: false. A credential with no render method that matches, or a method that cannot be rendered (nfc, a template of another mediaType, or an unknown type), is 422 with no render method or render suite unsupported; an invalid one is 422 with invalid render method, a template that cannot be fetched or does not match its digest render template unavailable, and one that fails or runs too long render failed. A remote template is fetched over https only, within 5 s and 1 MiB, and must match its digestMultibase. Rendering stops after 2 s or 1 MiB of output. A template that runs on past that still counts against the renderings the wallet runs at once (render.maxConcurrent); when none is free, the response is 503.

Parameters​

NameTypeDescription
walletIdstring
verifierRenderRequestVerifierRenderRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<File, any, {}>>

Throws

Inherited from​

DefaultApi.verifierRender

Defined in​

api.ts:11491


verifierUntpResolve​

▸ verifierUntpResolve(walletId, identifier, linkType?, fetch?, verify?, verifyIssuer?, options?): Promise<AxiosResponse<UntpResolveResult, any, {}>>

Resolves a DID into the RFC 9264 linkset of the UNTP links its DID document advertises and, with fetch, fetches the linked credentials and verifies them. A credential that fails is reported in credentials and verification.failed, with the response still 200: verification.ok is the verdict.

Parameters​

NameTypeDescription
walletIdstring
identifierstringThe DID to resolve.
linkType?stringThe link types to fetch, comma separated (e.g. `dpp,dcc`), or `all` (the default). The linkset uses the UNTP 0.8.0 relations: `dpp`, `linkset` for an identity resolver, and `https://test.uncefact.org/vocabulary/link-type/&lt;type&gt;&#x60; for the others. A DID document&#39;s UNTP 0.7 service types (`untp:dia`, bare `dcc`) are read as the same link types.
fetch?booleanFetch and verify the linked credentials.
verify?booleanVerify the fetched credentials&#39; dates, status and schema, besides their signature.
verifyIssuer?booleanAlso verify whether the wallet&#39;s trust framework trusts the DID, as `/verifier/did` does, and report it as `issuer`. A wallet whose trust framework does not verify DIDs reports no `issuer`, and is `422` when `verifyIssuer` is set explicitly. A UNTP wallet enforces the anchor on every signature anyway; this reports it.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<UntpResolveResult, any, {}>>

Throws

Inherited from​

DefaultApi.verifierUntpResolve

Defined in​

api.ts:11506


walletCreate​

▸ walletCreate(walletCreatePayload, options?): Promise<AxiosResponse<WalletIdObject, any, {}>>

Creates a new wallet for the authenticated client.

Parameters​

NameTypeDescription
walletCreatePayloadWalletCreatePayload
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WalletIdObject, any, {}>>

Throws

Inherited from​

DefaultApi.walletCreate

Defined in​

api.ts:11516


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​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.walletDelete

Defined in​

api.ts:11526


walletGet​

▸ walletGet(walletId, options?): Promise<AxiosResponse<Wallet, any, {}>>

Provides wallet details

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<Wallet, any, {}>>

Throws

Inherited from​

DefaultApi.walletGet

Defined in​

api.ts:11536


walletIdentifierGet​

▸ walletIdentifierGet(walletId, options?): Promise<AxiosResponse<WalletIdentifier, any, {}>>

Returns the wallet's public identifier — e.g. a DID (Decentralized Identifier) or a wallet URL. Used by other parties to reference this wallet in trust framework interactions and credential exchanges.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WalletIdentifier, any, {}>>

Throws

Inherited from​

DefaultApi.walletIdentifierGet

Defined in​

api.ts:11546


walletKeys​

▸ walletKeys(walletId, options?): Promise<AxiosResponse<WalletKeys, any, {}>>

Provides wallet keys used for signing.

Parameters​

NameTypeDescription
walletIdstringWallet ID
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WalletKeys, any, {}>>

Throws

Inherited from​

DefaultApi.walletKeys

Defined in​

api.ts:11556


walletList​

▸ walletList(ownerId?, searchName?, tenantId?, options?): Promise<AxiosResponse<WalletListItem[], any, {}>>

Provides list of wallets owned by the authenticated client, sorted by wallet name in byte order (Unicode code point order of the UTF-8 name, so upper case sorts before lower case). Wallets with the same name are in the order they were created.

Parameters​

NameTypeDescription
ownerId?string
searchName?stringWallet name to search using &quot;begins-with&quot; filter
tenantId?stringLists the wallets of every owner in this tenant instead, each with its ownerId. Only a Tenant Owner of the tenant may set it, and not together with ownerId.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WalletListItem[], any, {}>>

Throws

Inherited from​

DefaultApi.walletList

Defined in​

api.ts:11568


walletNotificationGetByState​

▸ walletNotificationGetByState(walletId, eventType, state, options?): Promise<AxiosResponse<WalletNotification, any, {}>>

Gets a specific notification by state

Parameters​

NameTypeDescription
walletIdstringWallet ID
eventTypestringEvent type
statestringEvent identifier
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WalletNotification, any, {}>>

Throws

Inherited from​

DefaultApi.walletNotificationGetByState

Defined in​

api.ts:11580


walletNotificationHistory​

▸ walletNotificationHistory(walletId, limit?, nextMarker?, type?, sort?, newerThan?, options?): Promise<AxiosResponse<WalletNotificationHistory, any, {}>>

Provides wallet notifications that can be used to audit the wallet activity.

Parameters​

NameTypeDescription
walletIdstringWallet ID
limit?numberThe number of items
nextMarker?stringMarking the next set of items
type?WalletNotificationEventType[]Notification types
sort?ListSortSort flag controls the sort direction by the time created
newerThan?numberList notifications that are newer than the provided timestamp
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WalletNotificationHistory, any, {}>>

Throws

Inherited from​

DefaultApi.walletNotificationHistory

Defined in​

api.ts:11595


walletNotifications​

▸ walletNotifications(walletId, eventType?, state?, lastEventID?, options?): Promise<AxiosResponse<File, any, {}>>

Provides SSE stream of notifications for a specific wallet. Supports replay of queued notifications via Last-Event-Id header parameter.

Parameters​

NameTypeDescription
walletIdstringWallet ID
eventType?stringEvent type
state?stringEvent state
lastEventID?stringSSE last event ID
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<File, any, {}>>

Throws

Inherited from​

DefaultApi.walletNotifications

Defined in​

api.ts:11608


walletPatch​

▸ walletPatch(walletId, walletPatchPayload?, options?): Promise<AxiosResponse<WalletIdObject, any, {}>>

Update wallet metadata and configuration. The owner of the wallet patches its name, config and metadata; config.tenant is ignored for them. config.UNTP replaces the wallet's UNTP config, but for the read-only isOnboarded and role, which keep their stored values; an invalid one is 400. A Tenant Owner of the wallet's tenant patches config.tenant.issuerProxyUrl, also of wallets of other owners, and for those every other field of the body is ignored. config.tenant.tenantId never changes.

Parameters​

NameTypeDescription
walletIdstring
walletPatchPayload?WalletPatchPayload
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WalletIdObject, any, {}>>

Throws

Inherited from​

DefaultApi.walletPatch

Defined in​

api.ts:11619


walletProviderCertificateImport​

▸ walletProviderCertificateImport(walletProviderCertificateRequest, options?): Promise<AxiosResponse<void, any, {}>>

Installs the externally-issued certificate chain for the Wallet Provider key. Requires the admin role. After this succeeds the Wallet Provider can sign WIAs with an x5c header.

Parameters​

NameTypeDescription
walletProviderCertificateRequestWalletProviderCertificateRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.walletProviderCertificateImport

Defined in​

api.ts:11629


walletProviderCsrGenerate​

▸ walletProviderCsrGenerate(options?): Promise<AxiosResponse<WalletProviderCsrResponse, any, {}>>

Generates a PKCS#10 certificate signing request (CSR) for the Wallet Provider key used to sign Wallet Instance Attestations. Requires the admin role. The provider key is generated on first call if it does not exist yet.

Parameters​

NameTypeDescription
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WalletProviderCsrResponse, any, {}>>

Throws

Inherited from​

DefaultApi.walletProviderCsrGenerate

Defined in​

api.ts:11638


walletVerifiedCredentialsByState​

▸ walletVerifiedCredentialsByState(walletId, state, responseCode?, options?): Promise<AxiosResponse<VerifiedWrapper, any, {}>>

Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a VerifierInitUrlCreate request. Returns 204 if the holder has not yet presented.

Parameters​

NameTypeDescription
walletIdstringWallet ID
statestringVerifier state
responseCode?stringThe `response_code` the holder&#39;s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<VerifiedWrapper, any, {}>>

Throws

Inherited from​

DefaultApi.walletVerifiedCredentialsByState

Defined in​

api.ts:11650


walletVerifiedCredentialsDeleteByState​

▸ walletVerifiedCredentialsDeleteByState(walletId, state, options?): Promise<AxiosResponse<void, any, {}>>

Deletes a specific verified credentials by state

Parameters​

NameTypeDescription
walletIdstringWallet ID
statestringVerifier state
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.walletVerifiedCredentialsDeleteByState

Defined in​

api.ts:11661


walletX509CSRCreate​

▸ walletX509CSRCreate(walletId, cSRCreateRequest, options?): Promise<AxiosResponse<CSRCreateResponse, any, {}>>

Creates an X509 Certificate Signing Request (CSR) for the wallet's signing key. The resulting certificate is imported back via WalletX509CertificateImport to enable issuing credentials signed by X509 certificate chain it or XAdES/PDF signing.

Parameters​

NameTypeDescription
walletIdstringWallet ID
cSRCreateRequestCSRCreateRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CSRCreateResponse, any, {}>>

Throws

Inherited from​

DefaultApi.walletX509CSRCreate

Defined in​

api.ts:11672


walletX509CertificateGet​

▸ walletX509CertificateGet(walletId, options?): Promise<AxiosResponse<File, any, {}>>

Returns the wallet's currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.

Parameters​

NameTypeDescription
walletIdstringWallet ID
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<File, any, {}>>

Throws

Inherited from​

DefaultApi.walletX509CertificateGet

Defined in​

api.ts:11682


walletX509CertificateImport​

▸ walletX509CertificateImport(walletId, certificateImportRequest, options?): Promise<AxiosResponse<void, any, {}>>

Imports an X509 certificate to be used when signing credentials

Parameters​

NameTypeDescription
walletIdstringWallet ID
certificateImportRequestCertificateImportRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.walletX509CertificateImport

Defined in​

api.ts:11693


wmpAcceptInvitation​

▸ wmpAcceptInvitation(walletId, wmpAcceptInvitationPayload, options?): Promise<AxiosResponse<WmpEntityIdObject, any, {}>>

Accepts a WMP invitation URL from another wallet (issuer or verifier) to establish a peer-to-peer WMP connection. After acceptance, the connected entity appears in the WMP entity list and can send credential offers or verification requests directly to this wallet.

Parameters​

NameTypeDescription
walletIdstring
wmpAcceptInvitationPayloadWmpAcceptInvitationPayload
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpEntityIdObject, any, {}>>

Throws

Inherited from​

DefaultApi.wmpAcceptInvitation

Defined in​

api.ts:11704


wmpClientGetPendingRequests​

▸ wmpClientGetPendingRequests(walletId, options?): Promise<AxiosResponse<WmpRequest[], any, {}>>

Not implemented: always answers 501. Received requests arrive as wallet notifications; read one with GET /wmp/client/requests/{request_id}.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpRequest[], any, {}>>

Deprecated

Throws

Inherited from​

DefaultApi.wmpClientGetPendingRequests

Defined in​

api.ts:11715


wmpClientGetRequest​

▸ wmpClientGetRequest(walletId, requestId, options?): Promise<AxiosResponse<WmpMessage, any, {}>>

Returns metadata for the received message identified by request_id (delivered via a wmp.message notification carrying its id): its content type and body download link. The body is fetched as raw bytes from the download link included in the response (bodyUrl).

Parameters​

NameTypeDescription
walletIdstring
requestIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpMessage, any, {}>>

Throws

Inherited from​

DefaultApi.wmpClientGetRequest

Defined in​

api.ts:11726


wmpClientProcessRequest​

▸ wmpClientProcessRequest(walletId, requestId, wmpClientRequestBody, options?): Promise<AxiosResponse<InteractionAuthorizationRequirements, any, {}>>

Acts on a pending WMP client request identified by request_id. The body's type selects the action: process_offer a pending credential offer or process_verification_request a pending verification request (either returns its authorization requirements), identity_assertion to present a credential as the session identity assertion, authenticate to open the session after the assertion exchange, or ack_read/ack_processed to acknowledge a received message as read or fully processed (sends a wmp.message.ack, core §5.3, to the original sender), or accept/reject to accept or refuse the content of a received message (on a session that negotiated the evidence capability, sends acceptance_confirmed/acceptance_rejected evidence to the original sender, WMP evidence §3.5).

Parameters​

NameTypeDescription
walletIdstring
requestIdstring
wmpClientRequestBodyWmpClientRequestBody
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<InteractionAuthorizationRequirements, any, {}>>

Throws

Inherited from​

DefaultApi.wmpClientProcessRequest

Defined in​

api.ts:11738


wmpCreateNewInvitation​

▸ wmpCreateNewInvitation(walletId, options?): Promise<AxiosResponse<WmpCreateInvitationResponse, any, {}>>

Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with another wallet to establish a secure peer-to-peer communication channel. Issuers and verifiers use this to connect with holder wallets for direct credential delivery and verification without requiring QR codes or redirects on each interaction.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpCreateInvitationResponse, any, {}>>

Throws

Inherited from​

DefaultApi.wmpCreateNewInvitation

Defined in​

api.ts:11748


wmpEntityConnectionGet​

▸ wmpEntityConnectionGet(walletId, entityId, options?): Promise<AxiosResponse<WmpEntityConnectionStatus, any, {}>>

Get entity connection status

Parameters​

NameTypeDescription
walletIdstring
entityIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpEntityConnectionStatus, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEntityConnectionGet

Defined in​

api.ts:11759


wmpEntityDelete​

▸ wmpEntityDelete(walletId, entityId, options?): Promise<AxiosResponse<void, any, {}>>

Delete entity based on the entity ID

Parameters​

NameTypeDescription
walletIdstring
entityIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEntityDelete

Defined in​

api.ts:11770


wmpEntityGet​

▸ wmpEntityGet(walletId, entityId, options?): Promise<AxiosResponse<WmpEntityRecord, any, {}>>

Get entity based on the entity ID

Parameters​

NameTypeDescription
walletIdstring
entityIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpEntityRecord, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEntityGet

Defined in​

api.ts:11781


wmpEntityGetMessageHistory​

▸ wmpEntityGetMessageHistory(walletId, entityId, messageId, options?): Promise<AxiosResponse<WmpMessageHistoryRecord, any, {}>>

Returns this wallet's own delivery-lifecycle record for a message it previously sent via POST /wmp/entities/{entity_id}/messages.

Parameters​

NameTypeDescription
walletIdstring
entityIdstring
messageIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpMessageHistoryRecord, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEntityGetMessageHistory

Defined in​

api.ts:11793


wmpEntityList​

▸ wmpEntityList(walletId, entityType, options?): Promise<AxiosResponse<WmpEntityRecord[], any, {}>>

Lists all wallets that have established a WMP connection with this wallet. Filter by entityType=server for entities that created the invitation (issuers/verifiers), entityType=client for entities that accepted it (holders), entityType=relay for the wallet's QTSP relay account, or entityType=correspondent for Subscribers reached through the relay.

Parameters​

NameTypeDescription
walletIdstring
entityTypeWmpEntityListEntityTypeEnum
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpEntityRecord[], any, {}>>

Throws

Inherited from​

DefaultApi.wmpEntityList

Defined in​

api.ts:11804


wmpEntityListMessageHistory​

▸ wmpEntityListMessageHistory(walletId, entityId, limit?, nextMarker?, sort?, options?): Promise<AxiosResponse<WmpMessageHistoryList, any, {}>>

Lists this wallet's own delivery-lifecycle records (core §5.3.1/§5.3) for every message it has sent to entityId, across every session, ordered by sentAt.

Parameters​

NameTypeDescription
walletIdstring
entityIdstring
limit?numberThe number of items
nextMarker?stringMarking the next set of items
sort?ListSortSort flag controls the sort direction by sentAt
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpMessageHistoryList, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEntityListMessageHistory

Defined in​

api.ts:11818


wmpEntityMessageDecision​

▸ wmpEntityMessageDecision(walletId, entityId, messageId, wmpMessageDecision, options?): Promise<AxiosResponse<void, any, {}>>

Accepts or rejects a received consented / consented_signed message from a relay correspondent (CS-15 §14). The wallet answers with a processed or rejected acknowledgement, signed with the Subscriber key under consented_signed; the QTSP turns it into acceptance or rejection evidence.

Parameters​

NameTypeDescription
walletIdstring
entityIdstring
messageIdstring
wmpMessageDecisionWmpMessageDecision
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEntityMessageDecision

Defined in​

api.ts:11831


wmpEntitySendMessage​

▸ wmpEntitySendMessage(walletId, entityId, body, expiresAt?, messageType?, inReplyTo?, sign?, timestamp?, consignmentMode?, allowShortExpiry?, options?): Promise<AxiosResponse<WmpMessageSendResult, any, {}>>

Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (status: accepted); if the peer is disconnected but negotiated the offline capability, the message is queued and replayed once the peer reconnects or polls (status: queued, queuedUntil reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a wmp.message notification and can then read its metadata from GET /wmp/client/requests/{request_id} and download its body via the download link it contains. This wallet's own view of the message's delivery lifecycle is available afterwards via GET /wmp/entities/{entity_id}/messages/{message_id} and the wmp.message_status notification. The request is multipart/form-data. Supply the primary body as either the body text field (plain text) or a body file part (any content type, taken from the part).

Parameters​

NameTypeDescription
walletIdstring
entityIdstring
bodyFileThe primary message body: a plain-text form value, or a file part whose Content-Type becomes the message content type.
expiresAt?stringPer-message deadline (core §3.2). While the peer is offline the message is discarded from the queue past this time, whichever of this or the negotiated `offline.ttl` is sooner.
messageType?stringFree-form application-defined message type tag.
inReplyTo?stringId of a previously received message this one replies to.
sign?booleanAttach a non-repudiation signature (`wmp.signature`, core §5.4): a detached JWS over the JCS-canonicalised content, made with the wallet\&#39;s key (`kid` of its DID, or `x5c` for an X.509 wallet). Not available for messages the session encrypts with MLS, nor for wallets whose key identifier is a JWK.
timestamp?booleanAttach an RFC 3161 timestamp token (`wmp.timestamp_token`, core §5.5) over the same content from the configured TSA (`services.wmpTsa.url`); 400 when none is configured, 502 when the TSA cannot be reached.
consignmentMode?WmpEntitySendMessageConsignmentModeEnumRegistered-delivery consignment mode (WMP core §3.5, CS-15 §13); relay correspondents only. `basic` (default): delivery evidence only. `consented`: the recipient accepts or rejects. `consented_signed`: the decision is signed.
allowShortExpiry?booleanRelay correspondents only: accept an `expiresAt` earlier than the QTSP\&#39;s offline retention, which turns a slow delivery into a non-delivery (CS-15 §11.2). Without it such an `expiresAt` is refused with 400.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpMessageSendResult, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEntitySendMessage

Defined in​

api.ts:11850


wmpEntityServerConnect​

▸ wmpEntityServerConnect(walletId, entityId, options?): Promise<AxiosResponse<void, any, {}>>

Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.

Parameters​

NameTypeDescription
walletIdstring
entityIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEntityServerConnect

Defined in​

api.ts:11861


wmpEvidenceGet​

▸ wmpEvidenceGet(walletId, evidenceId, options?): Promise<AxiosResponse<WmpEvidenceRecord, any, {}>>

Returns one record of this wallet's evidence repository (WMP evidence §6.1).

Parameters​

NameTypeDescription
walletIdstring
evidenceIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpEvidenceRecord, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEvidenceGet

Defined in​

api.ts:11872


wmpEvidenceList​

▸ wmpEvidenceList(walletId, messageId?, sessionId?, since?, until?, continuationToken?, limit?, options?): Promise<AxiosResponse<WmpEvidenceList, any, {}>>

Searches this wallet's evidence repository (WMP evidence §6.1): the evidence it issued and the evidence its peers sent it. Either message_id or session_id is required. Records are ordered by event time; a search by session is paginated with limit and continuation_token.

Parameters​

NameTypeDescription
walletIdstring
messageId?stringLists the evidence about this message (the `original_message_id`).
sessionId?stringLists the evidence of this session, oldest event first, in pages.
since?stringWith `session_id`, only evidence whose event time is at or after this time.
until?stringWith `session_id`, only evidence whose event time is before this time.
continuationToken?stringWith `session_id`, the `continuation_token` of the previous page.
limit?numberWith `session_id`, the maximum number of records of a page.
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpEvidenceList, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEvidenceList

Defined in​

api.ts:11888


wmpEvidenceVerify​

▸ wmpEvidenceVerify(walletId, requestBody, options?): Promise<AxiosResponse<WmpEvidenceVerifyReport, any, {}>>

Verifies the params of a wmp.evidence.notify (WMP evidence §4.1), independently of any session: the signature and its x5c chain, the timestamp token and, when the evidence is about a message this wallet sent, the content hash. Nothing is stored.

Parameters​

NameTypeDescription
walletIdstring
requestBodyObject
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpEvidenceVerifyReport, any, {}>>

Throws

Inherited from​

DefaultApi.wmpEvidenceVerify

Defined in​

api.ts:11899


wmpRelayCorrespondentConnect​

▸ wmpRelayCorrespondentConnect(walletId, wmpRelayCorrespondentRequest, options?): Promise<AxiosResponse<WmpEntityRecord, any, {}>>

Connects to another Subscriber through the QTSP (CS-15 §7.3, §10.4): resolves the participant and one of its KeyPackages, validates its credential and sets up the dedicated relay session and MLS group. Messages are then sent with POST /wmp/entities/{entity_id}/messages.

Parameters​

NameTypeDescription
walletIdstring
wmpRelayCorrespondentRequestWmpRelayCorrespondentRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpEntityRecord, any, {}>>

Throws

Inherited from​

DefaultApi.wmpRelayCorrespondentConnect

Defined in​

api.ts:11910


wmpRelayDelete​

▸ wmpRelayDelete(walletId, options?): Promise<AxiosResponse<void, any, {}>>

Closes the relay sessions and forgets the relay account and its correspondents. The QTSP keeps the Subscriber registration and the evidence it holds.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any, {}>>

Throws

Inherited from​

DefaultApi.wmpRelayDelete

Defined in​

api.ts:11920


wmpRelayGet​

▸ wmpRelayGet(walletId, options?): Promise<AxiosResponse<WmpRelayAccount, any, {}>>

Returns the wallet's account at its QTSP relay (CS-15 EBW role).

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpRelayAccount, any, {}>>

Throws

Inherited from​

DefaultApi.wmpRelayGet

Defined in​

api.ts:11930


wmpRelayOnboardingComplete​

▸ wmpRelayOnboardingComplete(walletId, onboardingId, wmpRelayOnboardingResult, options?): Promise<AxiosResponse<WmpRelayAccount, any, {}>>

Completes onboarding with the onboarding result the QTSP answered the presentation with (CS-15 §8.5): the response of HolderCredentialsPresentAfterConsent, as is. Checks that the certificate names the Subscriber and chains to the Subscriber CAs, stores it, connects the inbox session and publishes KeyPackages.

Parameters​

NameTypeDescription
walletIdstring
onboardingIdstring
wmpRelayOnboardingResultWmpRelayOnboardingResult
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpRelayAccount, any, {}>>

Throws

Inherited from​

DefaultApi.wmpRelayOnboardingComplete

Defined in​

api.ts:11942


wmpRelayOnboardingStart​

▸ wmpRelayOnboardingStart(walletId, wmpRelayOnboardingRequest, options?): Promise<AxiosResponse<WmpRelayOnboardingStarted, any, {}>>

Starts Subscriber onboarding at a QTSP relay (CS-15 §8): checks the QTSP's discovery document and qualified status, generates the Subscriber key and CSR and sends them to the QTSP. The returned OpenID4VP authorization request is presented with the holder endpoints (HolderPresentPassAuthInfo, HolderCredentialsPresentAfterConsent); the QTSP answers the presentation with the onboarding result, returned as response, which is then passed to WmpRelayOnboardingComplete.

Parameters​

NameTypeDescription
walletIdstring
wmpRelayOnboardingRequestWmpRelayOnboardingRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpRelayOnboardingStarted, any, {}>>

Throws

Inherited from​

DefaultApi.wmpRelayOnboardingStart

Defined in​

api.ts:11953


wmpRelayRegistrationComplete​

▸ wmpRelayRegistrationComplete(walletId, wmpRelayCertificate, options?): Promise<AxiosResponse<WmpRelayAccount, any, {}>>

Completes a manual registration with the certificate the QTSP issued for the CSR: stores it, connects the inbox session and publishes KeyPackages. The certificate must name the Subscriber, certify the CSR's key and chain to the Subscriber CAs (wmpRelay.subscriberTrustAnchors, or the uploaded chain's own CAs).

Parameters​

NameTypeDescription
walletIdstring
wmpRelayCertificateWmpRelayCertificate
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpRelayAccount, any, {}>>

Throws

Inherited from​

DefaultApi.wmpRelayRegistrationComplete

Defined in​

api.ts:11964


wmpRelayRegistrationStart​

▸ wmpRelayRegistrationStart(walletId, wmpRelayOnboardingRequest, options?): Promise<AxiosResponse<WmpRelayRegistrationStarted, any, {}>>

Starts a manual Subscriber registration, for a QTSP without the onboarding API (CS-15 §8.1): checks the QTSP's discovery document and qualified status and generates the Subscriber key. The returned CSR is given to the QTSP by other means; then upload the certificate it issued with POST /wmp/relay/registration/certificate. A pending onboarding or registration is replaced.

Parameters​

NameTypeDescription
walletIdstring
wmpRelayOnboardingRequestWmpRelayOnboardingRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpRelayRegistrationStarted, any, {}>>

Throws

Inherited from​

DefaultApi.wmpRelayRegistrationStart

Defined in​

api.ts:11975


wmpRelayRotate​

▸ wmpRelayRotate(walletId, options?): Promise<AxiosResponse<WmpRelayAccount, any, {}>>

Rotates the Subscriber key and certificate over mutual TLS (CS-15 §8.6) and republishes KeyPackages. Existing correspondent groups move to the new certificate on their next message.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WmpRelayAccount, any, {}>>

Throws

Inherited from​

DefaultApi.wmpRelayRotate

Defined in​

api.ts:11985