@idunion/tl-sdk / Exports / Client
Class: Client
DefaultApi - object-oriented interface
Export
DefaultApi
Hierarchy
-
↳
Client
Table of contents
Constructors
Properties
Methods
- didGet
- didSuggest
- didVerificationMethodAdd
- didVerificationMethodPatch
- etsiTlGet
- healthCheck
- onboardingInit
- onboardingStatus
- tlCreate
- tlDelete
- tlGet
- tlGetPublicInfo
- tlList
- tlListByOwner
- tlPatch
- tlrCreate
- tlrDelete
- tlrGet
- tlrSearch
- tlrTrustChainGet
- tlrsGet
- vpGet
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
didGet
▸ didGet(tlId, tlrId, options?): Promise<AxiosResponse<DidDocument, any>>
Retrieves a specific DID Document
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | Trust List Identifier |
tlrId | string | Trust List Record Identifier |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<DidDocument, any>>
Throws
Inherited from
Defined in
didSuggest
▸ didSuggest(tlId, options?): Promise<AxiosResponse<string, any>>
Suggests a DID
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<string, any>>
Throws
Inherited from
Defined in
didVerificationMethodAdd
▸ didVerificationMethodAdd(tlId, tlrId, verificationMethodCreatePayload?, options?): Promise<AxiosResponse<void, any>>
Adds DID Verification method.
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | Trust List Identifier |
tlrId | string | Trust List Record Identifier |
verificationMethodCreatePayload? | VerificationMethodCreatePayload | Verification method. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Inherited from
DefaultApi.didVerificationMethodAdd
Defined in
didVerificationMethodPatch
▸ didVerificationMethodPatch(tlId, tlrId, verificationMethodPatchPayload?, options?): Promise<AxiosResponse<void, any>>
Adds DID Verification method.
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | Trust List Identifier |
tlrId | string | Trust List Record Identifier |
verificationMethodPatchPayload? | VerificationMethodPatchPayload | Verification method. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Inherited from
DefaultApi.didVerificationMethodPatch
Defined in
etsiTlGet
▸ etsiTlGet(tlId, options?): Promise<AxiosResponse<object, any>>
Returns an ETSI Trusted list
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<object, any>>
Throws
Inherited from
Defined in
healthCheck
▸ healthCheck(options?): Promise<AxiosResponse<HealthStatus, any>>
Parameters
| Name | Type | Description |
|---|---|---|
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<HealthStatus, any>>
Throws
Inherited from
Defined in
onboardingInit
▸ onboardingInit(tlId, onboardingPayload?, options?): Promise<AxiosResponse<OnboardingResponse, any>>
Initiates the onboarding process to the DID registry.
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | Trust List identifier |
onboardingPayload? | OnboardingPayload | DID onboarding init payload. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<OnboardingResponse, any>>
Throws
Inherited from
Defined in
onboardingStatus
▸ onboardingStatus(verifierState, options?): Promise<AxiosResponse<OnboardingStatus, any>>
Parameters
| Name | Type | Description |
|---|---|---|
verifierState | string | Verifier state |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<OnboardingStatus, any>>
Throws
Inherited from
Defined in
tlCreate
▸ tlCreate(tlPayload?, options?): Promise<AxiosResponse<Tl, any>>
Creates a Trust List based on the specified payload.
Parameters
| Name | Type | Description |
|---|---|---|
tlPayload? | TlPayload | Trust List create payload. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<Tl, any>>
Throws
Inherited from
Defined in
tlDelete
▸ tlDelete(tlId, options?): Promise<AxiosResponse<void, any>>
Destroys the Trust List.
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Inherited from
Defined in
tlGet
▸ tlGet(tlId, options?): Promise<AxiosResponse<Tl, any>>
Gets the specified Trust List
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<Tl, any>>
Throws
Inherited from
Defined in
tlGetPublicInfo
▸ tlGetPublicInfo(tlId, options?): Promise<AxiosResponse<TlPublicInfo, any>>
Provides a public information about a specific Trusted List
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<TlPublicInfo, any>>
Throws
Inherited from
Defined in
tlList
▸ tlList(search?, options?): Promise<AxiosResponse<TlPublicInfoList, any>>
Provides a list of public Trusted Lists
Parameters
| Name | Type | Description |
|---|---|---|
search? | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<TlPublicInfoList, any>>
Throws
Inherited from
Defined in
tlListByOwner
▸ tlListByOwner(options?): Promise<AxiosResponse<TlList, any>>
Provides a list of Trusted Lists for an authenticated owner
Parameters
| Name | Type | Description |
|---|---|---|
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<TlList, any>>
Throws
Inherited from
Defined in
tlPatch
▸ tlPatch(tlId, tlPayload?, options?): Promise<AxiosResponse<Tl, any>>
Updates a Trust List based on the specified payload.
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | |
tlPayload? | TlPayload | Trust List create payload. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<Tl, any>>
Throws
Inherited from
Defined in
tlrCreate
▸ tlrCreate(tlId, tlrCreatePayload?, options?): Promise<AxiosResponse<TlrCreatedResult, any>>
Directly creates a new Trusted List Record. When a Certificate Signing Request is provided, it will also issue an x509 certificate and update the ETSI TS 119 6**
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | |
tlrCreatePayload? | TlrCreatePayload | Trust List Record Create Payload. |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<TlrCreatedResult, any>>
Throws
Inherited from
Defined in
tlrDelete
▸ tlrDelete(tlId, tlrId, options?): Promise<AxiosResponse<void, any>>
Removes a specific Trust List Record
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | Trust List Identifier |
tlrId | string | Trust List Record Identifier |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<void, any>>
Throws
Inherited from
Defined in
tlrGet
▸ tlrGet(tlId, tlrId, options?): Promise<AxiosResponse<Tlr, any>>
Retrieves a specific Trust List record
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | Trust List Identifier |
tlrId | string | Trust List Record Identifier |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<Tlr, any>>
Throws
Inherited from
Defined in
tlrSearch
▸ tlrSearch(orgName, options?): Promise<AxiosResponse<TlrList, any>>
Retrieves a list of Trust List Records.
Parameters
| Name | Type | Description |
|---|---|---|
orgName | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<TlrList, any>>
Throws
Inherited from
Defined in
tlrTrustChainGet
▸ tlrTrustChainGet(tlId, tlrId, options?): Promise<AxiosResponse<Tlr[], any>>
Gets Trust List Records that make up a single Trust Chain
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | Trust List Identifier |
tlrId | string | Trust List Record Identifier |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<Tlr[], any>>
Throws
Inherited from
Defined in
tlrsGet
▸ tlrsGet(tlId, options?): Promise<AxiosResponse<TlrList, any>>
Retrieves a list of Trust List records.
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<TlrList, any>>
Throws
Inherited from
Defined in
vpGet
▸ vpGet(tlId, did, id, options?): Promise<AxiosResponse<VpResponse, any>>
Gets a Verifiable Presentation.
Parameters
| Name | Type | Description |
|---|---|---|
tlId | string | |
did | string | |
id | string | |
options? | RawAxiosRequestConfig | Override http request option. |
Returns
Promise<AxiosResponse<VpResponse, any>>
Throws