Skip to main content

@triveria/wallet / Exports / DefaultApi

Class: DefaultApi

DefaultApi - object-oriented interface

Export

Hierarchy

  • BaseAPI

    DefaultApi

    ↳↳ Client

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DefaultApi(configuration?, basePath?, axios?): DefaultApi

Parameters

NameTypeDefault value
configuration?Configurationundefined
basePathstringBASE_PATH
axiosAxiosInstanceglobalAxios

Returns

DefaultApi

Inherited from

BaseAPI.constructor

Defined in

base.ts:53

Properties

axios

Protected axios: AxiosInstance = globalAxios

Inherited from

BaseAPI.axios

Defined in

base.ts:53


basePath

Protected basePath: string = BASE_PATH

Inherited from

BaseAPI.basePath

Defined in

base.ts:53


configuration

Protected configuration: undefined | Configuration

Inherited from

BaseAPI.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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Defined in

api.ts:3248