Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update all clients #350

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ README.md
analysis_options.yaml
doc/ActionForbiddenError.md
doc/ActionForbiddenErrorDetailsInner.md
doc/ChangeCredentialStatusInput.md
doc/ConfigurationApi.md
doc/CorsGenerateCredentialsOK.md
doc/CorsGetCredentialOfferOK.md
Expand All @@ -27,9 +28,13 @@ doc/CredentialResponseImmediateCredential.md
doc/CredentialSubjectNotValidError.md
doc/CredentialSupportedObject.md
doc/CredentialsApi.md
doc/DefaultApi.md
doc/DeferredCredentialInput.md
doc/FlowData.md
doc/FlowDataStatusListsDetailsInner.md
doc/GenerateCredentials400Response.md
doc/GetCredentialOffer400Response.md
doc/GetStatusListResultDto.md
doc/InvalidCredentialRequestError.md
doc/InvalidCredentialTypeError.md
doc/InvalidIssuerWalletError.md
Expand All @@ -41,6 +46,7 @@ doc/IssuanceConfigDto.md
doc/IssuanceConfigListResponse.md
doc/IssuanceConfigMiniDto.md
doc/IssuanceStateResponse.md
doc/ListIssuanceRecordResponse.md
doc/ListIssuanceResponse.md
doc/ListIssuanceResponseIssuancesInner.md
doc/MissingHolderDidError.md
Expand All @@ -52,6 +58,7 @@ doc/StartIssuance400Response.md
doc/StartIssuanceInput.md
doc/StartIssuanceInputDataInner.md
doc/StartIssuanceInputDataInnerMetaData.md
doc/StartIssuanceInputDataInnerStatusListDetailsInner.md
doc/StartIssuanceResponse.md
doc/SupportedCredentialMetadata.md
doc/SupportedCredentialMetadataDisplayInner.md
Expand All @@ -64,6 +71,7 @@ doc/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md
lib/api.dart
lib/api/configuration_api.dart
lib/api/credentials_api.dart
lib/api/default_api.dart
lib/api/issuance_api.dart
lib/api/offer_api.dart
lib/api/well_known_api.dart
Expand All @@ -77,6 +85,7 @@ lib/auth/http_bearer_auth.dart
lib/auth/oauth.dart
lib/model/action_forbidden_error.dart
lib/model/action_forbidden_error_details_inner.dart
lib/model/change_credential_status_input.dart
lib/model/cors_generate_credentials_ok.dart
lib/model/cors_get_credential_offer_ok.dart
lib/model/cors_get_well_known_open_id_credential_issuer_ok.dart
Expand All @@ -99,8 +108,11 @@ lib/model/credential_response_immediate_credential.dart
lib/model/credential_subject_not_valid_error.dart
lib/model/credential_supported_object.dart
lib/model/deferred_credential_input.dart
lib/model/flow_data.dart
lib/model/flow_data_status_lists_details_inner.dart
lib/model/generate_credentials400_response.dart
lib/model/get_credential_offer400_response.dart
lib/model/get_status_list_result_dto.dart
lib/model/invalid_credential_request_error.dart
lib/model/invalid_credential_type_error.dart
lib/model/invalid_issuer_wallet_error.dart
Expand All @@ -111,6 +123,7 @@ lib/model/issuance_config_dto.dart
lib/model/issuance_config_list_response.dart
lib/model/issuance_config_mini_dto.dart
lib/model/issuance_state_response.dart
lib/model/list_issuance_record_response.dart
lib/model/list_issuance_response.dart
lib/model/list_issuance_response_issuances_inner.dart
lib/model/missing_holder_did_error.dart
Expand All @@ -121,6 +134,7 @@ lib/model/start_issuance400_response.dart
lib/model/start_issuance_input.dart
lib/model/start_issuance_input_data_inner.dart
lib/model/start_issuance_input_data_inner_meta_data.dart
lib/model/start_issuance_input_data_inner_status_list_details_inner.dart
lib/model/start_issuance_response.dart
lib/model/supported_credential_metadata.dart
lib/model/supported_credential_metadata_display_inner.dart
Expand All @@ -130,3 +144,10 @@ lib/model/vc_claimed_error.dart
lib/model/well_known_open_id_credential_issuer_response.dart
lib/model/well_known_open_id_credential_issuer_response_credentials_supported_inner.dart
pubspec.yaml
test/change_credential_status_input_test.dart
test/default_api_test.dart
test/flow_data_status_lists_details_inner_test.dart
test/flow_data_test.dart
test/get_status_list_result_dto_test.dart
test/list_issuance_record_response_test.dart
test/start_issuance_input_data_inner_status_list_details_inner_test.dart
35 changes: 22 additions & 13 deletions clients/dart/credential_issuance_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,28 @@ try {

All URIs are relative to *https://apse1.api.affinidi.io/cis*

| Class | Method | HTTP request | Description |
| ------------------ | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ----------- |
| _ConfigurationApi_ | [**createIssuanceConfig**](doc//ConfigurationApi.md#createissuanceconfig) | **POST** /v1/configurations |
| _ConfigurationApi_ | [**deleteIssuanceConfigById**](doc//ConfigurationApi.md#deleteissuanceconfigbyid) | **DELETE** /v1/configurations/{configurationId} |
| _ConfigurationApi_ | [**getIssuanceConfigById**](doc//ConfigurationApi.md#getissuanceconfigbyid) | **GET** /v1/configurations/{configurationId} |
| _ConfigurationApi_ | [**getIssuanceConfigList**](doc//ConfigurationApi.md#getissuanceconfiglist) | **GET** /v1/configurations |
| _ConfigurationApi_ | [**updateIssuanceConfigById**](doc//ConfigurationApi.md#updateissuanceconfigbyid) | **PUT** /v1/configurations/{configurationId} |
| _CredentialsApi_ | [**generateCredentials**](doc//CredentialsApi.md#generatecredentials) | **POST** /v1/{projectId}/credential |
| _IssuanceApi_ | [**issuanceState**](doc//IssuanceApi.md#issuancestate) | **GET** /v1/{projectId}/issuance/state/{issuanceId} |
| _IssuanceApi_ | [**listIssuance**](doc//IssuanceApi.md#listissuance) | **GET** /v1/{projectId}/issuance |
| _IssuanceApi_ | [**startIssuance**](doc//IssuanceApi.md#startissuance) | **POST** /v1/{projectId}/issuance/start |
| _OfferApi_ | [**getCredentialOffer**](doc//OfferApi.md#getcredentialoffer) | **GET** /v1/{projectId}/offers/{issuanceId} |
| _WellKnownApi_ | [**getWellKnownOpenIdCredentialIssuer**](doc//WellKnownApi.md#getwellknownopenidcredentialissuer) | **GET** /v1/{projectId}/.well-known/openid-credential-issuer |
| Class | Method | HTTP request | Description |
| ------------------ | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ----------------------------- |
| _ConfigurationApi_ | [**createIssuanceConfig**](doc//ConfigurationApi.md#createissuanceconfig) | **POST** /v1/configurations |
| _ConfigurationApi_ | [**deleteIssuanceConfigById**](doc//ConfigurationApi.md#deleteissuanceconfigbyid) | **DELETE** /v1/configurations/{configurationId} |
| _ConfigurationApi_ | [**getIssuanceConfigById**](doc//ConfigurationApi.md#getissuanceconfigbyid) | **GET** /v1/configurations/{configurationId} |
| _ConfigurationApi_ | [**getIssuanceConfigList**](doc//ConfigurationApi.md#getissuanceconfiglist) | **GET** /v1/configurations |
| _ConfigurationApi_ | [**updateIssuanceConfigById**](doc//ConfigurationApi.md#updateissuanceconfigbyid) | **PUT** /v1/configurations/{configurationId} |
| _CredentialsApi_ | [**generateCredentials**](doc//CredentialsApi.md#generatecredentials) | **POST** /v1/{projectId}/credential |
| _DefaultApi_ | [**changeCredentialSatatus**](doc//DefaultApi.md#changecredentialsatatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. |
| _DefaultApi_ | [**getStatusList**](doc//DefaultApi.md#getstatuslist) | **GET** /v1/{projectId}/status-list/{statusListId} | Return status list credential |
| _DefaultApi_ | [**listIssuanceDataRecords**](doc//DefaultApi.md#listissuancedatarecords) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records |
| _IssuanceApi_ | [**issuanceState**](doc//IssuanceApi.md#issuancestate) | **GET** /v1/{projectId}/issuance/state/{issuanceId} |
| _IssuanceApi_ | [**listIssuance**](doc//IssuanceApi.md#listissuance) | **GET** /v1/{projectId}/issuance |
| _IssuanceApi_ | [**startIssuance**](doc//IssuanceApi.md#startissuance) | **POST** /v1/{projectId}/issuance/start |
| _OfferApi_ | [**getCredentialOffer**](doc//OfferApi.md#getcredentialoffer) | **GET** /v1/{projectId}/offers/{issuanceId} |
| _WellKnownApi_ | [**getWellKnownOpenIdCredentialIssuer**](doc//WellKnownApi.md#getwellknownopenidcredentialissuer) | **GET** /v1/{projectId}/.well-known/openid-credential-issuer |

## Documentation For Models

- [ActionForbiddenError](doc//ActionForbiddenError.md)
- [ActionForbiddenErrorDetailsInner](doc//ActionForbiddenErrorDetailsInner.md)
- [ChangeCredentialStatusInput](doc//ChangeCredentialStatusInput.md)
- [CorsGenerateCredentialsOK](doc//CorsGenerateCredentialsOK.md)
- [CorsGetCredentialOfferOK](doc//CorsGetCredentialOfferOK.md)
- [CorsGetWellKnownOpenIdCredentialIssuerOK](doc//CorsGetWellKnownOpenIdCredentialIssuerOK.md)
Expand All @@ -107,8 +111,11 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis*
- [CredentialSubjectNotValidError](doc//CredentialSubjectNotValidError.md)
- [CredentialSupportedObject](doc//CredentialSupportedObject.md)
- [DeferredCredentialInput](doc//DeferredCredentialInput.md)
- [FlowData](doc//FlowData.md)
- [FlowDataStatusListsDetailsInner](doc//FlowDataStatusListsDetailsInner.md)
- [GenerateCredentials400Response](doc//GenerateCredentials400Response.md)
- [GetCredentialOffer400Response](doc//GetCredentialOffer400Response.md)
- [GetStatusListResultDto](doc//GetStatusListResultDto.md)
- [InvalidCredentialRequestError](doc//InvalidCredentialRequestError.md)
- [InvalidCredentialTypeError](doc//InvalidCredentialTypeError.md)
- [InvalidIssuerWalletError](doc//InvalidIssuerWalletError.md)
Expand All @@ -119,6 +126,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis*
- [IssuanceConfigListResponse](doc//IssuanceConfigListResponse.md)
- [IssuanceConfigMiniDto](doc//IssuanceConfigMiniDto.md)
- [IssuanceStateResponse](doc//IssuanceStateResponse.md)
- [ListIssuanceRecordResponse](doc//ListIssuanceRecordResponse.md)
- [ListIssuanceResponse](doc//ListIssuanceResponse.md)
- [ListIssuanceResponseIssuancesInner](doc//ListIssuanceResponseIssuancesInner.md)
- [MissingHolderDidError](doc//MissingHolderDidError.md)
Expand All @@ -129,6 +137,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis*
- [StartIssuanceInput](doc//StartIssuanceInput.md)
- [StartIssuanceInputDataInner](doc//StartIssuanceInputDataInner.md)
- [StartIssuanceInputDataInnerMetaData](doc//StartIssuanceInputDataInnerMetaData.md)
- [StartIssuanceInputDataInnerStatusListDetailsInner](doc//StartIssuanceInputDataInnerStatusListDetailsInner.md)
- [StartIssuanceResponse](doc//StartIssuanceResponse.md)
- [SupportedCredentialMetadata](doc//SupportedCredentialMetadata.md)
- [SupportedCredentialMetadataDisplayInner](doc//SupportedCredentialMetadataDisplayInner.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# affinidi_tdk_credential_issuance_client.model.ChangeCredentialStatusInput

## Load the model package

```dart
import 'package:affinidi_tdk_credential_issuance_client/api.dart';
```

## Properties

| Name | Type | Description | Notes |
| ---------------------- | ---------- | ----------- | ---------- |
| **changeReason** | **String** | | [optional] |
| **issuanceFlowDataId** | **String** | | [optional] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
160 changes: 160 additions & 0 deletions clients/dart/credential_issuance_client/doc/DefaultApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
# affinidi_tdk_credential_issuance_client.api.DefaultApi

## Load the API package

```dart
import 'package:affinidi_tdk_credential_issuance_client/api.dart';
```

All URIs are relative to *https://apse1.api.affinidi.io/cis*

| Method | HTTP request | Description |
| -------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ----------------------------- |
| [**changeCredentialSatatus**](DefaultApi.md#changecredentialsatatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. |
| [**getStatusList**](DefaultApi.md#getstatuslist) | **GET** /v1/{projectId}/status-list/{statusListId} | Return status list credential |
| [**listIssuanceDataRecords**](DefaultApi.md#listissuancedatarecords) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records |

# **changeCredentialSatatus**

> FlowData changeCredentialSatatus(projectId, configurationId)

change credential status.

change credential status.

### Example

```dart
import 'package:affinidi_tdk_credential_issuance_client/api.dart';
// TODO Configure API key authorization: ProjectTokenAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKeyPrefix = 'Bearer';

final api_instance = DefaultApi();
final projectId = projectId_example; // String | project id
final configurationId = configurationId_example; // String | configuration id

try {
final result = api_instance.changeCredentialSatatus(projectId, configurationId);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->changeCredentialSatatus: $e\n');
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------------- | ---------- | ---------------- | ----- |
| **projectId** | **String** | project id |
| **configurationId** | **String** | configuration id |

### Return type

[**FlowData**](FlowData.md)

### Authorization

[ProjectTokenAuth](../README.md#ProjectTokenAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **getStatusList**

> GetStatusListResultDto getStatusList(projectId, statusListId)

Return status list credential

Return status list credential

### Example

```dart
import 'package:affinidi_tdk_credential_issuance_client/api.dart';

final api_instance = DefaultApi();
final projectId = projectId_example; // String |
final statusListId = statusListId_example; // String | id of the status list

try {
final result = api_instance.getStatusList(projectId, statusListId);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->getStatusList: $e\n');
}
```

### Parameters

| Name | Type | Description | Notes |
| ---------------- | ---------- | --------------------- | ----- |
| **projectId** | **String** | |
| **statusListId** | **String** | id of the status list |

### Return type

[**GetStatusListResultDto**](GetStatusListResultDto.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **listIssuanceDataRecords**

> ListIssuanceRecordResponse listIssuanceDataRecords(limit, exclusiveStartKey)

List records

Retrieve a list of issuance data records.

### Example

```dart
import 'package:affinidi_tdk_credential_issuance_client/api.dart';

final api_instance = DefaultApi();
final limit = 56; // int | Maximum number of records to fetch in a list
final exclusiveStartKey = exclusiveStartKey_example; // String | exclusiveStartKey for retrieving the next batch of data.

try {
final result = api_instance.listIssuanceDataRecords(limit, exclusiveStartKey);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->listIssuanceDataRecords: $e\n');
}
```

### Parameters

| Name | Type | Description | Notes |
| --------------------- | ---------- | -------------------------------------------------------- | -------------------------- |
| **limit** | **int** | Maximum number of records to fetch in a list | [optional] [default to 10] |
| **exclusiveStartKey** | **String** | exclusiveStartKey for retrieving the next batch of data. | [optional] |

### Return type

[**ListIssuanceRecordResponse**](ListIssuanceRecordResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
Loading
Loading