Skip to main content

@triveria/wallet / Exports / Client

Class: Client

DefaultApi - object-oriented interface

Export

Hierarchy​

Table of contents​

Constructors​

Properties​

Methods​

Constructors​

constructor​

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

Parameters​

NameTypeDefault value
clientIdstringundefined
clientSecretstringundefined
baseURLstring"https://wallet.dev.triveria.io/api/v1"
axiosAxiosInstanceglobalAxios

Returns​

Client

Overrides​

DefaultApi.constructor

Defined in​

client.ts:21

Properties​

axios​

• Protected axios: AxiosInstance = globalAxios

Inherited from​

DefaultApi.axios

Defined in​

client.ts:21


basePath​

• Protected basePath: string = BASE_PATH

Inherited from​

DefaultApi.basePath

Defined in​

base.ts:53


baseURL​

• Protected baseURL: string = "https://wallet.dev.triveria.io/api/v1"

Defined in​

client.ts:21


configuration​

• Protected configuration: undefined | Configuration

Inherited from​

DefaultApi.configuration

Defined in​

base.ts:51

Methods​

accreditAsTrustedIssuer​

▸ accreditAsTrustedIssuer(walletId, options?): Promise<AxiosResponse<void, any>>

TBD

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.accreditAsTrustedIssuer

Defined in​

api.ts:2944


credentialCreate​

▸ credentialCreate(walletId, credentialPayload?, options?): Promise<AxiosResponse<CredentialIdObject, any>>

Creates a new credential, which is always created in a draft state.

Parameters​

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

Returns​

Promise<AxiosResponse<CredentialIdObject, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.credentialCreate

Defined in​

api.ts:2956


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

Memberof

DefaultApi

Inherited from​

DefaultApi.credentialGet

Defined in​

api.ts:2968


credentialImport​

▸ credentialImport(walletId, credentialImport?, options?): Promise<AxiosResponse<Credential, any>>

Import pre-signed credential into wallet

Parameters​

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

Returns​

Promise<AxiosResponse<Credential, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.credentialImport

Defined in​

api.ts:2980


credentialList​

▸ credentialList(walletId, options?): Promise<AxiosResponse<CredentialList, any>>

Retrieves a list of credentials.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialList, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.credentialList

Defined in​

api.ts:2991


credentialMetadataPatch​

▸ credentialMetadataPatch(credentialId, walletId, credentialMetadata?, 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
credentialMetadata?CredentialMetadataVerifiable Credential metadata in JSON
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialIdObject, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.credentialMetadataPatch

Defined in​

api.ts:3004


credentialPatch​

▸ credentialPatch(credentialId, walletId, credentialPayload?, 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
credentialPayload?CredentialPayload
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<CredentialIdObject, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.credentialPatch

Defined in​

api.ts:3017


credentialRequest​

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

TBD

Parameters​

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

Returns​

Promise<AxiosResponse<string[], any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.credentialRequest

Defined in​

api.ts:3029


deferredStatus​

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

Parameters​

NameTypeDescription
deferredIdstringDeferred token
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<Deferred, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.deferredStatus

Defined in​

api.ts:3041


getCurrentDid​

▸ getCurrentDid(walletId, options?): Promise<AxiosResponse<Did, any>>

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<Did, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.getCurrentDid

Defined in​

api.ts:3052


healthCheck​

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

Parameters​

NameTypeDescription
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<HealthStatus, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.healthCheck

Defined in​

api.ts:3062


holderCreateAuthOffer​

▸ holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest?, options?): Promise<AxiosResponse<void, any>>

Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.

Parameters​

NameTypeDescription
walletIdstring
holderAuthOfferCreationRequest?HolderAuthOfferCreationRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.holderCreateAuthOffer

Defined in​

api.ts:3074


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

Memberof

DefaultApi

Inherited from​

DefaultApi.issuerCredentialTypesList

Defined in​

api.ts:3085


oidcAcceptOffer​

▸ oidcAcceptOffer(walletId, vcOffer?, options?): Promise<AxiosResponse<string[], any>>

Issue verifiable credential using OIDC4VCI offer acceptance

Parameters​

NameTypeDescription
walletIdstring
vcOffer?VcOfferOffer URL and optional PIN for the request
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<string[], any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.oidcAcceptOffer

Defined in​

api.ts:3097


oidcAddCredToIssuanceQueue​

▸ oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredentialAdd?, options?): Promise<AxiosResponse<void, any>>

Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.

