From 9b6d81e6df59c1abea29181fb82dc287a75d1aab Mon Sep 17 00:00:00 2001 From: Marat Shakirov Date: Sun, 8 Sep 2024 22:23:07 +0000 Subject: [PATCH] feat: update client all --- .../dart/iam_client/.openapi-generator/FILES | 8 + clients/dart/iam_client/README.md | 3 + .../dart/iam_client/doc/InvalidDIDError.md | 19 + .../dart/iam_client/doc/InvalidDidError.md | 19 + .../PublicKeyCannotBeResolvedFromDidError.md | 19 + clients/dart/iam_client/lib/api.dart | 3 + clients/dart/iam_client/lib/api_client.dart | 6 + .../lib/model/invalid_did_error.dart | 353 ++++++++++++++++++ ...key_cannot_be_resolved_from_did_error.dart | 353 ++++++++++++++++++ .../test/invalid_did_error_test.dart | 47 +++ ...annot_be_resolved_from_did_error_test.dart | 47 +++ .../dart/iota_client/.openapi-generator/FILES | 15 +- clients/dart/iota_client/README.md | 5 + .../doc/CorsIotaExchangeCredentialsOK.md | 15 + clients/dart/iota_client/doc/IotaApi.md | 48 ++- .../doc/IotaExchangeCredentials.md | 15 + .../doc/IotaExchangeCredentialsOK.md | 16 + .../IotaExchangeCredentialsOKCredentials.md | 18 + clients/dart/iota_client/lib/api.dart | 4 + .../dart/iota_client/lib/api/iota_api.dart | 58 ++- clients/dart/iota_client/lib/api_client.dart | 8 + .../cors_iota_exchange_credentials_ok.dart | 118 ++++++ .../lib/model/iota_exchange_credentials.dart | 110 ++++++ .../model/iota_exchange_credentials_ok.dart | 117 ++++++ ...a_exchange_credentials_ok_credentials.dart | 133 +++++++ ...ors_iota_exchange_credentials_ok_test.dart | 27 ++ ...hange_credentials_ok_credentials_test.dart | 42 +++ .../iota_exchange_credentials_ok_test.dart | 32 ++ .../test/iota_exchange_credentials_test.dart | 28 ++ .../iam_client/.openapi-generator/FILES | 8 + clients/python/iam_client/README.md | 3 + .../affinidi_tdk_iam_client/__init__.py | 3 + .../api/consumer_auth_api.py | 1 + .../models/__init__.py | 3 + .../models/invalid_did_error.py | 109 ++++++ ...c_key_cannot_be_resolved_from_did_error.py | 109 ++++++ .../python/iam_client/docs/ConsumerAuthApi.md | 1 + .../python/iam_client/docs/InvalidDIDError.md | 31 ++ .../python/iam_client/docs/InvalidDidError.md | 31 ++ .../PublicKeyCannotBeResolvedFromDidError.md | 31 ++ .../iam_client/test/test_invalid_did_error.py | 67 ++++ ...c_key_cannot_be_resolved_from_did_error.py | 67 ++++ .../iota_client/.openapi-generator/FILES | 15 +- clients/python/iota_client/README.md | 5 + .../affinidi_tdk_iota_client/__init__.py | 4 + .../affinidi_tdk_iota_client/api/iota_api.py | 159 +++++++- .../models/__init__.py | 4 + .../cors_iota_exchange_credentials_ok.py | 72 ++++ .../models/iota_exchange_credentials.py | 72 ++++ .../models/iota_exchange_credentials_ok.py | 78 ++++ ...ota_exchange_credentials_ok_credentials.py | 78 ++++ .../docs/CorsIotaExchangeCredentialsOK.md | 27 ++ clients/python/iota_client/docs/IotaApi.md | 84 ++++- .../docs/IotaExchangeCredentials.md | 27 ++ .../docs/IotaExchangeCredentialsOK.md | 28 ++ .../IotaExchangeCredentialsOKCredentials.md | 30 ++ .../test_cors_iota_exchange_credentials_ok.py | 53 +++ .../test/test_iota_exchange_credentials.py | 54 +++ .../test/test_iota_exchange_credentials_ok.py | 64 ++++ ...ota_exchange_credentials_ok_credentials.py | 60 +++ clients/typescript/iam-client/api.ts | 175 +++++++++ .../iam-client/docs/.openapi-generator/FILES | 3 + .../iam-client/docs/Models/InvalidDIDError.md | 13 + .../iam-client/docs/Models/InvalidDidError.md | 13 + .../PublicKeyCannotBeResolvedFromDidError.md | 13 + clients/typescript/iam-client/docs/README.md | 3 + clients/typescript/iota-client/api.ts | 196 +++++++++- .../iota-client/docs/.openapi-generator/FILES | 4 + .../iota-client/docs/Apis/IotaApi.md | 32 +- .../Models/CorsIotaExchangeCredentialsOK.md | 9 + .../docs/Models/IotaExchangeCredentials.md | 9 + .../docs/Models/IotaExchangeCredentialsOK.md | 10 + .../IotaExchangeCredentialsOK_credentials.md | 12 + clients/typescript/iota-client/docs/README.md | 43 ++- package-lock.json | 20 +- 75 files changed, 3564 insertions(+), 55 deletions(-) create mode 100644 clients/dart/iam_client/doc/InvalidDIDError.md create mode 100644 clients/dart/iam_client/doc/InvalidDidError.md create mode 100644 clients/dart/iam_client/doc/PublicKeyCannotBeResolvedFromDidError.md create mode 100644 clients/dart/iam_client/lib/model/invalid_did_error.dart create mode 100644 clients/dart/iam_client/lib/model/public_key_cannot_be_resolved_from_did_error.dart create mode 100644 clients/dart/iam_client/test/invalid_did_error_test.dart create mode 100644 clients/dart/iam_client/test/public_key_cannot_be_resolved_from_did_error_test.dart create mode 100644 clients/dart/iota_client/doc/CorsIotaExchangeCredentialsOK.md create mode 100644 clients/dart/iota_client/doc/IotaExchangeCredentials.md create mode 100644 clients/dart/iota_client/doc/IotaExchangeCredentialsOK.md create mode 100644 clients/dart/iota_client/doc/IotaExchangeCredentialsOKCredentials.md create mode 100644 clients/dart/iota_client/lib/model/cors_iota_exchange_credentials_ok.dart create mode 100644 clients/dart/iota_client/lib/model/iota_exchange_credentials.dart create mode 100644 clients/dart/iota_client/lib/model/iota_exchange_credentials_ok.dart create mode 100644 clients/dart/iota_client/lib/model/iota_exchange_credentials_ok_credentials.dart create mode 100644 clients/dart/iota_client/test/cors_iota_exchange_credentials_ok_test.dart create mode 100644 clients/dart/iota_client/test/iota_exchange_credentials_ok_credentials_test.dart create mode 100644 clients/dart/iota_client/test/iota_exchange_credentials_ok_test.dart create mode 100644 clients/dart/iota_client/test/iota_exchange_credentials_test.dart create mode 100644 clients/python/iam_client/affinidi_tdk_iam_client/models/invalid_did_error.py create mode 100644 clients/python/iam_client/affinidi_tdk_iam_client/models/public_key_cannot_be_resolved_from_did_error.py create mode 100644 clients/python/iam_client/docs/InvalidDIDError.md create mode 100644 clients/python/iam_client/docs/InvalidDidError.md create mode 100644 clients/python/iam_client/docs/PublicKeyCannotBeResolvedFromDidError.md create mode 100644 clients/python/iam_client/test/test_invalid_did_error.py create mode 100644 clients/python/iam_client/test/test_public_key_cannot_be_resolved_from_did_error.py create mode 100644 clients/python/iota_client/affinidi_tdk_iota_client/models/cors_iota_exchange_credentials_ok.py create mode 100644 clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials.py create mode 100644 clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials_ok.py create mode 100644 clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials_ok_credentials.py create mode 100644 clients/python/iota_client/docs/CorsIotaExchangeCredentialsOK.md create mode 100644 clients/python/iota_client/docs/IotaExchangeCredentials.md create mode 100644 clients/python/iota_client/docs/IotaExchangeCredentialsOK.md create mode 100644 clients/python/iota_client/docs/IotaExchangeCredentialsOKCredentials.md create mode 100644 clients/python/iota_client/test/test_cors_iota_exchange_credentials_ok.py create mode 100644 clients/python/iota_client/test/test_iota_exchange_credentials.py create mode 100644 clients/python/iota_client/test/test_iota_exchange_credentials_ok.py create mode 100644 clients/python/iota_client/test/test_iota_exchange_credentials_ok_credentials.py create mode 100644 clients/typescript/iam-client/docs/Models/InvalidDIDError.md create mode 100644 clients/typescript/iam-client/docs/Models/InvalidDidError.md create mode 100644 clients/typescript/iam-client/docs/Models/PublicKeyCannotBeResolvedFromDidError.md create mode 100644 clients/typescript/iota-client/docs/Models/CorsIotaExchangeCredentialsOK.md create mode 100644 clients/typescript/iota-client/docs/Models/IotaExchangeCredentials.md create mode 100644 clients/typescript/iota-client/docs/Models/IotaExchangeCredentialsOK.md create mode 100644 clients/typescript/iota-client/docs/Models/IotaExchangeCredentialsOK_credentials.md diff --git a/clients/dart/iam_client/.openapi-generator/FILES b/clients/dart/iam_client/.openapi-generator/FILES index 1e6a52fa..960f6bd6 100644 --- a/clients/dart/iam_client/.openapi-generator/FILES +++ b/clients/dart/iam_client/.openapi-generator/FILES @@ -14,6 +14,8 @@ doc/CreateProjectScopedTokenOutput.md doc/CreateTokenInput.md doc/DefaultApi.md doc/GetWellKnownDidOK.md +doc/InvalidDIDError.md +doc/InvalidDidError.md doc/InvalidJwtTokenError.md doc/InvalidParameterError.md doc/JsonWebKeyDto.md @@ -27,6 +29,7 @@ doc/PrincipalDoesNotBelongToProjectError.md doc/ProjectDto.md doc/ProjectList.md doc/ProjectsApi.md +doc/PublicKeyCannotBeResolvedFromDidError.md doc/ServiceErrorResponse.md doc/ServiceErrorResponseDetailsInner.md doc/StsApi.md @@ -74,6 +77,8 @@ lib/model/create_project_scoped_token_input.dart lib/model/create_project_scoped_token_output.dart lib/model/create_token_input.dart lib/model/get_well_known_did_ok.dart +lib/model/invalid_did_error.dart +lib/model/invalid_did_error.dart lib/model/invalid_jwt_token_error.dart lib/model/invalid_parameter_error.dart lib/model/json_web_key_dto.dart @@ -85,6 +90,7 @@ 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/public_key_cannot_be_resolved_from_did_error.dart lib/model/service_error_response.dart lib/model/service_error_response_details_inner.dart lib/model/token_authentication_method_dto.dart @@ -104,3 +110,5 @@ lib/model/user_dto.dart lib/model/user_list.dart lib/model/whoami_dto.dart pubspec.yaml +test/invalid_did_error_test.dart +test/public_key_cannot_be_resolved_from_did_error_test.dart diff --git a/clients/dart/iam_client/README.md b/clients/dart/iam_client/README.md index a0a77a27..30a6318b 100644 --- a/clients/dart/iam_client/README.md +++ b/clients/dart/iam_client/README.md @@ -106,6 +106,8 @@ All URIs are relative to *https://apse1.api.affinidi.io/iam* - [CreateProjectScopedTokenOutput](doc//CreateProjectScopedTokenOutput.md) - [CreateTokenInput](doc//CreateTokenInput.md) - [GetWellKnownDidOK](doc//GetWellKnownDidOK.md) +- [InvalidDIDError](doc//InvalidDIDError.md) +- [InvalidDidError](doc//InvalidDidError.md) - [InvalidJwtTokenError](doc//InvalidJwtTokenError.md) - [InvalidParameterError](doc//InvalidParameterError.md) - [JsonWebKeyDto](doc//JsonWebKeyDto.md) @@ -117,6 +119,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/iam* - [PrincipalDoesNotBelongToProjectError](doc//PrincipalDoesNotBelongToProjectError.md) - [ProjectDto](doc//ProjectDto.md) - [ProjectList](doc//ProjectList.md) +- [PublicKeyCannotBeResolvedFromDidError](doc//PublicKeyCannotBeResolvedFromDidError.md) - [ServiceErrorResponse](doc//ServiceErrorResponse.md) - [ServiceErrorResponseDetailsInner](doc//ServiceErrorResponseDetailsInner.md) - [TokenAuthenticationMethodDto](doc//TokenAuthenticationMethodDto.md) diff --git a/clients/dart/iam_client/doc/InvalidDIDError.md b/clients/dart/iam_client/doc/InvalidDIDError.md new file mode 100644 index 00000000..e0387d42 --- /dev/null +++ b/clients/dart/iam_client/doc/InvalidDIDError.md @@ -0,0 +1,19 @@ +# affinidi_tdk_iam_client.model.InvalidDIDError + +## Load the model package + +```dart +import 'package:affinidi_tdk_iam_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ------------------ | --------------------------------------------------------------------------------- | ----------- | -------------------------------- | +| **name** | **String** | | +| **message** | **String** | | +| **httpStatusCode** | **int** | | +| **traceId** | **String** | | +| **details** | [**List**](ServiceErrorResponseDetailsInner.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) diff --git a/clients/dart/iam_client/doc/InvalidDidError.md b/clients/dart/iam_client/doc/InvalidDidError.md new file mode 100644 index 00000000..a6e8fa5e --- /dev/null +++ b/clients/dart/iam_client/doc/InvalidDidError.md @@ -0,0 +1,19 @@ +# affinidi_tdk_iam_client.model.InvalidDidError + +## Load the model package + +```dart +import 'package:affinidi_tdk_iam_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ------------------ | --------------------------------------------------------------------------------- | ----------- | -------------------------------- | +| **name** | **String** | | +| **message** | **String** | | +| **httpStatusCode** | **int** | | +| **traceId** | **String** | | +| **details** | [**List**](ServiceErrorResponseDetailsInner.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) diff --git a/clients/dart/iam_client/doc/PublicKeyCannotBeResolvedFromDidError.md b/clients/dart/iam_client/doc/PublicKeyCannotBeResolvedFromDidError.md new file mode 100644 index 00000000..28f3a3b8 --- /dev/null +++ b/clients/dart/iam_client/doc/PublicKeyCannotBeResolvedFromDidError.md @@ -0,0 +1,19 @@ +# affinidi_tdk_iam_client.model.PublicKeyCannotBeResolvedFromDidError + +## Load the model package + +```dart +import 'package:affinidi_tdk_iam_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ------------------ | --------------------------------------------------------------------------------- | ----------- | -------------------------------- | +| **name** | **String** | | +| **message** | **String** | | +| **httpStatusCode** | **int** | | +| **traceId** | **String** | | +| **details** | [**List**](ServiceErrorResponseDetailsInner.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) diff --git a/clients/dart/iam_client/lib/api.dart b/clients/dart/iam_client/lib/api.dart index 2693ceb8..e26e7cc1 100644 --- a/clients/dart/iam_client/lib/api.dart +++ b/clients/dart/iam_client/lib/api.dart @@ -46,6 +46,8 @@ part 'model/create_project_scoped_token_input.dart'; part 'model/create_project_scoped_token_output.dart'; part 'model/create_token_input.dart'; part 'model/get_well_known_did_ok.dart'; +part 'model/invalid_did_error.dart'; +part 'model/invalid_did_error.dart'; part 'model/invalid_jwt_token_error.dart'; part 'model/invalid_parameter_error.dart'; part 'model/json_web_key_dto.dart'; @@ -57,6 +59,7 @@ part 'model/principal_cannot_be_deleted_error.dart'; part 'model/principal_does_not_belong_to_project_error.dart'; part 'model/project_dto.dart'; part 'model/project_list.dart'; +part 'model/public_key_cannot_be_resolved_from_did_error.dart'; part 'model/service_error_response.dart'; part 'model/service_error_response_details_inner.dart'; part 'model/token_authentication_method_dto.dart'; diff --git a/clients/dart/iam_client/lib/api_client.dart b/clients/dart/iam_client/lib/api_client.dart index 252ad2c7..22892544 100644 --- a/clients/dart/iam_client/lib/api_client.dart +++ b/clients/dart/iam_client/lib/api_client.dart @@ -202,6 +202,10 @@ class ApiClient { return CreateTokenInput.fromJson(value); case 'GetWellKnownDidOK': return GetWellKnownDidOK.fromJson(value); + case 'InvalidDIDError': + return InvalidDIDError.fromJson(value); + case 'InvalidDidError': + return InvalidDidError.fromJson(value); case 'InvalidJwtTokenError': return InvalidJwtTokenError.fromJson(value); case 'InvalidParameterError': @@ -224,6 +228,8 @@ class ApiClient { return ProjectDto.fromJson(value); case 'ProjectList': return ProjectList.fromJson(value); + case 'PublicKeyCannotBeResolvedFromDidError': + return PublicKeyCannotBeResolvedFromDidError.fromJson(value); case 'ServiceErrorResponse': return ServiceErrorResponse.fromJson(value); case 'ServiceErrorResponseDetailsInner': diff --git a/clients/dart/iam_client/lib/model/invalid_did_error.dart b/clients/dart/iam_client/lib/model/invalid_did_error.dart new file mode 100644 index 00000000..856d08f1 --- /dev/null +++ b/clients/dart/iam_client/lib/model/invalid_did_error.dart @@ -0,0 +1,353 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class InvalidDidError { + /// Returns a new [InvalidDidError] instance. + InvalidDidError({ + required this.name, + required this.message, + required this.httpStatusCode, + required this.traceId, + this.details = const [], + }); + + InvalidDidErrorNameEnum name; + + InvalidDidErrorMessageEnum message; + + InvalidDidErrorHttpStatusCodeEnum httpStatusCode; + + String traceId; + + List details; + + @override + bool operator ==(Object other) => identical(this, other) || other is InvalidDidError && + other.name == name && + other.message == message && + other.httpStatusCode == httpStatusCode && + other.traceId == traceId && + _deepEquality.equals(other.details, details); + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (name.hashCode) + + (message.hashCode) + + (httpStatusCode.hashCode) + + (traceId.hashCode) + + (details.hashCode); + + @override + String toString() => 'InvalidDidError[name=$name, message=$message, httpStatusCode=$httpStatusCode, traceId=$traceId, details=$details]'; + + Map toJson() { + final json = {}; + json[r'name'] = this.name; + json[r'message'] = this.message; + json[r'httpStatusCode'] = this.httpStatusCode; + json[r'traceId'] = this.traceId; + json[r'details'] = this.details; + return json; + } + + /// Returns a new [InvalidDidError] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static InvalidDidError? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "InvalidDidError[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "InvalidDidError[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return InvalidDidError( + name: InvalidDidErrorNameEnum.fromJson(json[r'name'])!, + message: InvalidDidErrorMessageEnum.fromJson(json[r'message'])!, + httpStatusCode: InvalidDidErrorHttpStatusCodeEnum.fromJson(json[r'httpStatusCode'])!, + traceId: mapValueOfType(json, r'traceId')!, + details: ServiceErrorResponseDetailsInner.listFromJson(json[r'details']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = InvalidDidError.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = InvalidDidError.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of InvalidDidError-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = InvalidDidError.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'name', + 'message', + 'httpStatusCode', + 'traceId', + }; +} + + +class InvalidDidErrorNameEnum { + /// Instantiate a new enum with the provided [value]. + const InvalidDidErrorNameEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const invalidDidError = InvalidDidErrorNameEnum._(r'InvalidDidError'); + + /// List of all possible values in this [enum][InvalidDidErrorNameEnum]. + static const values = [ + invalidDidError, + ]; + + static InvalidDidErrorNameEnum? fromJson(dynamic value) => InvalidDidErrorNameEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = InvalidDidErrorNameEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [InvalidDidErrorNameEnum] to String, +/// and [decode] dynamic data back to [InvalidDidErrorNameEnum]. +class InvalidDidErrorNameEnumTypeTransformer { + factory InvalidDidErrorNameEnumTypeTransformer() => _instance ??= const InvalidDidErrorNameEnumTypeTransformer._(); + + const InvalidDidErrorNameEnumTypeTransformer._(); + + String encode(InvalidDidErrorNameEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a InvalidDidErrorNameEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + InvalidDidErrorNameEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'InvalidDidError': return InvalidDidErrorNameEnum.invalidDidError; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [InvalidDidErrorNameEnumTypeTransformer] instance. + static InvalidDidErrorNameEnumTypeTransformer? _instance; +} + + + +class InvalidDidErrorMessageEnum { + /// Instantiate a new enum with the provided [value]. + const InvalidDidErrorMessageEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const unableToResolveDIDMethodPeriodInvalidPublicKey = InvalidDidErrorMessageEnum._(r'Unable to resolve DID method. Invalid public key'); + + /// List of all possible values in this [enum][InvalidDidErrorMessageEnum]. + static const values = [ + unableToResolveDIDMethodPeriodInvalidPublicKey, + ]; + + static InvalidDidErrorMessageEnum? fromJson(dynamic value) => InvalidDidErrorMessageEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = InvalidDidErrorMessageEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [InvalidDidErrorMessageEnum] to String, +/// and [decode] dynamic data back to [InvalidDidErrorMessageEnum]. +class InvalidDidErrorMessageEnumTypeTransformer { + factory InvalidDidErrorMessageEnumTypeTransformer() => _instance ??= const InvalidDidErrorMessageEnumTypeTransformer._(); + + const InvalidDidErrorMessageEnumTypeTransformer._(); + + String encode(InvalidDidErrorMessageEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a InvalidDidErrorMessageEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + InvalidDidErrorMessageEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'Unable to resolve DID method. Invalid public key': return InvalidDidErrorMessageEnum.unableToResolveDIDMethodPeriodInvalidPublicKey; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [InvalidDidErrorMessageEnumTypeTransformer] instance. + static InvalidDidErrorMessageEnumTypeTransformer? _instance; +} + + + +class InvalidDidErrorHttpStatusCodeEnum { + /// Instantiate a new enum with the provided [value]. + const InvalidDidErrorHttpStatusCodeEnum._(this.value); + + /// The underlying value of this enum member. + final int value; + + @override + String toString() => value.toString(); + + int toJson() => value; + + static const number400 = InvalidDidErrorHttpStatusCodeEnum._(400); + + /// List of all possible values in this [enum][InvalidDidErrorHttpStatusCodeEnum]. + static const values = [ + number400, + ]; + + static InvalidDidErrorHttpStatusCodeEnum? fromJson(dynamic value) => InvalidDidErrorHttpStatusCodeEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = InvalidDidErrorHttpStatusCodeEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [InvalidDidErrorHttpStatusCodeEnum] to int, +/// and [decode] dynamic data back to [InvalidDidErrorHttpStatusCodeEnum]. +class InvalidDidErrorHttpStatusCodeEnumTypeTransformer { + factory InvalidDidErrorHttpStatusCodeEnumTypeTransformer() => _instance ??= const InvalidDidErrorHttpStatusCodeEnumTypeTransformer._(); + + const InvalidDidErrorHttpStatusCodeEnumTypeTransformer._(); + + int encode(InvalidDidErrorHttpStatusCodeEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a InvalidDidErrorHttpStatusCodeEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + InvalidDidErrorHttpStatusCodeEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case 400: return InvalidDidErrorHttpStatusCodeEnum.number400; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [InvalidDidErrorHttpStatusCodeEnumTypeTransformer] instance. + static InvalidDidErrorHttpStatusCodeEnumTypeTransformer? _instance; +} + + diff --git a/clients/dart/iam_client/lib/model/public_key_cannot_be_resolved_from_did_error.dart b/clients/dart/iam_client/lib/model/public_key_cannot_be_resolved_from_did_error.dart new file mode 100644 index 00000000..a1fb0068 --- /dev/null +++ b/clients/dart/iam_client/lib/model/public_key_cannot_be_resolved_from_did_error.dart @@ -0,0 +1,353 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PublicKeyCannotBeResolvedFromDidError { + /// Returns a new [PublicKeyCannotBeResolvedFromDidError] instance. + PublicKeyCannotBeResolvedFromDidError({ + required this.name, + required this.message, + required this.httpStatusCode, + required this.traceId, + this.details = const [], + }); + + PublicKeyCannotBeResolvedFromDidErrorNameEnum name; + + PublicKeyCannotBeResolvedFromDidErrorMessageEnum message; + + PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum httpStatusCode; + + String traceId; + + List details; + + @override + bool operator ==(Object other) => identical(this, other) || other is PublicKeyCannotBeResolvedFromDidError && + other.name == name && + other.message == message && + other.httpStatusCode == httpStatusCode && + other.traceId == traceId && + _deepEquality.equals(other.details, details); + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (name.hashCode) + + (message.hashCode) + + (httpStatusCode.hashCode) + + (traceId.hashCode) + + (details.hashCode); + + @override + String toString() => 'PublicKeyCannotBeResolvedFromDidError[name=$name, message=$message, httpStatusCode=$httpStatusCode, traceId=$traceId, details=$details]'; + + Map toJson() { + final json = {}; + json[r'name'] = this.name; + json[r'message'] = this.message; + json[r'httpStatusCode'] = this.httpStatusCode; + json[r'traceId'] = this.traceId; + json[r'details'] = this.details; + return json; + } + + /// Returns a new [PublicKeyCannotBeResolvedFromDidError] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PublicKeyCannotBeResolvedFromDidError? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "PublicKeyCannotBeResolvedFromDidError[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "PublicKeyCannotBeResolvedFromDidError[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return PublicKeyCannotBeResolvedFromDidError( + name: PublicKeyCannotBeResolvedFromDidErrorNameEnum.fromJson(json[r'name'])!, + message: PublicKeyCannotBeResolvedFromDidErrorMessageEnum.fromJson(json[r'message'])!, + httpStatusCode: PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum.fromJson(json[r'httpStatusCode'])!, + traceId: mapValueOfType(json, r'traceId')!, + details: ServiceErrorResponseDetailsInner.listFromJson(json[r'details']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PublicKeyCannotBeResolvedFromDidError.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PublicKeyCannotBeResolvedFromDidError.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PublicKeyCannotBeResolvedFromDidError-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PublicKeyCannotBeResolvedFromDidError.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'name', + 'message', + 'httpStatusCode', + 'traceId', + }; +} + + +class PublicKeyCannotBeResolvedFromDidErrorNameEnum { + /// Instantiate a new enum with the provided [value]. + const PublicKeyCannotBeResolvedFromDidErrorNameEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const publicKeyCannotBeResolvedFromDidError = PublicKeyCannotBeResolvedFromDidErrorNameEnum._(r'PublicKeyCannotBeResolvedFromDidError'); + + /// List of all possible values in this [enum][PublicKeyCannotBeResolvedFromDidErrorNameEnum]. + static const values = [ + publicKeyCannotBeResolvedFromDidError, + ]; + + static PublicKeyCannotBeResolvedFromDidErrorNameEnum? fromJson(dynamic value) => PublicKeyCannotBeResolvedFromDidErrorNameEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PublicKeyCannotBeResolvedFromDidErrorNameEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [PublicKeyCannotBeResolvedFromDidErrorNameEnum] to String, +/// and [decode] dynamic data back to [PublicKeyCannotBeResolvedFromDidErrorNameEnum]. +class PublicKeyCannotBeResolvedFromDidErrorNameEnumTypeTransformer { + factory PublicKeyCannotBeResolvedFromDidErrorNameEnumTypeTransformer() => _instance ??= const PublicKeyCannotBeResolvedFromDidErrorNameEnumTypeTransformer._(); + + const PublicKeyCannotBeResolvedFromDidErrorNameEnumTypeTransformer._(); + + String encode(PublicKeyCannotBeResolvedFromDidErrorNameEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a PublicKeyCannotBeResolvedFromDidErrorNameEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + PublicKeyCannotBeResolvedFromDidErrorNameEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'PublicKeyCannotBeResolvedFromDidError': return PublicKeyCannotBeResolvedFromDidErrorNameEnum.publicKeyCannotBeResolvedFromDidError; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [PublicKeyCannotBeResolvedFromDidErrorNameEnumTypeTransformer] instance. + static PublicKeyCannotBeResolvedFromDidErrorNameEnumTypeTransformer? _instance; +} + + + +class PublicKeyCannotBeResolvedFromDidErrorMessageEnum { + /// Instantiate a new enum with the provided [value]. + const PublicKeyCannotBeResolvedFromDidErrorMessageEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const unableToResolveDIDMethodPeriodInvalidPublicKey = PublicKeyCannotBeResolvedFromDidErrorMessageEnum._(r'Unable to resolve DID method. Invalid public key'); + + /// List of all possible values in this [enum][PublicKeyCannotBeResolvedFromDidErrorMessageEnum]. + static const values = [ + unableToResolveDIDMethodPeriodInvalidPublicKey, + ]; + + static PublicKeyCannotBeResolvedFromDidErrorMessageEnum? fromJson(dynamic value) => PublicKeyCannotBeResolvedFromDidErrorMessageEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PublicKeyCannotBeResolvedFromDidErrorMessageEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [PublicKeyCannotBeResolvedFromDidErrorMessageEnum] to String, +/// and [decode] dynamic data back to [PublicKeyCannotBeResolvedFromDidErrorMessageEnum]. +class PublicKeyCannotBeResolvedFromDidErrorMessageEnumTypeTransformer { + factory PublicKeyCannotBeResolvedFromDidErrorMessageEnumTypeTransformer() => _instance ??= const PublicKeyCannotBeResolvedFromDidErrorMessageEnumTypeTransformer._(); + + const PublicKeyCannotBeResolvedFromDidErrorMessageEnumTypeTransformer._(); + + String encode(PublicKeyCannotBeResolvedFromDidErrorMessageEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a PublicKeyCannotBeResolvedFromDidErrorMessageEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + PublicKeyCannotBeResolvedFromDidErrorMessageEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'Unable to resolve DID method. Invalid public key': return PublicKeyCannotBeResolvedFromDidErrorMessageEnum.unableToResolveDIDMethodPeriodInvalidPublicKey; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [PublicKeyCannotBeResolvedFromDidErrorMessageEnumTypeTransformer] instance. + static PublicKeyCannotBeResolvedFromDidErrorMessageEnumTypeTransformer? _instance; +} + + + +class PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum { + /// Instantiate a new enum with the provided [value]. + const PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum._(this.value); + + /// The underlying value of this enum member. + final int value; + + @override + String toString() => value.toString(); + + int toJson() => value; + + static const number400 = PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum._(400); + + /// List of all possible values in this [enum][PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum]. + static const values = [ + number400, + ]; + + static PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum? fromJson(dynamic value) => PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum] to int, +/// and [decode] dynamic data back to [PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum]. +class PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnumTypeTransformer { + factory PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnumTypeTransformer() => _instance ??= const PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnumTypeTransformer._(); + + const PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnumTypeTransformer._(); + + int encode(PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case 400: return PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum.number400; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnumTypeTransformer] instance. + static PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnumTypeTransformer? _instance; +} + + diff --git a/clients/dart/iam_client/test/invalid_did_error_test.dart b/clients/dart/iam_client/test/invalid_did_error_test.dart new file mode 100644 index 00000000..d3df6879 --- /dev/null +++ b/clients/dart/iam_client/test/invalid_did_error_test.dart @@ -0,0 +1,47 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_iam_client/api.dart'; +import 'package:test/test.dart'; + +// tests for InvalidDIDError +void main() { + // final instance = InvalidDIDError(); + + group('test InvalidDIDError', () { + // String name + test('to test the property `name`', () async { + // TODO + }); + + // String message + test('to test the property `message`', () async { + // TODO + }); + + // int httpStatusCode + test('to test the property `httpStatusCode`', () async { + // TODO + }); + + // String traceId + test('to test the property `traceId`', () async { + // TODO + }); + + // List details (default value: const []) + test('to test the property `details`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iam_client/test/public_key_cannot_be_resolved_from_did_error_test.dart b/clients/dart/iam_client/test/public_key_cannot_be_resolved_from_did_error_test.dart new file mode 100644 index 00000000..97de410f --- /dev/null +++ b/clients/dart/iam_client/test/public_key_cannot_be_resolved_from_did_error_test.dart @@ -0,0 +1,47 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_iam_client/api.dart'; +import 'package:test/test.dart'; + +// tests for PublicKeyCannotBeResolvedFromDidError +void main() { + // final instance = PublicKeyCannotBeResolvedFromDidError(); + + group('test PublicKeyCannotBeResolvedFromDidError', () { + // String name + test('to test the property `name`', () async { + // TODO + }); + + // String message + test('to test the property `message`', () async { + // TODO + }); + + // int httpStatusCode + test('to test the property `httpStatusCode`', () async { + // TODO + }); + + // String traceId + test('to test the property `traceId`', () async { + // TODO + }); + + // List details (default value: const []) + test('to test the property `details`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/.openapi-generator/FILES b/clients/dart/iota_client/.openapi-generator/FILES index 42e45ca3..690e97a7 100644 --- a/clients/dart/iota_client/.openapi-generator/FILES +++ b/clients/dart/iota_client/.openapi-generator/FILES @@ -15,6 +15,7 @@ doc/ConsentDto.md doc/CorsAwsExchangeCredentialsOK.md doc/CorsAwsExchangeCredentialsProjectTokenOK.md doc/CorsIotOidc4vpcallbackOK.md +doc/CorsIotaExchangeCredentialsOK.md doc/CreateIotaConfigurationInput.md doc/CreatePexQueryInput.md doc/DefaultApi.md @@ -25,6 +26,9 @@ doc/InvalidParameterErrorDetailsInner.md doc/IotaApi.md doc/IotaConfigurationDto.md doc/IotaConfigurationDtoClientMetadata.md +doc/IotaExchangeCredentials.md +doc/IotaExchangeCredentialsOK.md +doc/IotaExchangeCredentialsOKCredentials.md doc/ListConfigurationOK.md doc/ListLoggedConsentsOK.md doc/ListPexQueriesOK.md @@ -68,6 +72,7 @@ lib/model/consent_dto.dart lib/model/cors_aws_exchange_credentials_ok.dart lib/model/cors_aws_exchange_credentials_project_token_ok.dart lib/model/cors_iot_oidc4vpcallback_ok.dart +lib/model/cors_iota_exchange_credentials_ok.dart lib/model/create_iota_configuration_input.dart lib/model/create_pex_query_input.dart lib/model/delete_pex_queries_input.dart @@ -76,6 +81,9 @@ lib/model/invalid_parameter_error.dart lib/model/invalid_parameter_error_details_inner.dart lib/model/iota_configuration_dto.dart lib/model/iota_configuration_dto_client_metadata.dart +lib/model/iota_exchange_credentials.dart +lib/model/iota_exchange_credentials_ok.dart +lib/model/iota_exchange_credentials_ok_credentials.dart lib/model/list_configuration_ok.dart lib/model/list_logged_consents_ok.dart lib/model/list_pex_queries_ok.dart @@ -94,6 +102,7 @@ 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 +test/cors_iota_exchange_credentials_ok_test.dart +test/iota_exchange_credentials_ok_credentials_test.dart +test/iota_exchange_credentials_ok_test.dart +test/iota_exchange_credentials_test.dart diff --git a/clients/dart/iota_client/README.md b/clients/dart/iota_client/README.md index 92e0386f..1bf382f5 100644 --- a/clients/dart/iota_client/README.md +++ b/clients/dart/iota_client/README.md @@ -76,6 +76,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* | _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_ | [**iotaExchangeCredentials**](doc//IotaApi.md#iotaexchangecredentials) | **POST** /v1/exchange-credentials | | _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} | @@ -96,6 +97,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* - [CorsAwsExchangeCredentialsOK](doc//CorsAwsExchangeCredentialsOK.md) - [CorsAwsExchangeCredentialsProjectTokenOK](doc//CorsAwsExchangeCredentialsProjectTokenOK.md) - [CorsIotOidc4vpcallbackOK](doc//CorsIotOidc4vpcallbackOK.md) +- [CorsIotaExchangeCredentialsOK](doc//CorsIotaExchangeCredentialsOK.md) - [CreateIotaConfigurationInput](doc//CreateIotaConfigurationInput.md) - [CreatePexQueryInput](doc//CreatePexQueryInput.md) - [DeletePexQueriesInput](doc//DeletePexQueriesInput.md) @@ -104,6 +106,9 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* - [InvalidParameterErrorDetailsInner](doc//InvalidParameterErrorDetailsInner.md) - [IotaConfigurationDto](doc//IotaConfigurationDto.md) - [IotaConfigurationDtoClientMetadata](doc//IotaConfigurationDtoClientMetadata.md) +- [IotaExchangeCredentials](doc//IotaExchangeCredentials.md) +- [IotaExchangeCredentialsOK](doc//IotaExchangeCredentialsOK.md) +- [IotaExchangeCredentialsOKCredentials](doc//IotaExchangeCredentialsOKCredentials.md) - [ListConfigurationOK](doc//ListConfigurationOK.md) - [ListLoggedConsentsOK](doc//ListLoggedConsentsOK.md) - [ListPexQueriesOK](doc//ListPexQueriesOK.md) diff --git a/clients/dart/iota_client/doc/CorsIotaExchangeCredentialsOK.md b/clients/dart/iota_client/doc/CorsIotaExchangeCredentialsOK.md new file mode 100644 index 00000000..3811db4b --- /dev/null +++ b/clients/dart/iota_client/doc/CorsIotaExchangeCredentialsOK.md @@ -0,0 +1,15 @@ +# affinidi_tdk_iota_client.model.CorsIotaExchangeCredentialsOK + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| --------------------------------- | ---------- | ----------- | ---------- | +| **corsIotaExchangeCredentialsOk** | **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) diff --git a/clients/dart/iota_client/doc/IotaApi.md b/clients/dart/iota_client/doc/IotaApi.md index ad89e2c3..2646a00b 100644 --- a/clients/dart/iota_client/doc/IotaApi.md +++ b/clients/dart/iota_client/doc/IotaApi.md @@ -13,6 +13,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* | [**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 | +| [**iotaExchangeCredentials**](IotaApi.md#iotaexchangecredentials) | **POST** /v1/exchange-credentials | | [**savePexQueries**](IotaApi.md#savepexqueries) | **POST** /v1/configurations/{configurationId}/save-queries | # **awsExchangeCredentials** @@ -60,7 +61,7 @@ No authorization required # **awsExchangeCredentialsProjectToken** -> AwsExchangeCredentialsOK awsExchangeCredentialsProjectToken(awsExchangeCredentialsProjectToken) +> IotaExchangeCredentialsOK awsExchangeCredentialsProjectToken(awsExchangeCredentialsProjectToken) It exchanges project token into cognito @@ -92,7 +93,7 @@ try { ### Return type -[**AwsExchangeCredentialsOK**](AwsExchangeCredentialsOK.md) +[**IotaExchangeCredentialsOK**](IotaExchangeCredentialsOK.md) ### Authorization @@ -153,6 +154,49 @@ void (empty response body) [[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) +# **iotaExchangeCredentials** + +> IotaExchangeCredentialsOK iotaExchangeCredentials(iotaExchangeCredentials) + +It exchanges limited token into cognito sts identity credentials + +### Example + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; + +final api_instance = IotaApi(); +final iotaExchangeCredentials = IotaExchangeCredentials(); // IotaExchangeCredentials | IotaAwsExchangeCredentials + +try { + final result = api_instance.iotaExchangeCredentials(iotaExchangeCredentials); + print(result); +} catch (e) { + print('Exception when calling IotaApi->iotaExchangeCredentials: $e\n'); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| --------------------------- | --------------------------------------------------------- | -------------------------- | ----- | +| **iotaExchangeCredentials** | [**IotaExchangeCredentials**](IotaExchangeCredentials.md) | IotaAwsExchangeCredentials | + +### Return type + +[**IotaExchangeCredentialsOK**](IotaExchangeCredentialsOK.md) + +### Authorization + +No authorization required + +### 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) + # **savePexQueries** > Object savePexQueries(configurationId, savePexQueriesUpdateInput) diff --git a/clients/dart/iota_client/doc/IotaExchangeCredentials.md b/clients/dart/iota_client/doc/IotaExchangeCredentials.md new file mode 100644 index 00000000..694f266e --- /dev/null +++ b/clients/dart/iota_client/doc/IotaExchangeCredentials.md @@ -0,0 +1,15 @@ +# affinidi_tdk_iota_client.model.IotaExchangeCredentials + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ------------- | ---------- | ------------------------------------------------------------------------ | ----- | +| **assertion** | **String** | JWT signed with a machine token used to secure the web socket connection | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/iota_client/doc/IotaExchangeCredentialsOK.md b/clients/dart/iota_client/doc/IotaExchangeCredentialsOK.md new file mode 100644 index 00000000..061310e6 --- /dev/null +++ b/clients/dart/iota_client/doc/IotaExchangeCredentialsOK.md @@ -0,0 +1,16 @@ +# affinidi_tdk_iota_client.model.IotaExchangeCredentialsOK + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ---------------------- | ----------------------------------------------------------------------------------- | ----------- | ----- | +| **connectionClientId** | **String** | | +| **credentials** | [**IotaExchangeCredentialsOKCredentials**](IotaExchangeCredentialsOKCredentials.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/iota_client/doc/IotaExchangeCredentialsOKCredentials.md b/clients/dart/iota_client/doc/IotaExchangeCredentialsOKCredentials.md new file mode 100644 index 00000000..d5308dcf --- /dev/null +++ b/clients/dart/iota_client/doc/IotaExchangeCredentialsOKCredentials.md @@ -0,0 +1,18 @@ +# affinidi_tdk_iota_client.model.IotaExchangeCredentialsOKCredentials + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ---------------- | ---------- | ----------- | ----- | +| **accessKeyId** | **String** | | +| **secretKey** | **String** | | +| **sessionToken** | **String** | | +| **expiration** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/iota_client/lib/api.dart b/clients/dart/iota_client/lib/api.dart index 9e945cdf..81fa95b4 100644 --- a/clients/dart/iota_client/lib/api.dart +++ b/clients/dart/iota_client/lib/api.dart @@ -45,6 +45,7 @@ part 'model/consent_dto.dart'; part 'model/cors_aws_exchange_credentials_ok.dart'; part 'model/cors_aws_exchange_credentials_project_token_ok.dart'; part 'model/cors_iot_oidc4vpcallback_ok.dart'; +part 'model/cors_iota_exchange_credentials_ok.dart'; part 'model/create_iota_configuration_input.dart'; part 'model/create_pex_query_input.dart'; part 'model/delete_pex_queries_input.dart'; @@ -53,6 +54,9 @@ part 'model/invalid_parameter_error.dart'; part 'model/invalid_parameter_error_details_inner.dart'; part 'model/iota_configuration_dto.dart'; part 'model/iota_configuration_dto_client_metadata.dart'; +part 'model/iota_exchange_credentials.dart'; +part 'model/iota_exchange_credentials_ok.dart'; +part 'model/iota_exchange_credentials_ok_credentials.dart'; part 'model/list_configuration_ok.dart'; part 'model/list_logged_consents_ok.dart'; part 'model/list_pex_queries_ok.dart'; diff --git a/clients/dart/iota_client/lib/api/iota_api.dart b/clients/dart/iota_client/lib/api/iota_api.dart index da7dacc8..c7825492 100644 --- a/clients/dart/iota_client/lib/api/iota_api.dart +++ b/clients/dart/iota_client/lib/api/iota_api.dart @@ -109,7 +109,7 @@ class IotaApi { /// /// * [AwsExchangeCredentialsProjectToken] awsExchangeCredentialsProjectToken (required): /// AwsExchangeCredentialsProjectToken - Future awsExchangeCredentialsProjectToken(AwsExchangeCredentialsProjectToken awsExchangeCredentialsProjectToken,) async { + Future awsExchangeCredentialsProjectToken(AwsExchangeCredentialsProjectToken awsExchangeCredentialsProjectToken,) async { final response = await awsExchangeCredentialsProjectTokenWithHttpInfo(awsExchangeCredentialsProjectToken,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -118,7 +118,7 @@ class IotaApi { // 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), 'AwsExchangeCredentialsOK',) as AwsExchangeCredentialsOK; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'IotaExchangeCredentialsOK',) as IotaExchangeCredentialsOK; } return null; @@ -175,6 +175,60 @@ class IotaApi { } } + /// It exchanges limited token into cognito sts identity credentials + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [IotaExchangeCredentials] iotaExchangeCredentials (required): + /// IotaAwsExchangeCredentials + Future iotaExchangeCredentialsWithHttpInfo(IotaExchangeCredentials iotaExchangeCredentials,) async { + // ignore: prefer_const_declarations + final path = r'/v1/exchange-credentials'; + + // ignore: prefer_final_locals + Object? postBody = iotaExchangeCredentials; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// It exchanges limited token into cognito sts identity credentials + /// + /// Parameters: + /// + /// * [IotaExchangeCredentials] iotaExchangeCredentials (required): + /// IotaAwsExchangeCredentials + Future iotaExchangeCredentials(IotaExchangeCredentials iotaExchangeCredentials,) async { + final response = await iotaExchangeCredentialsWithHttpInfo(iotaExchangeCredentials,); + 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), 'IotaExchangeCredentialsOK',) as IotaExchangeCredentialsOK; + + } + return null; + } + /// saves all pex queries /// /// Note: This method returns the HTTP [Response]. diff --git a/clients/dart/iota_client/lib/api_client.dart b/clients/dart/iota_client/lib/api_client.dart index 08594994..af0e5736 100644 --- a/clients/dart/iota_client/lib/api_client.dart +++ b/clients/dart/iota_client/lib/api_client.dart @@ -204,6 +204,8 @@ class ApiClient { return CorsAwsExchangeCredentialsProjectTokenOK.fromJson(value); case 'CorsIotOidc4vpcallbackOK': return CorsIotOidc4vpcallbackOK.fromJson(value); + case 'CorsIotaExchangeCredentialsOK': + return CorsIotaExchangeCredentialsOK.fromJson(value); case 'CreateIotaConfigurationInput': return CreateIotaConfigurationInput.fromJson(value); case 'CreatePexQueryInput': @@ -220,6 +222,12 @@ class ApiClient { return IotaConfigurationDto.fromJson(value); case 'IotaConfigurationDtoClientMetadata': return IotaConfigurationDtoClientMetadata.fromJson(value); + case 'IotaExchangeCredentials': + return IotaExchangeCredentials.fromJson(value); + case 'IotaExchangeCredentialsOK': + return IotaExchangeCredentialsOK.fromJson(value); + case 'IotaExchangeCredentialsOKCredentials': + return IotaExchangeCredentialsOKCredentials.fromJson(value); case 'ListConfigurationOK': return ListConfigurationOK.fromJson(value); case 'ListLoggedConsentsOK': diff --git a/clients/dart/iota_client/lib/model/cors_iota_exchange_credentials_ok.dart b/clients/dart/iota_client/lib/model/cors_iota_exchange_credentials_ok.dart new file mode 100644 index 00000000..db53367a --- /dev/null +++ b/clients/dart/iota_client/lib/model/cors_iota_exchange_credentials_ok.dart @@ -0,0 +1,118 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class CorsIotaExchangeCredentialsOK { + /// Returns a new [CorsIotaExchangeCredentialsOK] instance. + CorsIotaExchangeCredentialsOK({ + this.corsIotaExchangeCredentialsOk, + }); + + /// + /// 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? corsIotaExchangeCredentialsOk; + + @override + bool operator ==(Object other) => identical(this, other) || other is CorsIotaExchangeCredentialsOK && + other.corsIotaExchangeCredentialsOk == corsIotaExchangeCredentialsOk; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (corsIotaExchangeCredentialsOk == null ? 0 : corsIotaExchangeCredentialsOk!.hashCode); + + @override + String toString() => 'CorsIotaExchangeCredentialsOK[corsIotaExchangeCredentialsOk=$corsIotaExchangeCredentialsOk]'; + + Map toJson() { + final json = {}; + if (this.corsIotaExchangeCredentialsOk != null) { + json[r'corsIotaExchangeCredentialsOk'] = this.corsIotaExchangeCredentialsOk; + } else { + json[r'corsIotaExchangeCredentialsOk'] = null; + } + return json; + } + + /// Returns a new [CorsIotaExchangeCredentialsOK] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static CorsIotaExchangeCredentialsOK? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CorsIotaExchangeCredentialsOK[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CorsIotaExchangeCredentialsOK[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return CorsIotaExchangeCredentialsOK( + corsIotaExchangeCredentialsOk: mapValueOfType(json, r'corsIotaExchangeCredentialsOk'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = CorsIotaExchangeCredentialsOK.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = CorsIotaExchangeCredentialsOK.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of CorsIotaExchangeCredentialsOK-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = CorsIotaExchangeCredentialsOK.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + }; +} + diff --git a/clients/dart/iota_client/lib/model/iota_exchange_credentials.dart b/clients/dart/iota_client/lib/model/iota_exchange_credentials.dart new file mode 100644 index 00000000..52f04b64 --- /dev/null +++ b/clients/dart/iota_client/lib/model/iota_exchange_credentials.dart @@ -0,0 +1,110 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class IotaExchangeCredentials { + /// Returns a new [IotaExchangeCredentials] instance. + IotaExchangeCredentials({ + required this.assertion, + }); + + /// JWT signed with a machine token used to secure the web socket connection + String assertion; + + @override + bool operator ==(Object other) => identical(this, other) || other is IotaExchangeCredentials && + other.assertion == assertion; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (assertion.hashCode); + + @override + String toString() => 'IotaExchangeCredentials[assertion=$assertion]'; + + Map toJson() { + final json = {}; + json[r'assertion'] = this.assertion; + return json; + } + + /// Returns a new [IotaExchangeCredentials] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static IotaExchangeCredentials? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "IotaExchangeCredentials[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "IotaExchangeCredentials[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return IotaExchangeCredentials( + assertion: mapValueOfType(json, r'assertion')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = IotaExchangeCredentials.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = IotaExchangeCredentials.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of IotaExchangeCredentials-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = IotaExchangeCredentials.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'assertion', + }; +} + diff --git a/clients/dart/iota_client/lib/model/iota_exchange_credentials_ok.dart b/clients/dart/iota_client/lib/model/iota_exchange_credentials_ok.dart new file mode 100644 index 00000000..d7d40b8a --- /dev/null +++ b/clients/dart/iota_client/lib/model/iota_exchange_credentials_ok.dart @@ -0,0 +1,117 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class IotaExchangeCredentialsOK { + /// Returns a new [IotaExchangeCredentialsOK] instance. + IotaExchangeCredentialsOK({ + required this.connectionClientId, + required this.credentials, + }); + + String connectionClientId; + + IotaExchangeCredentialsOKCredentials credentials; + + @override + bool operator ==(Object other) => identical(this, other) || other is IotaExchangeCredentialsOK && + other.connectionClientId == connectionClientId && + other.credentials == credentials; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (connectionClientId.hashCode) + + (credentials.hashCode); + + @override + String toString() => 'IotaExchangeCredentialsOK[connectionClientId=$connectionClientId, credentials=$credentials]'; + + Map toJson() { + final json = {}; + json[r'connectionClientId'] = this.connectionClientId; + json[r'credentials'] = this.credentials; + return json; + } + + /// Returns a new [IotaExchangeCredentialsOK] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static IotaExchangeCredentialsOK? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "IotaExchangeCredentialsOK[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "IotaExchangeCredentialsOK[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return IotaExchangeCredentialsOK( + connectionClientId: mapValueOfType(json, r'connectionClientId')!, + credentials: IotaExchangeCredentialsOKCredentials.fromJson(json[r'credentials'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = IotaExchangeCredentialsOK.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = IotaExchangeCredentialsOK.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of IotaExchangeCredentialsOK-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = IotaExchangeCredentialsOK.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'connectionClientId', + 'credentials', + }; +} + diff --git a/clients/dart/iota_client/lib/model/iota_exchange_credentials_ok_credentials.dart b/clients/dart/iota_client/lib/model/iota_exchange_credentials_ok_credentials.dart new file mode 100644 index 00000000..c7b6eb75 --- /dev/null +++ b/clients/dart/iota_client/lib/model/iota_exchange_credentials_ok_credentials.dart @@ -0,0 +1,133 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class IotaExchangeCredentialsOKCredentials { + /// Returns a new [IotaExchangeCredentialsOKCredentials] instance. + IotaExchangeCredentialsOKCredentials({ + required this.accessKeyId, + required this.secretKey, + required this.sessionToken, + required this.expiration, + }); + + String accessKeyId; + + String secretKey; + + String sessionToken; + + String expiration; + + @override + bool operator ==(Object other) => identical(this, other) || other is IotaExchangeCredentialsOKCredentials && + other.accessKeyId == accessKeyId && + other.secretKey == secretKey && + other.sessionToken == sessionToken && + other.expiration == expiration; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (accessKeyId.hashCode) + + (secretKey.hashCode) + + (sessionToken.hashCode) + + (expiration.hashCode); + + @override + String toString() => 'IotaExchangeCredentialsOKCredentials[accessKeyId=$accessKeyId, secretKey=$secretKey, sessionToken=$sessionToken, expiration=$expiration]'; + + Map toJson() { + final json = {}; + json[r'accessKeyId'] = this.accessKeyId; + json[r'secretKey'] = this.secretKey; + json[r'sessionToken'] = this.sessionToken; + json[r'expiration'] = this.expiration; + return json; + } + + /// Returns a new [IotaExchangeCredentialsOKCredentials] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static IotaExchangeCredentialsOKCredentials? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "IotaExchangeCredentialsOKCredentials[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "IotaExchangeCredentialsOKCredentials[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return IotaExchangeCredentialsOKCredentials( + accessKeyId: mapValueOfType(json, r'accessKeyId')!, + secretKey: mapValueOfType(json, r'secretKey')!, + sessionToken: mapValueOfType(json, r'sessionToken')!, + expiration: mapValueOfType(json, r'expiration')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = IotaExchangeCredentialsOKCredentials.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = IotaExchangeCredentialsOKCredentials.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of IotaExchangeCredentialsOKCredentials-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = IotaExchangeCredentialsOKCredentials.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'accessKeyId', + 'secretKey', + 'sessionToken', + 'expiration', + }; +} + diff --git a/clients/dart/iota_client/test/cors_iota_exchange_credentials_ok_test.dart b/clients/dart/iota_client/test/cors_iota_exchange_credentials_ok_test.dart new file mode 100644 index 00000000..7ab42210 --- /dev/null +++ b/clients/dart/iota_client/test/cors_iota_exchange_credentials_ok_test.dart @@ -0,0 +1,27 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_iota_client/api.dart'; +import 'package:test/test.dart'; + +// tests for CorsIotaExchangeCredentialsOK +void main() { + // final instance = CorsIotaExchangeCredentialsOK(); + + group('test CorsIotaExchangeCredentialsOK', () { + // String corsIotaExchangeCredentialsOk + test('to test the property `corsIotaExchangeCredentialsOk`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/iota_exchange_credentials_ok_credentials_test.dart b/clients/dart/iota_client/test/iota_exchange_credentials_ok_credentials_test.dart new file mode 100644 index 00000000..911ac130 --- /dev/null +++ b/clients/dart/iota_client/test/iota_exchange_credentials_ok_credentials_test.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_iota_client/api.dart'; +import 'package:test/test.dart'; + +// tests for IotaExchangeCredentialsOKCredentials +void main() { + // final instance = IotaExchangeCredentialsOKCredentials(); + + group('test IotaExchangeCredentialsOKCredentials', () { + // String accessKeyId + test('to test the property `accessKeyId`', () async { + // TODO + }); + + // String secretKey + test('to test the property `secretKey`', () async { + // TODO + }); + + // String sessionToken + test('to test the property `sessionToken`', () async { + // TODO + }); + + // String expiration + test('to test the property `expiration`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/iota_exchange_credentials_ok_test.dart b/clients/dart/iota_client/test/iota_exchange_credentials_ok_test.dart new file mode 100644 index 00000000..21f89ab1 --- /dev/null +++ b/clients/dart/iota_client/test/iota_exchange_credentials_ok_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_iota_client/api.dart'; +import 'package:test/test.dart'; + +// tests for IotaExchangeCredentialsOK +void main() { + // final instance = IotaExchangeCredentialsOK(); + + group('test IotaExchangeCredentialsOK', () { + // String connectionClientId + test('to test the property `connectionClientId`', () async { + // TODO + }); + + // IotaExchangeCredentialsOKCredentials credentials + test('to test the property `credentials`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/iota_exchange_credentials_test.dart b/clients/dart/iota_client/test/iota_exchange_credentials_test.dart new file mode 100644 index 00000000..379b2e22 --- /dev/null +++ b/clients/dart/iota_client/test/iota_exchange_credentials_test.dart @@ -0,0 +1,28 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_iota_client/api.dart'; +import 'package:test/test.dart'; + +// tests for IotaExchangeCredentials +void main() { + // final instance = IotaExchangeCredentials(); + + group('test IotaExchangeCredentials', () { + // JWT signed with a machine token used to secure the web socket connection + // String assertion + test('to test the property `assertion`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/python/iam_client/.openapi-generator/FILES b/clients/python/iam_client/.openapi-generator/FILES index cb26df7a..108bff86 100644 --- a/clients/python/iam_client/.openapi-generator/FILES +++ b/clients/python/iam_client/.openapi-generator/FILES @@ -27,6 +27,8 @@ affinidi_tdk_iam_client/models/create_project_scoped_token_input.py affinidi_tdk_iam_client/models/create_project_scoped_token_output.py affinidi_tdk_iam_client/models/create_token_input.py affinidi_tdk_iam_client/models/get_well_known_did_ok.py +affinidi_tdk_iam_client/models/invalid_did_error.py +affinidi_tdk_iam_client/models/invalid_did_error.py affinidi_tdk_iam_client/models/invalid_jwt_token_error.py affinidi_tdk_iam_client/models/invalid_parameter_error.py affinidi_tdk_iam_client/models/json_web_key_dto.py @@ -38,6 +40,7 @@ affinidi_tdk_iam_client/models/principal_cannot_be_deleted_error.py affinidi_tdk_iam_client/models/principal_does_not_belong_to_project_error.py affinidi_tdk_iam_client/models/project_dto.py affinidi_tdk_iam_client/models/project_list.py +affinidi_tdk_iam_client/models/public_key_cannot_be_resolved_from_did_error.py affinidi_tdk_iam_client/models/service_error_response.py affinidi_tdk_iam_client/models/service_error_response_details_inner.py affinidi_tdk_iam_client/models/token_authentication_method_dto.py @@ -70,6 +73,8 @@ docs/CreateProjectScopedTokenOutput.md docs/CreateTokenInput.md docs/DefaultApi.md docs/GetWellKnownDidOK.md +docs/InvalidDIDError.md +docs/InvalidDidError.md docs/InvalidJwtTokenError.md docs/InvalidParameterError.md docs/JsonWebKeyDto.md @@ -83,6 +88,7 @@ docs/PrincipalDoesNotBelongToProjectError.md docs/ProjectDto.md docs/ProjectList.md docs/ProjectsApi.md +docs/PublicKeyCannotBeResolvedFromDidError.md docs/ServiceErrorResponse.md docs/ServiceErrorResponseDetailsInner.md docs/StsApi.md @@ -111,4 +117,6 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_invalid_did_error.py +test/test_public_key_cannot_be_resolved_from_did_error.py tox.ini diff --git a/clients/python/iam_client/README.md b/clients/python/iam_client/README.md index 6f08bf76..2b9e7010 100644 --- a/clients/python/iam_client/README.md +++ b/clients/python/iam_client/README.md @@ -126,6 +126,8 @@ All URIs are relative to *https://apse1.api.affinidi.io/iam* - [CreateProjectScopedTokenOutput](docs/CreateProjectScopedTokenOutput.md) - [CreateTokenInput](docs/CreateTokenInput.md) - [GetWellKnownDidOK](docs/GetWellKnownDidOK.md) +- [InvalidDIDError](docs/InvalidDIDError.md) +- [InvalidDidError](docs/InvalidDidError.md) - [InvalidJwtTokenError](docs/InvalidJwtTokenError.md) - [InvalidParameterError](docs/InvalidParameterError.md) - [JsonWebKeyDto](docs/JsonWebKeyDto.md) @@ -137,6 +139,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/iam* - [PrincipalDoesNotBelongToProjectError](docs/PrincipalDoesNotBelongToProjectError.md) - [ProjectDto](docs/ProjectDto.md) - [ProjectList](docs/ProjectList.md) +- [PublicKeyCannotBeResolvedFromDidError](docs/PublicKeyCannotBeResolvedFromDidError.md) - [ServiceErrorResponse](docs/ServiceErrorResponse.md) - [ServiceErrorResponseDetailsInner](docs/ServiceErrorResponseDetailsInner.md) - [TokenAuthenticationMethodDto](docs/TokenAuthenticationMethodDto.md) diff --git a/clients/python/iam_client/affinidi_tdk_iam_client/__init__.py b/clients/python/iam_client/affinidi_tdk_iam_client/__init__.py index 58db6951..35772f1d 100644 --- a/clients/python/iam_client/affinidi_tdk_iam_client/__init__.py +++ b/clients/python/iam_client/affinidi_tdk_iam_client/__init__.py @@ -48,6 +48,8 @@ from affinidi_tdk_iam_client.models.create_project_scoped_token_output import CreateProjectScopedTokenOutput from affinidi_tdk_iam_client.models.create_token_input import CreateTokenInput from affinidi_tdk_iam_client.models.get_well_known_did_ok import GetWellKnownDidOK +from affinidi_tdk_iam_client.models.invalid_did_error import InvalidDIDError +from affinidi_tdk_iam_client.models.invalid_did_error import InvalidDidError from affinidi_tdk_iam_client.models.invalid_jwt_token_error import InvalidJwtTokenError from affinidi_tdk_iam_client.models.invalid_parameter_error import InvalidParameterError from affinidi_tdk_iam_client.models.json_web_key_dto import JsonWebKeyDto @@ -59,6 +61,7 @@ from affinidi_tdk_iam_client.models.principal_does_not_belong_to_project_error import PrincipalDoesNotBelongToProjectError from affinidi_tdk_iam_client.models.project_dto import ProjectDto from affinidi_tdk_iam_client.models.project_list import ProjectList +from affinidi_tdk_iam_client.models.public_key_cannot_be_resolved_from_did_error import PublicKeyCannotBeResolvedFromDidError from affinidi_tdk_iam_client.models.service_error_response import ServiceErrorResponse from affinidi_tdk_iam_client.models.service_error_response_details_inner import ServiceErrorResponseDetailsInner from affinidi_tdk_iam_client.models.token_authentication_method_dto import TokenAuthenticationMethodDto diff --git a/clients/python/iam_client/affinidi_tdk_iam_client/api/consumer_auth_api.py b/clients/python/iam_client/affinidi_tdk_iam_client/api/consumer_auth_api.py index 8b69f698..fdadcada 100644 --- a/clients/python/iam_client/affinidi_tdk_iam_client/api/consumer_auth_api.py +++ b/clients/python/iam_client/affinidi_tdk_iam_client/api/consumer_auth_api.py @@ -173,6 +173,7 @@ def consumer_auth_token_endpoint_with_http_info(self, consumer_auth_token_endpoi _response_types_map = { '200': "ConsumerAuthTokenEndpointOutput", + '400': "InvalidDidError", '403': "UnauthorizedError", '500': "UnexpectedError", } diff --git a/clients/python/iam_client/affinidi_tdk_iam_client/models/__init__.py b/clients/python/iam_client/affinidi_tdk_iam_client/models/__init__.py index 2a3bebdf..15e0d80f 100644 --- a/clients/python/iam_client/affinidi_tdk_iam_client/models/__init__.py +++ b/clients/python/iam_client/affinidi_tdk_iam_client/models/__init__.py @@ -25,6 +25,8 @@ from affinidi_tdk_iam_client.models.create_project_scoped_token_output import CreateProjectScopedTokenOutput from affinidi_tdk_iam_client.models.create_token_input import CreateTokenInput from affinidi_tdk_iam_client.models.get_well_known_did_ok import GetWellKnownDidOK +from affinidi_tdk_iam_client.models.invalid_did_error import InvalidDIDError +from affinidi_tdk_iam_client.models.invalid_did_error import InvalidDidError from affinidi_tdk_iam_client.models.invalid_jwt_token_error import InvalidJwtTokenError from affinidi_tdk_iam_client.models.invalid_parameter_error import InvalidParameterError from affinidi_tdk_iam_client.models.json_web_key_dto import JsonWebKeyDto @@ -36,6 +38,7 @@ from affinidi_tdk_iam_client.models.principal_does_not_belong_to_project_error import PrincipalDoesNotBelongToProjectError from affinidi_tdk_iam_client.models.project_dto import ProjectDto from affinidi_tdk_iam_client.models.project_list import ProjectList +from affinidi_tdk_iam_client.models.public_key_cannot_be_resolved_from_did_error import PublicKeyCannotBeResolvedFromDidError from affinidi_tdk_iam_client.models.service_error_response import ServiceErrorResponse from affinidi_tdk_iam_client.models.service_error_response_details_inner import ServiceErrorResponseDetailsInner from affinidi_tdk_iam_client.models.token_authentication_method_dto import TokenAuthenticationMethodDto diff --git a/clients/python/iam_client/affinidi_tdk_iam_client/models/invalid_did_error.py b/clients/python/iam_client/affinidi_tdk_iam_client/models/invalid_did_error.py new file mode 100644 index 00000000..411017fd --- /dev/null +++ b/clients/python/iam_client/affinidi_tdk_iam_client/models/invalid_did_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Iam + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import List, Optional, Union +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, validator +from affinidi_tdk_iam_client.models.service_error_response_details_inner import ServiceErrorResponseDetailsInner + +class InvalidDidError(BaseModel): + """ + InvalidDidError + """ + name: StrictStr = Field(...) + message: StrictStr = Field(...) + http_status_code: Union[StrictFloat, StrictInt] = Field(default=..., alias="httpStatusCode") + trace_id: StrictStr = Field(default=..., alias="traceId") + details: Optional[conlist(ServiceErrorResponseDetailsInner)] = None + __properties = ["name", "message", "httpStatusCode", "traceId", "details"] + + @validator('name') + def name_validate_enum(cls, value): + """Validates the enum""" + if value not in ('InvalidDidError'): + raise ValueError("must be one of enum values ('InvalidDidError')") + return value + + @validator('message') + def message_validate_enum(cls, value): + """Validates the enum""" + if value not in ('Unable to resolve DID method. Invalid public key'): + raise ValueError("must be one of enum values ('Unable to resolve DID method. Invalid public key')") + return value + + @validator('http_status_code') + def http_status_code_validate_enum(cls, value): + """Validates the enum""" + if value not in (400): + raise ValueError("must be one of enum values (400)") + return value + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> InvalidDidError: + """Create an instance of InvalidDidError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item in self.details: + if _item: + _items.append(_item.to_dict()) + _dict['details'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> InvalidDidError: + """Create an instance of InvalidDidError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return InvalidDidError.parse_obj(obj) + + _obj = InvalidDidError.parse_obj({ + "name": obj.get("name"), + "message": obj.get("message"), + "http_status_code": obj.get("httpStatusCode"), + "trace_id": obj.get("traceId"), + "details": [ServiceErrorResponseDetailsInner.from_dict(_item) for _item in obj.get("details")] if obj.get("details") is not None else None + }) + return _obj + + diff --git a/clients/python/iam_client/affinidi_tdk_iam_client/models/public_key_cannot_be_resolved_from_did_error.py b/clients/python/iam_client/affinidi_tdk_iam_client/models/public_key_cannot_be_resolved_from_did_error.py new file mode 100644 index 00000000..1abced3f --- /dev/null +++ b/clients/python/iam_client/affinidi_tdk_iam_client/models/public_key_cannot_be_resolved_from_did_error.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Iam + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import List, Optional, Union +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, validator +from affinidi_tdk_iam_client.models.service_error_response_details_inner import ServiceErrorResponseDetailsInner + +class PublicKeyCannotBeResolvedFromDidError(BaseModel): + """ + PublicKeyCannotBeResolvedFromDidError + """ + name: StrictStr = Field(...) + message: StrictStr = Field(...) + http_status_code: Union[StrictFloat, StrictInt] = Field(default=..., alias="httpStatusCode") + trace_id: StrictStr = Field(default=..., alias="traceId") + details: Optional[conlist(ServiceErrorResponseDetailsInner)] = None + __properties = ["name", "message", "httpStatusCode", "traceId", "details"] + + @validator('name') + def name_validate_enum(cls, value): + """Validates the enum""" + if value not in ('PublicKeyCannotBeResolvedFromDidError'): + raise ValueError("must be one of enum values ('PublicKeyCannotBeResolvedFromDidError')") + return value + + @validator('message') + def message_validate_enum(cls, value): + """Validates the enum""" + if value not in ('Unable to resolve DID method. Invalid public key'): + raise ValueError("must be one of enum values ('Unable to resolve DID method. Invalid public key')") + return value + + @validator('http_status_code') + def http_status_code_validate_enum(cls, value): + """Validates the enum""" + if value not in (400): + raise ValueError("must be one of enum values (400)") + return value + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> PublicKeyCannotBeResolvedFromDidError: + """Create an instance of PublicKeyCannotBeResolvedFromDidError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item in self.details: + if _item: + _items.append(_item.to_dict()) + _dict['details'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> PublicKeyCannotBeResolvedFromDidError: + """Create an instance of PublicKeyCannotBeResolvedFromDidError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return PublicKeyCannotBeResolvedFromDidError.parse_obj(obj) + + _obj = PublicKeyCannotBeResolvedFromDidError.parse_obj({ + "name": obj.get("name"), + "message": obj.get("message"), + "http_status_code": obj.get("httpStatusCode"), + "trace_id": obj.get("traceId"), + "details": [ServiceErrorResponseDetailsInner.from_dict(_item) for _item in obj.get("details")] if obj.get("details") is not None else None + }) + return _obj + + diff --git a/clients/python/iam_client/docs/ConsumerAuthApi.md b/clients/python/iam_client/docs/ConsumerAuthApi.md index 428611cb..29d97dd7 100644 --- a/clients/python/iam_client/docs/ConsumerAuthApi.md +++ b/clients/python/iam_client/docs/ConsumerAuthApi.md @@ -71,6 +71,7 @@ No authorization required | Status code | Description | Response headers | | ----------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------- | | **200** | Consumer Token OK Response | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| +| **400** | BadRequestError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| | **403** | ForbiddenError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| | **500** | UnexpectedError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| diff --git a/clients/python/iam_client/docs/InvalidDIDError.md b/clients/python/iam_client/docs/InvalidDIDError.md new file mode 100644 index 00000000..9f9afafb --- /dev/null +++ b/clients/python/iam_client/docs/InvalidDIDError.md @@ -0,0 +1,31 @@ +# InvalidDIDError + +## Properties + +| Name | Type | Description | Notes | +| -------------------- | --------------------------------------------------------------------------------- | ----------- | ---------- | +| **name** | **str** | | +| **message** | **str** | | +| **http_status_code** | **float** | | +| **trace_id** | **str** | | +| **details** | [**List[ServiceErrorResponseDetailsInner]**](ServiceErrorResponseDetailsInner.md) | | [optional] | + +## Example + +```python +from affinidi_tdk_iam_client.models.invalid_did_error import InvalidDIDError + +# TODO update the JSON string below +json = "{}" +# create an instance of InvalidDIDError from a JSON string +invalid_did_error_instance = InvalidDIDError.from_json(json) +# print the JSON string representation of the object +print InvalidDIDError.to_json() + +# convert the object into a dict +invalid_did_error_dict = invalid_did_error_instance.to_dict() +# create an instance of InvalidDIDError from a dict +invalid_did_error_from_dict = InvalidDIDError.from_dict(invalid_did_error_dict) +``` + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/python/iam_client/docs/InvalidDidError.md b/clients/python/iam_client/docs/InvalidDidError.md new file mode 100644 index 00000000..bd778b18 --- /dev/null +++ b/clients/python/iam_client/docs/InvalidDidError.md @@ -0,0 +1,31 @@ +# InvalidDidError + +## Properties + +| Name | Type | Description | Notes | +| -------------------- | --------------------------------------------------------------------------------- | ----------- | ---------- | +| **name** | **str** | | +| **message** | **str** | | +| **http_status_code** | **float** | | +| **trace_id** | **str** | | +| **details** | [**List[ServiceErrorResponseDetailsInner]**](ServiceErrorResponseDetailsInner.md) | | [optional] | + +## Example + +```python +from affinidi_tdk_iam_client.models.invalid_did_error import InvalidDidError + +# TODO update the JSON string below +json = "{}" +# create an instance of InvalidDidError from a JSON string +invalid_did_error_instance = InvalidDidError.from_json(json) +# print the JSON string representation of the object +print InvalidDidError.to_json() + +# convert the object into a dict +invalid_did_error_dict = invalid_did_error_instance.to_dict() +# create an instance of InvalidDidError from a dict +invalid_did_error_from_dict = InvalidDidError.from_dict(invalid_did_error_dict) +``` + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/python/iam_client/docs/PublicKeyCannotBeResolvedFromDidError.md b/clients/python/iam_client/docs/PublicKeyCannotBeResolvedFromDidError.md new file mode 100644 index 00000000..4c53c92b --- /dev/null +++ b/clients/python/iam_client/docs/PublicKeyCannotBeResolvedFromDidError.md @@ -0,0 +1,31 @@ +# PublicKeyCannotBeResolvedFromDidError + +## Properties + +| Name | Type | Description | Notes | +| -------------------- | --------------------------------------------------------------------------------- | ----------- | ---------- | +| **name** | **str** | | +| **message** | **str** | | +| **http_status_code** | **float** | | +| **trace_id** | **str** | | +| **details** | [**List[ServiceErrorResponseDetailsInner]**](ServiceErrorResponseDetailsInner.md) | | [optional] | + +## Example + +```python +from affinidi_tdk_iam_client.models.public_key_cannot_be_resolved_from_did_error import PublicKeyCannotBeResolvedFromDidError + +# TODO update the JSON string below +json = "{}" +# create an instance of PublicKeyCannotBeResolvedFromDidError from a JSON string +public_key_cannot_be_resolved_from_did_error_instance = PublicKeyCannotBeResolvedFromDidError.from_json(json) +# print the JSON string representation of the object +print PublicKeyCannotBeResolvedFromDidError.to_json() + +# convert the object into a dict +public_key_cannot_be_resolved_from_did_error_dict = public_key_cannot_be_resolved_from_did_error_instance.to_dict() +# create an instance of PublicKeyCannotBeResolvedFromDidError from a dict +public_key_cannot_be_resolved_from_did_error_from_dict = PublicKeyCannotBeResolvedFromDidError.from_dict(public_key_cannot_be_resolved_from_did_error_dict) +``` + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/python/iam_client/test/test_invalid_did_error.py b/clients/python/iam_client/test/test_invalid_did_error.py new file mode 100644 index 00000000..32a043e8 --- /dev/null +++ b/clients/python/iam_client/test/test_invalid_did_error.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Iam + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from affinidi_tdk_iam_client.models.invalid_did_error import InvalidDIDError # noqa: E501 + +class TestInvalidDIDError(unittest.TestCase): + """InvalidDIDError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InvalidDIDError: + """Test InvalidDIDError + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InvalidDIDError` + """ + model = InvalidDIDError() # noqa: E501 + if include_optional: + return InvalidDIDError( + name = 'InvalidDIDError', + message = 'unable to resolve DID method. Invalid public key', + http_status_code = 400, + trace_id = '', + details = [ + affinidi_tdk_iam_client.models.service_error_response_details_inner.ServiceErrorResponse_details_inner( + issue = '', + field = '', + value = '', + location = '', ) + ] + ) + else: + return InvalidDIDError( + name = 'InvalidDIDError', + message = 'unable to resolve DID method. Invalid public key', + http_status_code = 400, + trace_id = '', + ) + """ + + def testInvalidDIDError(self): + """Test InvalidDIDError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/clients/python/iam_client/test/test_public_key_cannot_be_resolved_from_did_error.py b/clients/python/iam_client/test/test_public_key_cannot_be_resolved_from_did_error.py new file mode 100644 index 00000000..82d152ef --- /dev/null +++ b/clients/python/iam_client/test/test_public_key_cannot_be_resolved_from_did_error.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Iam + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from affinidi_tdk_iam_client.models.public_key_cannot_be_resolved_from_did_error import PublicKeyCannotBeResolvedFromDidError # noqa: E501 + +class TestPublicKeyCannotBeResolvedFromDidError(unittest.TestCase): + """PublicKeyCannotBeResolvedFromDidError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PublicKeyCannotBeResolvedFromDidError: + """Test PublicKeyCannotBeResolvedFromDidError + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PublicKeyCannotBeResolvedFromDidError` + """ + model = PublicKeyCannotBeResolvedFromDidError() # noqa: E501 + if include_optional: + return PublicKeyCannotBeResolvedFromDidError( + name = 'PublicKeyCannotBeResolvedFromDidError', + message = 'Unable to resolve DID method. Invalid public key', + http_status_code = 400, + trace_id = '', + details = [ + affinidi_tdk_iam_client.models.service_error_response_details_inner.ServiceErrorResponse_details_inner( + issue = '', + field = '', + value = '', + location = '', ) + ] + ) + else: + return PublicKeyCannotBeResolvedFromDidError( + name = 'PublicKeyCannotBeResolvedFromDidError', + message = 'Unable to resolve DID method. Invalid public key', + http_status_code = 400, + trace_id = '', + ) + """ + + def testPublicKeyCannotBeResolvedFromDidError(self): + """Test PublicKeyCannotBeResolvedFromDidError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/clients/python/iota_client/.openapi-generator/FILES b/clients/python/iota_client/.openapi-generator/FILES index 340aae03..1ad64f37 100644 --- a/clients/python/iota_client/.openapi-generator/FILES +++ b/clients/python/iota_client/.openapi-generator/FILES @@ -26,6 +26,7 @@ affinidi_tdk_iota_client/models/consent_dto.py affinidi_tdk_iota_client/models/cors_aws_exchange_credentials_ok.py affinidi_tdk_iota_client/models/cors_aws_exchange_credentials_project_token_ok.py affinidi_tdk_iota_client/models/cors_iot_oidc4vpcallback_ok.py +affinidi_tdk_iota_client/models/cors_iota_exchange_credentials_ok.py affinidi_tdk_iota_client/models/create_iota_configuration_input.py affinidi_tdk_iota_client/models/create_pex_query_input.py affinidi_tdk_iota_client/models/delete_pex_queries_input.py @@ -34,6 +35,9 @@ affinidi_tdk_iota_client/models/invalid_parameter_error.py affinidi_tdk_iota_client/models/invalid_parameter_error_details_inner.py affinidi_tdk_iota_client/models/iota_configuration_dto.py affinidi_tdk_iota_client/models/iota_configuration_dto_client_metadata.py +affinidi_tdk_iota_client/models/iota_exchange_credentials.py +affinidi_tdk_iota_client/models/iota_exchange_credentials_ok.py +affinidi_tdk_iota_client/models/iota_exchange_credentials_ok_credentials.py affinidi_tdk_iota_client/models/list_configuration_ok.py affinidi_tdk_iota_client/models/list_logged_consents_ok.py affinidi_tdk_iota_client/models/list_pex_queries_ok.py @@ -66,6 +70,7 @@ docs/ConsentDto.md docs/CorsAwsExchangeCredentialsOK.md docs/CorsAwsExchangeCredentialsProjectTokenOK.md docs/CorsIotOidc4vpcallbackOK.md +docs/CorsIotaExchangeCredentialsOK.md docs/CreateIotaConfigurationInput.md docs/CreatePexQueryInput.md docs/DefaultApi.md @@ -76,6 +81,9 @@ docs/InvalidParameterErrorDetailsInner.md docs/IotaApi.md docs/IotaConfigurationDto.md docs/IotaConfigurationDtoClientMetadata.md +docs/IotaExchangeCredentials.md +docs/IotaExchangeCredentialsOK.md +docs/IotaExchangeCredentialsOKCredentials.md docs/ListConfigurationOK.md docs/ListLoggedConsentsOK.md docs/ListPexQueriesOK.md @@ -101,7 +109,8 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_delete_pex_queries_input.py -test/test_save_pex_queries_update_input.py -test/test_save_pex_queries_update_input_queries_inner.py +test/test_cors_iota_exchange_credentials_ok.py +test/test_iota_exchange_credentials.py +test/test_iota_exchange_credentials_ok.py +test/test_iota_exchange_credentials_ok_credentials.py tox.ini diff --git a/clients/python/iota_client/README.md b/clients/python/iota_client/README.md index eb14d8f9..0b827144 100644 --- a/clients/python/iota_client/README.md +++ b/clients/python/iota_client/README.md @@ -96,6 +96,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* | _IotaApi_ | [**aws_exchange_credentials**](docs/IotaApi.md#aws_exchange_credentials) | **POST** /v1/aws-exchange-credentials | | _IotaApi_ | [**aws_exchange_credentials_project_token**](docs/IotaApi.md#aws_exchange_credentials_project_token) | **POST** /v1/aws-exchange-credentials/project-token | | _IotaApi_ | [**delete_pex_queries**](docs/IotaApi.md#delete_pex_queries) | **POST** /v1/configurations/{configurationId}/delete-queries | deletes pex queries | +| _IotaApi_ | [**iota_exchange_credentials**](docs/IotaApi.md#iota_exchange_credentials) | **POST** /v1/exchange-credentials | | _IotaApi_ | [**save_pex_queries**](docs/IotaApi.md#save_pex_queries) | **POST** /v1/configurations/{configurationId}/save-queries | | _PexQueryApi_ | [**create_pex_query**](docs/PexQueryApi.md#create_pex_query) | **POST** /v1/configurations/{configurationId}/pex-queries | | _PexQueryApi_ | [**delete_pex_query_by_id**](docs/PexQueryApi.md#delete_pex_query_by_id) | **DELETE** /v1/configurations/{configurationId}/pex-queries/{queryId} | @@ -116,6 +117,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* - [CorsAwsExchangeCredentialsOK](docs/CorsAwsExchangeCredentialsOK.md) - [CorsAwsExchangeCredentialsProjectTokenOK](docs/CorsAwsExchangeCredentialsProjectTokenOK.md) - [CorsIotOidc4vpcallbackOK](docs/CorsIotOidc4vpcallbackOK.md) +- [CorsIotaExchangeCredentialsOK](docs/CorsIotaExchangeCredentialsOK.md) - [CreateIotaConfigurationInput](docs/CreateIotaConfigurationInput.md) - [CreatePexQueryInput](docs/CreatePexQueryInput.md) - [DeletePexQueriesInput](docs/DeletePexQueriesInput.md) @@ -124,6 +126,9 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* - [InvalidParameterErrorDetailsInner](docs/InvalidParameterErrorDetailsInner.md) - [IotaConfigurationDto](docs/IotaConfigurationDto.md) - [IotaConfigurationDtoClientMetadata](docs/IotaConfigurationDtoClientMetadata.md) +- [IotaExchangeCredentials](docs/IotaExchangeCredentials.md) +- [IotaExchangeCredentialsOK](docs/IotaExchangeCredentialsOK.md) +- [IotaExchangeCredentialsOKCredentials](docs/IotaExchangeCredentialsOKCredentials.md) - [ListConfigurationOK](docs/ListConfigurationOK.md) - [ListLoggedConsentsOK](docs/ListLoggedConsentsOK.md) - [ListPexQueriesOK](docs/ListPexQueriesOK.md) diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/__init__.py b/clients/python/iota_client/affinidi_tdk_iota_client/__init__.py index 71d811ac..46970f5f 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/__init__.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/__init__.py @@ -47,6 +47,7 @@ from affinidi_tdk_iota_client.models.cors_aws_exchange_credentials_ok import CorsAwsExchangeCredentialsOK from affinidi_tdk_iota_client.models.cors_aws_exchange_credentials_project_token_ok import CorsAwsExchangeCredentialsProjectTokenOK from affinidi_tdk_iota_client.models.cors_iot_oidc4vpcallback_ok import CorsIotOidc4vpcallbackOK +from affinidi_tdk_iota_client.models.cors_iota_exchange_credentials_ok import CorsIotaExchangeCredentialsOK from affinidi_tdk_iota_client.models.create_iota_configuration_input import CreateIotaConfigurationInput from affinidi_tdk_iota_client.models.create_pex_query_input import CreatePexQueryInput from affinidi_tdk_iota_client.models.delete_pex_queries_input import DeletePexQueriesInput @@ -55,6 +56,9 @@ from affinidi_tdk_iota_client.models.invalid_parameter_error_details_inner import InvalidParameterErrorDetailsInner from affinidi_tdk_iota_client.models.iota_configuration_dto import IotaConfigurationDto from affinidi_tdk_iota_client.models.iota_configuration_dto_client_metadata import IotaConfigurationDtoClientMetadata +from affinidi_tdk_iota_client.models.iota_exchange_credentials import IotaExchangeCredentials +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok import IotaExchangeCredentialsOK +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok_credentials import IotaExchangeCredentialsOKCredentials from affinidi_tdk_iota_client.models.list_configuration_ok import ListConfigurationOK from affinidi_tdk_iota_client.models.list_logged_consents_ok import ListLoggedConsentsOK from affinidi_tdk_iota_client.models.list_pex_queries_ok import ListPexQueriesOK diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/api/iota_api.py b/clients/python/iota_client/affinidi_tdk_iota_client/api/iota_api.py index 9ef37dbd..2c0ccfbf 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/api/iota_api.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/api/iota_api.py @@ -27,6 +27,8 @@ from affinidi_tdk_iota_client.models.aws_exchange_credentials import AwsExchangeCredentials from affinidi_tdk_iota_client.models.aws_exchange_credentials_ok import AwsExchangeCredentialsOK from affinidi_tdk_iota_client.models.aws_exchange_credentials_project_token import AwsExchangeCredentialsProjectToken +from affinidi_tdk_iota_client.models.iota_exchange_credentials import IotaExchangeCredentials +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok import IotaExchangeCredentialsOK from affinidi_tdk_iota_client.models.save_pex_queries_update_input import SavePexQueriesUpdateInput from affinidi_tdk_iota_client.api_client import ApiClient @@ -199,7 +201,7 @@ def aws_exchange_credentials_with_http_info(self, aws_exchange_credentials : Ann _request_auth=_params.get('_request_auth')) @validate_arguments - def aws_exchange_credentials_project_token(self, aws_exchange_credentials_project_token : Annotated[AwsExchangeCredentialsProjectToken, Field(..., description="AwsExchangeCredentialsProjectToken")], **kwargs) -> AwsExchangeCredentialsOK: # noqa: E501 + def aws_exchange_credentials_project_token(self, aws_exchange_credentials_project_token : Annotated[AwsExchangeCredentialsProjectToken, Field(..., description="AwsExchangeCredentialsProjectToken")], **kwargs) -> IotaExchangeCredentialsOK: # noqa: E501 """aws_exchange_credentials_project_token # noqa: E501 It exchanges project token into cognito # noqa: E501 @@ -220,7 +222,7 @@ def aws_exchange_credentials_project_token(self, aws_exchange_credentials_projec :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: AwsExchangeCredentialsOK + :rtype: IotaExchangeCredentialsOK """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: @@ -263,7 +265,7 @@ def aws_exchange_credentials_project_token_with_http_info(self, aws_exchange_cre :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(AwsExchangeCredentialsOK, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(IotaExchangeCredentialsOK, status_code(int), headers(HTTPHeaderDict)) """ _params = locals() @@ -325,7 +327,7 @@ def aws_exchange_credentials_project_token_with_http_info(self, aws_exchange_cre _auth_settings = ['ProjectTokenAuth'] # noqa: E501 _response_types_map = { - '200': "AwsExchangeCredentialsOK", + '200': "IotaExchangeCredentialsOK", '400': "InvalidParameterError", '403': "OperationForbiddenError", } @@ -485,6 +487,155 @@ def delete_pex_queries_with_http_info(self, configuration_id : Annotated[StrictS collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) + @validate_arguments + def iota_exchange_credentials(self, iota_exchange_credentials : Annotated[IotaExchangeCredentials, Field(..., description="IotaAwsExchangeCredentials")], **kwargs) -> IotaExchangeCredentialsOK: # noqa: E501 + """iota_exchange_credentials # noqa: E501 + + It exchanges limited token into cognito sts identity credentials # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.iota_exchange_credentials(iota_exchange_credentials, async_req=True) + >>> result = thread.get() + + :param iota_exchange_credentials: IotaAwsExchangeCredentials (required) + :type iota_exchange_credentials: IotaExchangeCredentials + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. + If one number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: IotaExchangeCredentialsOK + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the iota_exchange_credentials_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + return self.iota_exchange_credentials_with_http_info(iota_exchange_credentials, **kwargs) # noqa: E501 + + @validate_arguments + def iota_exchange_credentials_with_http_info(self, iota_exchange_credentials : Annotated[IotaExchangeCredentials, Field(..., description="IotaAwsExchangeCredentials")], **kwargs) -> ApiResponse: # noqa: E501 + """iota_exchange_credentials # noqa: E501 + + It exchanges limited token into cognito sts identity credentials # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.iota_exchange_credentials_with_http_info(iota_exchange_credentials, async_req=True) + >>> result = thread.get() + + :param iota_exchange_credentials: IotaAwsExchangeCredentials (required) + :type iota_exchange_credentials: IotaExchangeCredentials + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(IotaExchangeCredentialsOK, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'iota_exchange_credentials' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method iota_exchange_credentials" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + if _params['iota_exchange_credentials'] is not None: + _body_params = _params['iota_exchange_credentials'] + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # set the HTTP header `Content-Type` + _content_types_list = _params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'])) + if _content_types_list: + _header_params['Content-Type'] = _content_types_list + + # authentication setting + _auth_settings = [] # noqa: E501 + + _response_types_map = { + '200': "IotaExchangeCredentialsOK", + '400': "InvalidParameterError", + '403': "OperationForbiddenError", + } + + return self.api_client.call_api( + '/v1/exchange-credentials', 'POST', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + @validate_arguments def save_pex_queries(self, configuration_id : Annotated[StrictStr, Field(..., description="iotaConfiguration Id")], save_pex_queries_update_input : Annotated[SavePexQueriesUpdateInput, Field(..., description="SavePexQueriesInput")], **kwargs) -> object: # noqa: E501 """save_pex_queries # noqa: E501 diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/__init__.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/__init__.py index 5796b411..c34e6f0d 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/models/__init__.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/__init__.py @@ -26,6 +26,7 @@ from affinidi_tdk_iota_client.models.cors_aws_exchange_credentials_ok import CorsAwsExchangeCredentialsOK from affinidi_tdk_iota_client.models.cors_aws_exchange_credentials_project_token_ok import CorsAwsExchangeCredentialsProjectTokenOK from affinidi_tdk_iota_client.models.cors_iot_oidc4vpcallback_ok import CorsIotOidc4vpcallbackOK +from affinidi_tdk_iota_client.models.cors_iota_exchange_credentials_ok import CorsIotaExchangeCredentialsOK from affinidi_tdk_iota_client.models.create_iota_configuration_input import CreateIotaConfigurationInput from affinidi_tdk_iota_client.models.create_pex_query_input import CreatePexQueryInput from affinidi_tdk_iota_client.models.delete_pex_queries_input import DeletePexQueriesInput @@ -34,6 +35,9 @@ from affinidi_tdk_iota_client.models.invalid_parameter_error_details_inner import InvalidParameterErrorDetailsInner from affinidi_tdk_iota_client.models.iota_configuration_dto import IotaConfigurationDto from affinidi_tdk_iota_client.models.iota_configuration_dto_client_metadata import IotaConfigurationDtoClientMetadata +from affinidi_tdk_iota_client.models.iota_exchange_credentials import IotaExchangeCredentials +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok import IotaExchangeCredentialsOK +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok_credentials import IotaExchangeCredentialsOKCredentials from affinidi_tdk_iota_client.models.list_configuration_ok import ListConfigurationOK from affinidi_tdk_iota_client.models.list_logged_consents_ok import ListLoggedConsentsOK from affinidi_tdk_iota_client.models.list_pex_queries_ok import ListPexQueriesOK diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/cors_iota_exchange_credentials_ok.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/cors_iota_exchange_credentials_ok.py new file mode 100644 index 00000000..9ff3205d --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/cors_iota_exchange_credentials_ok.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + IotaService + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Optional +from pydantic import BaseModel, Field, StrictStr + +class CorsIotaExchangeCredentialsOK(BaseModel): + """ + CorsIotaExchangeCredentialsOK + """ + cors_iota_exchange_credentials_ok: Optional[StrictStr] = Field(default=None, alias="corsIotaExchangeCredentialsOk") + __properties = ["corsIotaExchangeCredentialsOk"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> CorsIotaExchangeCredentialsOK: + """Create an instance of CorsIotaExchangeCredentialsOK from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> CorsIotaExchangeCredentialsOK: + """Create an instance of CorsIotaExchangeCredentialsOK from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CorsIotaExchangeCredentialsOK.parse_obj(obj) + + _obj = CorsIotaExchangeCredentialsOK.parse_obj({ + "cors_iota_exchange_credentials_ok": obj.get("corsIotaExchangeCredentialsOk") + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials.py new file mode 100644 index 00000000..363d8d67 --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + IotaService + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + + +from pydantic import BaseModel, Field, StrictStr + +class IotaExchangeCredentials(BaseModel): + """ + IotaExchangeCredentials + """ + assertion: StrictStr = Field(default=..., description="JWT signed with a machine token used to secure the web socket connection") + __properties = ["assertion"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> IotaExchangeCredentials: + """Create an instance of IotaExchangeCredentials from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> IotaExchangeCredentials: + """Create an instance of IotaExchangeCredentials from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return IotaExchangeCredentials.parse_obj(obj) + + _obj = IotaExchangeCredentials.parse_obj({ + "assertion": obj.get("assertion") + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials_ok.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials_ok.py new file mode 100644 index 00000000..3255c87d --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials_ok.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + IotaService + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + + +from pydantic import BaseModel, Field, StrictStr +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok_credentials import IotaExchangeCredentialsOKCredentials + +class IotaExchangeCredentialsOK(BaseModel): + """ + IotaExchangeCredentialsOK + """ + connection_client_id: StrictStr = Field(default=..., alias="connectionClientId") + credentials: IotaExchangeCredentialsOKCredentials = Field(...) + __properties = ["connectionClientId", "credentials"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> IotaExchangeCredentialsOK: + """Create an instance of IotaExchangeCredentialsOK from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + # override the default output from pydantic by calling `to_dict()` of credentials + if self.credentials: + _dict['credentials'] = self.credentials.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> IotaExchangeCredentialsOK: + """Create an instance of IotaExchangeCredentialsOK from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return IotaExchangeCredentialsOK.parse_obj(obj) + + _obj = IotaExchangeCredentialsOK.parse_obj({ + "connection_client_id": obj.get("connectionClientId"), + "credentials": IotaExchangeCredentialsOKCredentials.from_dict(obj.get("credentials")) if obj.get("credentials") is not None else None + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials_ok_credentials.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials_ok_credentials.py new file mode 100644 index 00000000..d6ab0cf9 --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_exchange_credentials_ok_credentials.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + IotaService + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + + +from pydantic import BaseModel, Field, StrictStr + +class IotaExchangeCredentialsOKCredentials(BaseModel): + """ + IotaExchangeCredentialsOKCredentials + """ + access_key_id: StrictStr = Field(default=..., alias="accessKeyId") + secret_key: StrictStr = Field(default=..., alias="secretKey") + session_token: StrictStr = Field(default=..., alias="sessionToken") + expiration: StrictStr = Field(...) + __properties = ["accessKeyId", "secretKey", "sessionToken", "expiration"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> IotaExchangeCredentialsOKCredentials: + """Create an instance of IotaExchangeCredentialsOKCredentials from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> IotaExchangeCredentialsOKCredentials: + """Create an instance of IotaExchangeCredentialsOKCredentials from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return IotaExchangeCredentialsOKCredentials.parse_obj(obj) + + _obj = IotaExchangeCredentialsOKCredentials.parse_obj({ + "access_key_id": obj.get("accessKeyId"), + "secret_key": obj.get("secretKey"), + "session_token": obj.get("sessionToken"), + "expiration": obj.get("expiration") + }) + return _obj + + diff --git a/clients/python/iota_client/docs/CorsIotaExchangeCredentialsOK.md b/clients/python/iota_client/docs/CorsIotaExchangeCredentialsOK.md new file mode 100644 index 00000000..efbeb3be --- /dev/null +++ b/clients/python/iota_client/docs/CorsIotaExchangeCredentialsOK.md @@ -0,0 +1,27 @@ +# CorsIotaExchangeCredentialsOK + +## Properties + +| Name | Type | Description | Notes | +| ------------------------------------- | ------- | ----------- | ---------- | +| **cors_iota_exchange_credentials_ok** | **str** | | [optional] | + +## Example + +```python +from affinidi_tdk_iota_client.models.cors_iota_exchange_credentials_ok import CorsIotaExchangeCredentialsOK + +# TODO update the JSON string below +json = "{}" +# create an instance of CorsIotaExchangeCredentialsOK from a JSON string +cors_iota_exchange_credentials_ok_instance = CorsIotaExchangeCredentialsOK.from_json(json) +# print the JSON string representation of the object +print CorsIotaExchangeCredentialsOK.to_json() + +# convert the object into a dict +cors_iota_exchange_credentials_ok_dict = cors_iota_exchange_credentials_ok_instance.to_dict() +# create an instance of CorsIotaExchangeCredentialsOK from a dict +cors_iota_exchange_credentials_ok_from_dict = CorsIotaExchangeCredentialsOK.from_dict(cors_iota_exchange_credentials_ok_dict) +``` + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/python/iota_client/docs/IotaApi.md b/clients/python/iota_client/docs/IotaApi.md index 2c84ecc4..5c06521f 100644 --- a/clients/python/iota_client/docs/IotaApi.md +++ b/clients/python/iota_client/docs/IotaApi.md @@ -7,6 +7,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* | [**aws_exchange_credentials**](IotaApi.md#aws_exchange_credentials) | **POST** /v1/aws-exchange-credentials | | [**aws_exchange_credentials_project_token**](IotaApi.md#aws_exchange_credentials_project_token) | **POST** /v1/aws-exchange-credentials/project-token | | [**delete_pex_queries**](IotaApi.md#delete_pex_queries) | **POST** /v1/configurations/{configurationId}/delete-queries | deletes pex queries | +| [**iota_exchange_credentials**](IotaApi.md#iota_exchange_credentials) | **POST** /v1/exchange-credentials | | [**save_pex_queries**](IotaApi.md#save_pex_queries) | **POST** /v1/configurations/{configurationId}/save-queries | # **aws_exchange_credentials** @@ -78,7 +79,7 @@ No authorization required # **aws_exchange_credentials_project_token** -> AwsExchangeCredentialsOK aws_exchange_credentials_project_token(aws_exchange_credentials_project_token) +> IotaExchangeCredentialsOK aws_exchange_credentials_project_token(aws_exchange_credentials_project_token) It exchanges project token into cognito @@ -90,8 +91,8 @@ It exchanges project token into cognito import time import os import affinidi_tdk_iota_client -from affinidi_tdk_iota_client.models.aws_exchange_credentials_ok import AwsExchangeCredentialsOK from affinidi_tdk_iota_client.models.aws_exchange_credentials_project_token import AwsExchangeCredentialsProjectToken +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok import IotaExchangeCredentialsOK from affinidi_tdk_iota_client.rest import ApiException from pprint import pprint @@ -134,7 +135,7 @@ with affinidi_tdk_iota_client.ApiClient(configuration) as api_client: ### Return type -[**AwsExchangeCredentialsOK**](AwsExchangeCredentialsOK.md) +[**IotaExchangeCredentialsOK**](IotaExchangeCredentialsOK.md) ### Authorization @@ -147,11 +148,11 @@ with affinidi_tdk_iota_client.ApiClient(configuration) as api_client: ### HTTP response details -| Status code | Description | Response headers | -| ----------- | ------------------------ | ----------------------------------------------------------------------------------------------------------------- | -| **200** | AwsExchangeCredentialsOK | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| -| **400** | BadRequestError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| -| **403** | ForbiddenError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| +| Status code | Description | Response headers | +| ----------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| **200** | IotaExchangeCredentialsOK | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| +| **400** | BadRequestError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| +| **403** | ForbiddenError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| [[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) @@ -233,6 +234,73 @@ void (empty response body) [[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) +# **iota_exchange_credentials** + +> IotaExchangeCredentialsOK iota_exchange_credentials(iota_exchange_credentials) + +It exchanges limited token into cognito sts identity credentials + +### Example + +```python +import time +import os +import affinidi_tdk_iota_client +from affinidi_tdk_iota_client.models.iota_exchange_credentials import IotaExchangeCredentials +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok import IotaExchangeCredentialsOK +from affinidi_tdk_iota_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://apse1.api.affinidi.io/ais +# See configuration.py for a list of all supported configuration parameters. +configuration = affinidi_tdk_iota_client.Configuration( + host = "https://apse1.api.affinidi.io/ais" +) + + +# Enter a context with an instance of the API client +with affinidi_tdk_iota_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = affinidi_tdk_iota_client.IotaApi(api_client) + iota_exchange_credentials = affinidi_tdk_iota_client.IotaExchangeCredentials() # IotaExchangeCredentials | IotaAwsExchangeCredentials + + try: + api_response = api_instance.iota_exchange_credentials(iota_exchange_credentials) + print("The response of IotaApi->iota_exchange_credentials:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IotaApi->iota_exchange_credentials: %s\n" % e) +``` + +### Parameters + +| Name | Type | Description | Notes | +| ----------------------------- | --------------------------------------------------------- | -------------------------- | ----- | +| **iota_exchange_credentials** | [**IotaExchangeCredentials**](IotaExchangeCredentials.md) | IotaAwsExchangeCredentials | + +### Return type + +[**IotaExchangeCredentialsOK**](IotaExchangeCredentialsOK.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +| ----------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| **200** | IotaExchangeCredentialsOK | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| +| **400** | BadRequestError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| +| **403** | ForbiddenError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| + +[[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) + # **save_pex_queries** > object save_pex_queries(configuration_id, save_pex_queries_update_input) diff --git a/clients/python/iota_client/docs/IotaExchangeCredentials.md b/clients/python/iota_client/docs/IotaExchangeCredentials.md new file mode 100644 index 00000000..f9b3a41d --- /dev/null +++ b/clients/python/iota_client/docs/IotaExchangeCredentials.md @@ -0,0 +1,27 @@ +# IotaExchangeCredentials + +## Properties + +| Name | Type | Description | Notes | +| ------------- | ------- | ------------------------------------------------------------------------ | ----- | +| **assertion** | **str** | JWT signed with a machine token used to secure the web socket connection | + +## Example + +```python +from affinidi_tdk_iota_client.models.iota_exchange_credentials import IotaExchangeCredentials + +# TODO update the JSON string below +json = "{}" +# create an instance of IotaExchangeCredentials from a JSON string +iota_exchange_credentials_instance = IotaExchangeCredentials.from_json(json) +# print the JSON string representation of the object +print IotaExchangeCredentials.to_json() + +# convert the object into a dict +iota_exchange_credentials_dict = iota_exchange_credentials_instance.to_dict() +# create an instance of IotaExchangeCredentials from a dict +iota_exchange_credentials_from_dict = IotaExchangeCredentials.from_dict(iota_exchange_credentials_dict) +``` + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/python/iota_client/docs/IotaExchangeCredentialsOK.md b/clients/python/iota_client/docs/IotaExchangeCredentialsOK.md new file mode 100644 index 00000000..c7fad740 --- /dev/null +++ b/clients/python/iota_client/docs/IotaExchangeCredentialsOK.md @@ -0,0 +1,28 @@ +# IotaExchangeCredentialsOK + +## Properties + +| Name | Type | Description | Notes | +| ------------------------ | ----------------------------------------------------------------------------------- | ----------- | ----- | +| **connection_client_id** | **str** | | +| **credentials** | [**IotaExchangeCredentialsOKCredentials**](IotaExchangeCredentialsOKCredentials.md) | | + +## Example + +```python +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok import IotaExchangeCredentialsOK + +# TODO update the JSON string below +json = "{}" +# create an instance of IotaExchangeCredentialsOK from a JSON string +iota_exchange_credentials_ok_instance = IotaExchangeCredentialsOK.from_json(json) +# print the JSON string representation of the object +print IotaExchangeCredentialsOK.to_json() + +# convert the object into a dict +iota_exchange_credentials_ok_dict = iota_exchange_credentials_ok_instance.to_dict() +# create an instance of IotaExchangeCredentialsOK from a dict +iota_exchange_credentials_ok_from_dict = IotaExchangeCredentialsOK.from_dict(iota_exchange_credentials_ok_dict) +``` + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/python/iota_client/docs/IotaExchangeCredentialsOKCredentials.md b/clients/python/iota_client/docs/IotaExchangeCredentialsOKCredentials.md new file mode 100644 index 00000000..d55708a4 --- /dev/null +++ b/clients/python/iota_client/docs/IotaExchangeCredentialsOKCredentials.md @@ -0,0 +1,30 @@ +# IotaExchangeCredentialsOKCredentials + +## Properties + +| Name | Type | Description | Notes | +| ----------------- | ------- | ----------- | ----- | +| **access_key_id** | **str** | | +| **secret_key** | **str** | | +| **session_token** | **str** | | +| **expiration** | **str** | | + +## Example + +```python +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok_credentials import IotaExchangeCredentialsOKCredentials + +# TODO update the JSON string below +json = "{}" +# create an instance of IotaExchangeCredentialsOKCredentials from a JSON string +iota_exchange_credentials_ok_credentials_instance = IotaExchangeCredentialsOKCredentials.from_json(json) +# print the JSON string representation of the object +print IotaExchangeCredentialsOKCredentials.to_json() + +# convert the object into a dict +iota_exchange_credentials_ok_credentials_dict = iota_exchange_credentials_ok_credentials_instance.to_dict() +# create an instance of IotaExchangeCredentialsOKCredentials from a dict +iota_exchange_credentials_ok_credentials_from_dict = IotaExchangeCredentialsOKCredentials.from_dict(iota_exchange_credentials_ok_credentials_dict) +``` + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/python/iota_client/test/test_cors_iota_exchange_credentials_ok.py b/clients/python/iota_client/test/test_cors_iota_exchange_credentials_ok.py new file mode 100644 index 00000000..6f45dd14 --- /dev/null +++ b/clients/python/iota_client/test/test_cors_iota_exchange_credentials_ok.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + IotaService + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from affinidi_tdk_iota_client.models.cors_iota_exchange_credentials_ok import CorsIotaExchangeCredentialsOK # noqa: E501 + +class TestCorsIotaExchangeCredentialsOK(unittest.TestCase): + """CorsIotaExchangeCredentialsOK unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CorsIotaExchangeCredentialsOK: + """Test CorsIotaExchangeCredentialsOK + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CorsIotaExchangeCredentialsOK` + """ + model = CorsIotaExchangeCredentialsOK() # noqa: E501 + if include_optional: + return CorsIotaExchangeCredentialsOK( + cors_iota_exchange_credentials_ok = '' + ) + else: + return CorsIotaExchangeCredentialsOK( + ) + """ + + def testCorsIotaExchangeCredentialsOK(self): + """Test CorsIotaExchangeCredentialsOK""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/clients/python/iota_client/test/test_iota_exchange_credentials.py b/clients/python/iota_client/test/test_iota_exchange_credentials.py new file mode 100644 index 00000000..9f0c4c7c --- /dev/null +++ b/clients/python/iota_client/test/test_iota_exchange_credentials.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + IotaService + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from affinidi_tdk_iota_client.models.iota_exchange_credentials import IotaExchangeCredentials # noqa: E501 + +class TestIotaExchangeCredentials(unittest.TestCase): + """IotaExchangeCredentials unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IotaExchangeCredentials: + """Test IotaExchangeCredentials + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IotaExchangeCredentials` + """ + model = IotaExchangeCredentials() # noqa: E501 + if include_optional: + return IotaExchangeCredentials( + assertion = '' + ) + else: + return IotaExchangeCredentials( + assertion = '', + ) + """ + + def testIotaExchangeCredentials(self): + """Test IotaExchangeCredentials""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/clients/python/iota_client/test/test_iota_exchange_credentials_ok.py b/clients/python/iota_client/test/test_iota_exchange_credentials_ok.py new file mode 100644 index 00000000..6f03ac33 --- /dev/null +++ b/clients/python/iota_client/test/test_iota_exchange_credentials_ok.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + IotaService + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok import IotaExchangeCredentialsOK # noqa: E501 + +class TestIotaExchangeCredentialsOK(unittest.TestCase): + """IotaExchangeCredentialsOK unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IotaExchangeCredentialsOK: + """Test IotaExchangeCredentialsOK + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IotaExchangeCredentialsOK` + """ + model = IotaExchangeCredentialsOK() # noqa: E501 + if include_optional: + return IotaExchangeCredentialsOK( + connection_client_id = '', + credentials = affinidi_tdk_iota_client.models.iota_exchange_credentials_ok_credentials.IotaExchangeCredentialsOK_credentials( + access_key_id = '', + secret_key = '', + session_token = '', + expiration = '', ) + ) + else: + return IotaExchangeCredentialsOK( + connection_client_id = '', + credentials = affinidi_tdk_iota_client.models.iota_exchange_credentials_ok_credentials.IotaExchangeCredentialsOK_credentials( + access_key_id = '', + secret_key = '', + session_token = '', + expiration = '', ), + ) + """ + + def testIotaExchangeCredentialsOK(self): + """Test IotaExchangeCredentialsOK""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/clients/python/iota_client/test/test_iota_exchange_credentials_ok_credentials.py b/clients/python/iota_client/test/test_iota_exchange_credentials_ok_credentials.py new file mode 100644 index 00000000..ccf6d665 --- /dev/null +++ b/clients/python/iota_client/test/test_iota_exchange_credentials_ok_credentials.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + IotaService + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest +import datetime + +from affinidi_tdk_iota_client.models.iota_exchange_credentials_ok_credentials import IotaExchangeCredentialsOKCredentials # noqa: E501 + +class TestIotaExchangeCredentialsOKCredentials(unittest.TestCase): + """IotaExchangeCredentialsOKCredentials unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IotaExchangeCredentialsOKCredentials: + """Test IotaExchangeCredentialsOKCredentials + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IotaExchangeCredentialsOKCredentials` + """ + model = IotaExchangeCredentialsOKCredentials() # noqa: E501 + if include_optional: + return IotaExchangeCredentialsOKCredentials( + access_key_id = '', + secret_key = '', + session_token = '', + expiration = '' + ) + else: + return IotaExchangeCredentialsOKCredentials( + access_key_id = '', + secret_key = '', + session_token = '', + expiration = '', + ) + """ + + def testIotaExchangeCredentialsOKCredentials(self): + """Test IotaExchangeCredentialsOKCredentials""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/clients/typescript/iam-client/api.ts b/clients/typescript/iam-client/api.ts index 6ad023af..356e882a 100644 --- a/clients/typescript/iam-client/api.ts +++ b/clients/typescript/iam-client/api.ts @@ -301,6 +301,122 @@ export interface CreateTokenInput { export interface GetWellKnownDidOK { [key: string]: any } +/** + * + * @export + * @interface InvalidDIDError + */ +export interface InvalidDIDError { + /** + * + * @type {string} + * @memberof InvalidDIDError + */ + name: InvalidDIDErrorNameEnum + /** + * + * @type {string} + * @memberof InvalidDIDError + */ + message: InvalidDIDErrorMessageEnum + /** + * + * @type {number} + * @memberof InvalidDIDError + */ + httpStatusCode: InvalidDIDErrorHttpStatusCodeEnum + /** + * + * @type {string} + * @memberof InvalidDIDError + */ + traceId: string + /** + * + * @type {Array} + * @memberof InvalidDIDError + */ + details?: Array +} + +export const InvalidDIDErrorNameEnum = { + InvalidDidError: 'InvalidDIDError', +} as const + +export type InvalidDIDErrorNameEnum = + (typeof InvalidDIDErrorNameEnum)[keyof typeof InvalidDIDErrorNameEnum] +export const InvalidDIDErrorMessageEnum = { + UnableToResolveDidMethodInvalidPublicKey: + 'unable to resolve DID method. Invalid public key', +} as const + +export type InvalidDIDErrorMessageEnum = + (typeof InvalidDIDErrorMessageEnum)[keyof typeof InvalidDIDErrorMessageEnum] +export const InvalidDIDErrorHttpStatusCodeEnum = { + NUMBER_400: 400, +} as const + +export type InvalidDIDErrorHttpStatusCodeEnum = + (typeof InvalidDIDErrorHttpStatusCodeEnum)[keyof typeof InvalidDIDErrorHttpStatusCodeEnum] + +/** + * + * @export + * @interface InvalidDidError + */ +export interface InvalidDidError { + /** + * + * @type {string} + * @memberof InvalidDidError + */ + name: InvalidDidErrorNameEnum + /** + * + * @type {string} + * @memberof InvalidDidError + */ + message: InvalidDidErrorMessageEnum + /** + * + * @type {number} + * @memberof InvalidDidError + */ + httpStatusCode: InvalidDidErrorHttpStatusCodeEnum + /** + * + * @type {string} + * @memberof InvalidDidError + */ + traceId: string + /** + * + * @type {Array} + * @memberof InvalidDidError + */ + details?: Array +} + +export const InvalidDidErrorNameEnum = { + InvalidDidError: 'InvalidDidError', +} as const + +export type InvalidDidErrorNameEnum = + (typeof InvalidDidErrorNameEnum)[keyof typeof InvalidDidErrorNameEnum] +export const InvalidDidErrorMessageEnum = { + UnableToResolveDidMethodInvalidPublicKey: + 'Unable to resolve DID method. Invalid public key', +} as const + +export type InvalidDidErrorMessageEnum = + (typeof InvalidDidErrorMessageEnum)[keyof typeof InvalidDidErrorMessageEnum] +export const InvalidDidErrorHttpStatusCodeEnum = { + NUMBER_400: 400, +} as const + +export type InvalidDidErrorHttpStatusCodeEnum = + (typeof InvalidDidErrorHttpStatusCodeEnum)[keyof typeof InvalidDidErrorHttpStatusCodeEnum] + /** * * @export @@ -792,6 +908,65 @@ export interface ProjectList { */ projects: Array } +/** + * + * @export + * @interface PublicKeyCannotBeResolvedFromDidError + */ +export interface PublicKeyCannotBeResolvedFromDidError { + /** + * + * @type {string} + * @memberof PublicKeyCannotBeResolvedFromDidError + */ + name: PublicKeyCannotBeResolvedFromDidErrorNameEnum + /** + * + * @type {string} + * @memberof PublicKeyCannotBeResolvedFromDidError + */ + message: PublicKeyCannotBeResolvedFromDidErrorMessageEnum + /** + * + * @type {number} + * @memberof PublicKeyCannotBeResolvedFromDidError + */ + httpStatusCode: PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum + /** + * + * @type {string} + * @memberof PublicKeyCannotBeResolvedFromDidError + */ + traceId: string + /** + * + * @type {Array} + * @memberof PublicKeyCannotBeResolvedFromDidError + */ + details?: Array +} + +export const PublicKeyCannotBeResolvedFromDidErrorNameEnum = { + PublicKeyCannotBeResolvedFromDidError: + 'PublicKeyCannotBeResolvedFromDidError', +} as const + +export type PublicKeyCannotBeResolvedFromDidErrorNameEnum = + (typeof PublicKeyCannotBeResolvedFromDidErrorNameEnum)[keyof typeof PublicKeyCannotBeResolvedFromDidErrorNameEnum] +export const PublicKeyCannotBeResolvedFromDidErrorMessageEnum = { + UnableToResolveDidMethodInvalidPublicKey: + 'Unable to resolve DID method. Invalid public key', +} as const + +export type PublicKeyCannotBeResolvedFromDidErrorMessageEnum = + (typeof PublicKeyCannotBeResolvedFromDidErrorMessageEnum)[keyof typeof PublicKeyCannotBeResolvedFromDidErrorMessageEnum] +export const PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum = { + NUMBER_400: 400, +} as const + +export type PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum = + (typeof PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum)[keyof typeof PublicKeyCannotBeResolvedFromDidErrorHttpStatusCodeEnum] + /** * * @export diff --git a/clients/typescript/iam-client/docs/.openapi-generator/FILES b/clients/typescript/iam-client/docs/.openapi-generator/FILES index f57cd5d4..b20911b0 100644 --- a/clients/typescript/iam-client/docs/.openapi-generator/FILES +++ b/clients/typescript/iam-client/docs/.openapi-generator/FILES @@ -14,6 +14,8 @@ Models/CreateProjectInput.md Models/CreateProjectScopedTokenInput.md Models/CreateProjectScopedTokenOutput.md Models/CreateTokenInput.md +Models/InvalidDIDError.md +Models/InvalidDidError.md Models/InvalidJwtTokenError.md Models/InvalidParameterError.md Models/JsonWebKeyDto.md @@ -25,6 +27,7 @@ Models/PrincipalCannotBeDeletedError.md Models/PrincipalDoesNotBelongToProjectError.md Models/ProjectDto.md Models/ProjectList.md +Models/PublicKeyCannotBeResolvedFromDidError.md Models/ServiceErrorResponse.md Models/ServiceErrorResponse_details_inner.md Models/TokenAuthenticationMethodDto.md diff --git a/clients/typescript/iam-client/docs/Models/InvalidDIDError.md b/clients/typescript/iam-client/docs/Models/InvalidDIDError.md new file mode 100644 index 00000000..c3f48760 --- /dev/null +++ b/clients/typescript/iam-client/docs/Models/InvalidDIDError.md @@ -0,0 +1,13 @@ +# InvalidDIDError + +## Properties + +| Name | Type | Description | Notes | +| ------------------ | ------------------------------------------------- | ----------- | ---------------------------- | +| **name** | **String** | | [default to null] | +| **message** | **String** | | [default to null] | +| **httpStatusCode** | **BigDecimal** | | [default to null] | +| **traceId** | **String** | | [default to null] | +| **details** | [**List**](ServiceErrorResponse_details_inner.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/typescript/iam-client/docs/Models/InvalidDidError.md b/clients/typescript/iam-client/docs/Models/InvalidDidError.md new file mode 100644 index 00000000..712651b8 --- /dev/null +++ b/clients/typescript/iam-client/docs/Models/InvalidDidError.md @@ -0,0 +1,13 @@ +# InvalidDidError + +## Properties + +| Name | Type | Description | Notes | +| ------------------ | ------------------------------------------------- | ----------- | ---------------------------- | +| **name** | **String** | | [default to null] | +| **message** | **String** | | [default to null] | +| **httpStatusCode** | **BigDecimal** | | [default to null] | +| **traceId** | **String** | | [default to null] | +| **details** | [**List**](ServiceErrorResponse_details_inner.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/typescript/iam-client/docs/Models/PublicKeyCannotBeResolvedFromDidError.md b/clients/typescript/iam-client/docs/Models/PublicKeyCannotBeResolvedFromDidError.md new file mode 100644 index 00000000..825600e9 --- /dev/null +++ b/clients/typescript/iam-client/docs/Models/PublicKeyCannotBeResolvedFromDidError.md @@ -0,0 +1,13 @@ +# PublicKeyCannotBeResolvedFromDidError + +## Properties + +| Name | Type | Description | Notes | +| ------------------ | ------------------------------------------------- | ----------- | ---------------------------- | +| **name** | **String** | | [default to null] | +| **message** | **String** | | [default to null] | +| **httpStatusCode** | **BigDecimal** | | [default to null] | +| **traceId** | **String** | | [default to null] | +| **details** | [**List**](ServiceErrorResponse_details_inner.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/typescript/iam-client/docs/README.md b/clients/typescript/iam-client/docs/README.md index 259880fe..0ba71174 100644 --- a/clients/typescript/iam-client/docs/README.md +++ b/clients/typescript/iam-client/docs/README.md @@ -50,6 +50,8 @@ All URIs are relative to *https://apse1.api.affinidi.io/iam* - [CreateProjectScopedTokenInput](./Models/CreateProjectScopedTokenInput.md) - [CreateProjectScopedTokenOutput](./Models/CreateProjectScopedTokenOutput.md) - [CreateTokenInput](./Models/CreateTokenInput.md) +- [InvalidDIDError](./Models/InvalidDIDError.md) +- [InvalidDidError](./Models/InvalidDidError.md) - [InvalidJwtTokenError](./Models/InvalidJwtTokenError.md) - [InvalidParameterError](./Models/InvalidParameterError.md) - [JsonWebKeyDto](./Models/JsonWebKeyDto.md) @@ -61,6 +63,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/iam* - [PrincipalDoesNotBelongToProjectError](./Models/PrincipalDoesNotBelongToProjectError.md) - [ProjectDto](./Models/ProjectDto.md) - [ProjectList](./Models/ProjectList.md) +- [PublicKeyCannotBeResolvedFromDidError](./Models/PublicKeyCannotBeResolvedFromDidError.md) - [ServiceErrorResponse](./Models/ServiceErrorResponse.md) - [ServiceErrorResponse_details_inner](./Models/ServiceErrorResponse_details_inner.md) - [TokenAuthenticationMethodDto](./Models/TokenAuthenticationMethodDto.md) diff --git a/clients/typescript/iota-client/api.ts b/clients/typescript/iota-client/api.ts index 5db18533..a6d46a30 100644 --- a/clients/typescript/iota-client/api.ts +++ b/clients/typescript/iota-client/api.ts @@ -336,6 +336,19 @@ export interface CorsIotOidc4vpcallbackOK { */ corsIotOidc4vpcallbackOk?: string } +/** + * + * @export + * @interface CorsIotaExchangeCredentialsOK + */ +export interface CorsIotaExchangeCredentialsOK { + /** + * + * @type {string} + * @memberof CorsIotaExchangeCredentialsOK + */ + corsIotaExchangeCredentialsOk?: string +} /** * * @export @@ -636,6 +649,69 @@ export interface IotaConfigurationDtoClientMetadata { */ logo: string } +/** + * + * @export + * @interface IotaExchangeCredentials + */ +export interface IotaExchangeCredentials { + /** + * JWT signed with a machine token used to secure the web socket connection + * @type {string} + * @memberof IotaExchangeCredentials + */ + assertion: string +} +/** + * + * @export + * @interface IotaExchangeCredentialsOK + */ +export interface IotaExchangeCredentialsOK { + /** + * + * @type {string} + * @memberof IotaExchangeCredentialsOK + */ + connectionClientId: string + /** + * + * @type {IotaExchangeCredentialsOKCredentials} + * @memberof IotaExchangeCredentialsOK + */ + credentials: IotaExchangeCredentialsOKCredentials +} +/** + * + * @export + * @interface IotaExchangeCredentialsOKCredentials + */ +export interface IotaExchangeCredentialsOKCredentials { + /** + * + * @type {string} + * @memberof IotaExchangeCredentialsOKCredentials + */ + accessKeyId: string + /** + * + * @type {string} + * @memberof IotaExchangeCredentialsOKCredentials + */ + secretKey: string + /** + * + * @type {string} + * @memberof IotaExchangeCredentialsOKCredentials + */ + sessionToken: string + /** + * + * @type {string} + * @memberof IotaExchangeCredentialsOKCredentials + */ + expiration: string +} /** * * @export @@ -2522,6 +2598,59 @@ export const IotaApiAxiosParamCreator = function ( options: localVarRequestOptions, } }, + /** + * It exchanges limited token into cognito sts identity credentials + * @param {IotaExchangeCredentials} iotaExchangeCredentials IotaAwsExchangeCredentials + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + iotaExchangeCredentials: async ( + iotaExchangeCredentials: IotaExchangeCredentials, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'iotaExchangeCredentials' is not null or undefined + assertParamExists( + 'iotaExchangeCredentials', + 'iotaExchangeCredentials', + iotaExchangeCredentials, + ) + const localVarPath = `/v1/exchange-credentials` + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL) + let baseOptions + if (configuration) { + baseOptions = configuration.baseOptions + } + + const localVarRequestOptions = { + method: 'POST', + ...baseOptions, + ...options, + } + const localVarHeaderParameter = {} as any + const localVarQueryParameter = {} as any + + localVarHeaderParameter['Content-Type'] = 'application/json' + + setSearchParams(localVarUrlObj, localVarQueryParameter) + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {} + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + } + localVarRequestOptions.data = serializeDataIfNeeded( + iotaExchangeCredentials, + localVarRequestOptions, + configuration, + ) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + } + }, /** * saves all pex queries * @param {string} configurationId iotaConfiguration Id @@ -2646,7 +2775,7 @@ export const IotaApiFp = function (configuration?: Configuration) { ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.awsExchangeCredentialsProjectToken( @@ -2697,6 +2826,39 @@ export const IotaApiFp = function (configuration?: Configuration) { configuration, )(axios, localVarOperationServerBasePath || basePath) }, + /** + * It exchanges limited token into cognito sts identity credentials + * @param {IotaExchangeCredentials} iotaExchangeCredentials IotaAwsExchangeCredentials + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async iotaExchangeCredentials( + iotaExchangeCredentials: IotaExchangeCredentials, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.iotaExchangeCredentials( + iotaExchangeCredentials, + options, + ) + const localVarOperationServerIndex = configuration?.serverIndex ?? 0 + const localVarOperationServerBasePath = + operationServerMap['IotaApi.iotaExchangeCredentials']?.[ + localVarOperationServerIndex + ]?.url + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath) + }, /** * saves all pex queries * @param {string} configurationId iotaConfiguration Id @@ -2766,7 +2928,7 @@ export const IotaApiFactory = function ( awsExchangeCredentialsProjectToken( awsExchangeCredentialsProjectToken: AwsExchangeCredentialsProjectToken, options?: RawAxiosRequestConfig, - ): AxiosPromise { + ): AxiosPromise { return localVarFp .awsExchangeCredentialsProjectToken( awsExchangeCredentialsProjectToken, @@ -2789,6 +2951,20 @@ export const IotaApiFactory = function ( .deletePexQueries(configurationId, options) .then((request) => request(axios, basePath)) }, + /** + * It exchanges limited token into cognito sts identity credentials + * @param {IotaExchangeCredentials} iotaExchangeCredentials IotaAwsExchangeCredentials + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + iotaExchangeCredentials( + iotaExchangeCredentials: IotaExchangeCredentials, + options?: RawAxiosRequestConfig, + ): AxiosPromise { + return localVarFp + .iotaExchangeCredentials(iotaExchangeCredentials, options) + .then((request) => request(axios, basePath)) + }, /** * saves all pex queries * @param {string} configurationId iotaConfiguration Id @@ -2867,6 +3043,22 @@ export class IotaApi extends BaseAPI { .then((request) => request(this.axios, this.basePath)) } + /** + * It exchanges limited token into cognito sts identity credentials + * @param {IotaExchangeCredentials} iotaExchangeCredentials IotaAwsExchangeCredentials + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IotaApi + */ + public iotaExchangeCredentials( + iotaExchangeCredentials: IotaExchangeCredentials, + options?: RawAxiosRequestConfig, + ) { + return IotaApiFp(this.configuration) + .iotaExchangeCredentials(iotaExchangeCredentials, options) + .then((request) => request(this.axios, this.basePath)) + } + /** * saves all pex queries * @param {string} configurationId iotaConfiguration Id diff --git a/clients/typescript/iota-client/docs/.openapi-generator/FILES b/clients/typescript/iota-client/docs/.openapi-generator/FILES index d4942d54..8c756dce 100644 --- a/clients/typescript/iota-client/docs/.openapi-generator/FILES +++ b/clients/typescript/iota-client/docs/.openapi-generator/FILES @@ -14,6 +14,7 @@ Models/ConsentDto.md Models/CorsAwsExchangeCredentialsOK.md Models/CorsAwsExchangeCredentialsProjectTokenOK.md Models/CorsIotOidc4vpcallbackOK.md +Models/CorsIotaExchangeCredentialsOK.md Models/CreateIotaConfigurationInput.md Models/CreatePexQueryInput.md Models/DeletePexQueriesInput.md @@ -22,6 +23,9 @@ Models/InvalidParameterError.md Models/InvalidParameterError_details_inner.md Models/IotaConfigurationDto.md Models/IotaConfigurationDto_clientMetadata.md +Models/IotaExchangeCredentials.md +Models/IotaExchangeCredentialsOK.md +Models/IotaExchangeCredentialsOK_credentials.md Models/ListConfigurationOK.md Models/ListLoggedConsentsOK.md Models/ListPexQueriesOK.md diff --git a/clients/typescript/iota-client/docs/Apis/IotaApi.md b/clients/typescript/iota-client/docs/Apis/IotaApi.md index dcf3676e..4b0878b1 100644 --- a/clients/typescript/iota-client/docs/Apis/IotaApi.md +++ b/clients/typescript/iota-client/docs/Apis/IotaApi.md @@ -7,6 +7,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* | [**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 | +| [**iotaExchangeCredentials**](IotaApi.md#iotaExchangeCredentials) | **POST** /v1/exchange-credentials | | | [**savePexQueries**](IotaApi.md#savePexQueries) | **POST** /v1/configurations/{configurationId}/save-queries | | @@ -40,7 +41,7 @@ No authorization required # **awsExchangeCredentialsProjectToken** -> AwsExchangeCredentialsOK awsExchangeCredentialsProjectToken(AwsExchangeCredentialsProjectToken) +> IotaExchangeCredentialsOK awsExchangeCredentialsProjectToken(AwsExchangeCredentialsProjectToken) It exchanges project token into cognito @@ -52,7 +53,7 @@ No authorization required ### Return type -[**AwsExchangeCredentialsOK**](../Models/AwsExchangeCredentialsOK.md) +[**IotaExchangeCredentialsOK**](../Models/IotaExchangeCredentialsOK.md) ### Authorization @@ -92,6 +93,33 @@ null (empty response body) - **Content-Type**: Not defined - **Accept**: application/json + + +# **iotaExchangeCredentials** + +> IotaExchangeCredentialsOK iotaExchangeCredentials(IotaExchangeCredentials) + + It exchanges limited token into cognito sts identity credentials + +### Parameters + +| Name | Type | Description | Notes | +| --------------------------- | ------------------------------------------------------------------- | -------------------------- | ----- | +| **IotaExchangeCredentials** | [**IotaExchangeCredentials**](../Models/IotaExchangeCredentials.md) | IotaAwsExchangeCredentials | | + +### Return type + +[**IotaExchangeCredentialsOK**](../Models/IotaExchangeCredentialsOK.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + # **savePexQueries** diff --git a/clients/typescript/iota-client/docs/Models/CorsIotaExchangeCredentialsOK.md b/clients/typescript/iota-client/docs/Models/CorsIotaExchangeCredentialsOK.md new file mode 100644 index 00000000..d88cc22e --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/CorsIotaExchangeCredentialsOK.md @@ -0,0 +1,9 @@ +# CorsIotaExchangeCredentialsOK + +## Properties + +| Name | Type | Description | Notes | +| --------------------------------- | ---------- | ----------- | ---------------------------- | +| **corsIotaExchangeCredentialsOk** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/typescript/iota-client/docs/Models/IotaExchangeCredentials.md b/clients/typescript/iota-client/docs/Models/IotaExchangeCredentials.md new file mode 100644 index 00000000..a0018f34 --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/IotaExchangeCredentials.md @@ -0,0 +1,9 @@ +# IotaExchangeCredentials + +## Properties + +| Name | Type | Description | Notes | +| ------------- | ---------- | ------------------------------------------------------------------------ | ----------------- | +| **assertion** | **String** | JWT signed with a machine token used to secure the web socket connection | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/typescript/iota-client/docs/Models/IotaExchangeCredentialsOK.md b/clients/typescript/iota-client/docs/Models/IotaExchangeCredentialsOK.md new file mode 100644 index 00000000..0b2561b0 --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/IotaExchangeCredentialsOK.md @@ -0,0 +1,10 @@ +# IotaExchangeCredentialsOK + +## Properties + +| Name | Type | Description | Notes | +| ---------------------- | ------------------------------------------------------------------------------------- | ----------- | ----------------- | +| **connectionClientId** | **String** | | [default to null] | +| **credentials** | [**IotaExchangeCredentialsOK_credentials**](IotaExchangeCredentialsOK_credentials.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/typescript/iota-client/docs/Models/IotaExchangeCredentialsOK_credentials.md b/clients/typescript/iota-client/docs/Models/IotaExchangeCredentialsOK_credentials.md new file mode 100644 index 00000000..bf6c4eae --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/IotaExchangeCredentialsOK_credentials.md @@ -0,0 +1,12 @@ +# IotaExchangeCredentialsOK_credentials + +## Properties + +| Name | Type | Description | Notes | +| ---------------- | ---------- | ----------- | ----------------- | +| **accessKeyId** | **String** | | [default to null] | +| **secretKey** | **String** | | [default to null] | +| **sessionToken** | **String** | | [default to null] | +| **expiration** | **String** | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/typescript/iota-client/docs/README.md b/clients/typescript/iota-client/docs/README.md index 479fcfc0..86b6de3a 100644 --- a/clients/typescript/iota-client/docs/README.md +++ b/clients/typescript/iota-client/docs/README.md @@ -6,25 +6,26 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* -| Class | Method | HTTP request | Description | -| ------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------- | -| _CallbackApi_ | [**iotOIDC4VPCallback**](Apis/CallbackApi.md#iotoidc4vpcallback) | **POST** /v1/callback | Processes the callback for OIDC4VP flows | -| _ConfigurationsApi_ | [**createIotaConfiguration**](Apis/ConfigurationsApi.md#createiotaconfiguration) | **POST** /v1/configurations | | -| _ConfigurationsApi_ | [**deleteIotaConfigurationById**](Apis/ConfigurationsApi.md#deleteiotaconfigurationbyid) | **DELETE** /v1/configurations/{configurationId} | | -| _ConfigurationsApi_ | [**getIotaConfigurationById**](Apis/ConfigurationsApi.md#getiotaconfigurationbyid) | **GET** /v1/configurations/{configurationId} | | -| _ConfigurationsApi_ | [**getIotaConfigurationMetaData**](Apis/ConfigurationsApi.md#getiotaconfigurationmetadata) | **GET** /v1/projects/{projectId}/configurations/{configurationId}/metadata | | -| _ConfigurationsApi_ | [**listIotaConfigurations**](Apis/ConfigurationsApi.md#listiotaconfigurations) | **GET** /v1/configurations | | -| _ConfigurationsApi_ | [**updateIotaConfigurationById**](Apis/ConfigurationsApi.md#updateiotaconfigurationbyid) | **PATCH** /v1/configurations/{configurationId} | | -| _DefaultApi_ | [**listLoggedConsents**](Apis/DefaultApi.md#listloggedconsents) | **GET** /v1/logged-consents | returns a list of logged consents for the project | -| _IotaApi_ | [**awsExchangeCredentials**](Apis/IotaApi.md#awsexchangecredentials) | **POST** /v1/aws-exchange-credentials | It exchanges limited token into cognito | -| _IotaApi_ | [**awsExchangeCredentialsProjectToken**](Apis/IotaApi.md#awsexchangecredentialsprojecttoken) | **POST** /v1/aws-exchange-credentials/project-token | It exchanges project token into cognito | -| _IotaApi_ | [**deletePexQueries**](Apis/IotaApi.md#deletepexqueries) | **POST** /v1/configurations/{configurationId}/delete-queries | deletes pex queries | -| _IotaApi_ | [**savePexQueries**](Apis/IotaApi.md#savepexqueries) | **POST** /v1/configurations/{configurationId}/save-queries | saves all pex queries | -| _PexQueryApi_ | [**createPexQuery**](Apis/PexQueryApi.md#createpexquery) | **POST** /v1/configurations/{configurationId}/pex-queries | | -| _PexQueryApi_ | [**deletePexQueryById**](Apis/PexQueryApi.md#deletepexquerybyid) | **DELETE** /v1/configurations/{configurationId}/pex-queries/{queryId} | | -| _PexQueryApi_ | [**getPexQueryById**](Apis/PexQueryApi.md#getpexquerybyid) | **GET** /v1/configurations/{configurationId}/pex-queries/{queryId} | | -| _PexQueryApi_ | [**listPexQueries**](Apis/PexQueryApi.md#listpexqueries) | **GET** /v1/configurations/{configurationId}/pex-queries | | -| _PexQueryApi_ | [**updatePexQueryById**](Apis/PexQueryApi.md#updatepexquerybyid) | **PATCH** /v1/configurations/{configurationId}/pex-queries/{queryId} | | +| Class | Method | HTTP request | Description | +| ------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ---------------------------------------------------------------- | +| _CallbackApi_ | [**iotOIDC4VPCallback**](Apis/CallbackApi.md#iotoidc4vpcallback) | **POST** /v1/callback | Processes the callback for OIDC4VP flows | +| _ConfigurationsApi_ | [**createIotaConfiguration**](Apis/ConfigurationsApi.md#createiotaconfiguration) | **POST** /v1/configurations | | +| _ConfigurationsApi_ | [**deleteIotaConfigurationById**](Apis/ConfigurationsApi.md#deleteiotaconfigurationbyid) | **DELETE** /v1/configurations/{configurationId} | | +| _ConfigurationsApi_ | [**getIotaConfigurationById**](Apis/ConfigurationsApi.md#getiotaconfigurationbyid) | **GET** /v1/configurations/{configurationId} | | +| _ConfigurationsApi_ | [**getIotaConfigurationMetaData**](Apis/ConfigurationsApi.md#getiotaconfigurationmetadata) | **GET** /v1/projects/{projectId}/configurations/{configurationId}/metadata | | +| _ConfigurationsApi_ | [**listIotaConfigurations**](Apis/ConfigurationsApi.md#listiotaconfigurations) | **GET** /v1/configurations | | +| _ConfigurationsApi_ | [**updateIotaConfigurationById**](Apis/ConfigurationsApi.md#updateiotaconfigurationbyid) | **PATCH** /v1/configurations/{configurationId} | | +| _DefaultApi_ | [**listLoggedConsents**](Apis/DefaultApi.md#listloggedconsents) | **GET** /v1/logged-consents | returns a list of logged consents for the project | +| _IotaApi_ | [**awsExchangeCredentials**](Apis/IotaApi.md#awsexchangecredentials) | **POST** /v1/aws-exchange-credentials | It exchanges limited token into cognito | +| _IotaApi_ | [**awsExchangeCredentialsProjectToken**](Apis/IotaApi.md#awsexchangecredentialsprojecttoken) | **POST** /v1/aws-exchange-credentials/project-token | It exchanges project token into cognito | +| _IotaApi_ | [**deletePexQueries**](Apis/IotaApi.md#deletepexqueries) | **POST** /v1/configurations/{configurationId}/delete-queries | deletes pex queries | +| _IotaApi_ | [**iotaExchangeCredentials**](Apis/IotaApi.md#iotaexchangecredentials) | **POST** /v1/exchange-credentials | It exchanges limited token into cognito sts identity credentials | +| _IotaApi_ | [**savePexQueries**](Apis/IotaApi.md#savepexqueries) | **POST** /v1/configurations/{configurationId}/save-queries | saves all pex queries | +| _PexQueryApi_ | [**createPexQuery**](Apis/PexQueryApi.md#createpexquery) | **POST** /v1/configurations/{configurationId}/pex-queries | | +| _PexQueryApi_ | [**deletePexQueryById**](Apis/PexQueryApi.md#deletepexquerybyid) | **DELETE** /v1/configurations/{configurationId}/pex-queries/{queryId} | | +| _PexQueryApi_ | [**getPexQueryById**](Apis/PexQueryApi.md#getpexquerybyid) | **GET** /v1/configurations/{configurationId}/pex-queries/{queryId} | | +| _PexQueryApi_ | [**listPexQueries**](Apis/PexQueryApi.md#listpexqueries) | **GET** /v1/configurations/{configurationId}/pex-queries | | +| _PexQueryApi_ | [**updatePexQueryById**](Apis/PexQueryApi.md#updatepexquerybyid) | **PATCH** /v1/configurations/{configurationId}/pex-queries/{queryId} | | @@ -41,6 +42,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* - [CorsAwsExchangeCredentialsOK](./Models/CorsAwsExchangeCredentialsOK.md) - [CorsAwsExchangeCredentialsProjectTokenOK](./Models/CorsAwsExchangeCredentialsProjectTokenOK.md) - [CorsIotOidc4vpcallbackOK](./Models/CorsIotOidc4vpcallbackOK.md) +- [CorsIotaExchangeCredentialsOK](./Models/CorsIotaExchangeCredentialsOK.md) - [CreateIotaConfigurationInput](./Models/CreateIotaConfigurationInput.md) - [CreatePexQueryInput](./Models/CreatePexQueryInput.md) - [DeletePexQueriesInput](./Models/DeletePexQueriesInput.md) @@ -49,6 +51,9 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* - [InvalidParameterError_details_inner](./Models/InvalidParameterError_details_inner.md) - [IotaConfigurationDto](./Models/IotaConfigurationDto.md) - [IotaConfigurationDto_clientMetadata](./Models/IotaConfigurationDto_clientMetadata.md) +- [IotaExchangeCredentials](./Models/IotaExchangeCredentials.md) +- [IotaExchangeCredentialsOK](./Models/IotaExchangeCredentialsOK.md) +- [IotaExchangeCredentialsOK_credentials](./Models/IotaExchangeCredentialsOK_credentials.md) - [ListConfigurationOK](./Models/ListConfigurationOK.md) - [ListLoggedConsentsOK](./Models/ListLoggedConsentsOK.md) - [ListPexQueriesOK](./Models/ListPexQueriesOK.md) diff --git a/package-lock.json b/package-lock.json index b587ebd4..56f24e11 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ }, "clients/typescript/credential-issuance-client": { "name": "@affinidi-tdk/credential-issuance-client", - "version": "1.23.0", + "version": "1.23.1", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -81,7 +81,7 @@ }, "clients/typescript/credential-verification-client": { "name": "@affinidi-tdk/credential-verification-client", - "version": "1.23.0", + "version": "1.23.1", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -115,7 +115,7 @@ }, "clients/typescript/iam-client": { "name": "@affinidi-tdk/iam-client", - "version": "1.23.0", + "version": "1.23.1", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -149,7 +149,7 @@ }, "clients/typescript/iota-client": { "name": "@affinidi-tdk/iota-client", - "version": "1.19.0", + "version": "1.19.1", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -183,7 +183,7 @@ }, "clients/typescript/login-configuration-client": { "name": "@affinidi-tdk/login-configuration-client", - "version": "1.25.0", + "version": "1.25.1", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -217,7 +217,7 @@ }, "clients/typescript/wallets-client": { "name": "@affinidi-tdk/wallets-client", - "version": "1.22.0", + "version": "1.22.1", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -251,7 +251,7 @@ }, "libs/iota-browser": { "name": "@affinidi-tdk/iota-browser", - "version": "1.13.0", + "version": "1.13.1", "license": "Apache-2.0", "dependencies": { "@affinidi-tdk/common": "^1.1.1", @@ -420,7 +420,7 @@ }, "libs/iota-core": { "name": "@affinidi-tdk/iota-core", - "version": "1.14.0", + "version": "1.14.1", "bundleDependencies": [ "@affinidi-tdk/common", "@affinidi-tdk/iota-client", @@ -23629,7 +23629,7 @@ }, "packages/auth-provider": { "name": "@affinidi-tdk/auth-provider", - "version": "1.23.0", + "version": "1.23.1", "bundleDependencies": [ "@affinidi-tdk/common", "@types/jsonwebtoken", @@ -23849,7 +23849,7 @@ }, "packages/common": { "name": "@affinidi-tdk/common", - "version": "1.15.0", + "version": "1.15.1", "license": "Apache-2.0", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.4.0",