Skip to content

Commit

Permalink
feat: update client all
Browse files Browse the repository at this point in the history
  • Loading branch information
maratsh committed Aug 12, 2024
1 parent 69b8651 commit 8c3e52f
Show file tree
Hide file tree
Showing 40 changed files with 831 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,3 @@ lib/model/update_issuance_config_input.dart
lib/model/vc_claimed_error.dart
lib/model/well_known_open_id_credential_issuer_response.dart
pubspec.yaml
test/credential_offer_claimed_error_test.dart
test/missing_holder_did_error_test.dart
6 changes: 4 additions & 2 deletions clients/dart/iota_client/doc/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais*

# **listLoggedConsents**

> ListLoggedConsentsOK listLoggedConsents(userId, limit, exclusiveStartKey)
> ListLoggedConsentsOK listLoggedConsents(configurationId, userId, limit, exclusiveStartKey)
returns a list of logged consents for the project

Expand All @@ -28,12 +28,13 @@ import 'package:affinidi_tdk_iota_client/api.dart';
//defaultApiClient.getAuthentication<ApiKeyAuth>('ProjectTokenAuth').apiKeyPrefix = 'Bearer';
final api_instance = DefaultApi();
final configurationId = configurationId_example; // String |
final userId = userId_example; // String |
final limit = 56; // int | Maximum number of records to fetch in a list
final exclusiveStartKey = exclusiveStartKey_example; // String | The base64url encoded key of the first item that this operation will evaluate (it is not returned). Use the value that was returned in the previous operation.
try {
final result = api_instance.listLoggedConsents(userId, limit, exclusiveStartKey);
final result = api_instance.listLoggedConsents(configurationId, userId, limit, exclusiveStartKey);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->listLoggedConsents: $e\n');
Expand All @@ -44,6 +45,7 @@ try {

| Name | Type | Description | Notes |
| --------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| **configurationId** | **String** | | [optional] |
| **userId** | **String** | | [optional] |
| **limit** | **int** | Maximum number of records to fetch in a list | [optional] |
| **exclusiveStartKey** | **String** | The base64url encoded key of the first item that this operation will evaluate (it is not returned). Use the value that was returned in the previous operation. | [optional] |
Expand Down
13 changes: 10 additions & 3 deletions clients/dart/iota_client/lib/api/default_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ class DefaultApi {
///
/// Parameters:
///
/// * [String] configurationId:
///
/// * [String] userId:
///
/// * [int] limit:
/// Maximum number of records to fetch in a list
///
/// * [String] exclusiveStartKey:
/// The base64url encoded key of the first item that this operation will evaluate (it is not returned). Use the value that was returned in the previous operation.
Future<Response> listLoggedConsentsWithHttpInfo({ String? userId, int? limit, String? exclusiveStartKey, }) async {
Future<Response> listLoggedConsentsWithHttpInfo({ String? configurationId, String? userId, int? limit, String? exclusiveStartKey, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/logged-consents';

Expand All @@ -40,6 +42,9 @@ class DefaultApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};

if (configurationId != null) {
queryParams.addAll(_queryParams('', 'configurationId', configurationId));
}
if (userId != null) {
queryParams.addAll(_queryParams('', 'userId', userId));
}
Expand Down Expand Up @@ -68,15 +73,17 @@ class DefaultApi {
///
/// Parameters:
///
/// * [String] configurationId:
///
/// * [String] userId:
///
/// * [int] limit:
/// Maximum number of records to fetch in a list
///
/// * [String] exclusiveStartKey:
/// The base64url encoded key of the first item that this operation will evaluate (it is not returned). Use the value that was returned in the previous operation.
Future<ListLoggedConsentsOK?> listLoggedConsents({ String? userId, int? limit, String? exclusiveStartKey, }) async {
final response = await listLoggedConsentsWithHttpInfo( userId: userId, limit: limit, exclusiveStartKey: exclusiveStartKey, );
Future<ListLoggedConsentsOK?> listLoggedConsents({ String? configurationId, String? userId, int? limit, String? exclusiveStartKey, }) async {
final response = await listLoggedConsentsWithHttpInfo( configurationId: configurationId, userId: userId, limit: limit, exclusiveStartKey: exclusiveStartKey, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ doc/InvalidClaimContextError.md
doc/InvalidGroupsError.md
doc/InvalidParameterError.md
doc/InvalidParameterErrorDetailsInner.md
doc/InvalidVPTokenCreationTimeError.md
doc/JsonWebKey.md
doc/JsonWebKeyKeysInner.md
doc/ListLoginConfigurationOutput.md
Expand Down Expand Up @@ -98,6 +99,7 @@ lib/model/invalid_claim_context_error.dart
lib/model/invalid_groups_error.dart
lib/model/invalid_parameter_error.dart
lib/model/invalid_parameter_error_details_inner.dart
lib/model/invalid_vp_token_creation_time_error.dart
lib/model/json_web_key.dart
lib/model/json_web_key_keys_inner.dart
lib/model/list_login_configuration_output.dart
Expand All @@ -122,3 +124,4 @@ lib/model/unauthorized_error.dart
lib/model/update_login_configuration_input.dart
lib/model/vp_token_validation_error.dart
pubspec.yaml
test/invalid_vp_token_creation_time_error_test.dart
1 change: 1 addition & 0 deletions clients/dart/login_configuration_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/vpa*
- [InvalidGroupsError](doc//InvalidGroupsError.md)
- [InvalidParameterError](doc//InvalidParameterError.md)
- [InvalidParameterErrorDetailsInner](doc//InvalidParameterErrorDetailsInner.md)
- [InvalidVPTokenCreationTimeError](doc//InvalidVPTokenCreationTimeError.md)
- [JsonWebKey](doc//JsonWebKey.md)
- [JsonWebKeyKeysInner](doc//JsonWebKeyKeysInner.md)
- [ListLoginConfigurationOutput](doc//ListLoginConfigurationOutput.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# affinidi_tdk_login_configuration_client.model.InvalidVPTokenCreationTimeError

## Load the model package

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

## Properties

| Name | Type | Description | Notes |
| ------------------ | ----------------------------------------------------------------------------------- | ----------- | -------------------------------- |
| **name** | **String** | |
| **message** | **String** | |
| **httpStatusCode** | **int** | |
| **traceId** | **String** | |
| **details** | [**List<InvalidParameterErrorDetailsInner>**](InvalidParameterErrorDetailsInner.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
Expand Up @@ -14,5 +14,6 @@ import 'package:affinidi_tdk_login_configuration_client/api.dart';
| **presentationDefinition** | **String** | Presentation Definition to ask from the user. In JSON Stringify format. |
| **ari** | **String** | ARI is used for analytics proposals. | [optional] |
| **clientId** | **String** | clientId used for detect origin. | [optional] |
| **nonce** | **String** | nonce for VP Token proof challenge | [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)
1 change: 1 addition & 0 deletions clients/dart/login_configuration_client/lib/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ part 'model/invalid_claim_context_error.dart';
part 'model/invalid_groups_error.dart';
part 'model/invalid_parameter_error.dart';
part 'model/invalid_parameter_error_details_inner.dart';
part 'model/invalid_vp_token_creation_time_error.dart';
part 'model/json_web_key.dart';
part 'model/json_web_key_keys_inner.dart';
part 'model/list_login_configuration_output.dart';
Expand Down
2 changes: 2 additions & 0 deletions clients/dart/login_configuration_client/lib/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ class ApiClient {
return InvalidParameterError.fromJson(value);
case 'InvalidParameterErrorDetailsInner':
return InvalidParameterErrorDetailsInner.fromJson(value);
case 'InvalidVPTokenCreationTimeError':
return InvalidVPTokenCreationTimeError.fromJson(value);
case 'JsonWebKey':
return JsonWebKey.fromJson(value);
case 'JsonWebKeyKeysInner':
Expand Down
Loading

0 comments on commit 8c3e52f

Please sign in to comment.