Parameters​

NameTypeDescription
credentialIdstring
walletIdstring
issuanceQueueCredentialAdd?IssuanceQueueCredentialAdd
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.oidcAddCredToIssuanceQueue

Defined in​

api.ts:3110


oidcCreateIdTokenRequest​

▸ oidcCreateIdTokenRequest(walletId, options?): Promise<AxiosResponse<IdTokenRequest, any>>

Creates an ID token request.

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<IdTokenRequest, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.oidcCreateIdTokenRequest

Defined in​

api.ts:3121


oidcInitiateDeferred​

▸ oidcInitiateDeferred(walletId, initAuthOffer?, options?): Promise<AxiosResponse<AuthOffer, any>>

Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.

Parameters​

NameTypeDescription
walletIdstring
initAuthOffer?InitAuthOffer
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<AuthOffer, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.oidcInitiateDeferred

Defined in​

api.ts:3133


oidcInitiateIntime​

▸ oidcInitiateIntime(walletId, initAuthOffer?, options?): Promise<AxiosResponse<AuthOffer, any>>

Initiates issuing of the verifiable credential using authorized flow.

Parameters​

NameTypeDescription
walletIdstring
initAuthOffer?InitAuthOffer
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<AuthOffer, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.oidcInitiateIntime

Defined in​

api.ts:3145


oidcInitiatePreauth​

▸ oidcInitiatePreauth(walletId, initPreAuthOffer?, options?): Promise<AxiosResponse<PreAuthOffer, any>>

Initiates issuing of the verifiable credential using pre-authorized flow.

Parameters​

NameTypeDescription
walletIdstring
initPreAuthOffer?InitPreAuthOffer
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<PreAuthOffer, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.oidcInitiatePreauth

Defined in​

api.ts:3157


oidcPresentCredentials​

▸ oidcPresentCredentials(walletId, presentationRequest?, options?): Promise<AxiosResponse<void, any>>

Initiates a presentation of credentials to a verifier.

Parameters​

NameTypeDescription
walletIdstring
presentationRequest?PresentationRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.oidcPresentCredentials

Defined in​

api.ts:3169


oidcSendIdToken​

▸ oidcSendIdToken(walletId, idTokenSendRequest?, options?): Promise<AxiosResponse<void, any>>

Responds to an ID token request

Parameters​

NameTypeDescription
walletIdstring
idTokenSendRequest?IdTokenSendRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<void, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.oidcSendIdToken

Defined in​

api.ts:3181


oidcVerifyInitUrl​

▸ oidcVerifyInitUrl(walletId, verifyInitRequest?, options?): Promise<AxiosResponse<VerifyInitResponse, any>>

Returns an url where verifier accepts presentations.

Parameters​

NameTypeDescription
walletIdstring
verifyInitRequest?VerifyInitRequest
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<VerifyInitResponse, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.oidcVerifyInitUrl

Defined in​

api.ts:3193


onboardLegalEntity​

▸ onboardLegalEntity(walletId, options?): Promise<AxiosResponse<string, any>>

TBD

Parameters​

NameTypeDescription
walletIdstring
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<string, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.onboardLegalEntity

Defined in​

api.ts:3204


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

Memberof

DefaultApi

Inherited from​

DefaultApi.walletGet

Defined in​

api.ts:3215


walletList​

▸ walletList(options?): Promise<AxiosResponse<Wallet[], any>>

Provides list of wallets owned by the authenticated client.

Parameters​

NameTypeDescription
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<Wallet[], any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.walletList

Defined in​

api.ts:3225


walletNotifications​

▸ walletNotifications(walletId, options?): Promise<AxiosResponse<WalletNotification[], any>>

Provides wallet notifications

Parameters​

NameTypeDescription
walletIdstringWallet ID
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<WalletNotification[], any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.walletNotifications

Defined in​

api.ts:3236


walletSave​

▸ walletSave(walletId?, wallet?, options?): Promise<AxiosResponse<Wallet, any>>

The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.

Parameters​

NameTypeDescription
walletId?stringHas to be provided for updates.
wallet?Wallet
options?RawAxiosRequestConfigOverride http request option.

Returns​

Promise<AxiosResponse<Wallet, any>>

Throws

Memberof

DefaultApi

Inherited from​

DefaultApi.walletSave

Defined in​

api.ts:3248