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 Jul 16, 2024
1 parent 0a2d7ad commit 3d68c5c
Show file tree
Hide file tree
Showing 106 changed files with 2,652 additions and 1,685 deletions.
3,024 changes: 1,526 additions & 1,498 deletions .nx/workspace-data/file-map.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .nx/workspace-data/lockfile.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13786563843267139396
2676219666036482414
24 changes: 24 additions & 0 deletions .nx/workspace-data/parsed-lock-file.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,15 @@
"hash": "18395649546124891387"
}
},
"npm:@affinidi-tdk/iota-client@1.9.0": {
"type": "npm",
"name": "npm:@affinidi-tdk/iota-client@1.9.0",
"data": {
"version": "1.9.0",
"packageName": "@affinidi-tdk/iota-client",
"hash": "sha512-MMszIMPCy/KFSEAU548IaqzeazF03oUf6EN+VctLdNeydJh2xmYahD2zKE3wbnNR1SCjuyoJIEq5NBzr7+anlg=="
}
},
"npm:@ampproject/remapping": {
"type": "npm",
"name": "npm:@ampproject/remapping",
Expand Down Expand Up @@ -12242,6 +12251,21 @@
"target": "npm:brace-expansion",
"type": "static"
},
{
"source": "npm:@affinidi-tdk/iota-client@1.9.0",
"target": "npm:axios",
"type": "static"
},
{
"source": "npm:@affinidi-tdk/iota-client@1.9.0",
"target": "npm:axios-retry",
"type": "static"
},
{
"source": "npm:@affinidi-tdk/iota-client@1.9.0",
"target": "npm:url",
"type": "static"
},
{
"source": "npm:@typescript-eslint/eslint-plugin@7.14.1",
"target": "npm:@typescript-eslint/parser@7.14.1",
Expand Down
26 changes: 26 additions & 0 deletions .nx/workspace-data/project-graph.json
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,15 @@
"hash": "18395649546124891387"
}
},
"npm:@affinidi-tdk/iota-client@1.9.0": {
"type": "npm",
"name": "npm:@affinidi-tdk/iota-client@1.9.0",
"data": {
"version": "1.9.0",
"packageName": "@affinidi-tdk/iota-client",
"hash": "sha512-MMszIMPCy/KFSEAU548IaqzeazF03oUf6EN+VctLdNeydJh2xmYahD2zKE3wbnNR1SCjuyoJIEq5NBzr7+anlg=="
}
},
"npm:@ampproject/remapping": {
"type": "npm",
"name": "npm:@ampproject/remapping",
Expand Down Expand Up @@ -13748,6 +13757,23 @@
"type": "static"
}
],
"npm:@affinidi-tdk/iota-client@1.9.0": [
{
"source": "npm:@affinidi-tdk/iota-client@1.9.0",
"target": "npm:axios",
"type": "static"
},
{
"source": "npm:@affinidi-tdk/iota-client@1.9.0",
"target": "npm:axios-retry",
"type": "static"
},
{
"source": "npm:@affinidi-tdk/iota-client@1.9.0",
"target": "npm:url",
"type": "static"
}
],
"npm:@ampproject/remapping": [
{
"source": "npm:@ampproject/remapping",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,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_response_immediate_c_nonce_expires_in_test.dart
test/credential_response_immediate_credential_test.dart
test/list_issuance_response_issuances_inner_test.dart
5 changes: 3 additions & 2 deletions clients/dart/iam_client/doc/CreateTokenInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import 'package:affinidi_tdk_iam_client/api.dart';

## Properties

| Name | Type | Description | Notes |
| ------------------------ | ------------------------------------------------------------------- | ----------- | ----- |
| Name | Type | Description | Notes |
| ------------------------ | ------------------------------------------------------------------- | ----------- | ---------- |
| **name** | **String** | |
| **authenticationMethod** | [**TokenAuthenticationMethodDto**](TokenAuthenticationMethodDto.md) | |
| **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)
2 changes: 2 additions & 0 deletions clients/dart/iam_client/doc/PolicyDto.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import 'package:affinidi_tdk_iam_client/api.dart';

| Name | Type | Description | Notes |
| --------------- | ----------------------------------------------------- | ----------- | --------------------- |
| **name** | **String** | | [optional] |
| **description** | **String** | | [optional] |
| **principalId** | **String** | | [optional] |
| **projectId** | **String** | | [optional] |
| **version** | **String** | |
Expand Down
23 changes: 20 additions & 3 deletions clients/dart/iam_client/lib/model/create_token_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,46 @@ class CreateTokenInput {
CreateTokenInput({
required this.name,
required this.authenticationMethod,
this.description,
});

String name;

TokenAuthenticationMethodDto authenticationMethod;

///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? description;

@override
bool operator ==(Object other) => identical(this, other) || other is CreateTokenInput &&
other.name == name &&
other.authenticationMethod == authenticationMethod;
other.authenticationMethod == authenticationMethod &&
other.description == description;

@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(name.hashCode) +
(authenticationMethod.hashCode);
(authenticationMethod.hashCode) +
(description == null ? 0 : description!.hashCode);

@override
String toString() => 'CreateTokenInput[name=$name, authenticationMethod=$authenticationMethod]';
String toString() => 'CreateTokenInput[name=$name, authenticationMethod=$authenticationMethod, description=$description]';

Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
json[r'authenticationMethod'] = this.authenticationMethod;
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
return json;
}

Expand All @@ -63,6 +79,7 @@ class CreateTokenInput {
return CreateTokenInput(
name: mapValueOfType<String>(json, r'name')!,
authenticationMethod: TokenAuthenticationMethodDto.fromJson(json[r'authenticationMethod'])!,
description: mapValueOfType<String>(json, r'description'),
);
}
return null;
Expand Down
36 changes: 35 additions & 1 deletion clients/dart/iam_client/lib/model/policy_dto.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,30 @@ part of openapi.api;
class PolicyDto {
/// Returns a new [PolicyDto] instance.
PolicyDto({
this.name,
this.description,
this.principalId,
this.projectId,
required this.version,
this.statement = const [],
});

///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? name;

///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? description;

///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
Expand All @@ -41,6 +59,8 @@ class PolicyDto {

@override
bool operator ==(Object other) => identical(this, other) || other is PolicyDto &&
other.name == name &&
other.description == description &&
other.principalId == principalId &&
other.projectId == projectId &&
other.version == version &&
Expand All @@ -49,16 +69,28 @@ class PolicyDto {
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(name == null ? 0 : name!.hashCode) +
(description == null ? 0 : description!.hashCode) +
(principalId == null ? 0 : principalId!.hashCode) +
(projectId == null ? 0 : projectId!.hashCode) +
(version.hashCode) +
(statement.hashCode);

@override
String toString() => 'PolicyDto[principalId=$principalId, projectId=$projectId, version=$version, statement=$statement]';
String toString() => 'PolicyDto[name=$name, description=$description, principalId=$principalId, projectId=$projectId, version=$version, statement=$statement]';

Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.principalId != null) {
json[r'principalId'] = this.principalId;
} else {
Expand Down Expand Up @@ -93,6 +125,8 @@ class PolicyDto {
}());

return PolicyDto(
name: mapValueOfType<String>(json, r'name'),
description: mapValueOfType<String>(json, r'description'),
principalId: mapValueOfType<String>(json, r'principalId'),
projectId: mapValueOfType<String>(json, r'projectId'),
version: mapValueOfType<String>(json, r'version')!,
Expand Down
2 changes: 0 additions & 2 deletions clients/dart/iota_client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ doc/CorsIotOidc4vpcallbackOK.md
doc/CreateIotaConfigurationInput.md
doc/CreatePexQueryInput.md
doc/DefaultApi.md
doc/DemoWbx.md
doc/GetIotaConfigurationMetaDataOK.md
doc/InvalidParameterError.md
doc/InvalidParameterErrorDetailsInner.md
Expand Down Expand Up @@ -62,7 +61,6 @@ lib/model/cors_aws_exchange_credentials_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/demo_wbx.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 Down
1 change: 0 additions & 1 deletion clients/dart/iota_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais*
- [CorsIotOidc4vpcallbackOK](doc//CorsIotOidc4vpcallbackOK.md)
- [CreateIotaConfigurationInput](doc//CreateIotaConfigurationInput.md)
- [CreatePexQueryInput](doc//CreatePexQueryInput.md)
- [DemoWbx](doc//DemoWbx.md)
- [GetIotaConfigurationMetaDataOK](doc//GetIotaConfigurationMetaDataOK.md)
- [InvalidParameterError](doc//InvalidParameterError.md)
- [InvalidParameterErrorDetailsInner](doc//InvalidParameterErrorDetailsInner.md)
Expand Down
7 changes: 4 additions & 3 deletions clients/dart/iota_client/doc/ListPexQueriesOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import 'package:affinidi_tdk_iota_client/api.dart';

## Properties

| Name | Type | Description | Notes |
| -------------- | --------------------------------------- | ----------- | --------------------- |
| **pexQueries** | [**List<PexQueryDto>**](PexQueryDto.md) | | [default to const []] |
| Name | Type | Description | Notes |
| -------------------- | --------------------------------------- | ----------- | --------------------- |
| **pexQueries** | [**List<PexQueryDto>**](PexQueryDto.md) | | [default to const []] |
| **lastEvaluatedKey** | **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)
14 changes: 9 additions & 5 deletions clients/dart/iota_client/doc/PexQueryApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ try {

# **listPexQueries**

> ListPexQueriesOK listPexQueries(configurationId)
> ListPexQueriesOK listPexQueries(configurationId, limit, exclusiveStartKey)
### Example

Expand All @@ -171,9 +171,11 @@ import 'package:affinidi_tdk_iota_client/api.dart';
final api_instance = PexQueryApi();
final configurationId = configurationId_example; // String | iotaConfiguration Id
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.listPexQueries(configurationId);
final result = api_instance.listPexQueries(configurationId, limit, exclusiveStartKey);
print(result);
} catch (e) {
print('Exception when calling PexQueryApi->listPexQueries: $e\n');
Expand All @@ -182,9 +184,11 @@ try {

### Parameters

| Name | Type | Description | Notes |
| ------------------- | ---------- | -------------------- | ----- |
| **configurationId** | **String** | iotaConfiguration Id |
| Name | Type | Description | Notes |
| --------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| **configurationId** | **String** | iotaConfiguration Id |
| **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] |

### Return type

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import 'package:affinidi_tdk_iota_client/api.dart';
| **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] |

[[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: 0 additions & 1 deletion clients/dart/iota_client/lib/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ part 'model/cors_aws_exchange_credentials_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/demo_wbx.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 Down
25 changes: 22 additions & 3 deletions clients/dart/iota_client/lib/api/pex_query_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,13 @@ class PexQueryApi {
///
/// * [String] configurationId (required):
/// iotaConfiguration Id
Future<Response> listPexQueriesWithHttpInfo(String configurationId,) async {
///
/// * [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> listPexQueriesWithHttpInfo(String configurationId, { int? limit, String? exclusiveStartKey, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/configurations/{configurationId}/pex-queries'
.replaceAll('{configurationId}', configurationId);
Expand All @@ -195,6 +201,13 @@ class PexQueryApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};

if (limit != null) {
queryParams.addAll(_queryParams('', 'limit', limit));
}
if (exclusiveStartKey != null) {
queryParams.addAll(_queryParams('', 'exclusiveStartKey', exclusiveStartKey));
}

const contentTypes = <String>[];


Expand All @@ -213,8 +226,14 @@ class PexQueryApi {
///
/// * [String] configurationId (required):
/// iotaConfiguration Id
Future<ListPexQueriesOK?> listPexQueries(String configurationId,) async {
final response = await listPexQueriesWithHttpInfo(configurationId,);
///
/// * [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<ListPexQueriesOK?> listPexQueries(String configurationId, { int? limit, String? exclusiveStartKey, }) async {
final response = await listPexQueriesWithHttpInfo(configurationId, limit: limit, exclusiveStartKey: exclusiveStartKey, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
Expand Down
2 changes: 0 additions & 2 deletions clients/dart/iota_client/lib/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ class ApiClient {
return CreateIotaConfigurationInput.fromJson(value);
case 'CreatePexQueryInput':
return CreatePexQueryInput.fromJson(value);
case 'DemoWbx':
return DemoWbx.fromJson(value);
case 'GetIotaConfigurationMetaDataOK':
return GetIotaConfigurationMetaDataOK.fromJson(value);
case 'InvalidParameterError':
Expand Down
Loading

0 comments on commit 3d68c5c

Please sign in to comment.