@affinidi-tdk/credential-issuance-client
Version:
Affinidi TDK typescript client for Affinidi CREDENTIAL ISSUANCE
134 lines (93 loc) • 5.64 kB
Markdown
All URIs are relative to *https://apse1.api.affinidi.io/cis*
| Method | HTTP request | Description |
| ------------------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------------- |
| [**changeCredentialStatus**](
| [**listIssuanceDataRecords**](
> FlowData changeCredentialStatus(changeCredentialStatusInput)
change credential status.
### Example
```typescript
import {
DefaultApi,
Configuration,
ChangeCredentialStatusInput,
} from '@affinidi-tdk/credential-issuance-client'
const configuration = new Configuration()
const apiInstance = new DefaultApi(configuration)
let projectId: string //project id (default to undefined)
let configurationId: string //configuration id (default to undefined)
let changeCredentialStatusInput: ChangeCredentialStatusInput //Request body for changing credential status
const { status, data } = await apiInstance.changeCredentialStatus(
projectId,
configurationId,
changeCredentialStatusInput,
)
```
| Name | Type | Description | Notes |
| ------------------------------- | ------------------------------- | ------------------------------------------- | --------------------- |
| **changeCredentialStatusInput** | **ChangeCredentialStatusInput** | Request body for changing credential status | |
| **projectId** | [**string**] | project id | defaults to undefined |
| **configurationId** | [**string**] | configuration id | defaults to undefined |
**FlowData**
[](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
| Status code | Description | Response headers |
| ----------- | ------------------------- | ---------------- |
| **200** | updated credential entity | - |
| **400** | BadRequestError | - |
| **404** | NotFoundError | - |
[[Back to top]](
> ListIssuanceRecordResponse listIssuanceDataRecords()
Retrieve a list of issuance data records.
### Example
```typescript
import {
DefaultApi,
Configuration,
} from '@affinidi-tdk/credential-issuance-client'
const configuration = new Configuration()
const apiInstance = new DefaultApi(configuration)
let projectId: string //Affinidi project id (default to undefined)
let configurationId: string //The id of the issuance configuration (default to undefined)
let issuanceId: string //Optional filter to retrieve records for a specific issuance ID (optional) (default to undefined)
let limit: number //Maximum number of records to fetch in a list (optional) (default to 10)
let exclusiveStartKey: string //exclusiveStartKey for retrieving the next batch of data. (optional) (default to undefined)
const { status, data } = await apiInstance.listIssuanceDataRecords(
projectId,
configurationId,
issuanceId,
limit,
exclusiveStartKey,
)
```
| Name | Type | Description | Notes |
| --------------------- | ------------ | -------------------------------------------------------------- | -------------------------------- |
| **projectId** | [**string**] | Affinidi project id | defaults to undefined |
| **configurationId** | [**string**] | The id of the issuance configuration | defaults to undefined |
| **issuanceId** | [**string**] | Optional filter to retrieve records for a specific issuance ID | (optional) defaults to undefined |
| **limit** | [**number**] | Maximum number of records to fetch in a list | (optional) defaults to 10 |
| **exclusiveStartKey** | [**string**] | exclusiveStartKey for retrieving the next batch of data. | (optional) defaults to undefined |
**ListIssuanceRecordResponse**
[](../README.md
- **Content-Type**: Not defined
- **Accept**: application/json
| Status code | Description | Response headers |
| ----------- | --------------- | ---------------- |
| **200** | Ok | - |
| **400** | BadRequestError | - |
| **404** | NotFoundError | - |
[[Back to top]](