Skip to content

Commit

Permalink
feat: update all clients (#376)
Browse files Browse the repository at this point in the history
Co-authored-by: Marat Shakirov <marat.s@affinidi.com>
  • Loading branch information
github-actions[bot] and maratsh authored Dec 18, 2024
1 parent 2dd8398 commit 2540974
Show file tree
Hide file tree
Showing 100 changed files with 2,370 additions and 753 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ github
travis.yaml
git_push.sh
.gitlab-ci.yml
.travis.yml
composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.travis.yml
README.md
analysis_options.yaml
doc/ActionForbiddenError.md
Expand Down Expand Up @@ -34,7 +33,6 @@ 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 Down Expand Up @@ -112,7 +110,6 @@ 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 Down
10 changes: 4 additions & 6 deletions clients/dart/credential_issuance_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,16 @@ try {

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

| Class | Method | HTTP request | Description |
| ------------------ | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ----------------------------- |
| 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 |
| _DefaultApi_ | [**changeCredentialStatus**](doc//DefaultApi.md#changecredentialstatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. |
| _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 |
Expand Down Expand Up @@ -115,7 +114,6 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis*
- [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 Down
76 changes: 15 additions & 61 deletions clients/dart/credential_issuance_client/doc/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ 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 |
| Method | HTTP request | Description |
| -------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------------- |
| [**changeCredentialStatus**](DefaultApi.md#changecredentialstatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. |
| [**listIssuanceDataRecords**](DefaultApi.md#listissuancedatarecords) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records |

# **changeCredentialSatatus**
# **changeCredentialStatus**

> FlowData changeCredentialSatatus(projectId, configurationId)
> FlowData changeCredentialStatus(projectId, configurationId, changeCredentialStatusInput)
change credential status.

Expand All @@ -34,21 +33,23 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart';
final api_instance = DefaultApi();
final projectId = projectId_example; // String | project id
final configurationId = configurationId_example; // String | configuration id
final changeCredentialStatusInput = ChangeCredentialStatusInput(); // ChangeCredentialStatusInput | Request body for changing credential status
try {
final result = api_instance.changeCredentialSatatus(projectId, configurationId);
final result = api_instance.changeCredentialStatus(projectId, configurationId, changeCredentialStatusInput);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->changeCredentialSatatus: $e\n');
print('Exception when calling DefaultApi->changeCredentialStatus: $e\n');
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------------- | ---------- | ---------------- | ----- |
| **projectId** | **String** | project id |
| **configurationId** | **String** | configuration id |
| Name | Type | Description | Notes |
| ------------------------------- | ----------------------------------------------------------------- | ------------------------------------------- | ----- |
| **projectId** | **String** | project id |
| **configurationId** | **String** | configuration id |
| **changeCredentialStatusInput** | [**ChangeCredentialStatusInput**](ChangeCredentialStatusInput.md) | Request body for changing credential status |

### Return type

Expand All @@ -60,54 +61,7 @@ try {

### 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
- **Content-Type**: application/json
- **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)
Expand Down
1 change: 0 additions & 1 deletion clients/dart/credential_issuance_client/lib/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ part 'model/flow_data.dart';
part 'model/flow_data_status_lists_details_inner.dart';
part 'model/generate_credentials400_response.dart';
part 'model/get_credential_offer400_response.dart';
part 'model/get_status_list_result_dto.dart';
part 'model/invalid_credential_request_error.dart';
part 'model/invalid_credential_type_error.dart';
part 'model/invalid_issuer_wallet_error.dart';
Expand Down
80 changes: 11 additions & 69 deletions clients/dart/credential_issuance_client/lib/api/default_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,23 @@ class DefaultApi {
///
/// * [String] configurationId (required):
/// configuration id
Future<Response> changeCredentialSatatusWithHttpInfo(String projectId, String configurationId,) async {
///
/// * [ChangeCredentialStatusInput] changeCredentialStatusInput (required):
/// Request body for changing credential status
Future<Response> changeCredentialStatusWithHttpInfo(String projectId, String configurationId, ChangeCredentialStatusInput changeCredentialStatusInput,) async {
// ignore: prefer_const_declarations
final path = r'/v1/{projectId}/configurations/{configurationId}/issuance/change-status'
.replaceAll('{projectId}', projectId)
.replaceAll('{configurationId}', configurationId);

// ignore: prefer_final_locals
Object? postBody;
Object? postBody = changeCredentialStatusInput;

final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};

const contentTypes = <String>[];
const contentTypes = <String>['application/json'];


return apiClient.invokeAPI(
Expand All @@ -67,80 +70,19 @@ class DefaultApi {
///
/// * [String] configurationId (required):
/// configuration id
Future<FlowData?> changeCredentialSatatus(String projectId, String configurationId,) async {
final response = await changeCredentialSatatusWithHttpInfo(projectId, configurationId,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlowData',) as FlowData;

}
return null;
}

/// Return status list credential
///
/// Return status list credential
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] projectId (required):
///
/// * [String] statusListId (required):
/// id of the status list
Future<Response> getStatusListWithHttpInfo(String projectId, String statusListId,) async {
// ignore: prefer_const_declarations
final path = r'/v1/{projectId}/status-list/{statusListId}'
.replaceAll('{projectId}', projectId)
.replaceAll('{statusListId}', statusListId);

// ignore: prefer_final_locals
Object? postBody;

final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};

const contentTypes = <String>[];


return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}

/// Return status list credential
///
/// Return status list credential
///
/// Parameters:
///
/// * [String] projectId (required):
///
/// * [String] statusListId (required):
/// id of the status list
Future<GetStatusListResultDto?> getStatusList(String projectId, String statusListId,) async {
final response = await getStatusListWithHttpInfo(projectId, statusListId,);
/// * [ChangeCredentialStatusInput] changeCredentialStatusInput (required):
/// Request body for changing credential status
Future<FlowData?> changeCredentialStatus(String projectId, String configurationId, ChangeCredentialStatusInput changeCredentialStatusInput,) async {
final response = await changeCredentialStatusWithHttpInfo(projectId, configurationId, changeCredentialStatusInput,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GetStatusListResultDto',) as GetStatusListResultDto;
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'FlowData',) as FlowData;

}
return null;
Expand Down
2 changes: 0 additions & 2 deletions clients/dart/credential_issuance_client/lib/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ class ApiClient {
return GenerateCredentials400Response.fromJson(value);
case 'GetCredentialOffer400Response':
return GetCredentialOffer400Response.fromJson(value);
case 'GetStatusListResultDto':
return GetStatusListResultDto.fromJson(value);
case 'InvalidCredentialRequestError':
return InvalidCredentialRequestError.fromJson(value);
case 'InvalidCredentialTypeError':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ github
travis.yaml
git_push.sh
.gitlab-ci.yml
.travis.yml
composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.travis.yml
README.md
analysis_options.yaml
doc/Constraints.md
Expand Down
2 changes: 2 additions & 0 deletions clients/dart/iam_client/.openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ github
travis.yaml
git_push.sh
.gitlab-ci.yml
.travis.yml
composer.json
12 changes: 9 additions & 3 deletions clients/dart/iam_client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.travis.yml
README.md
analysis_options.yaml
doc/ActionForbiddenError.md
Expand Down Expand Up @@ -27,6 +26,8 @@ doc/PrincipalCannotBeDeletedError.md
doc/PrincipalDoesNotBelongToProjectError.md
doc/ProjectDto.md
doc/ProjectList.md
doc/ProjectWithPolicyDto.md
doc/ProjectWithPolicyList.md
doc/ProjectsApi.md
doc/PublicKeyCannotBeResolvedFromDidError.md
doc/ServiceErrorResponse.md
Expand All @@ -40,7 +41,7 @@ doc/TokenPrivateKeyAuthenticationMethodDtoPublicKeyInfo.md
doc/TokenPrivateKeyAuthenticationMethodDtoPublicKeyInfoOneOf.md
doc/TokenPrivateKeyAuthenticationMethodDtoPublicKeyInfoOneOf1.md
doc/TokensApi.md
doc/TypedPricipalId.md
doc/TypedPrincipalId.md
doc/UnauthorizedError.md
doc/UnexpectedError.md
doc/UpdateProjectInput.md
Expand Down Expand Up @@ -88,6 +89,8 @@ lib/model/principal_cannot_be_deleted_error.dart
lib/model/principal_does_not_belong_to_project_error.dart
lib/model/project_dto.dart
lib/model/project_list.dart
lib/model/project_with_policy_dto.dart
lib/model/project_with_policy_list.dart
lib/model/public_key_cannot_be_resolved_from_did_error.dart
lib/model/service_error_response.dart
lib/model/service_error_response_details_inner.dart
Expand All @@ -98,7 +101,7 @@ lib/model/token_private_key_authentication_method_dto.dart
lib/model/token_private_key_authentication_method_dto_public_key_info.dart
lib/model/token_private_key_authentication_method_dto_public_key_info_one_of.dart
lib/model/token_private_key_authentication_method_dto_public_key_info_one_of1.dart
lib/model/typed_pricipal_id.dart
lib/model/typed_principal_id.dart
lib/model/unauthorized_error.dart
lib/model/unexpected_error.dart
lib/model/update_project_input.dart
Expand All @@ -108,3 +111,6 @@ lib/model/user_dto.dart
lib/model/user_list.dart
lib/model/whoami_dto.dart
pubspec.yaml
test/project_with_policy_dto_test.dart
test/project_with_policy_list_test.dart
test/typed_principal_id_test.dart
Loading

0 comments on commit 2540974

Please sign in to comment.