From c39f2aab1c435fbf0a29a09adc9792ee34cad51a Mon Sep 17 00:00:00 2001 From: Marat Shakirov Date: Fri, 20 Sep 2024 08:37:41 +0000 Subject: [PATCH] feat: update client ais --- .../dart/iota_client/.openapi-generator/FILES | 9 -- .../doc/FetchIOTAVPResponseInput.md | 11 ++- .../doc/InitiateDataSharingRequestInput.md | 16 +-- clients/dart/iota_client/doc/IotaApi.md | 24 ++--- .../doc/UpdateConfigurationByIdInput.md | 24 ++--- .../model/fetch_iotavp_response_input.dart | 15 ++- .../initiate_data_sharing_request_input.dart | 98 ++++++++++++++++++- .../update_configuration_by_id_input.dart | 40 +++----- .../iota_client/.openapi-generator/FILES | 9 -- .../affinidi_tdk_iota_client/api/iota_api.py | 4 +- .../models/fetch_iotavp_response_input.py | 6 +- .../initiate_data_sharing_request_input.py | 17 +++- .../update_configuration_by_id_input.py | 14 +-- .../docs/FetchIOTAVPResponseInput.md | 11 ++- .../docs/InitiateDataSharingRequestInput.md | 16 +-- clients/python/iota_client/docs/IotaApi.md | 26 ++--- .../docs/UpdateConfigurationByIdInput.md | 24 ++--- clients/typescript/iota-client/api.ts | 51 ++++++++-- .../iota-client/docs/Apis/IotaApi.md | 4 +- .../docs/Models/FetchIOTAVPResponseInput.md | 11 ++- .../Models/InitiateDataSharingRequestInput.md | 16 +-- .../Models/UpdateConfigurationByIdInput.md | 24 ++--- package-lock.json | 20 ++-- 23 files changed, 307 insertions(+), 183 deletions(-) diff --git a/clients/dart/iota_client/.openapi-generator/FILES b/clients/dart/iota_client/.openapi-generator/FILES index 400a8dff..3f5d9f5a 100644 --- a/clients/dart/iota_client/.openapi-generator/FILES +++ b/clients/dart/iota_client/.openapi-generator/FILES @@ -120,12 +120,3 @@ lib/model/update_configuration_by_id_ok.dart lib/model/update_pex_query_input.dart lib/model/vp_token_validation_error.dart pubspec.yaml -test/callback_response_ok_redirect_response_test.dart -test/callback_response_ok_test.dart -test/cors_fetch_iota_vp_response_ok_test.dart -test/cors_initiate_data_sharing_request_ok_test.dart -test/fetch_iotavp_response_input_test.dart -test/fetch_iotavp_response_ok_test.dart -test/initiate_data_sharing_request_input_test.dart -test/initiate_data_sharing_request_ok_data_test.dart -test/initiate_data_sharing_request_ok_test.dart diff --git a/clients/dart/iota_client/doc/FetchIOTAVPResponseInput.md b/clients/dart/iota_client/doc/FetchIOTAVPResponseInput.md index 7a9ed712..07d944fe 100644 --- a/clients/dart/iota_client/doc/FetchIOTAVPResponseInput.md +++ b/clients/dart/iota_client/doc/FetchIOTAVPResponseInput.md @@ -8,10 +8,11 @@ import 'package:affinidi_tdk_iota_client/api.dart'; ## Properties -| Name | Type | Description | Notes | -| ----------------- | ---------- | ------------------ | ----- | -| **correlationId** | **String** | The correlation ID | -| **transactionId** | **String** | The transaction ID | -| **responseCode** | **String** | The response code. | +| Name | Type | Description | Notes | +| ------------------- | ---------- | -------------------- | ----- | +| **correlationId** | **String** | The correlation ID | +| **transactionId** | **String** | The transaction ID | +| **responseCode** | **String** | The response code. | +| **configurationId** | **String** | The configuration ID | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/iota_client/doc/InitiateDataSharingRequestInput.md b/clients/dart/iota_client/doc/InitiateDataSharingRequestInput.md index 95e46f3d..046770aa 100644 --- a/clients/dart/iota_client/doc/InitiateDataSharingRequestInput.md +++ b/clients/dart/iota_client/doc/InitiateDataSharingRequestInput.md @@ -8,12 +8,14 @@ import 'package:affinidi_tdk_iota_client/api.dart'; ## Properties -| Name | Type | Description | Notes | -| ----------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- | -| **queryId** | **String** | | -| **correlationId** | **String** | | -| **tokenMaxAge** | **int** | token time to live in seconds | [optional] | -| **nonce** | **String** | Random value used to prevent replay attacks | -| **redirectUri** | **String** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. | +| Name | Type | Description | Notes | +| ------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| **queryId** | **String** | | +| **correlationId** | **String** | | +| **tokenMaxAge** | **int** | token time to live in seconds | [optional] | +| **nonce** | **String** | Random value used to prevent replay attacks | +| **redirectUri** | **String** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. | +| **configurationId** | **String** | id of the IOTA configuration used | +| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/iota_client/doc/IotaApi.md b/clients/dart/iota_client/doc/IotaApi.md index d082abc7..442a8681 100644 --- a/clients/dart/iota_client/doc/IotaApi.md +++ b/clients/dart/iota_client/doc/IotaApi.md @@ -166,12 +166,10 @@ This will get the final data response ```dart import 'package:affinidi_tdk_iota_client/api.dart'; -// TODO Configure HTTP Bearer authorization: bearerAuth -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearerAuth').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearerAuth').setAccessToken(yourTokenGeneratorFunction); +// TODO Configure API key authorization: ProjectTokenAuth +//defaultApiClient.getAuthentication('ProjectTokenAuth').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('ProjectTokenAuth').apiKeyPrefix = 'Bearer'; final api_instance = IotaApi(); final fetchIOTAVPResponseInput = FetchIOTAVPResponseInput(); // FetchIOTAVPResponseInput | FetchIOTAVPResponseInput @@ -196,7 +194,7 @@ try { ### Authorization -[bearerAuth](../README.md#bearerAuth) +[ProjectTokenAuth](../README.md#ProjectTokenAuth) ### HTTP request headers @@ -215,12 +213,10 @@ This will initiate data sharing request for the data sharing flow ```dart import 'package:affinidi_tdk_iota_client/api.dart'; -// TODO Configure HTTP Bearer authorization: bearerAuth -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearerAuth').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearerAuth').setAccessToken(yourTokenGeneratorFunction); +// TODO Configure API key authorization: ProjectTokenAuth +//defaultApiClient.getAuthentication('ProjectTokenAuth').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('ProjectTokenAuth').apiKeyPrefix = 'Bearer'; final api_instance = IotaApi(); final initiateDataSharingRequestInput = InitiateDataSharingRequestInput(); // InitiateDataSharingRequestInput | InitiateDataSharingRequestInput @@ -245,7 +241,7 @@ try { ### Authorization -[bearerAuth](../README.md#bearerAuth) +[ProjectTokenAuth](../README.md#ProjectTokenAuth) ### HTTP request headers diff --git a/clients/dart/iota_client/doc/UpdateConfigurationByIdInput.md b/clients/dart/iota_client/doc/UpdateConfigurationByIdInput.md index a02c7f70..5564b601 100644 --- a/clients/dart/iota_client/doc/UpdateConfigurationByIdInput.md +++ b/clients/dart/iota_client/doc/UpdateConfigurationByIdInput.md @@ -8,17 +8,17 @@ import 'package:affinidi_tdk_iota_client/api.dart'; ## Properties -| Name | Type | Description | Notes | -| -------------------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -| **name** | **String** | The name of the config | [optional] | -| **walletAri** | **String** | The wallet Ari that will be used to sign | [optional] | -| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] | -| **enableVerification** | **bool** | | [optional] | -| **enableConsentAuditLog** | **bool** | | [optional] | -| **tokenMaxAge** | **int** | token time to live in seconds | [optional] | -| **description** | **String** | The description of the config | [optional] | -| **clientMetadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | [optional] | -| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [optional] | -| **redirectUri** | **String** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. Required only if mode is Redirect. | [optional] | +| Name | Type | Description | Notes | +| -------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | +| **name** | **String** | The name of the config | [optional] | +| **walletAri** | **String** | The wallet Ari that will be used to sign | [optional] | +| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] | +| **enableVerification** | **bool** | | [optional] | +| **enableConsentAuditLog** | **bool** | | [optional] | +| **tokenMaxAge** | **int** | token time to live in seconds | [optional] | +| **description** | **String** | The description of the config | [optional] | +| **clientMetadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | [optional] | +| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [optional] [default to 'websocket'] | +| **redirectUris** | **List** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect. | [optional] [default to const []] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/iota_client/lib/model/fetch_iotavp_response_input.dart b/clients/dart/iota_client/lib/model/fetch_iotavp_response_input.dart index f334c2ea..49b6ba31 100644 --- a/clients/dart/iota_client/lib/model/fetch_iotavp_response_input.dart +++ b/clients/dart/iota_client/lib/model/fetch_iotavp_response_input.dart @@ -16,6 +16,7 @@ class FetchIOTAVPResponseInput { required this.correlationId, required this.transactionId, required this.responseCode, + required this.configurationId, }); /// The correlation ID @@ -27,27 +28,33 @@ class FetchIOTAVPResponseInput { /// The response code. String responseCode; + /// The configuration ID + String configurationId; + @override bool operator ==(Object other) => identical(this, other) || other is FetchIOTAVPResponseInput && other.correlationId == correlationId && other.transactionId == transactionId && - other.responseCode == responseCode; + other.responseCode == responseCode && + other.configurationId == configurationId; @override int get hashCode => // ignore: unnecessary_parenthesis (correlationId.hashCode) + (transactionId.hashCode) + - (responseCode.hashCode); + (responseCode.hashCode) + + (configurationId.hashCode); @override - String toString() => 'FetchIOTAVPResponseInput[correlationId=$correlationId, transactionId=$transactionId, responseCode=$responseCode]'; + String toString() => 'FetchIOTAVPResponseInput[correlationId=$correlationId, transactionId=$transactionId, responseCode=$responseCode, configurationId=$configurationId]'; Map toJson() { final json = {}; json[r'correlationId'] = this.correlationId; json[r'transactionId'] = this.transactionId; json[r'responseCode'] = this.responseCode; + json[r'configurationId'] = this.configurationId; return json; } @@ -73,6 +80,7 @@ class FetchIOTAVPResponseInput { correlationId: mapValueOfType(json, r'correlationId')!, transactionId: mapValueOfType(json, r'transactionId')!, responseCode: mapValueOfType(json, r'responseCode')!, + configurationId: mapValueOfType(json, r'configurationId')!, ); } return null; @@ -123,6 +131,7 @@ class FetchIOTAVPResponseInput { 'correlationId', 'transactionId', 'responseCode', + 'configurationId', }; } diff --git a/clients/dart/iota_client/lib/model/initiate_data_sharing_request_input.dart b/clients/dart/iota_client/lib/model/initiate_data_sharing_request_input.dart index 957e9674..a6ba6e71 100644 --- a/clients/dart/iota_client/lib/model/initiate_data_sharing_request_input.dart +++ b/clients/dart/iota_client/lib/model/initiate_data_sharing_request_input.dart @@ -18,6 +18,8 @@ class InitiateDataSharingRequestInput { this.tokenMaxAge, required this.nonce, required this.redirectUri, + required this.configurationId, + required this.mode, }); String queryId; @@ -39,13 +41,21 @@ class InitiateDataSharingRequestInput { /// the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. String redirectUri; + /// id of the IOTA configuration used + String configurationId; + + /// indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. + InitiateDataSharingRequestInputModeEnum mode; + @override bool operator ==(Object other) => identical(this, other) || other is InitiateDataSharingRequestInput && other.queryId == queryId && other.correlationId == correlationId && other.tokenMaxAge == tokenMaxAge && other.nonce == nonce && - other.redirectUri == redirectUri; + other.redirectUri == redirectUri && + other.configurationId == configurationId && + other.mode == mode; @override int get hashCode => @@ -54,10 +64,12 @@ class InitiateDataSharingRequestInput { (correlationId.hashCode) + (tokenMaxAge == null ? 0 : tokenMaxAge!.hashCode) + (nonce.hashCode) + - (redirectUri.hashCode); + (redirectUri.hashCode) + + (configurationId.hashCode) + + (mode.hashCode); @override - String toString() => 'InitiateDataSharingRequestInput[queryId=$queryId, correlationId=$correlationId, tokenMaxAge=$tokenMaxAge, nonce=$nonce, redirectUri=$redirectUri]'; + String toString() => 'InitiateDataSharingRequestInput[queryId=$queryId, correlationId=$correlationId, tokenMaxAge=$tokenMaxAge, nonce=$nonce, redirectUri=$redirectUri, configurationId=$configurationId, mode=$mode]'; Map toJson() { final json = {}; @@ -70,6 +82,8 @@ class InitiateDataSharingRequestInput { } json[r'nonce'] = this.nonce; json[r'redirectUri'] = this.redirectUri; + json[r'configurationId'] = this.configurationId; + json[r'mode'] = this.mode; return json; } @@ -97,6 +111,8 @@ class InitiateDataSharingRequestInput { tokenMaxAge: mapValueOfType(json, r'tokenMaxAge'), nonce: mapValueOfType(json, r'nonce')!, redirectUri: mapValueOfType(json, r'redirectUri')!, + configurationId: mapValueOfType(json, r'configurationId')!, + mode: InitiateDataSharingRequestInputModeEnum.fromJson(json[r'mode'])!, ); } return null; @@ -148,6 +164,82 @@ class InitiateDataSharingRequestInput { 'correlationId', 'nonce', 'redirectUri', + 'configurationId', + 'mode', }; } +/// indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. +class InitiateDataSharingRequestInputModeEnum { + /// Instantiate a new enum with the provided [value]. + const InitiateDataSharingRequestInputModeEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const redirect = InitiateDataSharingRequestInputModeEnum._(r'redirect'); + static const websocket = InitiateDataSharingRequestInputModeEnum._(r'websocket'); + + /// List of all possible values in this [enum][InitiateDataSharingRequestInputModeEnum]. + static const values = [ + redirect, + websocket, + ]; + + static InitiateDataSharingRequestInputModeEnum? fromJson(dynamic value) => InitiateDataSharingRequestInputModeEnumTypeTransformer().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 = InitiateDataSharingRequestInputModeEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [InitiateDataSharingRequestInputModeEnum] to String, +/// and [decode] dynamic data back to [InitiateDataSharingRequestInputModeEnum]. +class InitiateDataSharingRequestInputModeEnumTypeTransformer { + factory InitiateDataSharingRequestInputModeEnumTypeTransformer() => _instance ??= const InitiateDataSharingRequestInputModeEnumTypeTransformer._(); + + const InitiateDataSharingRequestInputModeEnumTypeTransformer._(); + + String encode(InitiateDataSharingRequestInputModeEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a InitiateDataSharingRequestInputModeEnum. + /// + /// 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. + InitiateDataSharingRequestInputModeEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'redirect': return InitiateDataSharingRequestInputModeEnum.redirect; + case r'websocket': return InitiateDataSharingRequestInputModeEnum.websocket; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [InitiateDataSharingRequestInputModeEnumTypeTransformer] instance. + static InitiateDataSharingRequestInputModeEnumTypeTransformer? _instance; +} + + diff --git a/clients/dart/iota_client/lib/model/update_configuration_by_id_input.dart b/clients/dart/iota_client/lib/model/update_configuration_by_id_input.dart index c5f4c538..14950274 100644 --- a/clients/dart/iota_client/lib/model/update_configuration_by_id_input.dart +++ b/clients/dart/iota_client/lib/model/update_configuration_by_id_input.dart @@ -21,8 +21,8 @@ class UpdateConfigurationByIdInput { this.tokenMaxAge, this.description, this.clientMetadata, - this.mode, - this.redirectUri, + this.mode = const UpdateConfigurationByIdInputModeEnum._('websocket'), + this.redirectUris = const [], }); /// The name of the config @@ -95,16 +95,10 @@ class UpdateConfigurationByIdInput { IotaConfigurationDtoClientMetadata? clientMetadata; /// indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. - UpdateConfigurationByIdInputModeEnum? mode; + UpdateConfigurationByIdInputModeEnum mode; - /// the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. Required only if mode is Redirect. - /// - /// 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? redirectUri; + /// the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect. + List redirectUris; @override bool operator ==(Object other) => identical(this, other) || other is UpdateConfigurationByIdInput && @@ -117,7 +111,7 @@ class UpdateConfigurationByIdInput { other.description == description && other.clientMetadata == clientMetadata && other.mode == mode && - other.redirectUri == redirectUri; + _deepEquality.equals(other.redirectUris, redirectUris); @override int get hashCode => @@ -130,11 +124,11 @@ class UpdateConfigurationByIdInput { (tokenMaxAge == null ? 0 : tokenMaxAge!.hashCode) + (description == null ? 0 : description!.hashCode) + (clientMetadata == null ? 0 : clientMetadata!.hashCode) + - (mode == null ? 0 : mode!.hashCode) + - (redirectUri == null ? 0 : redirectUri!.hashCode); + (mode.hashCode) + + (redirectUris.hashCode); @override - String toString() => 'UpdateConfigurationByIdInput[name=$name, walletAri=$walletAri, iotaResponseWebhookURL=$iotaResponseWebhookURL, enableVerification=$enableVerification, enableConsentAuditLog=$enableConsentAuditLog, tokenMaxAge=$tokenMaxAge, description=$description, clientMetadata=$clientMetadata, mode=$mode, redirectUri=$redirectUri]'; + String toString() => 'UpdateConfigurationByIdInput[name=$name, walletAri=$walletAri, iotaResponseWebhookURL=$iotaResponseWebhookURL, enableVerification=$enableVerification, enableConsentAuditLog=$enableConsentAuditLog, tokenMaxAge=$tokenMaxAge, description=$description, clientMetadata=$clientMetadata, mode=$mode, redirectUris=$redirectUris]'; Map toJson() { final json = {}; @@ -178,16 +172,8 @@ class UpdateConfigurationByIdInput { } else { json[r'clientMetadata'] = null; } - if (this.mode != null) { json[r'mode'] = this.mode; - } else { - json[r'mode'] = null; - } - if (this.redirectUri != null) { - json[r'redirectUri'] = this.redirectUri; - } else { - json[r'redirectUri'] = null; - } + json[r'redirectUris'] = this.redirectUris; return json; } @@ -218,8 +204,10 @@ class UpdateConfigurationByIdInput { tokenMaxAge: mapValueOfType(json, r'tokenMaxAge'), description: mapValueOfType(json, r'description'), clientMetadata: IotaConfigurationDtoClientMetadata.fromJson(json[r'clientMetadata']), - mode: UpdateConfigurationByIdInputModeEnum.fromJson(json[r'mode']), - redirectUri: mapValueOfType(json, r'redirectUri'), + mode: UpdateConfigurationByIdInputModeEnum.fromJson(json[r'mode']) ?? 'websocket', + redirectUris: json[r'redirectUris'] is Iterable + ? (json[r'redirectUris'] as Iterable).cast().toList(growable: false) + : const [], ); } return null; diff --git a/clients/python/iota_client/.openapi-generator/FILES b/clients/python/iota_client/.openapi-generator/FILES index 4ceef4c3..971c8419 100644 --- a/clients/python/iota_client/.openapi-generator/FILES +++ b/clients/python/iota_client/.openapi-generator/FILES @@ -127,13 +127,4 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_callback_response_ok.py -test/test_callback_response_ok_redirect_response.py -test/test_cors_fetch_iota_vp_response_ok.py -test/test_cors_initiate_data_sharing_request_ok.py -test/test_fetch_iotavp_response_input.py -test/test_fetch_iotavp_response_ok.py -test/test_initiate_data_sharing_request_input.py -test/test_initiate_data_sharing_request_ok.py -test/test_initiate_data_sharing_request_ok_data.py tox.ini 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 fcf941e2..7476daee 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 @@ -615,7 +615,7 @@ def fetch_iota_vp_response_with_http_info(self, fetch_iotavp_response_input : An _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['bearerAuth'] # noqa: E501 + _auth_settings = ['ProjectTokenAuth'] # noqa: E501 _response_types_map = { '200': "FetchIOTAVPResponseOK", @@ -764,7 +764,7 @@ def initiate_data_sharing_request_with_http_info(self, initiate_data_sharing_req _header_params['Content-Type'] = _content_types_list # authentication setting - _auth_settings = ['bearerAuth'] # noqa: E501 + _auth_settings = ['ProjectTokenAuth'] # noqa: E501 _response_types_map = { '200': "InitiateDataSharingRequestOK", diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/fetch_iotavp_response_input.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/fetch_iotavp_response_input.py index d97183bf..fdef17d0 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/models/fetch_iotavp_response_input.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/fetch_iotavp_response_input.py @@ -29,7 +29,8 @@ class FetchIOTAVPResponseInput(BaseModel): correlation_id: StrictStr = Field(default=..., alias="correlationId", description="The correlation ID") transaction_id: StrictStr = Field(default=..., alias="transactionId", description="The transaction ID") response_code: StrictStr = Field(default=..., alias="responseCode", description="The response code.") - __properties = ["correlationId", "transactionId", "responseCode"] + configuration_id: StrictStr = Field(default=..., alias="configurationId", description="The configuration ID") + __properties = ["correlationId", "transactionId", "responseCode", "configurationId"] class Config: """Pydantic configuration""" @@ -69,7 +70,8 @@ def from_dict(cls, obj: dict) -> FetchIOTAVPResponseInput: _obj = FetchIOTAVPResponseInput.parse_obj({ "correlation_id": obj.get("correlationId"), "transaction_id": obj.get("transactionId"), - "response_code": obj.get("responseCode") + "response_code": obj.get("responseCode"), + "configuration_id": obj.get("configurationId") }) return _obj diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_input.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_input.py index b42e071f..3499ce42 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_input.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_input.py @@ -20,7 +20,7 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, validator class InitiateDataSharingRequestInput(BaseModel): """ @@ -31,7 +31,16 @@ class InitiateDataSharingRequestInput(BaseModel): token_max_age: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="tokenMaxAge", description="token time to live in seconds") nonce: StrictStr = Field(default=..., description="Random value used to prevent replay attacks") redirect_uri: StrictStr = Field(default=..., alias="redirectUri", description="the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.") - __properties = ["queryId", "correlationId", "tokenMaxAge", "nonce", "redirectUri"] + configuration_id: StrictStr = Field(default=..., alias="configurationId", description="id of the IOTA configuration used") + mode: StrictStr = Field(default=..., description="indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request.") + __properties = ["queryId", "correlationId", "tokenMaxAge", "nonce", "redirectUri", "configurationId", "mode"] + + @validator('mode') + def mode_validate_enum(cls, value): + """Validates the enum""" + if value not in ('redirect', 'websocket'): + raise ValueError("must be one of enum values ('redirect', 'websocket')") + return value class Config: """Pydantic configuration""" @@ -73,7 +82,9 @@ def from_dict(cls, obj: dict) -> InitiateDataSharingRequestInput: "correlation_id": obj.get("correlationId"), "token_max_age": obj.get("tokenMaxAge"), "nonce": obj.get("nonce"), - "redirect_uri": obj.get("redirectUri") + "redirect_uri": obj.get("redirectUri"), + "configuration_id": obj.get("configurationId"), + "mode": obj.get("mode") }) return _obj diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/update_configuration_by_id_input.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/update_configuration_by_id_input.py index 50ef979c..480dbbf2 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/models/update_configuration_by_id_input.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/update_configuration_by_id_input.py @@ -19,8 +19,8 @@ import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, validator +from typing import List, Optional, Union +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist, validator from affinidi_tdk_iota_client.models.iota_configuration_dto_client_metadata import IotaConfigurationDtoClientMetadata class UpdateConfigurationByIdInput(BaseModel): @@ -35,9 +35,9 @@ class UpdateConfigurationByIdInput(BaseModel): token_max_age: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="tokenMaxAge", description="token time to live in seconds") description: Optional[StrictStr] = Field(default=None, description="The description of the config") client_metadata: Optional[IotaConfigurationDtoClientMetadata] = Field(default=None, alias="clientMetadata") - mode: Optional[StrictStr] = Field(default=None, description="indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request.") - redirect_uri: Optional[StrictStr] = Field(default=None, alias="redirectUri", description="the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. Required only if mode is Redirect.") - __properties = ["name", "walletAri", "iotaResponseWebhookURL", "enableVerification", "enableConsentAuditLog", "tokenMaxAge", "description", "clientMetadata", "mode", "redirectUri"] + mode: Optional[StrictStr] = Field(default='websocket', description="indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request.") + redirect_uris: Optional[conlist(StrictStr)] = Field(default=None, alias="redirectUris", description="the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect.") + __properties = ["name", "walletAri", "iotaResponseWebhookURL", "enableVerification", "enableConsentAuditLog", "tokenMaxAge", "description", "clientMetadata", "mode", "redirectUris"] @validator('mode') def mode_validate_enum(cls, value): @@ -96,8 +96,8 @@ def from_dict(cls, obj: dict) -> UpdateConfigurationByIdInput: "token_max_age": obj.get("tokenMaxAge"), "description": obj.get("description"), "client_metadata": IotaConfigurationDtoClientMetadata.from_dict(obj.get("clientMetadata")) if obj.get("clientMetadata") is not None else None, - "mode": obj.get("mode"), - "redirect_uri": obj.get("redirectUri") + "mode": obj.get("mode") if obj.get("mode") is not None else 'websocket', + "redirect_uris": obj.get("redirectUris") }) return _obj diff --git a/clients/python/iota_client/docs/FetchIOTAVPResponseInput.md b/clients/python/iota_client/docs/FetchIOTAVPResponseInput.md index 374bd340..66668db6 100644 --- a/clients/python/iota_client/docs/FetchIOTAVPResponseInput.md +++ b/clients/python/iota_client/docs/FetchIOTAVPResponseInput.md @@ -2,11 +2,12 @@ ## Properties -| Name | Type | Description | Notes | -| ------------------ | ------- | ------------------ | ----- | -| **correlation_id** | **str** | The correlation ID | -| **transaction_id** | **str** | The transaction ID | -| **response_code** | **str** | The response code. | +| Name | Type | Description | Notes | +| -------------------- | ------- | -------------------- | ----- | +| **correlation_id** | **str** | The correlation ID | +| **transaction_id** | **str** | The transaction ID | +| **response_code** | **str** | The response code. | +| **configuration_id** | **str** | The configuration ID | ## Example diff --git a/clients/python/iota_client/docs/InitiateDataSharingRequestInput.md b/clients/python/iota_client/docs/InitiateDataSharingRequestInput.md index fd6c9417..3a6596f5 100644 --- a/clients/python/iota_client/docs/InitiateDataSharingRequestInput.md +++ b/clients/python/iota_client/docs/InitiateDataSharingRequestInput.md @@ -2,13 +2,15 @@ ## Properties -| Name | Type | Description | Notes | -| ------------------ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- | -| **query_id** | **str** | | -| **correlation_id** | **str** | | -| **token_max_age** | **float** | token time to live in seconds | [optional] | -| **nonce** | **str** | Random value used to prevent replay attacks | -| **redirect_uri** | **str** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. | +| Name | Type | Description | Notes | +| -------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| **query_id** | **str** | | +| **correlation_id** | **str** | | +| **token_max_age** | **float** | token time to live in seconds | [optional] | +| **nonce** | **str** | Random value used to prevent replay attacks | +| **redirect_uri** | **str** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. | +| **configuration_id** | **str** | id of the IOTA configuration used | +| **mode** | **str** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | ## Example diff --git a/clients/python/iota_client/docs/IotaApi.md b/clients/python/iota_client/docs/IotaApi.md index 4fb1dfcb..1c618d70 100644 --- a/clients/python/iota_client/docs/IotaApi.md +++ b/clients/python/iota_client/docs/IotaApi.md @@ -244,7 +244,7 @@ This will get the final data response ### Example -- Bearer (JWT) Authentication (bearerAuth): +- Api Key Authentication (ProjectTokenAuth): ```python import time @@ -266,10 +266,11 @@ configuration = affinidi_tdk_iota_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure Bearer authorization (JWT): bearerAuth -configuration = affinidi_tdk_iota_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) +# Configure API key authorization: ProjectTokenAuth +configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ProjectTokenAuth'] = 'Bearer' # Enter a context with an instance of the API client with affinidi_tdk_iota_client.ApiClient(configuration) as api_client: @@ -297,7 +298,7 @@ with affinidi_tdk_iota_client.ApiClient(configuration) as api_client: ### Authorization -[bearerAuth](../README.md#bearerAuth) +[ProjectTokenAuth](../README.md#ProjectTokenAuth) ### HTTP request headers @@ -322,7 +323,7 @@ This will initiate data sharing request for the data sharing flow ### Example -- Bearer (JWT) Authentication (bearerAuth): +- Api Key Authentication (ProjectTokenAuth): ```python import time @@ -344,10 +345,11 @@ configuration = affinidi_tdk_iota_client.Configuration( # Examples for each auth method are provided below, use the example that # satisfies your auth use case. -# Configure Bearer authorization (JWT): bearerAuth -configuration = affinidi_tdk_iota_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) +# Configure API key authorization: ProjectTokenAuth +configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ProjectTokenAuth'] = 'Bearer' # Enter a context with an instance of the API client with affinidi_tdk_iota_client.ApiClient(configuration) as api_client: @@ -375,7 +377,7 @@ with affinidi_tdk_iota_client.ApiClient(configuration) as api_client: ### Authorization -[bearerAuth](../README.md#bearerAuth) +[ProjectTokenAuth](../README.md#ProjectTokenAuth) ### HTTP request headers diff --git a/clients/python/iota_client/docs/UpdateConfigurationByIdInput.md b/clients/python/iota_client/docs/UpdateConfigurationByIdInput.md index 8a678de3..34db238f 100644 --- a/clients/python/iota_client/docs/UpdateConfigurationByIdInput.md +++ b/clients/python/iota_client/docs/UpdateConfigurationByIdInput.md @@ -2,18 +2,18 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -| **name** | **str** | The name of the config | [optional] | -| **wallet_ari** | **str** | The wallet Ari that will be used to sign | [optional] | -| **iota_response_webhook_url** | **str** | webhook to call when data is ready | [optional] | -| **enable_verification** | **bool** | | [optional] | -| **enable_consent_audit_log** | **bool** | | [optional] | -| **token_max_age** | **float** | token time to live in seconds | [optional] | -| **description** | **str** | The description of the config | [optional] | -| **client_metadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | [optional] | -| **mode** | **str** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [optional] | -| **redirect_uri** | **str** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. Required only if mode is Redirect. | [optional] | +| Name | Type | Description | Notes | +| ----------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | +| **name** | **str** | The name of the config | [optional] | +| **wallet_ari** | **str** | The wallet Ari that will be used to sign | [optional] | +| **iota_response_webhook_url** | **str** | webhook to call when data is ready | [optional] | +| **enable_verification** | **bool** | | [optional] | +| **enable_consent_audit_log** | **bool** | | [optional] | +| **token_max_age** | **float** | token time to live in seconds | [optional] | +| **description** | **str** | The description of the config | [optional] | +| **client_metadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | [optional] | +| **mode** | **str** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [optional] [default to 'websocket'] | +| **redirect_uris** | **List[str]** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect. | [optional] | ## Example diff --git a/clients/typescript/iota-client/api.ts b/clients/typescript/iota-client/api.ts index cd7d55a4..abd0cbf6 100644 --- a/clients/typescript/iota-client/api.ts +++ b/clients/typescript/iota-client/api.ts @@ -551,6 +551,12 @@ export interface FetchIOTAVPResponseInput { * @memberof FetchIOTAVPResponseInput */ responseCode: string + /** + * The configuration ID + * @type {string} + * @memberof FetchIOTAVPResponseInput + */ + configurationId: string } /** * @@ -640,7 +646,28 @@ export interface InitiateDataSharingRequestInput { * @memberof InitiateDataSharingRequestInput */ redirectUri: string + /** + * id of the IOTA configuration used + * @type {string} + * @memberof InitiateDataSharingRequestInput + */ + configurationId: string + /** + * indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. + * @type {string} + * @memberof InitiateDataSharingRequestInput + */ + mode: InitiateDataSharingRequestInputModeEnum } + +export const InitiateDataSharingRequestInputModeEnum = { + Redirect: 'redirect', + Websocket: 'websocket', +} as const + +export type InitiateDataSharingRequestInputModeEnum = + (typeof InitiateDataSharingRequestInputModeEnum)[keyof typeof InitiateDataSharingRequestInputModeEnum] + /** * * @export @@ -1435,11 +1462,11 @@ export interface UpdateConfigurationByIdInput { */ mode?: UpdateConfigurationByIdInputModeEnum /** - * the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. Required only if mode is Redirect. - * @type {string} + * the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect. + * @type {Array} * @memberof UpdateConfigurationByIdInput */ - redirectUri?: string + redirectUris?: Array } export const UpdateConfigurationByIdInputModeEnum = { @@ -2887,9 +2914,12 @@ export const IotaApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any - // authentication bearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) + // authentication ProjectTokenAuth required + await setApiKeyToObject( + localVarHeaderParameter, + 'authorization', + configuration, + ) localVarHeaderParameter['Content-Type'] = 'application/json' @@ -2944,9 +2974,12 @@ export const IotaApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any const localVarQueryParameter = {} as any - // authentication bearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) + // authentication ProjectTokenAuth required + await setApiKeyToObject( + localVarHeaderParameter, + 'authorization', + configuration, + ) localVarHeaderParameter['Content-Type'] = 'application/json' diff --git a/clients/typescript/iota-client/docs/Apis/IotaApi.md b/clients/typescript/iota-client/docs/Apis/IotaApi.md index c12b8b67..5c055703 100644 --- a/clients/typescript/iota-client/docs/Apis/IotaApi.md +++ b/clients/typescript/iota-client/docs/Apis/IotaApi.md @@ -115,7 +115,7 @@ null (empty response body) ### Authorization -[bearerAuth](../README.md#bearerAuth) +[ProjectTokenAuth](../README.md#ProjectTokenAuth) ### HTTP request headers @@ -142,7 +142,7 @@ null (empty response body) ### Authorization -[bearerAuth](../README.md#bearerAuth) +[ProjectTokenAuth](../README.md#ProjectTokenAuth) ### HTTP request headers diff --git a/clients/typescript/iota-client/docs/Models/FetchIOTAVPResponseInput.md b/clients/typescript/iota-client/docs/Models/FetchIOTAVPResponseInput.md index 8e3b1708..ff6589aa 100644 --- a/clients/typescript/iota-client/docs/Models/FetchIOTAVPResponseInput.md +++ b/clients/typescript/iota-client/docs/Models/FetchIOTAVPResponseInput.md @@ -2,10 +2,11 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------- | ---------- | ------------------ | ----------------- | -| **correlationId** | **String** | The correlation ID | [default to null] | -| **transactionId** | **String** | The transaction ID | [default to null] | -| **responseCode** | **String** | The response code. | [default to null] | +| Name | Type | Description | Notes | +| ------------------- | ---------- | -------------------- | ----------------- | +| **correlationId** | **String** | The correlation ID | [default to null] | +| **transactionId** | **String** | The transaction ID | [default to null] | +| **responseCode** | **String** | The response code. | [default to null] | +| **configurationId** | **String** | The configuration ID | [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/InitiateDataSharingRequestInput.md b/clients/typescript/iota-client/docs/Models/InitiateDataSharingRequestInput.md index dc32ec60..acd21603 100644 --- a/clients/typescript/iota-client/docs/Models/InitiateDataSharingRequestInput.md +++ b/clients/typescript/iota-client/docs/Models/InitiateDataSharingRequestInput.md @@ -2,12 +2,14 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------- | -| **queryId** | **String** | | [default to null] | -| **correlationId** | **String** | | [default to null] | -| **tokenMaxAge** | **BigDecimal** | token time to live in seconds | [optional] [default to null] | -| **nonce** | **String** | Random value used to prevent replay attacks | [default to null] | -| **redirectUri** | **String** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. | [default to null] | +| Name | Type | Description | Notes | +| ------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | +| **queryId** | **String** | | [default to null] | +| **correlationId** | **String** | | [default to null] | +| **tokenMaxAge** | **BigDecimal** | token time to live in seconds | [optional] [default to null] | +| **nonce** | **String** | Random value used to prevent replay attacks | [default to null] | +| **redirectUri** | **String** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. | [default to null] | +| **configurationId** | **String** | id of the IOTA configuration used | [default to null] | +| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [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/UpdateConfigurationByIdInput.md b/clients/typescript/iota-client/docs/Models/UpdateConfigurationByIdInput.md index cd8251ee..28bdf204 100644 --- a/clients/typescript/iota-client/docs/Models/UpdateConfigurationByIdInput.md +++ b/clients/typescript/iota-client/docs/Models/UpdateConfigurationByIdInput.md @@ -2,17 +2,17 @@ ## Properties -| Name | Type | Description | Notes | -| -------------------------- | --------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | -| **name** | **String** | The name of the config | [optional] [default to null] | -| **walletAri** | **String** | The wallet Ari that will be used to sign | [optional] [default to null] | -| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] [default to null] | -| **enableVerification** | **Boolean** | | [optional] [default to null] | -| **enableConsentAuditLog** | **Boolean** | | [optional] [default to null] | -| **tokenMaxAge** | **BigDecimal** | token time to live in seconds | [optional] [default to null] | -| **description** | **String** | The description of the config | [optional] [default to null] | -| **clientMetadata** | [**IotaConfigurationDto_clientMetadata**](IotaConfigurationDto_clientMetadata.md) | | [optional] [default to null] | -| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [optional] [default to null] | -| **redirectUri** | **String** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application. Required only if mode is Redirect. | [optional] [default to null] | +| Name | Type | Description | Notes | +| -------------------------- | --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | +| **name** | **String** | The name of the config | [optional] [default to null] | +| **walletAri** | **String** | The wallet Ari that will be used to sign | [optional] [default to null] | +| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] [default to null] | +| **enableVerification** | **Boolean** | | [optional] [default to null] | +| **enableConsentAuditLog** | **Boolean** | | [optional] [default to null] | +| **tokenMaxAge** | **BigDecimal** | token time to live in seconds | [optional] [default to null] | +| **description** | **String** | The description of the config | [optional] [default to null] | +| **clientMetadata** | [**IotaConfigurationDto_clientMetadata**](IotaConfigurationDto_clientMetadata.md) | | [optional] [default to null] | +| **mode** | **String** | indicates whether the flow is a WebSocket flow or a Redirect flow. This value is used in Vault to determine how to process the data flow request. | [optional] [default to websocket] | +| **redirectUris** | **List** | the URL that the user will be redirected to after the request has been processed; should be provided by the developer of the client application.Required only if mode is Redirect. | [optional] [default to 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/package-lock.json b/package-lock.json index d752fdf1..dd23fd34 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.26.0", + "version": "1.26.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.26.0", + "version": "1.26.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.26.0", + "version": "1.26.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.22.0", + "version": "1.22.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.28.0", + "version": "1.28.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.25.0", + "version": "1.25.1", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -251,7 +251,7 @@ }, "libs/iota-browser": { "name": "@affinidi-tdk/iota-browser", - "version": "1.16.0", + "version": "1.16.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.17.0", + "version": "1.17.1", "bundleDependencies": [ "@affinidi-tdk/common", "@affinidi-tdk/iota-client", @@ -23629,7 +23629,7 @@ }, "packages/auth-provider": { "name": "@affinidi-tdk/auth-provider", - "version": "1.26.1", + "version": "1.26.2", "bundleDependencies": [ "@affinidi-tdk/common", "@types/jsonwebtoken", @@ -23849,7 +23849,7 @@ }, "packages/common": { "name": "@affinidi-tdk/common", - "version": "1.18.0", + "version": "1.18.1", "license": "Apache-2.0", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.4.0",