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

Update from feat/update-client-all #220

Merged
merged 1 commit into from
Sep 2, 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
9 changes: 9 additions & 0 deletions clients/dart/iota_client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ doc/CorsIotOidc4vpcallbackOK.md
doc/CreateIotaConfigurationInput.md
doc/CreatePexQueryInput.md
doc/DefaultApi.md
doc/DeletePexQueriesInput.md
doc/GetIotaConfigurationMetaDataOK.md
doc/InvalidParameterError.md
doc/InvalidParameterErrorDetailsInner.md
Expand All @@ -36,6 +37,8 @@ doc/PrepareRequest.md
doc/PrepareRequestCreated.md
doc/PrepareRequestCreatedData.md
doc/ResourceLimitExceededError.md
doc/SavePexQueriesUpdateInput.md
doc/SavePexQueriesUpdateInputQueriesInner.md
doc/UpdateConfigurationByIdInput.md
doc/UpdateConfigurationByIdOK.md
doc/UpdatePexQueryInput.md
Expand Down Expand Up @@ -67,6 +70,7 @@ lib/model/cors_aws_exchange_credentials_project_token_ok.dart
lib/model/cors_iot_oidc4vpcallback_ok.dart
lib/model/create_iota_configuration_input.dart
lib/model/create_pex_query_input.dart
lib/model/delete_pex_queries_input.dart
lib/model/get_iota_configuration_meta_data_ok.dart
lib/model/invalid_parameter_error.dart
lib/model/invalid_parameter_error_details_inner.dart
Expand All @@ -83,8 +87,13 @@ lib/model/prepare_request.dart
lib/model/prepare_request_created.dart
lib/model/prepare_request_created_data.dart
lib/model/resource_limit_exceeded_error.dart
lib/model/save_pex_queries_update_input.dart
lib/model/save_pex_queries_update_input_queries_inner.dart
lib/model/update_configuration_by_id_input.dart
lib/model/update_configuration_by_id_ok.dart
lib/model/update_pex_query_input.dart
lib/model/vp_token_validation_error.dart
pubspec.yaml
test/delete_pex_queries_input_test.dart
test/save_pex_queries_update_input_queries_inner_test.dart
test/save_pex_queries_update_input_test.dart
5 changes: 5 additions & 0 deletions clients/dart/iota_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais*
| _DefaultApi_ | [**listLoggedConsents**](doc//DefaultApi.md#listloggedconsents) | **GET** /v1/logged-consents |
| _IotaApi_ | [**awsExchangeCredentials**](doc//IotaApi.md#awsexchangecredentials) | **POST** /v1/aws-exchange-credentials |
| _IotaApi_ | [**awsExchangeCredentialsProjectToken**](doc//IotaApi.md#awsexchangecredentialsprojecttoken) | **POST** /v1/aws-exchange-credentials/project-token |
| _IotaApi_ | [**deletePexQueries**](doc//IotaApi.md#deletepexqueries) | **POST** /v1/configurations/{configurationId}/delete-queries | deletes pex queries |
| _IotaApi_ | [**savePexQueries**](doc//IotaApi.md#savepexqueries) | **POST** /v1/configurations/{configurationId}/save-queries |
| _PexQueryApi_ | [**createPexQuery**](doc//PexQueryApi.md#createpexquery) | **POST** /v1/configurations/{configurationId}/pex-queries |
| _PexQueryApi_ | [**deletePexQueryById**](doc//PexQueryApi.md#deletepexquerybyid) | **DELETE** /v1/configurations/{configurationId}/pex-queries/{queryId} |
| _PexQueryApi_ | [**getPexQueryById**](doc//PexQueryApi.md#getpexquerybyid) | **GET** /v1/configurations/{configurationId}/pex-queries/{queryId} |
Expand All @@ -96,6 +98,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais*
- [CorsIotOidc4vpcallbackOK](doc//CorsIotOidc4vpcallbackOK.md)
- [CreateIotaConfigurationInput](doc//CreateIotaConfigurationInput.md)
- [CreatePexQueryInput](doc//CreatePexQueryInput.md)
- [DeletePexQueriesInput](doc//DeletePexQueriesInput.md)
- [GetIotaConfigurationMetaDataOK](doc//GetIotaConfigurationMetaDataOK.md)
- [InvalidParameterError](doc//InvalidParameterError.md)
- [InvalidParameterErrorDetailsInner](doc//InvalidParameterErrorDetailsInner.md)
Expand All @@ -112,6 +115,8 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais*
- [PrepareRequestCreated](doc//PrepareRequestCreated.md)
- [PrepareRequestCreatedData](doc//PrepareRequestCreatedData.md)
- [ResourceLimitExceededError](doc//ResourceLimitExceededError.md)
- [SavePexQueriesUpdateInput](doc//SavePexQueriesUpdateInput.md)
- [SavePexQueriesUpdateInputQueriesInner](doc//SavePexQueriesUpdateInputQueriesInner.md)
- [UpdateConfigurationByIdInput](doc//UpdateConfigurationByIdInput.md)
- [UpdateConfigurationByIdOK](doc//UpdateConfigurationByIdOK.md)
- [UpdatePexQueryInput](doc//UpdatePexQueryInput.md)
Expand Down
15 changes: 15 additions & 0 deletions clients/dart/iota_client/doc/DeletePexQueriesInput.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# affinidi_tdk_iota_client.model.DeletePexQueriesInput

## Load the model package

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

## Properties

| Name | Type | Description | Notes |
| ------------ | ---------------- | ----------- | --------------------- |
| **queryIds** | **List<String>** | | [default to const []] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
107 changes: 103 additions & 4 deletions clients/dart/iota_client/doc/IotaApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import 'package:affinidi_tdk_iota_client/api.dart';

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

| Method | HTTP request | Description |
| --------------------------------------------------------------------------------------- | --------------------------------------------------- | ----------- |
| [**awsExchangeCredentials**](IotaApi.md#awsexchangecredentials) | **POST** /v1/aws-exchange-credentials |
| [**awsExchangeCredentialsProjectToken**](IotaApi.md#awsexchangecredentialsprojecttoken) | **POST** /v1/aws-exchange-credentials/project-token |
| Method | HTTP request | Description |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ------------------- |
| [**awsExchangeCredentials**](IotaApi.md#awsexchangecredentials) | **POST** /v1/aws-exchange-credentials |
| [**awsExchangeCredentialsProjectToken**](IotaApi.md#awsexchangecredentialsprojecttoken) | **POST** /v1/aws-exchange-credentials/project-token |
| [**deletePexQueries**](IotaApi.md#deletepexqueries) | **POST** /v1/configurations/{configurationId}/delete-queries | deletes pex queries |
| [**savePexQueries**](IotaApi.md#savepexqueries) | **POST** /v1/configurations/{configurationId}/save-queries |

# **awsExchangeCredentials**

Expand Down Expand Up @@ -102,3 +104,100 @@ try {
- **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)

# **deletePexQueries**

> deletePexQueries(configurationId)

deletes pex queries

deletes pex queries

### Example

```dart
import 'package:affinidi_tdk_iota_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 = IotaApi();
final configurationId = configurationId_example; // String | iotaConfiguration Id

try {
api_instance.deletePexQueries(configurationId);
} catch (e) {
print('Exception when calling IotaApi->deletePexQueries: $e\n');
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------------- | ---------- | -------------------- | ----- |
| **configurationId** | **String** | iotaConfiguration Id |

### Return type

void (empty response body)

### 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)

# **savePexQueries**

> Object savePexQueries(configurationId, savePexQueriesUpdateInput)

saves all pex queries

### Example

```dart
import 'package:affinidi_tdk_iota_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 = IotaApi();
final configurationId = configurationId_example; // String | iotaConfiguration Id
final savePexQueriesUpdateInput = SavePexQueriesUpdateInput(); // SavePexQueriesUpdateInput | SavePexQueriesInput

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

### Parameters

| Name | Type | Description | Notes |
| ----------------------------- | ------------------------------------------------------------- | -------------------- | ----- |
| **configurationId** | **String** | iotaConfiguration Id |
| **savePexQueriesUpdateInput** | [**SavePexQueriesUpdateInput**](SavePexQueriesUpdateInput.md) | SavePexQueriesInput |

### Return type

[**Object**](Object.md)

### Authorization

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

### HTTP request headers

- **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)
15 changes: 15 additions & 0 deletions clients/dart/iota_client/doc/SavePexQueriesUpdateInput.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# affinidi_tdk_iota_client.model.SavePexQueriesUpdateInput

## Load the model package

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

## Properties

| Name | Type | Description | Notes |
| ----------- | ------------------------------------------------------------------------------------------- | ----------- | -------------------------------- |
| **queries** | [**List<SavePexQueriesUpdateInputQueriesInner>**](SavePexQueriesUpdateInputQueriesInner.md) | | [optional] [default to const []] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# affinidi_tdk_iota_client.model.SavePexQueriesUpdateInputQueriesInner

## Load the model package

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

## Properties

| Name | Type | Description | Notes |
| ---------------- | ---------- | ----------- | ---------- |
| **queryId** | **String** | |
| **vpDefinition** | **String** | | [optional] |
| **description** | **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)
3 changes: 3 additions & 0 deletions clients/dart/iota_client/lib/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ part 'model/cors_aws_exchange_credentials_project_token_ok.dart';
part 'model/cors_iot_oidc4vpcallback_ok.dart';
part 'model/create_iota_configuration_input.dart';
part 'model/create_pex_query_input.dart';
part 'model/delete_pex_queries_input.dart';
part 'model/get_iota_configuration_meta_data_ok.dart';
part 'model/invalid_parameter_error.dart';
part 'model/invalid_parameter_error_details_inner.dart';
Expand All @@ -63,6 +64,8 @@ part 'model/prepare_request.dart';
part 'model/prepare_request_created.dart';
part 'model/prepare_request_created_data.dart';
part 'model/resource_limit_exceeded_error.dart';
part 'model/save_pex_queries_update_input.dart';
part 'model/save_pex_queries_update_input_queries_inner.dart';
part 'model/update_configuration_by_id_input.dart';
part 'model/update_configuration_by_id_ok.dart';
part 'model/update_pex_query_input.dart';
Expand Down
112 changes: 112 additions & 0 deletions clients/dart/iota_client/lib/api/iota_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,116 @@ class IotaApi {
}
return null;
}

/// deletes pex queries
///
/// deletes pex queries
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] configurationId (required):
/// iotaConfiguration Id
Future<Response> deletePexQueriesWithHttpInfo(String configurationId,) async {
// ignore: prefer_const_declarations
final path = r'/v1/configurations/{configurationId}/delete-queries'
.replaceAll('{configurationId}', configurationId);

// ignore: prefer_final_locals
Object? postBody;

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

const contentTypes = <String>[];


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

/// deletes pex queries
///
/// deletes pex queries
///
/// Parameters:
///
/// * [String] configurationId (required):
/// iotaConfiguration Id
Future<void> deletePexQueries(String configurationId,) async {
final response = await deletePexQueriesWithHttpInfo(configurationId,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}

/// saves all pex queries
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] configurationId (required):
/// iotaConfiguration Id
///
/// * [SavePexQueriesUpdateInput] savePexQueriesUpdateInput (required):
/// SavePexQueriesInput
Future<Response> savePexQueriesWithHttpInfo(String configurationId, SavePexQueriesUpdateInput savePexQueriesUpdateInput,) async {
// ignore: prefer_const_declarations
final path = r'/v1/configurations/{configurationId}/save-queries'
.replaceAll('{configurationId}', configurationId);

// ignore: prefer_final_locals
Object? postBody = savePexQueriesUpdateInput;

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

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


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

/// saves all pex queries
///
/// Parameters:
///
/// * [String] configurationId (required):
/// iotaConfiguration Id
///
/// * [SavePexQueriesUpdateInput] savePexQueriesUpdateInput (required):
/// SavePexQueriesInput
Future<Object?> savePexQueries(String configurationId, SavePexQueriesUpdateInput savePexQueriesUpdateInput,) async {
final response = await savePexQueriesWithHttpInfo(configurationId, savePexQueriesUpdateInput,);
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), 'Object',) as Object;

}
return null;
}
}
6 changes: 6 additions & 0 deletions clients/dart/iota_client/lib/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ class ApiClient {
return CreateIotaConfigurationInput.fromJson(value);
case 'CreatePexQueryInput':
return CreatePexQueryInput.fromJson(value);
case 'DeletePexQueriesInput':
return DeletePexQueriesInput.fromJson(value);
case 'GetIotaConfigurationMetaDataOK':
return GetIotaConfigurationMetaDataOK.fromJson(value);
case 'InvalidParameterError':
Expand Down Expand Up @@ -240,6 +242,10 @@ class ApiClient {
return PrepareRequestCreatedData.fromJson(value);
case 'ResourceLimitExceededError':
return ResourceLimitExceededError.fromJson(value);
case 'SavePexQueriesUpdateInput':
return SavePexQueriesUpdateInput.fromJson(value);
case 'SavePexQueriesUpdateInputQueriesInner':
return SavePexQueriesUpdateInputQueriesInner.fromJson(value);
case 'UpdateConfigurationByIdInput':
return UpdateConfigurationByIdInput.fromJson(value);
case 'UpdateConfigurationByIdOK':
Expand Down
Loading
Loading