@triveria/wallet / Exports / Client
Class: Client
DefaultApi - object-oriented interface
Export
DefaultApi
Hierarchy
-
↳
Client
Table of contents
Constructors
Properties
Methods
- credentialClaimMetadataGet
- credentialCreate
- credentialGet
- credentialImport
- credentialIssuanceInit
- credentialIssueDirect
- credentialList
- credentialMetadataPatch
- credentialPatch
- credentialPayloadGet
- credentialRawGet
- credentialRender
- credentialRenderMethods
- credentialRequestInit
- credentialRevoke
- credentialSuspend
- credentialUnsuspend
- deferredStatus
- didDocumentGet
- didDocumentLocalGet
- didDocumentPatch
- healthCheck
- holderCreateAuthOffer
- holderCredentialsPresentAfterConsent
- holderIdTokenSend
- holderOfferPassAuthInfo
- holderOfferProcessAfterConsent
- holderPresentPassAuthInfo
- idTokenRequestCreate
- issuerCredentialTypesList
- issuerDetachedJwsSign
- issuerInitiateAuthOffer
- issuerInitiatePreauthOffer
- issuerXadesSign
- pdfCredentialMakeVp
- pdfCredentialTwinDelete
- pdfCredentialTwinGet
- pdfCredentialTwinUpload
- streamWalletNotifications
- tenantEnrollmentEnroll
- tenantEnrollmentInit
- tenantEnrollmentList
- tenantEnrollmentRevoke
- tfAccreditAs
- tfAccreditRequest
- tfOnboard
- tfOnboardRequest
- tfRevokeAccreditation
- tfUntpDiaIssue
- tfUntpDiaList
- tfUntpRequestList
- tfX509CertificateGetRecord
- tfX509CertificateIssue
- tfX509CertificateListRecords
- tfX509CertificateUpdateStatus
- trustListAdd
- trustListDelete
- trustListRefresh
- trustListsGet
- untpLinkDelete
- untpLinkList
- untpLinkPublish
- untpRegistryList
- verifierCredentialVerify
- verifierDidVerify
- verifierInitUrlCreate
- verifierPdfVerify
- verifierRender
- verifierUntpResolve
- walletCreate
- walletDelete
- walletGet
- walletIdentifierGet
- walletKeys
- walletList
- walletNotificationGetByState
- walletNotificationHistory
- walletNotifications
- walletPatch
- walletProviderCertificateImport
- walletProviderCsrGenerate
- walletVerifiedCredentialsByState
- walletVerifiedCredentialsDeleteByState
- walletX509CSRCreate
- walletX509CertificateGet
- walletX509CertificateImport
- wmpAcceptInvitation
- wmpClientGetPendingRequests
- wmpClientGetRequest
- wmpClientProcessRequest
- wmpCreateNewInvitation
- wmpEntityConnectionGet
- wmpEntityDelete
- wmpEntityGet
- wmpEntityGetMessageHistory
- wmpEntityList
- wmpEntityListMessageHistory
- wmpEntityMessageDecision
- wmpEntitySendMessage
- wmpEntityServerConnect
- wmpEvidenceGet
- wmpEvidenceList
- wmpEvidenceVerify
- wmpRelayCorrespondentConnect
- wmpRelayDelete
- wmpRelayGet
- wmpRelayOnboardingComplete
- wmpRelayOnboardingStart
- wmpRelayRegistrationComplete
- wmpRelayRegistrationStart
- wmpRelayRotate
Constructors
constructor
• new Client(tokenUrl, audience, clientId, clientSecret, baseURL, axios?): Client
Parameters
| Name | Type | Default value |
|---|---|---|
tokenUrl | string | undefined |
audience | string | undefined |
clientId | string | undefined |
clientSecret | string | undefined |
baseURL | string | undefined |
axios | AxiosInstance | globalAxios |
Returns
Overrides
Defined in
Properties
axios
• Protected axios: AxiosInstance = globalAxios
Inherited from
Defined in
basePath
• Protected basePath: string = BASE_PATH
Inherited from
Defined in
baseURL
• Protected baseURL: string
Defined in
configuration
• Protected configuration: undefined | Configuration
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
metadataScope? | CredentialClaimMetadataGetMetadataScopeEnum | Scope 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? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<{ [key: string]: CredentialClaimMetadata; }, any, {}>>
Throws
Inherited from
DefaultApi.credentialClaimMetadataGet
Defined in
credentialCreate
▸ credentialCreate(walletId, credentialCreatePayload, options?): Promise<AxiosResponse<CredentialIdObject, any, {}>>
Creates a new draft credential.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
credentialCreatePayload | CredentialCreatePayload | A Verifiable Credential payload in JSON format. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CredentialIdObject, any, {}>>
Throws
Inherited from
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
Inherited from
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
Inherited from
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
Inherited from
DefaultApi.credentialIssuanceInit
Defined in
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
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
idempotencyKey? | string | Makes 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? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CredentialIssueDirectResult, any, {}>>
Throws
Inherited from
DefaultApi.credentialIssueDirect
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. At least one of `interaction` and `type` is required; when both are given, credentials must match both. |
type? | string | The 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? | 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
Inherited from
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
Inherited from
DefaultApi.credentialMetadataPatch
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
Inherited from
Defined in
credentialPayloadGet
▸ credentialPayloadGet(credentialId, walletId, form?, contexts?, options?): Promise<AxiosResponse<object, any, {}>>
Returns raw credential payload, with format depending on credential format.
Parameters
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
form? | CredentialPayloadGetFormEnum | Form 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? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<object, any, {}>>
Throws
Inherited from
DefaultApi.credentialPayloadGet
Defined in
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
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
disclosedClaims? | string[] | List of json paths of claims disclosed in the returned credential (returns all disclosures by default). |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<string, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
index? | number | The index of the render method to use, in the credential's `renderMethod`. |
suite? | RenderSuite | Use the first render method of this suite. |
mediaQuery? | string | Use the first render method with exactly this `mediaQuery`. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<File, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<RenderMethodInfo[], any, {}>>
Throws
Inherited from
DefaultApi.credentialRenderMethods
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
Inherited from
DefaultApi.credentialRequestInit
Defined in
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
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
idempotencyKey? | string | Makes 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? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
credentialId | string | Verifiable Credential Identifier |
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
Defined in
credentialUnsuspend
▸ credentialUnsuspend(credentialId, walletId, options?): Promise<AxiosResponse<void, any, {}>>
Lift the suspension of a 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
Inherited from
DefaultApi.credentialUnsuspend
Defined in
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
| Name | Type | Description |
|---|---|---|
deferredId | string | Deferred token |
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<Deferred, any, {}>>
Throws
Inherited from
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
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<{ [key: string]: any; }, any, {}>>
Throws
Inherited from
DefaultApi.didDocumentLocalGet
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
didDocumentPatch | DidDocumentPatch | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<{ [key: string]: any; }, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<HealthStatus, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
holderAuthOfferCreationRequest | HolderAuthOfferCreationRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<string, any, {}>>
Throws
Inherited from
DefaultApi.holderCreateAuthOffer
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
interactionId | string | |
interactionAuthorizationConsent? | InteractionAuthorizationConsent | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<PresentationResponse, any, {}>>
Throws
Inherited from
DefaultApi.holderCredentialsPresentAfterConsent
Defined in
holderIdTokenSend
▸ holderIdTokenSend(walletId, idTokenSendRequest, options?): Promise<AxiosResponse<PresentationResponse, any, {}>>
Responds to an ID token request
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
idTokenSendRequest | IdTokenSendRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<PresentationResponse, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
vcOffer | VcOffer | Verifiable Credential offer |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<InteractionAuthorizationRequirements, any, {}>>
Throws
Inherited from
DefaultApi.holderOfferPassAuthInfo
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
interactionId | string | |
interactionAuthorizationConsent? | InteractionAuthorizationConsent | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<string[], any, {}>>
Throws
Inherited from
DefaultApi.holderOfferProcessAfterConsent
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
presentationRequest | PresentationRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<InteractionAuthorizationRequirements, any, {}>>
Throws
Inherited from
DefaultApi.holderPresentPassAuthInfo
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<IdTokenRequest, any, {}>>
Throws
Inherited from
DefaultApi.idTokenRequestCreate
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
Inherited from
DefaultApi.issuerCredentialTypesList
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
issuerDetachedJwsSignRequest | IssuerDetachedJwsSignRequest | |
idempotencyKey? | string | Makes 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? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<IssuerDetachedJwsSignResult, any, {}>>
Throws
Inherited from
DefaultApi.issuerDetachedJwsSign
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
initAuthOffer | InitAuthOffer | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<AuthOffer, any, {}>>
Throws
Inherited from
DefaultApi.issuerInitiateAuthOffer
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
initPreAuthOffer | InitPreAuthOffer | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<PreAuthOffer, any, {}>>
Throws
Inherited from
DefaultApi.issuerInitiatePreauthOffer
Defined in
issuerXadesSign
▸ issuerXadesSign(walletId, xml, xadesSignatureType, options?): Promise<AxiosResponse<object, any, {}>>
Signs an XML document with XAdES signature
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
xml | File | |
xadesSignatureType | XadesSignatureType | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<object, any, {}>>
Throws
Inherited from
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
Inherited from
DefaultApi.pdfCredentialMakeVp
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
Inherited from
DefaultApi.pdfCredentialTwinDelete
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
Inherited from
DefaultApi.pdfCredentialTwinGet
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. Maximum size of the PDF document is 20 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
Inherited from
DefaultApi.pdfCredentialTwinUpload
Defined in
streamWalletNotifications
▸ streamWalletNotifications(walletId, options?): WalletNotificationStream
Opens a live stream of notifications for a wallet over SSE.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
options | WalletNotificationStreamOptions | Stream filtering/reconnect options |
Returns
WalletNotificationStream
Defined in
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
| Name | Type | Description |
|---|---|---|
tenantId | string | |
state | string | The enrollment state from TenantEnrollmentInit. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletIdObject, any, {}>>
Throws
Inherited from
DefaultApi.tenantEnrollmentEnroll
Defined in
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
| Name | Type | Description |
|---|---|---|
tenantId | string | |
enrollmentInitPayload | EnrollmentInitPayload | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<EnrollmentInitResponse, any, {}>>
Throws
Inherited from
DefaultApi.tenantEnrollmentInit
Defined in
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
| Name | Type | Description |
|---|---|---|
tenantId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<EnrollmentListItem[], any, {}>>
Throws
Inherited from
DefaultApi.tenantEnrollmentList
Defined in
tenantEnrollmentRevoke
▸ tenantEnrollmentRevoke(tenantId, enrollmentId, options?): Promise<AxiosResponse<void, any, {}>>
Revokes a pending enrollment, so that its state no longer creates a wallet.
Parameters
| Name | Type | Description |
|---|---|---|
tenantId | string | |
enrollmentId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
DefaultApi.tenantEnrollmentRevoke
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
accreditationRequest | AccreditationRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityAccreditationRequest | EntityAccreditationRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
onboardingRequest? | OnboardingRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<OnboardResult, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityOnboardingRequest | EntityOnboardingRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
revokeAccreditationRequest | RevokeAccreditationRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
DefaultApi.tfRevokeAccreditation
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
untpDiaIssueRequest | UntpDiaIssueRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<UntpDiaIssueResult, any, {}>>
Throws
Inherited from
Defined in
tfUntpDiaList
▸ tfUntpDiaList(walletId, did?, options?): Promise<AxiosResponse<UntpIssuedDia[], any, {}>>
Lists the Digital Identity Anchors a UNTP registrar wallet issued. Another wallet is 422.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
did? | string | Only those issued to this DID. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<UntpIssuedDia[], any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<UntpPendingDia[], any, {}>>
Throws
Inherited from
Defined in
tfX509CertificateGetRecord
▸ tfX509CertificateGetRecord(walletId, serialNumber, options?): Promise<AxiosResponse<CertificateRecordGetResponse, any, {}>>
Returns a record of an issued X509 certificate
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
serialNumber | string | Certificate serial number |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CertificateRecordGetResponse, any, {}>>
Throws
Inherited from
DefaultApi.tfX509CertificateGetRecord
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
certificateIssueRequest | CertificateIssueRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CertificateIssueResponse, any, {}>>
Throws
Inherited from
DefaultApi.tfX509CertificateIssue
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CertificateRecordGetResponse[], any, {}>>
Throws
Inherited from
DefaultApi.tfX509CertificateListRecords
Defined in
tfX509CertificateUpdateStatus
▸ tfX509CertificateUpdateStatus(walletId, serialNumber, certificateStatusUpdateRequest, options?): Promise<AxiosResponse<void, any, {}>>
Updates a status of an already issued X509 certificate
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
serialNumber | string | Certificate serial number |
certificateStatusUpdateRequest | CertificateStatusUpdateRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
DefaultApi.tfX509CertificateUpdateStatus
Defined in
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
| Name | Type | Description |
|---|---|---|
trustListAddRequest | TrustListAddRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
url | string | The URL the trusted list is published at. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
url | string | The URL the trusted list is published at. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<TrustListsResponse, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
serviceId | string | The service id of the link, in full (`<did>#<fragment>`) or as its fragment. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
Defined in
untpLinkList
▸ untpLinkList(walletId, options?): Promise<AxiosResponse<UntpLink[], any, {}>>
The UNTP links the wallet's DID document advertises for its published credentials.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<UntpLink[], any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
untpLinkPublishRequest | UntpLinkPublishRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<UntpLink, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<UntpRegistry, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
verifierCredentialRequest | VerifierCredentialRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<VerifierCredentialResult, any, {}>>
Throws
Inherited from
DefaultApi.verifierCredentialVerify
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
did | string | The DID to verify. |
credentialType? | string | Evaluate the issuer policy of this credential type, e.g. `DigitalProductPassport`. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<DidVerification, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
verifyInitRequest | VerifyInitRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<VerifyInitResponse, any, {}>>
Throws
Inherited from
DefaultApi.verifierInitUrlCreate
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
pdf | File | |
extractVp | boolean | Whether 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? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<PdfVerificationResponse, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
verifierRenderRequest | VerifierRenderRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<File, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
identifier | string | The DID to resolve. |
linkType? | string | The 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/<type>` for the others. A DID document's UNTP 0.7 service types (`untp:dia`, bare `dcc`) are read as the same link types. |
fetch? | boolean | Fetch and verify the linked credentials. |
verify? | boolean | Verify the fetched credentials' dates, status and schema, besides their signature. |
verifyIssuer? | boolean | Also verify whether the wallet'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? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<UntpResolveResult, any, {}>>
Throws
Inherited from
DefaultApi.verifierUntpResolve
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
Inherited from
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
Inherited from
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
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletIdentifier, any, {}>>
Throws
Inherited from
DefaultApi.walletIdentifierGet
Defined in
walletKeys
▸ walletKeys(walletId, options?): Promise<AxiosResponse<WalletKeys, any, {}>>
Provides wallet keys used for signing.
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletKeys, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
ownerId? | string | |
searchName? | string | Wallet name to search using "begins-with" filter |
tenantId? | string | Lists 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? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletListItem[], any, {}>>
Throws
Inherited from
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
Inherited from
DefaultApi.walletNotificationGetByState
Defined in
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
| 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 |
newerThan? | number | List notifications that are newer than the provided timestamp |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletNotificationHistory, any, {}>>
Throws
Inherited from
DefaultApi.walletNotificationHistory
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
eventType? | string | Event type |
state? | string | Event state |
lastEventID? | string | SSE last event ID |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<File, any, {}>>
Throws
Inherited from
DefaultApi.walletNotifications
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
walletPatchPayload? | WalletPatchPayload | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletIdObject, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletProviderCertificateRequest | WalletProviderCertificateRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
DefaultApi.walletProviderCertificateImport
Defined in
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
| Name | Type | Description |
|---|---|---|
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WalletProviderCsrResponse, any, {}>>
Throws
Inherited from
DefaultApi.walletProviderCsrGenerate
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
state | string | Verifier state |
responseCode? | string | The `response_code` the holder'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? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<VerifiedWrapper, any, {}>>
Throws
Inherited from
DefaultApi.walletVerifiedCredentialsByState
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
Inherited from
DefaultApi.walletVerifiedCredentialsDeleteByState
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
cSRCreateRequest | CSRCreateRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<CSRCreateResponse, any, {}>>
Throws
Inherited from
DefaultApi.walletX509CSRCreate
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | Wallet ID |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<File, any, {}>>
Throws
Inherited from
DefaultApi.walletX509CertificateGet
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
Inherited from
DefaultApi.walletX509CertificateImport
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
wmpAcceptInvitationPayload | WmpAcceptInvitationPayload | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpEntityIdObject, any, {}>>
Throws
Inherited from
DefaultApi.wmpAcceptInvitation
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpRequest[], any, {}>>
Deprecated
Throws
Inherited from
DefaultApi.wmpClientGetPendingRequests
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
requestId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpMessage, any, {}>>
Throws
Inherited from
DefaultApi.wmpClientGetRequest
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
requestId | string | |
wmpClientRequestBody | WmpClientRequestBody | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<InteractionAuthorizationRequirements, any, {}>>
Throws
Inherited from
DefaultApi.wmpClientProcessRequest
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpCreateInvitationResponse, any, {}>>
Throws
Inherited from
DefaultApi.wmpCreateNewInvitation
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
Inherited from
DefaultApi.wmpEntityConnectionGet
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
Inherited from
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
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityId | string | |
messageId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpMessageHistoryRecord, any, {}>>
Throws
Inherited from
DefaultApi.wmpEntityGetMessageHistory
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityType | WmpEntityListEntityTypeEnum | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpEntityRecord[], any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityId | string | |
limit? | number | The number of items |
nextMarker? | string | Marking the next set of items |
sort? | ListSort | Sort flag controls the sort direction by sentAt |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpMessageHistoryList, any, {}>>
Throws
Inherited from
DefaultApi.wmpEntityListMessageHistory
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityId | string | |
messageId | string | |
wmpMessageDecision | WmpMessageDecision | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
DefaultApi.wmpEntityMessageDecision
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityId | string | |
body | File | The primary message body: a plain-text form value, or a file part whose Content-Type becomes the message content type. |
expiresAt? | string | Per-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? | string | Free-form application-defined message type tag. |
inReplyTo? | string | Id of a previously received message this one replies to. |
sign? | boolean | Attach a non-repudiation signature (`wmp.signature`, core §5.4): a detached JWS over the JCS-canonicalised content, made with the wallet\'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? | boolean | Attach 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? | WmpEntitySendMessageConsignmentModeEnum | Registered-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? | boolean | Relay correspondents only: accept an `expiresAt` earlier than the QTSP\'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? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpMessageSendResult, any, {}>>
Throws
Inherited from
DefaultApi.wmpEntitySendMessage
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
entityId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
DefaultApi.wmpEntityServerConnect
Defined in
wmpEvidenceGet
▸ wmpEvidenceGet(walletId, evidenceId, options?): Promise<AxiosResponse<WmpEvidenceRecord, any, {}>>
Returns one record of this wallet's evidence repository (WMP evidence §6.1).
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
evidenceId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpEvidenceRecord, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
messageId? | string | Lists the evidence about this message (the `original_message_id`). |
sessionId? | string | Lists the evidence of this session, oldest event first, in pages. |
since? | string | With `session_id`, only evidence whose event time is at or after this time. |
until? | string | With `session_id`, only evidence whose event time is before this time. |
continuationToken? | string | With `session_id`, the `continuation_token` of the previous page. |
limit? | number | With `session_id`, the maximum number of records of a page. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpEvidenceList, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
requestBody | Object | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpEvidenceVerifyReport, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
wmpRelayCorrespondentRequest | WmpRelayCorrespondentRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpEntityRecord, any, {}>>
Throws
Inherited from
DefaultApi.wmpRelayCorrespondentConnect
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any, {}>>
Throws
Inherited from
Defined in
wmpRelayGet
▸ wmpRelayGet(walletId, options?): Promise<AxiosResponse<WmpRelayAccount, any, {}>>
Returns the wallet's account at its QTSP relay (CS-15 EBW role).
Parameters
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpRelayAccount, any, {}>>
Throws
Inherited from
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
onboardingId | string | |
wmpRelayOnboardingResult | WmpRelayOnboardingResult | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpRelayAccount, any, {}>>
Throws
Inherited from
DefaultApi.wmpRelayOnboardingComplete
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
wmpRelayOnboardingRequest | WmpRelayOnboardingRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpRelayOnboardingStarted, any, {}>>
Throws
Inherited from
DefaultApi.wmpRelayOnboardingStart
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
wmpRelayCertificate | WmpRelayCertificate | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpRelayAccount, any, {}>>
Throws
Inherited from
DefaultApi.wmpRelayRegistrationComplete
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
wmpRelayOnboardingRequest | WmpRelayOnboardingRequest | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpRelayRegistrationStarted, any, {}>>
Throws
Inherited from
DefaultApi.wmpRelayRegistrationStart
Defined in
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
| Name | Type | Description |
|---|---|---|
walletId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<WmpRelayAccount, any, {}>>
Throws