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-ais #257

Merged
merged 1 commit into from
Sep 20, 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: 0 additions & 9 deletions clients/dart/iota_client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,3 @@ 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/callback_response_ok_redirect_response_test.dart
test/callback_response_ok_test.dart
test/cors_fetch_iota_vp_response_ok_test.dart
test/cors_initiate_data_sharing_request_ok_test.dart
test/fetch_iotavp_response_input_test.dart
test/fetch_iotavp_response_ok_test.dart
test/initiate_data_sharing_request_input_test.dart
test/initiate_data_sharing_request_ok_data_test.dart
test/initiate_data_sharing_request_ok_test.dart
11 changes: 6 additions & 5 deletions clients/dart/iota_client/doc/FetchIOTAVPResponseInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import 'package:affinidi_tdk_iota_client/api.dart';

## Properties

| Name | Type | Description | Notes |
| ----------------- | ---------- | ------------------ | ----- |
| **correlationId** | **String** | The correlation ID |
| **transactionId** | **String** | The transaction ID |
| **responseCode** | **String** | The response code. |
| Name | Type | Description | Notes |
| ------------------- | ---------- | -------------------- | ----- |
| **correlationId** | **String** | The correlation ID |
| **transactionId** | **String** | The transaction ID |
| **responseCode** | **String** | The response code. |
| **configurationId** | **String** | The configuration ID |

[[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
Expand Up @@ -8,12 +8,14 @@ import 'package:affinidi_tdk_iota_client/api.dart';

## Properties

| Name | Type | Description | Notes |
| ----------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- |
| **queryId** | **String** | |
| **correlationId** | **String** | |
| **tokenMaxAge** | **int** | token time to live in seconds | [optional] |
| **nonce** | **String** | Random value used to prevent replay attacks |
| **redirectUri** | **String** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. |
| Name | Type | Description | Notes |
| ------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| **queryId** | **String** | |
| **correlationId** | **String** | |
| **tokenMaxAge** | **int** | token time to live in seconds | [optional] |
| **nonce** | **String** | Random value used to prevent replay attacks |
| **redirectUri** | **String** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. |
| **configurationId** | **String** | id of the IOTA configuration used |
| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
24 changes: 10 additions & 14 deletions clients/dart/iota_client/doc/IotaApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,10 @@ This will get the final data response

```dart
import 'package:affinidi_tdk_iota_client/api.dart';
// TODO Configure HTTP Bearer authorization: bearerAuth
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken(yourTokenGeneratorFunction);
// 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 fetchIOTAVPResponseInput = FetchIOTAVPResponseInput(); // FetchIOTAVPResponseInput | FetchIOTAVPResponseInput
Expand All @@ -196,7 +194,7 @@ try {

### Authorization

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

### HTTP request headers

Expand All @@ -215,12 +213,10 @@ This will initiate data sharing request for the data sharing flow

```dart
import 'package:affinidi_tdk_iota_client/api.dart';
// TODO Configure HTTP Bearer authorization: bearerAuth
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken(yourTokenGeneratorFunction);
// 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 initiateDataSharingRequestInput = InitiateDataSharingRequestInput(); // InitiateDataSharingRequestInput | InitiateDataSharingRequestInput
Expand All @@ -245,7 +241,7 @@ try {

### Authorization

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

### HTTP request headers

Expand Down
24 changes: 12 additions & 12 deletions clients/dart/iota_client/doc/UpdateConfigurationByIdInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import 'package:affinidi_tdk_iota_client/api.dart';

## Properties

| Name | Type | Description | Notes |
| -------------------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| **name** | **String** | The name of the config | [optional] |
| **walletAri** | **String** | The wallet Ari that will be used to sign | [optional] |
| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] |
| **enableVerification** | **bool** | | [optional] |
| **enableConsentAuditLog** | **bool** | | [optional] |
| **tokenMaxAge** | **int** | token time to live in seconds | [optional] |
| **description** | **String** | The description of the config | [optional] |
| **clientMetadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | [optional] |
| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [optional] |
| **redirectUri** | **String** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. Required only if mode is Redirect. | [optional] |
| Name | Type | Description | Notes |
| -------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
| **name** | **String** | The name of the config | [optional] |
| **walletAri** | **String** | The wallet Ari that will be used to sign | [optional] |
| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] |
| **enableVerification** | **bool** | | [optional] |
| **enableConsentAuditLog** | **bool** | | [optional] |
| **tokenMaxAge** | **int** | token time to live in seconds | [optional] |
| **description** | **String** | The description of the config | [optional] |
| **clientMetadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | [optional] |
| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [optional] [default to 'websocket'] |
| **redirectUris** | **List<String>** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect. | [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
Expand Up @@ -16,6 +16,7 @@ class FetchIOTAVPResponseInput {
required this.correlationId,
required this.transactionId,
required this.responseCode,
required this.configurationId,
});

/// The correlation ID
Expand All @@ -27,27 +28,33 @@ class FetchIOTAVPResponseInput {
/// The response code.
String responseCode;

/// The configuration ID
String configurationId;

@override
bool operator ==(Object other) => identical(this, other) || other is FetchIOTAVPResponseInput &&
other.correlationId == correlationId &&
other.transactionId == transactionId &&
other.responseCode == responseCode;
other.responseCode == responseCode &&
other.configurationId == configurationId;

@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(correlationId.hashCode) +
(transactionId.hashCode) +
(responseCode.hashCode);
(responseCode.hashCode) +
(configurationId.hashCode);

@override
String toString() => 'FetchIOTAVPResponseInput[correlationId=$correlationId, transactionId=$transactionId, responseCode=$responseCode]';
String toString() => 'FetchIOTAVPResponseInput[correlationId=$correlationId, transactionId=$transactionId, responseCode=$responseCode, configurationId=$configurationId]';

Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'correlationId'] = this.correlationId;
json[r'transactionId'] = this.transactionId;
json[r'responseCode'] = this.responseCode;
json[r'configurationId'] = this.configurationId;
return json;
}

Expand All @@ -73,6 +80,7 @@ class FetchIOTAVPResponseInput {
correlationId: mapValueOfType<String>(json, r'correlationId')!,
transactionId: mapValueOfType<String>(json, r'transactionId')!,
responseCode: mapValueOfType<String>(json, r'responseCode')!,
configurationId: mapValueOfType<String>(json, r'configurationId')!,
);
}
return null;
Expand Down Expand Up @@ -123,6 +131,7 @@ class FetchIOTAVPResponseInput {
'correlationId',
'transactionId',
'responseCode',
'configurationId',
};
}

Loading