diff --git a/clients/dart/iota_client/.openapi-generator/FILES b/clients/dart/iota_client/.openapi-generator/FILES index 4fd56441..400a8dff 100644 --- a/clients/dart/iota_client/.openapi-generator/FILES +++ b/clients/dart/iota_client/.openapi-generator/FILES @@ -10,17 +10,26 @@ doc/AwsExchangeCredentialsProjectTokenOK.md doc/AwsExchangeCredentialsProjectTokenOKCredentials.md doc/CallbackApi.md doc/CallbackInput.md +doc/CallbackResponseOK.md +doc/CallbackResponseOKRedirectResponse.md doc/ConfigurationsApi.md doc/ConsentDto.md doc/CorsAwsExchangeCredentialsOK.md doc/CorsAwsExchangeCredentialsProjectTokenOK.md +doc/CorsFetchIotaVpResponseOK.md +doc/CorsInitiateDataSharingRequestOK.md doc/CorsIotOidc4vpcallbackOK.md doc/CorsIotaExchangeCredentialsOK.md doc/CreateIotaConfigurationInput.md doc/CreatePexQueryInput.md doc/DefaultApi.md doc/DeletePexQueriesInput.md +doc/FetchIOTAVPResponseInput.md +doc/FetchIOTAVPResponseOK.md doc/GetIotaConfigurationMetaDataOK.md +doc/InitiateDataSharingRequestInput.md +doc/InitiateDataSharingRequestOK.md +doc/InitiateDataSharingRequestOKData.md doc/InvalidParameterError.md doc/InvalidParameterErrorDetailsInner.md doc/IotaApi.md @@ -68,15 +77,24 @@ lib/model/aws_exchange_credentials_project_token.dart lib/model/aws_exchange_credentials_project_token_ok.dart lib/model/aws_exchange_credentials_project_token_ok_credentials.dart lib/model/callback_input.dart +lib/model/callback_response_ok.dart +lib/model/callback_response_ok_redirect_response.dart 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_fetch_iota_vp_response_ok.dart +lib/model/cors_initiate_data_sharing_request_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 +lib/model/fetch_iotavp_response_input.dart +lib/model/fetch_iotavp_response_ok.dart lib/model/get_iota_configuration_meta_data_ok.dart +lib/model/initiate_data_sharing_request_input.dart +lib/model/initiate_data_sharing_request_ok.dart +lib/model/initiate_data_sharing_request_ok_data.dart lib/model/invalid_parameter_error.dart lib/model/invalid_parameter_error_details_inner.dart lib/model/iota_configuration_dto.dart @@ -102,3 +120,12 @@ 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/README.md b/clients/dart/iota_client/README.md index 1bf382f5..b2f324b2 100644 --- a/clients/dart/iota_client/README.md +++ b/clients/dart/iota_client/README.md @@ -76,6 +76,8 @@ 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_ | [**fetchIotaVpResponse**](doc//IotaApi.md#fetchiotavpresponse) | **POST** /v1/fetch-iota-response | +| _IotaApi_ | [**initiateDataSharingRequest**](doc//IotaApi.md#initiatedatasharingrequest) | **POST** /v1/initiate-data-sharing-request | | _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 | @@ -93,15 +95,24 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* - [AwsExchangeCredentialsProjectTokenOK](doc//AwsExchangeCredentialsProjectTokenOK.md) - [AwsExchangeCredentialsProjectTokenOKCredentials](doc//AwsExchangeCredentialsProjectTokenOKCredentials.md) - [CallbackInput](doc//CallbackInput.md) +- [CallbackResponseOK](doc//CallbackResponseOK.md) +- [CallbackResponseOKRedirectResponse](doc//CallbackResponseOKRedirectResponse.md) - [ConsentDto](doc//ConsentDto.md) - [CorsAwsExchangeCredentialsOK](doc//CorsAwsExchangeCredentialsOK.md) - [CorsAwsExchangeCredentialsProjectTokenOK](doc//CorsAwsExchangeCredentialsProjectTokenOK.md) +- [CorsFetchIotaVpResponseOK](doc//CorsFetchIotaVpResponseOK.md) +- [CorsInitiateDataSharingRequestOK](doc//CorsInitiateDataSharingRequestOK.md) - [CorsIotOidc4vpcallbackOK](doc//CorsIotOidc4vpcallbackOK.md) - [CorsIotaExchangeCredentialsOK](doc//CorsIotaExchangeCredentialsOK.md) - [CreateIotaConfigurationInput](doc//CreateIotaConfigurationInput.md) - [CreatePexQueryInput](doc//CreatePexQueryInput.md) - [DeletePexQueriesInput](doc//DeletePexQueriesInput.md) +- [FetchIOTAVPResponseInput](doc//FetchIOTAVPResponseInput.md) +- [FetchIOTAVPResponseOK](doc//FetchIOTAVPResponseOK.md) - [GetIotaConfigurationMetaDataOK](doc//GetIotaConfigurationMetaDataOK.md) +- [InitiateDataSharingRequestInput](doc//InitiateDataSharingRequestInput.md) +- [InitiateDataSharingRequestOK](doc//InitiateDataSharingRequestOK.md) +- [InitiateDataSharingRequestOKData](doc//InitiateDataSharingRequestOKData.md) - [InvalidParameterError](doc//InvalidParameterError.md) - [InvalidParameterErrorDetailsInner](doc//InvalidParameterErrorDetailsInner.md) - [IotaConfigurationDto](doc//IotaConfigurationDto.md) diff --git a/clients/dart/iota_client/doc/CallbackApi.md b/clients/dart/iota_client/doc/CallbackApi.md index 069b029b..3ffc0c00 100644 --- a/clients/dart/iota_client/doc/CallbackApi.md +++ b/clients/dart/iota_client/doc/CallbackApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* # **iotOIDC4VPCallback** -> Object iotOIDC4VPCallback(callbackInput) +> CallbackResponseOK iotOIDC4VPCallback(callbackInput) Processes the callback for OIDC4VP flows @@ -44,7 +44,7 @@ try { ### Return type -[**Object**](Object.md) +[**CallbackResponseOK**](CallbackResponseOK.md) ### Authorization diff --git a/clients/dart/iota_client/doc/CallbackResponseOK.md b/clients/dart/iota_client/doc/CallbackResponseOK.md new file mode 100644 index 00000000..d46f0808 --- /dev/null +++ b/clients/dart/iota_client/doc/CallbackResponseOK.md @@ -0,0 +1,16 @@ +# affinidi_tdk_iota_client.model.CallbackResponseOK + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| -------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------- | ---------- | +| **message** | **String** | A message to vault that flow is updated successfully | +| **redirectResponse** | [**CallbackResponseOKRedirectResponse**](CallbackResponseOKRedirectResponse.md) | | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/iota_client/doc/CallbackResponseOKRedirectResponse.md b/clients/dart/iota_client/doc/CallbackResponseOKRedirectResponse.md new file mode 100644 index 00000000..54374b73 --- /dev/null +++ b/clients/dart/iota_client/doc/CallbackResponseOKRedirectResponse.md @@ -0,0 +1,16 @@ +# affinidi_tdk_iota_client.model.CallbackResponseOKRedirectResponse + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ---------------- | ---------- | ----------------------------------------------------------------- | ---------- | +| **redirectUri** | **String** | the configured redirect url where vault will redirect | [optional] | +| **responseCode** | **String** | Code which will be used to retrieve data along with transactionId | [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/CorsFetchIotaVpResponseOK.md b/clients/dart/iota_client/doc/CorsFetchIotaVpResponseOK.md new file mode 100644 index 00000000..0dd49f08 --- /dev/null +++ b/clients/dart/iota_client/doc/CorsFetchIotaVpResponseOK.md @@ -0,0 +1,15 @@ +# affinidi_tdk_iota_client.model.CorsFetchIotaVpResponseOK + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ----------------------------- | ---------- | ----------- | ---------- | +| **corsFetchIotaVpResponseOk** | **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/CorsInitiateDataSharingRequestOK.md b/clients/dart/iota_client/doc/CorsInitiateDataSharingRequestOK.md new file mode 100644 index 00000000..1472743b --- /dev/null +++ b/clients/dart/iota_client/doc/CorsInitiateDataSharingRequestOK.md @@ -0,0 +1,15 @@ +# affinidi_tdk_iota_client.model.CorsInitiateDataSharingRequestOK + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ------------------------------------ | ---------- | ----------- | ---------- | +| **corsInitiateDataSharingRequestOk** | **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/CreateIotaConfigurationInput.md b/clients/dart/iota_client/doc/CreateIotaConfigurationInput.md index a1f293ca..42fc2461 100644 --- a/clients/dart/iota_client/doc/CreateIotaConfigurationInput.md +++ b/clients/dart/iota_client/doc/CreateIotaConfigurationInput.md @@ -8,15 +8,17 @@ import 'package:affinidi_tdk_iota_client/api.dart'; ## Properties -| Name | Type | Description | Notes | -| -------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------- | ---------- | -| **name** | **String** | The name of the configuration | -| **description** | **String** | Description of the configuration | [optional] | -| **walletAri** | **String** | The wallet Ari that will be used to sign | -| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] | -| **enableVerification** | **bool** | | -| **enableConsentAuditLog** | **bool** | | -| **tokenMaxAge** | **int** | token time to live in seconds | [optional] | -| **clientMetadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | +| Name | Type | Description | Notes | +| -------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | +| **name** | **String** | The name of the configuration | +| **description** | **String** | Description of the configuration | [optional] | +| **walletAri** | **String** | The wallet Ari that will be used to sign | +| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] | +| **enableVerification** | **bool** | | +| **enableConsentAuditLog** | **bool** | | +| **tokenMaxAge** | **int** | token time to live in seconds | [optional] | +| **clientMetadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | +| **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/doc/FetchIOTAVPResponseInput.md b/clients/dart/iota_client/doc/FetchIOTAVPResponseInput.md new file mode 100644 index 00000000..7a9ed712 --- /dev/null +++ b/clients/dart/iota_client/doc/FetchIOTAVPResponseInput.md @@ -0,0 +1,17 @@ +# affinidi_tdk_iota_client.model.FetchIOTAVPResponseInput + +## Load the model package + +```dart +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. | + +[[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/FetchIOTAVPResponseOK.md b/clients/dart/iota_client/doc/FetchIOTAVPResponseOK.md new file mode 100644 index 00000000..e98044cb --- /dev/null +++ b/clients/dart/iota_client/doc/FetchIOTAVPResponseOK.md @@ -0,0 +1,17 @@ +# affinidi_tdk_iota_client.model.FetchIOTAVPResponseOK + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| -------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------ | ---------- | +| **correlationId** | **String** | A correlationId used for the flow | [optional] | +| **presentationSubmission** | **String** | A string that must be a valid JSON object. The structure of presentation submission should follow OID4VP standard. | [optional] | +| **vpToken** | **String** | A string that must be a valid JSON object. Ensure to escape special characters properly.. | [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/InitiateDataSharingRequestInput.md b/clients/dart/iota_client/doc/InitiateDataSharingRequestInput.md new file mode 100644 index 00000000..95e46f3d --- /dev/null +++ b/clients/dart/iota_client/doc/InitiateDataSharingRequestInput.md @@ -0,0 +1,19 @@ +# affinidi_tdk_iota_client.model.InitiateDataSharingRequestInput + +## Load the model package + +```dart +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. | + +[[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/InitiateDataSharingRequestOK.md b/clients/dart/iota_client/doc/InitiateDataSharingRequestOK.md new file mode 100644 index 00000000..4874c64e --- /dev/null +++ b/clients/dart/iota_client/doc/InitiateDataSharingRequestOK.md @@ -0,0 +1,15 @@ +# affinidi_tdk_iota_client.model.InitiateDataSharingRequestOK + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| -------- | --------------------------------------------------------------------------- | ----------- | ---------- | +| **data** | [**InitiateDataSharingRequestOKData**](InitiateDataSharingRequestOKData.md) | | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/iota_client/doc/InitiateDataSharingRequestOKData.md b/clients/dart/iota_client/doc/InitiateDataSharingRequestOKData.md new file mode 100644 index 00000000..b65604ff --- /dev/null +++ b/clients/dart/iota_client/doc/InitiateDataSharingRequestOKData.md @@ -0,0 +1,17 @@ +# affinidi_tdk_iota_client.model.InitiateDataSharingRequestOKData + +## Load the model package + +```dart +import 'package:affinidi_tdk_iota_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ----------------- | ---------- | ----------- | ----- | +| **jwt** | **String** | | +| **correlationId** | **String** | | +| **transactionId** | **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/doc/IotaApi.md b/clients/dart/iota_client/doc/IotaApi.md index 2646a00b..d082abc7 100644 --- a/clients/dart/iota_client/doc/IotaApi.md +++ b/clients/dart/iota_client/doc/IotaApi.md @@ -13,6 +13,8 @@ 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 | +| [**fetchIotaVpResponse**](IotaApi.md#fetchiotavpresponse) | **POST** /v1/fetch-iota-response | +| [**initiateDataSharingRequest**](IotaApi.md#initiatedatasharingrequest) | **POST** /v1/initiate-data-sharing-request | | [**iotaExchangeCredentials**](IotaApi.md#iotaexchangecredentials) | **POST** /v1/exchange-credentials | | [**savePexQueries**](IotaApi.md#savepexqueries) | **POST** /v1/configurations/{configurationId}/save-queries | @@ -154,6 +156,104 @@ 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) +# **fetchIotaVpResponse** + +> FetchIOTAVPResponseOK fetchIotaVpResponse(fetchIOTAVPResponseInput) + +This will get the final data response + +### Example + +```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); + +final api_instance = IotaApi(); +final fetchIOTAVPResponseInput = FetchIOTAVPResponseInput(); // FetchIOTAVPResponseInput | FetchIOTAVPResponseInput + +try { + final result = api_instance.fetchIotaVpResponse(fetchIOTAVPResponseInput); + print(result); +} catch (e) { + print('Exception when calling IotaApi->fetchIotaVpResponse: $e\n'); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---------------------------- | ----------------------------------------------------------- | ------------------------ | ----- | +| **fetchIOTAVPResponseInput** | [**FetchIOTAVPResponseInput**](FetchIOTAVPResponseInput.md) | FetchIOTAVPResponseInput | + +### Return type + +[**FetchIOTAVPResponseOK**](FetchIOTAVPResponseOK.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### 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) + +# **initiateDataSharingRequest** + +> InitiateDataSharingRequestOK initiateDataSharingRequest(initiateDataSharingRequestInput) + +This will initiate data sharing request for the data sharing flow + +### Example + +```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); + +final api_instance = IotaApi(); +final initiateDataSharingRequestInput = InitiateDataSharingRequestInput(); // InitiateDataSharingRequestInput | InitiateDataSharingRequestInput + +try { + final result = api_instance.initiateDataSharingRequest(initiateDataSharingRequestInput); + print(result); +} catch (e) { + print('Exception when calling IotaApi->initiateDataSharingRequest: $e\n'); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ----------------------------------- | ------------------------------------------------------------------------- | ------------------------------- | ----- | +| **initiateDataSharingRequestInput** | [**InitiateDataSharingRequestInput**](InitiateDataSharingRequestInput.md) | InitiateDataSharingRequestInput | + +### Return type + +[**InitiateDataSharingRequestOK**](InitiateDataSharingRequestOK.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### 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) + # **iotaExchangeCredentials** > IotaExchangeCredentialsOK iotaExchangeCredentials(iotaExchangeCredentials) diff --git a/clients/dart/iota_client/doc/IotaConfigurationDto.md b/clients/dart/iota_client/doc/IotaConfigurationDto.md index e1e18af3..7fe01128 100644 --- a/clients/dart/iota_client/doc/IotaConfigurationDto.md +++ b/clients/dart/iota_client/doc/IotaConfigurationDto.md @@ -8,17 +8,19 @@ import 'package:affinidi_tdk_iota_client/api.dart'; ## Properties -| Name | Type | Description | Notes | -| -------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------- | ---------- | -| **ari** | **String** | The ARI of the config | -| **configurationId** | **String** | | -| **name** | **String** | The name of the config | -| **projectId** | **String** | | -| **walletAri** | **String** | The wallet Ari that will be used to sign | -| **tokenMaxAge** | **int** | token time to live in seconds | -| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] | -| **enableVerification** | **bool** | | -| **enableConsentAuditLog** | **bool** | | -| **clientMetadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | +| Name | Type | Description | Notes | +| -------------------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | +| **ari** | **String** | The ARI of the config | +| **configurationId** | **String** | | +| **name** | **String** | The name of the config | +| **projectId** | **String** | | +| **walletAri** | **String** | The wallet Ari that will be used to sign | +| **tokenMaxAge** | **int** | token time to live in seconds | +| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] | +| **enableVerification** | **bool** | | +| **enableConsentAuditLog** | **bool** | | +| **clientMetadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | +| **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 URLs 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/doc/UpdateConfigurationByIdInput.md b/clients/dart/iota_client/doc/UpdateConfigurationByIdInput.md index b2a19900..a02c7f70 100644 --- a/clients/dart/iota_client/doc/UpdateConfigurationByIdInput.md +++ b/clients/dart/iota_client/doc/UpdateConfigurationByIdInput.md @@ -8,15 +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] | +| 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] | [[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 81fa95b4..e7a2740c 100644 --- a/clients/dart/iota_client/lib/api.dart +++ b/clients/dart/iota_client/lib/api.dart @@ -41,15 +41,24 @@ part 'model/aws_exchange_credentials_project_token.dart'; part 'model/aws_exchange_credentials_project_token_ok.dart'; part 'model/aws_exchange_credentials_project_token_ok_credentials.dart'; part 'model/callback_input.dart'; +part 'model/callback_response_ok.dart'; +part 'model/callback_response_ok_redirect_response.dart'; 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_fetch_iota_vp_response_ok.dart'; +part 'model/cors_initiate_data_sharing_request_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'; +part 'model/fetch_iotavp_response_input.dart'; +part 'model/fetch_iotavp_response_ok.dart'; part 'model/get_iota_configuration_meta_data_ok.dart'; +part 'model/initiate_data_sharing_request_input.dart'; +part 'model/initiate_data_sharing_request_ok.dart'; +part 'model/initiate_data_sharing_request_ok_data.dart'; part 'model/invalid_parameter_error.dart'; part 'model/invalid_parameter_error_details_inner.dart'; part 'model/iota_configuration_dto.dart'; diff --git a/clients/dart/iota_client/lib/api/callback_api.dart b/clients/dart/iota_client/lib/api/callback_api.dart index 5694080c..9e89915c 100644 --- a/clients/dart/iota_client/lib/api/callback_api.dart +++ b/clients/dart/iota_client/lib/api/callback_api.dart @@ -59,7 +59,7 @@ class CallbackApi { /// /// * [CallbackInput] callbackInput (required): /// CallbackRequestInput - Future iotOIDC4VPCallback(CallbackInput callbackInput,) async { + Future iotOIDC4VPCallback(CallbackInput callbackInput,) async { final response = await iotOIDC4VPCallbackWithHttpInfo(callbackInput,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); @@ -68,7 +68,7 @@ class CallbackApi { // 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), 'Object',) as Object; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CallbackResponseOK',) as CallbackResponseOK; } return null; diff --git a/clients/dart/iota_client/lib/api/iota_api.dart b/clients/dart/iota_client/lib/api/iota_api.dart index c7825492..0ea78058 100644 --- a/clients/dart/iota_client/lib/api/iota_api.dart +++ b/clients/dart/iota_client/lib/api/iota_api.dart @@ -175,6 +175,114 @@ class IotaApi { } } + /// This will get the final data response + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [FetchIOTAVPResponseInput] fetchIOTAVPResponseInput (required): + /// FetchIOTAVPResponseInput + Future fetchIotaVpResponseWithHttpInfo(FetchIOTAVPResponseInput fetchIOTAVPResponseInput,) async { + // ignore: prefer_const_declarations + final path = r'/v1/fetch-iota-response'; + + // ignore: prefer_final_locals + Object? postBody = fetchIOTAVPResponseInput; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// This will get the final data response + /// + /// Parameters: + /// + /// * [FetchIOTAVPResponseInput] fetchIOTAVPResponseInput (required): + /// FetchIOTAVPResponseInput + Future fetchIotaVpResponse(FetchIOTAVPResponseInput fetchIOTAVPResponseInput,) async { + final response = await fetchIotaVpResponseWithHttpInfo(fetchIOTAVPResponseInput,); + 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), 'FetchIOTAVPResponseOK',) as FetchIOTAVPResponseOK; + + } + return null; + } + + /// This will initiate data sharing request for the data sharing flow + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [InitiateDataSharingRequestInput] initiateDataSharingRequestInput (required): + /// InitiateDataSharingRequestInput + Future initiateDataSharingRequestWithHttpInfo(InitiateDataSharingRequestInput initiateDataSharingRequestInput,) async { + // ignore: prefer_const_declarations + final path = r'/v1/initiate-data-sharing-request'; + + // ignore: prefer_final_locals + Object? postBody = initiateDataSharingRequestInput; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// This will initiate data sharing request for the data sharing flow + /// + /// Parameters: + /// + /// * [InitiateDataSharingRequestInput] initiateDataSharingRequestInput (required): + /// InitiateDataSharingRequestInput + Future initiateDataSharingRequest(InitiateDataSharingRequestInput initiateDataSharingRequestInput,) async { + final response = await initiateDataSharingRequestWithHttpInfo(initiateDataSharingRequestInput,); + 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), 'InitiateDataSharingRequestOK',) as InitiateDataSharingRequestOK; + + } + return null; + } + /// It exchanges limited token into cognito sts identity credentials /// /// 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 af0e5736..b2201d67 100644 --- a/clients/dart/iota_client/lib/api_client.dart +++ b/clients/dart/iota_client/lib/api_client.dart @@ -196,12 +196,20 @@ class ApiClient { return AwsExchangeCredentialsProjectTokenOKCredentials.fromJson(value); case 'CallbackInput': return CallbackInput.fromJson(value); + case 'CallbackResponseOK': + return CallbackResponseOK.fromJson(value); + case 'CallbackResponseOKRedirectResponse': + return CallbackResponseOKRedirectResponse.fromJson(value); case 'ConsentDto': return ConsentDto.fromJson(value); case 'CorsAwsExchangeCredentialsOK': return CorsAwsExchangeCredentialsOK.fromJson(value); case 'CorsAwsExchangeCredentialsProjectTokenOK': return CorsAwsExchangeCredentialsProjectTokenOK.fromJson(value); + case 'CorsFetchIotaVpResponseOK': + return CorsFetchIotaVpResponseOK.fromJson(value); + case 'CorsInitiateDataSharingRequestOK': + return CorsInitiateDataSharingRequestOK.fromJson(value); case 'CorsIotOidc4vpcallbackOK': return CorsIotOidc4vpcallbackOK.fromJson(value); case 'CorsIotaExchangeCredentialsOK': @@ -212,8 +220,18 @@ class ApiClient { return CreatePexQueryInput.fromJson(value); case 'DeletePexQueriesInput': return DeletePexQueriesInput.fromJson(value); + case 'FetchIOTAVPResponseInput': + return FetchIOTAVPResponseInput.fromJson(value); + case 'FetchIOTAVPResponseOK': + return FetchIOTAVPResponseOK.fromJson(value); case 'GetIotaConfigurationMetaDataOK': return GetIotaConfigurationMetaDataOK.fromJson(value); + case 'InitiateDataSharingRequestInput': + return InitiateDataSharingRequestInput.fromJson(value); + case 'InitiateDataSharingRequestOK': + return InitiateDataSharingRequestOK.fromJson(value); + case 'InitiateDataSharingRequestOKData': + return InitiateDataSharingRequestOKData.fromJson(value); case 'InvalidParameterError': return InvalidParameterError.fromJson(value); case 'InvalidParameterErrorDetailsInner': diff --git a/clients/dart/iota_client/lib/model/callback_response_ok.dart b/clients/dart/iota_client/lib/model/callback_response_ok.dart new file mode 100644 index 00000000..c2e0c405 --- /dev/null +++ b/clients/dart/iota_client/lib/model/callback_response_ok.dart @@ -0,0 +1,127 @@ +// +// 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 CallbackResponseOK { + /// Returns a new [CallbackResponseOK] instance. + CallbackResponseOK({ + required this.message, + this.redirectResponse, + }); + + /// A message to vault that flow is updated successfully + String message; + + /// + /// 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. + /// + CallbackResponseOKRedirectResponse? redirectResponse; + + @override + bool operator ==(Object other) => identical(this, other) || other is CallbackResponseOK && + other.message == message && + other.redirectResponse == redirectResponse; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (message.hashCode) + + (redirectResponse == null ? 0 : redirectResponse!.hashCode); + + @override + String toString() => 'CallbackResponseOK[message=$message, redirectResponse=$redirectResponse]'; + + Map toJson() { + final json = {}; + json[r'message'] = this.message; + if (this.redirectResponse != null) { + json[r'redirectResponse'] = this.redirectResponse; + } else { + json[r'redirectResponse'] = null; + } + return json; + } + + /// Returns a new [CallbackResponseOK] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static CallbackResponseOK? 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 "CallbackResponseOK[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CallbackResponseOK[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return CallbackResponseOK( + message: mapValueOfType(json, r'message')!, + redirectResponse: CallbackResponseOKRedirectResponse.fromJson(json[r'redirectResponse']), + ); + } + 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 = CallbackResponseOK.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 = CallbackResponseOK.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of CallbackResponseOK-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] = CallbackResponseOK.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'message', + }; +} + diff --git a/clients/dart/iota_client/lib/model/callback_response_ok_redirect_response.dart b/clients/dart/iota_client/lib/model/callback_response_ok_redirect_response.dart new file mode 100644 index 00000000..3a8e7e08 --- /dev/null +++ b/clients/dart/iota_client/lib/model/callback_response_ok_redirect_response.dart @@ -0,0 +1,137 @@ +// +// 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 CallbackResponseOKRedirectResponse { + /// Returns a new [CallbackResponseOKRedirectResponse] instance. + CallbackResponseOKRedirectResponse({ + this.redirectUri, + this.responseCode, + }); + + /// the configured redirect url where vault will 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; + + /// Code which will be used to retrieve data along with transactionId + /// + /// 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? responseCode; + + @override + bool operator ==(Object other) => identical(this, other) || other is CallbackResponseOKRedirectResponse && + other.redirectUri == redirectUri && + other.responseCode == responseCode; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (redirectUri == null ? 0 : redirectUri!.hashCode) + + (responseCode == null ? 0 : responseCode!.hashCode); + + @override + String toString() => 'CallbackResponseOKRedirectResponse[redirectUri=$redirectUri, responseCode=$responseCode]'; + + Map toJson() { + final json = {}; + if (this.redirectUri != null) { + json[r'redirectUri'] = this.redirectUri; + } else { + json[r'redirectUri'] = null; + } + if (this.responseCode != null) { + json[r'responseCode'] = this.responseCode; + } else { + json[r'responseCode'] = null; + } + return json; + } + + /// Returns a new [CallbackResponseOKRedirectResponse] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static CallbackResponseOKRedirectResponse? 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 "CallbackResponseOKRedirectResponse[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CallbackResponseOKRedirectResponse[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return CallbackResponseOKRedirectResponse( + redirectUri: mapValueOfType(json, r'redirectUri'), + responseCode: mapValueOfType(json, r'responseCode'), + ); + } + 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 = CallbackResponseOKRedirectResponse.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 = CallbackResponseOKRedirectResponse.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of CallbackResponseOKRedirectResponse-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] = CallbackResponseOKRedirectResponse.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/cors_fetch_iota_vp_response_ok.dart b/clients/dart/iota_client/lib/model/cors_fetch_iota_vp_response_ok.dart new file mode 100644 index 00000000..d3869ec0 --- /dev/null +++ b/clients/dart/iota_client/lib/model/cors_fetch_iota_vp_response_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 CorsFetchIotaVpResponseOK { + /// Returns a new [CorsFetchIotaVpResponseOK] instance. + CorsFetchIotaVpResponseOK({ + this.corsFetchIotaVpResponseOk, + }); + + /// + /// 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? corsFetchIotaVpResponseOk; + + @override + bool operator ==(Object other) => identical(this, other) || other is CorsFetchIotaVpResponseOK && + other.corsFetchIotaVpResponseOk == corsFetchIotaVpResponseOk; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (corsFetchIotaVpResponseOk == null ? 0 : corsFetchIotaVpResponseOk!.hashCode); + + @override + String toString() => 'CorsFetchIotaVpResponseOK[corsFetchIotaVpResponseOk=$corsFetchIotaVpResponseOk]'; + + Map toJson() { + final json = {}; + if (this.corsFetchIotaVpResponseOk != null) { + json[r'corsFetchIotaVpResponseOk'] = this.corsFetchIotaVpResponseOk; + } else { + json[r'corsFetchIotaVpResponseOk'] = null; + } + return json; + } + + /// Returns a new [CorsFetchIotaVpResponseOK] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static CorsFetchIotaVpResponseOK? 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 "CorsFetchIotaVpResponseOK[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CorsFetchIotaVpResponseOK[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return CorsFetchIotaVpResponseOK( + corsFetchIotaVpResponseOk: mapValueOfType(json, r'corsFetchIotaVpResponseOk'), + ); + } + 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 = CorsFetchIotaVpResponseOK.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 = CorsFetchIotaVpResponseOK.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of CorsFetchIotaVpResponseOK-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] = CorsFetchIotaVpResponseOK.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/cors_initiate_data_sharing_request_ok.dart b/clients/dart/iota_client/lib/model/cors_initiate_data_sharing_request_ok.dart new file mode 100644 index 00000000..fb7650e5 --- /dev/null +++ b/clients/dart/iota_client/lib/model/cors_initiate_data_sharing_request_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 CorsInitiateDataSharingRequestOK { + /// Returns a new [CorsInitiateDataSharingRequestOK] instance. + CorsInitiateDataSharingRequestOK({ + this.corsInitiateDataSharingRequestOk, + }); + + /// + /// 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? corsInitiateDataSharingRequestOk; + + @override + bool operator ==(Object other) => identical(this, other) || other is CorsInitiateDataSharingRequestOK && + other.corsInitiateDataSharingRequestOk == corsInitiateDataSharingRequestOk; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (corsInitiateDataSharingRequestOk == null ? 0 : corsInitiateDataSharingRequestOk!.hashCode); + + @override + String toString() => 'CorsInitiateDataSharingRequestOK[corsInitiateDataSharingRequestOk=$corsInitiateDataSharingRequestOk]'; + + Map toJson() { + final json = {}; + if (this.corsInitiateDataSharingRequestOk != null) { + json[r'corsInitiateDataSharingRequestOk'] = this.corsInitiateDataSharingRequestOk; + } else { + json[r'corsInitiateDataSharingRequestOk'] = null; + } + return json; + } + + /// Returns a new [CorsInitiateDataSharingRequestOK] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static CorsInitiateDataSharingRequestOK? 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 "CorsInitiateDataSharingRequestOK[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CorsInitiateDataSharingRequestOK[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return CorsInitiateDataSharingRequestOK( + corsInitiateDataSharingRequestOk: mapValueOfType(json, r'corsInitiateDataSharingRequestOk'), + ); + } + 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 = CorsInitiateDataSharingRequestOK.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 = CorsInitiateDataSharingRequestOK.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of CorsInitiateDataSharingRequestOK-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] = CorsInitiateDataSharingRequestOK.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/create_iota_configuration_input.dart b/clients/dart/iota_client/lib/model/create_iota_configuration_input.dart index 3c0a0059..fa826b29 100644 --- a/clients/dart/iota_client/lib/model/create_iota_configuration_input.dart +++ b/clients/dart/iota_client/lib/model/create_iota_configuration_input.dart @@ -21,6 +21,8 @@ class CreateIotaConfigurationInput { required this.enableConsentAuditLog, this.tokenMaxAge, required this.clientMetadata, + this.mode = const CreateIotaConfigurationInputModeEnum._('websocket'), + this.redirectUris = const [], }); /// The name of the configuration @@ -64,6 +66,12 @@ class CreateIotaConfigurationInput { 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. + CreateIotaConfigurationInputModeEnum 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. + List redirectUris; + @override bool operator ==(Object other) => identical(this, other) || other is CreateIotaConfigurationInput && other.name == name && @@ -73,7 +81,9 @@ class CreateIotaConfigurationInput { other.enableVerification == enableVerification && other.enableConsentAuditLog == enableConsentAuditLog && other.tokenMaxAge == tokenMaxAge && - other.clientMetadata == clientMetadata; + other.clientMetadata == clientMetadata && + other.mode == mode && + _deepEquality.equals(other.redirectUris, redirectUris); @override int get hashCode => @@ -85,10 +95,12 @@ class CreateIotaConfigurationInput { (enableVerification.hashCode) + (enableConsentAuditLog.hashCode) + (tokenMaxAge == null ? 0 : tokenMaxAge!.hashCode) + - (clientMetadata.hashCode); + (clientMetadata.hashCode) + + (mode.hashCode) + + (redirectUris.hashCode); @override - String toString() => 'CreateIotaConfigurationInput[name=$name, description=$description, walletAri=$walletAri, iotaResponseWebhookURL=$iotaResponseWebhookURL, enableVerification=$enableVerification, enableConsentAuditLog=$enableConsentAuditLog, tokenMaxAge=$tokenMaxAge, clientMetadata=$clientMetadata]'; + String toString() => 'CreateIotaConfigurationInput[name=$name, description=$description, walletAri=$walletAri, iotaResponseWebhookURL=$iotaResponseWebhookURL, enableVerification=$enableVerification, enableConsentAuditLog=$enableConsentAuditLog, tokenMaxAge=$tokenMaxAge, clientMetadata=$clientMetadata, mode=$mode, redirectUris=$redirectUris]'; Map toJson() { final json = {}; @@ -112,6 +124,8 @@ class CreateIotaConfigurationInput { json[r'tokenMaxAge'] = null; } json[r'clientMetadata'] = this.clientMetadata; + json[r'mode'] = this.mode; + json[r'redirectUris'] = this.redirectUris; return json; } @@ -142,6 +156,10 @@ class CreateIotaConfigurationInput { enableConsentAuditLog: mapValueOfType(json, r'enableConsentAuditLog')!, tokenMaxAge: mapValueOfType(json, r'tokenMaxAge'), clientMetadata: IotaConfigurationDtoClientMetadata.fromJson(json[r'clientMetadata'])!, + mode: CreateIotaConfigurationInputModeEnum.fromJson(json[r'mode']) ?? 'websocket', + redirectUris: json[r'redirectUris'] is Iterable + ? (json[r'redirectUris'] as Iterable).cast().toList(growable: false) + : const [], ); } return null; @@ -197,3 +215,77 @@ class CreateIotaConfigurationInput { }; } +/// 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 CreateIotaConfigurationInputModeEnum { + /// Instantiate a new enum with the provided [value]. + const CreateIotaConfigurationInputModeEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const redirect = CreateIotaConfigurationInputModeEnum._(r'redirect'); + static const websocket = CreateIotaConfigurationInputModeEnum._(r'websocket'); + + /// List of all possible values in this [enum][CreateIotaConfigurationInputModeEnum]. + static const values = [ + redirect, + websocket, + ]; + + static CreateIotaConfigurationInputModeEnum? fromJson(dynamic value) => CreateIotaConfigurationInputModeEnumTypeTransformer().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 = CreateIotaConfigurationInputModeEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [CreateIotaConfigurationInputModeEnum] to String, +/// and [decode] dynamic data back to [CreateIotaConfigurationInputModeEnum]. +class CreateIotaConfigurationInputModeEnumTypeTransformer { + factory CreateIotaConfigurationInputModeEnumTypeTransformer() => _instance ??= const CreateIotaConfigurationInputModeEnumTypeTransformer._(); + + const CreateIotaConfigurationInputModeEnumTypeTransformer._(); + + String encode(CreateIotaConfigurationInputModeEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a CreateIotaConfigurationInputModeEnum. + /// + /// 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. + CreateIotaConfigurationInputModeEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'redirect': return CreateIotaConfigurationInputModeEnum.redirect; + case r'websocket': return CreateIotaConfigurationInputModeEnum.websocket; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [CreateIotaConfigurationInputModeEnumTypeTransformer] instance. + static CreateIotaConfigurationInputModeEnumTypeTransformer? _instance; +} + + 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 new file mode 100644 index 00000000..f334c2ea --- /dev/null +++ b/clients/dart/iota_client/lib/model/fetch_iotavp_response_input.dart @@ -0,0 +1,128 @@ +// +// 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 FetchIOTAVPResponseInput { + /// Returns a new [FetchIOTAVPResponseInput] instance. + FetchIOTAVPResponseInput({ + required this.correlationId, + required this.transactionId, + required this.responseCode, + }); + + /// The correlation ID + String correlationId; + + /// The transaction ID + String transactionId; + + /// The response code. + String responseCode; + + @override + bool operator ==(Object other) => identical(this, other) || other is FetchIOTAVPResponseInput && + other.correlationId == correlationId && + other.transactionId == transactionId && + other.responseCode == responseCode; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (correlationId.hashCode) + + (transactionId.hashCode) + + (responseCode.hashCode); + + @override + String toString() => 'FetchIOTAVPResponseInput[correlationId=$correlationId, transactionId=$transactionId, responseCode=$responseCode]'; + + Map toJson() { + final json = {}; + json[r'correlationId'] = this.correlationId; + json[r'transactionId'] = this.transactionId; + json[r'responseCode'] = this.responseCode; + return json; + } + + /// Returns a new [FetchIOTAVPResponseInput] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static FetchIOTAVPResponseInput? 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 "FetchIOTAVPResponseInput[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FetchIOTAVPResponseInput[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return FetchIOTAVPResponseInput( + correlationId: mapValueOfType(json, r'correlationId')!, + transactionId: mapValueOfType(json, r'transactionId')!, + responseCode: mapValueOfType(json, r'responseCode')!, + ); + } + 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 = FetchIOTAVPResponseInput.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 = FetchIOTAVPResponseInput.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of FetchIOTAVPResponseInput-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] = FetchIOTAVPResponseInput.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'correlationId', + 'transactionId', + 'responseCode', + }; +} + diff --git a/clients/dart/iota_client/lib/model/fetch_iotavp_response_ok.dart b/clients/dart/iota_client/lib/model/fetch_iotavp_response_ok.dart new file mode 100644 index 00000000..e99ee04a --- /dev/null +++ b/clients/dart/iota_client/lib/model/fetch_iotavp_response_ok.dart @@ -0,0 +1,155 @@ +// +// 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 FetchIOTAVPResponseOK { + /// Returns a new [FetchIOTAVPResponseOK] instance. + FetchIOTAVPResponseOK({ + this.correlationId, + this.presentationSubmission, + this.vpToken, + }); + + /// A correlationId used for the flow + /// + /// 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? correlationId; + + /// A string that must be a valid JSON object. The structure of presentation submission should follow OID4VP standard. + /// + /// 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? presentationSubmission; + + /// A string that must be a valid JSON object. Ensure to escape special characters properly.. + /// + /// 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? vpToken; + + @override + bool operator ==(Object other) => identical(this, other) || other is FetchIOTAVPResponseOK && + other.correlationId == correlationId && + other.presentationSubmission == presentationSubmission && + other.vpToken == vpToken; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (correlationId == null ? 0 : correlationId!.hashCode) + + (presentationSubmission == null ? 0 : presentationSubmission!.hashCode) + + (vpToken == null ? 0 : vpToken!.hashCode); + + @override + String toString() => 'FetchIOTAVPResponseOK[correlationId=$correlationId, presentationSubmission=$presentationSubmission, vpToken=$vpToken]'; + + Map toJson() { + final json = {}; + if (this.correlationId != null) { + json[r'correlationId'] = this.correlationId; + } else { + json[r'correlationId'] = null; + } + if (this.presentationSubmission != null) { + json[r'presentation_submission'] = this.presentationSubmission; + } else { + json[r'presentation_submission'] = null; + } + if (this.vpToken != null) { + json[r'vp_token'] = this.vpToken; + } else { + json[r'vp_token'] = null; + } + return json; + } + + /// Returns a new [FetchIOTAVPResponseOK] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static FetchIOTAVPResponseOK? 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 "FetchIOTAVPResponseOK[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "FetchIOTAVPResponseOK[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return FetchIOTAVPResponseOK( + correlationId: mapValueOfType(json, r'correlationId'), + presentationSubmission: mapValueOfType(json, r'presentation_submission'), + vpToken: mapValueOfType(json, r'vp_token'), + ); + } + 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 = FetchIOTAVPResponseOK.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 = FetchIOTAVPResponseOK.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of FetchIOTAVPResponseOK-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] = FetchIOTAVPResponseOK.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/initiate_data_sharing_request_input.dart b/clients/dart/iota_client/lib/model/initiate_data_sharing_request_input.dart new file mode 100644 index 00000000..957e9674 --- /dev/null +++ b/clients/dart/iota_client/lib/model/initiate_data_sharing_request_input.dart @@ -0,0 +1,153 @@ +// +// 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 InitiateDataSharingRequestInput { + /// Returns a new [InitiateDataSharingRequestInput] instance. + InitiateDataSharingRequestInput({ + required this.queryId, + required this.correlationId, + this.tokenMaxAge, + required this.nonce, + required this.redirectUri, + }); + + String queryId; + + String correlationId; + + /// token time to live in seconds + /// + /// 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. + /// + int? tokenMaxAge; + + /// Random value used to prevent replay attacks + String nonce; + + /// 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; + + @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; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (queryId.hashCode) + + (correlationId.hashCode) + + (tokenMaxAge == null ? 0 : tokenMaxAge!.hashCode) + + (nonce.hashCode) + + (redirectUri.hashCode); + + @override + String toString() => 'InitiateDataSharingRequestInput[queryId=$queryId, correlationId=$correlationId, tokenMaxAge=$tokenMaxAge, nonce=$nonce, redirectUri=$redirectUri]'; + + Map toJson() { + final json = {}; + json[r'queryId'] = this.queryId; + json[r'correlationId'] = this.correlationId; + if (this.tokenMaxAge != null) { + json[r'tokenMaxAge'] = this.tokenMaxAge; + } else { + json[r'tokenMaxAge'] = null; + } + json[r'nonce'] = this.nonce; + json[r'redirectUri'] = this.redirectUri; + return json; + } + + /// Returns a new [InitiateDataSharingRequestInput] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static InitiateDataSharingRequestInput? 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 "InitiateDataSharingRequestInput[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "InitiateDataSharingRequestInput[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return InitiateDataSharingRequestInput( + queryId: mapValueOfType(json, r'queryId')!, + correlationId: mapValueOfType(json, r'correlationId')!, + tokenMaxAge: mapValueOfType(json, r'tokenMaxAge'), + nonce: mapValueOfType(json, r'nonce')!, + redirectUri: mapValueOfType(json, r'redirectUri')!, + ); + } + 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 = InitiateDataSharingRequestInput.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 = InitiateDataSharingRequestInput.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of InitiateDataSharingRequestInput-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] = InitiateDataSharingRequestInput.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'queryId', + 'correlationId', + 'nonce', + 'redirectUri', + }; +} + diff --git a/clients/dart/iota_client/lib/model/initiate_data_sharing_request_ok.dart b/clients/dart/iota_client/lib/model/initiate_data_sharing_request_ok.dart new file mode 100644 index 00000000..ed8cf2f9 --- /dev/null +++ b/clients/dart/iota_client/lib/model/initiate_data_sharing_request_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 InitiateDataSharingRequestOK { + /// Returns a new [InitiateDataSharingRequestOK] instance. + InitiateDataSharingRequestOK({ + this.data, + }); + + /// + /// 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. + /// + InitiateDataSharingRequestOKData? data; + + @override + bool operator ==(Object other) => identical(this, other) || other is InitiateDataSharingRequestOK && + other.data == data; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (data == null ? 0 : data!.hashCode); + + @override + String toString() => 'InitiateDataSharingRequestOK[data=$data]'; + + Map toJson() { + final json = {}; + if (this.data != null) { + json[r'data'] = this.data; + } else { + json[r'data'] = null; + } + return json; + } + + /// Returns a new [InitiateDataSharingRequestOK] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static InitiateDataSharingRequestOK? 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 "InitiateDataSharingRequestOK[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "InitiateDataSharingRequestOK[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return InitiateDataSharingRequestOK( + data: InitiateDataSharingRequestOKData.fromJson(json[r'data']), + ); + } + 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 = InitiateDataSharingRequestOK.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 = InitiateDataSharingRequestOK.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of InitiateDataSharingRequestOK-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] = InitiateDataSharingRequestOK.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/initiate_data_sharing_request_ok_data.dart b/clients/dart/iota_client/lib/model/initiate_data_sharing_request_ok_data.dart new file mode 100644 index 00000000..35c042c0 --- /dev/null +++ b/clients/dart/iota_client/lib/model/initiate_data_sharing_request_ok_data.dart @@ -0,0 +1,125 @@ +// +// 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 InitiateDataSharingRequestOKData { + /// Returns a new [InitiateDataSharingRequestOKData] instance. + InitiateDataSharingRequestOKData({ + required this.jwt, + required this.correlationId, + required this.transactionId, + }); + + String jwt; + + String correlationId; + + String transactionId; + + @override + bool operator ==(Object other) => identical(this, other) || other is InitiateDataSharingRequestOKData && + other.jwt == jwt && + other.correlationId == correlationId && + other.transactionId == transactionId; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (jwt.hashCode) + + (correlationId.hashCode) + + (transactionId.hashCode); + + @override + String toString() => 'InitiateDataSharingRequestOKData[jwt=$jwt, correlationId=$correlationId, transactionId=$transactionId]'; + + Map toJson() { + final json = {}; + json[r'jwt'] = this.jwt; + json[r'correlationId'] = this.correlationId; + json[r'transactionId'] = this.transactionId; + return json; + } + + /// Returns a new [InitiateDataSharingRequestOKData] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static InitiateDataSharingRequestOKData? 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 "InitiateDataSharingRequestOKData[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "InitiateDataSharingRequestOKData[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return InitiateDataSharingRequestOKData( + jwt: mapValueOfType(json, r'jwt')!, + correlationId: mapValueOfType(json, r'correlationId')!, + transactionId: mapValueOfType(json, r'transactionId')!, + ); + } + 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 = InitiateDataSharingRequestOKData.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 = InitiateDataSharingRequestOKData.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of InitiateDataSharingRequestOKData-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] = InitiateDataSharingRequestOKData.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'jwt', + 'correlationId', + 'transactionId', + }; +} + diff --git a/clients/dart/iota_client/lib/model/iota_configuration_dto.dart b/clients/dart/iota_client/lib/model/iota_configuration_dto.dart index d33408ba..ad2fd8ad 100644 --- a/clients/dart/iota_client/lib/model/iota_configuration_dto.dart +++ b/clients/dart/iota_client/lib/model/iota_configuration_dto.dart @@ -23,6 +23,8 @@ class IotaConfigurationDto { required this.enableVerification, required this.enableConsentAuditLog, required this.clientMetadata, + this.mode = const IotaConfigurationDtoModeEnum._('websocket'), + this.redirectUris = const [], }); /// The ARI of the config @@ -56,6 +58,12 @@ class IotaConfigurationDto { 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. + IotaConfigurationDtoModeEnum mode; + + /// the URLs 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 IotaConfigurationDto && other.ari == ari && @@ -67,7 +75,9 @@ class IotaConfigurationDto { other.iotaResponseWebhookURL == iotaResponseWebhookURL && other.enableVerification == enableVerification && other.enableConsentAuditLog == enableConsentAuditLog && - other.clientMetadata == clientMetadata; + other.clientMetadata == clientMetadata && + other.mode == mode && + _deepEquality.equals(other.redirectUris, redirectUris); @override int get hashCode => @@ -81,10 +91,12 @@ class IotaConfigurationDto { (iotaResponseWebhookURL == null ? 0 : iotaResponseWebhookURL!.hashCode) + (enableVerification.hashCode) + (enableConsentAuditLog.hashCode) + - (clientMetadata.hashCode); + (clientMetadata.hashCode) + + (mode.hashCode) + + (redirectUris.hashCode); @override - String toString() => 'IotaConfigurationDto[ari=$ari, configurationId=$configurationId, name=$name, projectId=$projectId, walletAri=$walletAri, tokenMaxAge=$tokenMaxAge, iotaResponseWebhookURL=$iotaResponseWebhookURL, enableVerification=$enableVerification, enableConsentAuditLog=$enableConsentAuditLog, clientMetadata=$clientMetadata]'; + String toString() => 'IotaConfigurationDto[ari=$ari, configurationId=$configurationId, name=$name, projectId=$projectId, walletAri=$walletAri, tokenMaxAge=$tokenMaxAge, iotaResponseWebhookURL=$iotaResponseWebhookURL, enableVerification=$enableVerification, enableConsentAuditLog=$enableConsentAuditLog, clientMetadata=$clientMetadata, mode=$mode, redirectUris=$redirectUris]'; Map toJson() { final json = {}; @@ -102,6 +114,8 @@ class IotaConfigurationDto { json[r'enableVerification'] = this.enableVerification; json[r'enableConsentAuditLog'] = this.enableConsentAuditLog; json[r'clientMetadata'] = this.clientMetadata; + json[r'mode'] = this.mode; + json[r'redirectUris'] = this.redirectUris; return json; } @@ -134,6 +148,10 @@ class IotaConfigurationDto { enableVerification: mapValueOfType(json, r'enableVerification')!, enableConsentAuditLog: mapValueOfType(json, r'enableConsentAuditLog')!, clientMetadata: IotaConfigurationDtoClientMetadata.fromJson(json[r'clientMetadata'])!, + mode: IotaConfigurationDtoModeEnum.fromJson(json[r'mode']) ?? 'websocket', + redirectUris: json[r'redirectUris'] is Iterable + ? (json[r'redirectUris'] as Iterable).cast().toList(growable: false) + : const [], ); } return null; @@ -193,3 +211,77 @@ class IotaConfigurationDto { }; } +/// 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 IotaConfigurationDtoModeEnum { + /// Instantiate a new enum with the provided [value]. + const IotaConfigurationDtoModeEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const redirect = IotaConfigurationDtoModeEnum._(r'redirect'); + static const websocket = IotaConfigurationDtoModeEnum._(r'websocket'); + + /// List of all possible values in this [enum][IotaConfigurationDtoModeEnum]. + static const values = [ + redirect, + websocket, + ]; + + static IotaConfigurationDtoModeEnum? fromJson(dynamic value) => IotaConfigurationDtoModeEnumTypeTransformer().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 = IotaConfigurationDtoModeEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [IotaConfigurationDtoModeEnum] to String, +/// and [decode] dynamic data back to [IotaConfigurationDtoModeEnum]. +class IotaConfigurationDtoModeEnumTypeTransformer { + factory IotaConfigurationDtoModeEnumTypeTransformer() => _instance ??= const IotaConfigurationDtoModeEnumTypeTransformer._(); + + const IotaConfigurationDtoModeEnumTypeTransformer._(); + + String encode(IotaConfigurationDtoModeEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a IotaConfigurationDtoModeEnum. + /// + /// 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. + IotaConfigurationDtoModeEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'redirect': return IotaConfigurationDtoModeEnum.redirect; + case r'websocket': return IotaConfigurationDtoModeEnum.websocket; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [IotaConfigurationDtoModeEnumTypeTransformer] instance. + static IotaConfigurationDtoModeEnumTypeTransformer? _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 9976c227..c5f4c538 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,6 +21,8 @@ class UpdateConfigurationByIdInput { this.tokenMaxAge, this.description, this.clientMetadata, + this.mode, + this.redirectUri, }); /// The name of the config @@ -92,6 +94,18 @@ 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; + + /// 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; + @override bool operator ==(Object other) => identical(this, other) || other is UpdateConfigurationByIdInput && other.name == name && @@ -101,7 +115,9 @@ class UpdateConfigurationByIdInput { other.enableConsentAuditLog == enableConsentAuditLog && other.tokenMaxAge == tokenMaxAge && other.description == description && - other.clientMetadata == clientMetadata; + other.clientMetadata == clientMetadata && + other.mode == mode && + other.redirectUri == redirectUri; @override int get hashCode => @@ -113,10 +129,12 @@ class UpdateConfigurationByIdInput { (enableConsentAuditLog == null ? 0 : enableConsentAuditLog!.hashCode) + (tokenMaxAge == null ? 0 : tokenMaxAge!.hashCode) + (description == null ? 0 : description!.hashCode) + - (clientMetadata == null ? 0 : clientMetadata!.hashCode); + (clientMetadata == null ? 0 : clientMetadata!.hashCode) + + (mode == null ? 0 : mode!.hashCode) + + (redirectUri == null ? 0 : redirectUri!.hashCode); @override - String toString() => 'UpdateConfigurationByIdInput[name=$name, walletAri=$walletAri, iotaResponseWebhookURL=$iotaResponseWebhookURL, enableVerification=$enableVerification, enableConsentAuditLog=$enableConsentAuditLog, tokenMaxAge=$tokenMaxAge, description=$description, clientMetadata=$clientMetadata]'; + String toString() => 'UpdateConfigurationByIdInput[name=$name, walletAri=$walletAri, iotaResponseWebhookURL=$iotaResponseWebhookURL, enableVerification=$enableVerification, enableConsentAuditLog=$enableConsentAuditLog, tokenMaxAge=$tokenMaxAge, description=$description, clientMetadata=$clientMetadata, mode=$mode, redirectUri=$redirectUri]'; Map toJson() { final json = {}; @@ -160,6 +178,16 @@ 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; + } return json; } @@ -190,6 +218,8 @@ 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'), ); } return null; @@ -240,3 +270,77 @@ class UpdateConfigurationByIdInput { }; } +/// 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 UpdateConfigurationByIdInputModeEnum { + /// Instantiate a new enum with the provided [value]. + const UpdateConfigurationByIdInputModeEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const redirect = UpdateConfigurationByIdInputModeEnum._(r'redirect'); + static const websocket = UpdateConfigurationByIdInputModeEnum._(r'websocket'); + + /// List of all possible values in this [enum][UpdateConfigurationByIdInputModeEnum]. + static const values = [ + redirect, + websocket, + ]; + + static UpdateConfigurationByIdInputModeEnum? fromJson(dynamic value) => UpdateConfigurationByIdInputModeEnumTypeTransformer().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 = UpdateConfigurationByIdInputModeEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [UpdateConfigurationByIdInputModeEnum] to String, +/// and [decode] dynamic data back to [UpdateConfigurationByIdInputModeEnum]. +class UpdateConfigurationByIdInputModeEnumTypeTransformer { + factory UpdateConfigurationByIdInputModeEnumTypeTransformer() => _instance ??= const UpdateConfigurationByIdInputModeEnumTypeTransformer._(); + + const UpdateConfigurationByIdInputModeEnumTypeTransformer._(); + + String encode(UpdateConfigurationByIdInputModeEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a UpdateConfigurationByIdInputModeEnum. + /// + /// 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. + UpdateConfigurationByIdInputModeEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'redirect': return UpdateConfigurationByIdInputModeEnum.redirect; + case r'websocket': return UpdateConfigurationByIdInputModeEnum.websocket; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [UpdateConfigurationByIdInputModeEnumTypeTransformer] instance. + static UpdateConfigurationByIdInputModeEnumTypeTransformer? _instance; +} + + diff --git a/clients/dart/iota_client/test/callback_response_ok_redirect_response_test.dart b/clients/dart/iota_client/test/callback_response_ok_redirect_response_test.dart new file mode 100644 index 00000000..d1213209 --- /dev/null +++ b/clients/dart/iota_client/test/callback_response_ok_redirect_response_test.dart @@ -0,0 +1,34 @@ +// +// 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 CallbackResponseOKRedirectResponse +void main() { + // final instance = CallbackResponseOKRedirectResponse(); + + group('test CallbackResponseOKRedirectResponse', () { + // the configured redirect url where vault will redirect + // String redirectUri + test('to test the property `redirectUri`', () async { + // TODO + }); + + // Code which will be used to retrieve data along with transactionId + // String responseCode + test('to test the property `responseCode`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/callback_response_ok_test.dart b/clients/dart/iota_client/test/callback_response_ok_test.dart new file mode 100644 index 00000000..05baef11 --- /dev/null +++ b/clients/dart/iota_client/test/callback_response_ok_test.dart @@ -0,0 +1,33 @@ +// +// 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 CallbackResponseOK +void main() { + // final instance = CallbackResponseOK(); + + group('test CallbackResponseOK', () { + // A message to vault that flow is updated successfully + // String message + test('to test the property `message`', () async { + // TODO + }); + + // CallbackResponseOKRedirectResponse redirectResponse + test('to test the property `redirectResponse`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/cors_fetch_iota_vp_response_ok_test.dart b/clients/dart/iota_client/test/cors_fetch_iota_vp_response_ok_test.dart new file mode 100644 index 00000000..e5dae050 --- /dev/null +++ b/clients/dart/iota_client/test/cors_fetch_iota_vp_response_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 CorsFetchIotaVpResponseOK +void main() { + // final instance = CorsFetchIotaVpResponseOK(); + + group('test CorsFetchIotaVpResponseOK', () { + // String corsFetchIotaVpResponseOk + test('to test the property `corsFetchIotaVpResponseOk`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/cors_initiate_data_sharing_request_ok_test.dart b/clients/dart/iota_client/test/cors_initiate_data_sharing_request_ok_test.dart new file mode 100644 index 00000000..f3b04d83 --- /dev/null +++ b/clients/dart/iota_client/test/cors_initiate_data_sharing_request_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 CorsInitiateDataSharingRequestOK +void main() { + // final instance = CorsInitiateDataSharingRequestOK(); + + group('test CorsInitiateDataSharingRequestOK', () { + // String corsInitiateDataSharingRequestOk + test('to test the property `corsInitiateDataSharingRequestOk`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/fetch_iotavp_response_input_test.dart b/clients/dart/iota_client/test/fetch_iotavp_response_input_test.dart new file mode 100644 index 00000000..1ab88d25 --- /dev/null +++ b/clients/dart/iota_client/test/fetch_iotavp_response_input_test.dart @@ -0,0 +1,40 @@ +// +// 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 FetchIOTAVPResponseInput +void main() { + // final instance = FetchIOTAVPResponseInput(); + + group('test FetchIOTAVPResponseInput', () { + // The correlation ID + // String correlationId + test('to test the property `correlationId`', () async { + // TODO + }); + + // The transaction ID + // String transactionId + test('to test the property `transactionId`', () async { + // TODO + }); + + // The response code. + // String responseCode + test('to test the property `responseCode`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/fetch_iotavp_response_ok_test.dart b/clients/dart/iota_client/test/fetch_iotavp_response_ok_test.dart new file mode 100644 index 00000000..781833e5 --- /dev/null +++ b/clients/dart/iota_client/test/fetch_iotavp_response_ok_test.dart @@ -0,0 +1,40 @@ +// +// 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 FetchIOTAVPResponseOK +void main() { + // final instance = FetchIOTAVPResponseOK(); + + group('test FetchIOTAVPResponseOK', () { + // A correlationId used for the flow + // String correlationId + test('to test the property `correlationId`', () async { + // TODO + }); + + // A string that must be a valid JSON object. The structure of presentation submission should follow OID4VP standard. + // String presentationSubmission + test('to test the property `presentationSubmission`', () async { + // TODO + }); + + // A string that must be a valid JSON object. Ensure to escape special characters properly.. + // String vpToken + test('to test the property `vpToken`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/initiate_data_sharing_request_input_test.dart b/clients/dart/iota_client/test/initiate_data_sharing_request_input_test.dart new file mode 100644 index 00000000..44460603 --- /dev/null +++ b/clients/dart/iota_client/test/initiate_data_sharing_request_input_test.dart @@ -0,0 +1,50 @@ +// +// 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 InitiateDataSharingRequestInput +void main() { + // final instance = InitiateDataSharingRequestInput(); + + group('test InitiateDataSharingRequestInput', () { + // String queryId + test('to test the property `queryId`', () async { + // TODO + }); + + // String correlationId + test('to test the property `correlationId`', () async { + // TODO + }); + + // token time to live in seconds + // int tokenMaxAge + test('to test the property `tokenMaxAge`', () async { + // TODO + }); + + // Random value used to prevent replay attacks + // String nonce + test('to test the property `nonce`', () async { + // TODO + }); + + // 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 + test('to test the property `redirectUri`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/initiate_data_sharing_request_ok_data_test.dart b/clients/dart/iota_client/test/initiate_data_sharing_request_ok_data_test.dart new file mode 100644 index 00000000..158c7871 --- /dev/null +++ b/clients/dart/iota_client/test/initiate_data_sharing_request_ok_data_test.dart @@ -0,0 +1,37 @@ +// +// 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 InitiateDataSharingRequestOKData +void main() { + // final instance = InitiateDataSharingRequestOKData(); + + group('test InitiateDataSharingRequestOKData', () { + // String jwt + test('to test the property `jwt`', () async { + // TODO + }); + + // String correlationId + test('to test the property `correlationId`', () async { + // TODO + }); + + // String transactionId + test('to test the property `transactionId`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/test/initiate_data_sharing_request_ok_test.dart b/clients/dart/iota_client/test/initiate_data_sharing_request_ok_test.dart new file mode 100644 index 00000000..e3abb952 --- /dev/null +++ b/clients/dart/iota_client/test/initiate_data_sharing_request_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 InitiateDataSharingRequestOK +void main() { + // final instance = InitiateDataSharingRequestOK(); + + group('test InitiateDataSharingRequestOK', () { + // InitiateDataSharingRequestOKData data + test('to test the property `data`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/python/iota_client/.openapi-generator/FILES b/clients/python/iota_client/.openapi-generator/FILES index 6520db30..4ceef4c3 100644 --- a/clients/python/iota_client/.openapi-generator/FILES +++ b/clients/python/iota_client/.openapi-generator/FILES @@ -22,15 +22,24 @@ affinidi_tdk_iota_client/models/aws_exchange_credentials_project_token.py affinidi_tdk_iota_client/models/aws_exchange_credentials_project_token_ok.py affinidi_tdk_iota_client/models/aws_exchange_credentials_project_token_ok_credentials.py affinidi_tdk_iota_client/models/callback_input.py +affinidi_tdk_iota_client/models/callback_response_ok.py +affinidi_tdk_iota_client/models/callback_response_ok_redirect_response.py 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_fetch_iota_vp_response_ok.py +affinidi_tdk_iota_client/models/cors_initiate_data_sharing_request_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 +affinidi_tdk_iota_client/models/fetch_iotavp_response_input.py +affinidi_tdk_iota_client/models/fetch_iotavp_response_ok.py affinidi_tdk_iota_client/models/get_iota_configuration_meta_data_ok.py +affinidi_tdk_iota_client/models/initiate_data_sharing_request_input.py +affinidi_tdk_iota_client/models/initiate_data_sharing_request_ok.py +affinidi_tdk_iota_client/models/initiate_data_sharing_request_ok_data.py 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 @@ -65,17 +74,26 @@ docs/AwsExchangeCredentialsProjectTokenOK.md docs/AwsExchangeCredentialsProjectTokenOKCredentials.md docs/CallbackApi.md docs/CallbackInput.md +docs/CallbackResponseOK.md +docs/CallbackResponseOKRedirectResponse.md docs/ConfigurationsApi.md docs/ConsentDto.md docs/CorsAwsExchangeCredentialsOK.md docs/CorsAwsExchangeCredentialsProjectTokenOK.md +docs/CorsFetchIotaVpResponseOK.md +docs/CorsInitiateDataSharingRequestOK.md docs/CorsIotOidc4vpcallbackOK.md docs/CorsIotaExchangeCredentialsOK.md docs/CreateIotaConfigurationInput.md docs/CreatePexQueryInput.md docs/DefaultApi.md docs/DeletePexQueriesInput.md +docs/FetchIOTAVPResponseInput.md +docs/FetchIOTAVPResponseOK.md docs/GetIotaConfigurationMetaDataOK.md +docs/InitiateDataSharingRequestInput.md +docs/InitiateDataSharingRequestOK.md +docs/InitiateDataSharingRequestOKData.md docs/InvalidParameterError.md docs/InvalidParameterErrorDetailsInner.md docs/IotaApi.md @@ -109,4 +127,13 @@ 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/README.md b/clients/python/iota_client/README.md index 0b827144..307f2aaa 100644 --- a/clients/python/iota_client/README.md +++ b/clients/python/iota_client/README.md @@ -96,6 +96,8 @@ 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_ | [**fetch_iota_vp_response**](docs/IotaApi.md#fetch_iota_vp_response) | **POST** /v1/fetch-iota-response | +| _IotaApi_ | [**initiate_data_sharing_request**](docs/IotaApi.md#initiate_data_sharing_request) | **POST** /v1/initiate-data-sharing-request | | _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 | @@ -113,15 +115,24 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* - [AwsExchangeCredentialsProjectTokenOK](docs/AwsExchangeCredentialsProjectTokenOK.md) - [AwsExchangeCredentialsProjectTokenOKCredentials](docs/AwsExchangeCredentialsProjectTokenOKCredentials.md) - [CallbackInput](docs/CallbackInput.md) +- [CallbackResponseOK](docs/CallbackResponseOK.md) +- [CallbackResponseOKRedirectResponse](docs/CallbackResponseOKRedirectResponse.md) - [ConsentDto](docs/ConsentDto.md) - [CorsAwsExchangeCredentialsOK](docs/CorsAwsExchangeCredentialsOK.md) - [CorsAwsExchangeCredentialsProjectTokenOK](docs/CorsAwsExchangeCredentialsProjectTokenOK.md) +- [CorsFetchIotaVpResponseOK](docs/CorsFetchIotaVpResponseOK.md) +- [CorsInitiateDataSharingRequestOK](docs/CorsInitiateDataSharingRequestOK.md) - [CorsIotOidc4vpcallbackOK](docs/CorsIotOidc4vpcallbackOK.md) - [CorsIotaExchangeCredentialsOK](docs/CorsIotaExchangeCredentialsOK.md) - [CreateIotaConfigurationInput](docs/CreateIotaConfigurationInput.md) - [CreatePexQueryInput](docs/CreatePexQueryInput.md) - [DeletePexQueriesInput](docs/DeletePexQueriesInput.md) +- [FetchIOTAVPResponseInput](docs/FetchIOTAVPResponseInput.md) +- [FetchIOTAVPResponseOK](docs/FetchIOTAVPResponseOK.md) - [GetIotaConfigurationMetaDataOK](docs/GetIotaConfigurationMetaDataOK.md) +- [InitiateDataSharingRequestInput](docs/InitiateDataSharingRequestInput.md) +- [InitiateDataSharingRequestOK](docs/InitiateDataSharingRequestOK.md) +- [InitiateDataSharingRequestOKData](docs/InitiateDataSharingRequestOKData.md) - [InvalidParameterError](docs/InvalidParameterError.md) - [InvalidParameterErrorDetailsInner](docs/InvalidParameterErrorDetailsInner.md) - [IotaConfigurationDto](docs/IotaConfigurationDto.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 46970f5f..c6b88c46 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/__init__.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/__init__.py @@ -43,15 +43,24 @@ from affinidi_tdk_iota_client.models.aws_exchange_credentials_project_token_ok import AwsExchangeCredentialsProjectTokenOK from affinidi_tdk_iota_client.models.aws_exchange_credentials_project_token_ok_credentials import AwsExchangeCredentialsProjectTokenOKCredentials from affinidi_tdk_iota_client.models.callback_input import CallbackInput +from affinidi_tdk_iota_client.models.callback_response_ok import CallbackResponseOK +from affinidi_tdk_iota_client.models.callback_response_ok_redirect_response import CallbackResponseOKRedirectResponse from affinidi_tdk_iota_client.models.consent_dto import ConsentDto 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_fetch_iota_vp_response_ok import CorsFetchIotaVpResponseOK +from affinidi_tdk_iota_client.models.cors_initiate_data_sharing_request_ok import CorsInitiateDataSharingRequestOK 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 +from affinidi_tdk_iota_client.models.fetch_iotavp_response_input import FetchIOTAVPResponseInput +from affinidi_tdk_iota_client.models.fetch_iotavp_response_ok import FetchIOTAVPResponseOK from affinidi_tdk_iota_client.models.get_iota_configuration_meta_data_ok import GetIotaConfigurationMetaDataOK +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_input import InitiateDataSharingRequestInput +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_ok import InitiateDataSharingRequestOK +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_ok_data import InitiateDataSharingRequestOKData from affinidi_tdk_iota_client.models.invalid_parameter_error import InvalidParameterError from affinidi_tdk_iota_client.models.invalid_parameter_error_details_inner import InvalidParameterErrorDetailsInner from affinidi_tdk_iota_client.models.iota_configuration_dto import IotaConfigurationDto diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/api/callback_api.py b/clients/python/iota_client/affinidi_tdk_iota_client/api/callback_api.py index 39112d10..5499fedf 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/api/callback_api.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/api/callback_api.py @@ -22,9 +22,8 @@ from typing_extensions import Annotated from pydantic import Field -from typing import Any, Dict - from affinidi_tdk_iota_client.models.callback_input import CallbackInput +from affinidi_tdk_iota_client.models.callback_response_ok import CallbackResponseOK from affinidi_tdk_iota_client.api_client import ApiClient from affinidi_tdk_iota_client.api_response import ApiResponse @@ -47,7 +46,7 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client @validate_arguments - def iot_oidc4_vp_callback(self, callback_input : Annotated[CallbackInput, Field(..., description="CallbackRequestInput")], **kwargs) -> object: # noqa: E501 + def iot_oidc4_vp_callback(self, callback_input : Annotated[CallbackInput, Field(..., description="CallbackRequestInput")], **kwargs) -> CallbackResponseOK: # noqa: E501 """Processes the callback for OIDC4VP flows # noqa: E501 This endpoint handles callbacks from clients with data from OIDC4VP transactions, including state, presentation submission, and verification tokens. It updates the flow status based on the provided state and communicates the outcome through MQTT, ensuring the transaction's completion or notifying of any errors. # noqa: E501 @@ -68,7 +67,7 @@ def iot_oidc4_vp_callback(self, callback_input : Annotated[CallbackInput, Field( :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: object + :rtype: CallbackResponseOK """ kwargs['_return_http_data_only'] = True if '_preload_content' in kwargs: @@ -111,7 +110,7 @@ def iot_oidc4_vp_callback_with_http_info(self, callback_input : Annotated[Callba :return: Returns the result object. If the method is called asynchronously, returns the request thread. - :rtype: tuple(object, status_code(int), headers(HTTPHeaderDict)) + :rtype: tuple(CallbackResponseOK, status_code(int), headers(HTTPHeaderDict)) """ _params = locals() @@ -173,7 +172,7 @@ def iot_oidc4_vp_callback_with_http_info(self, callback_input : Annotated[Callba _auth_settings = [] # noqa: E501 _response_types_map = { - '200': "object", + '200': "CallbackResponseOK", '400': "InvalidParameterError", '403': "OperationForbiddenError", } 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 2c0ccfbf..fcf941e2 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,10 @@ 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.fetch_iotavp_response_input import FetchIOTAVPResponseInput +from affinidi_tdk_iota_client.models.fetch_iotavp_response_ok import FetchIOTAVPResponseOK +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_input import InitiateDataSharingRequestInput +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_ok import InitiateDataSharingRequestOK 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 @@ -487,6 +491,304 @@ 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 fetch_iota_vp_response(self, fetch_iotavp_response_input : Annotated[FetchIOTAVPResponseInput, Field(..., description="FetchIOTAVPResponseInput")], **kwargs) -> FetchIOTAVPResponseOK: # noqa: E501 + """fetch_iota_vp_response # noqa: E501 + + This will get the final data response # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.fetch_iota_vp_response(fetch_iotavp_response_input, async_req=True) + >>> result = thread.get() + + :param fetch_iotavp_response_input: FetchIOTAVPResponseInput (required) + :type fetch_iotavp_response_input: FetchIOTAVPResponseInput + :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: FetchIOTAVPResponseOK + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the fetch_iota_vp_response_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + return self.fetch_iota_vp_response_with_http_info(fetch_iotavp_response_input, **kwargs) # noqa: E501 + + @validate_arguments + def fetch_iota_vp_response_with_http_info(self, fetch_iotavp_response_input : Annotated[FetchIOTAVPResponseInput, Field(..., description="FetchIOTAVPResponseInput")], **kwargs) -> ApiResponse: # noqa: E501 + """fetch_iota_vp_response # noqa: E501 + + This will get the final data response # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.fetch_iota_vp_response_with_http_info(fetch_iotavp_response_input, async_req=True) + >>> result = thread.get() + + :param fetch_iotavp_response_input: FetchIOTAVPResponseInput (required) + :type fetch_iotavp_response_input: FetchIOTAVPResponseInput + :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(FetchIOTAVPResponseOK, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'fetch_iotavp_response_input' + ] + _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 fetch_iota_vp_response" % _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['fetch_iotavp_response_input'] is not None: + _body_params = _params['fetch_iotavp_response_input'] + + # 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 = ['bearerAuth'] # noqa: E501 + + _response_types_map = { + '200': "FetchIOTAVPResponseOK", + '400': "InvalidParameterError", + '403': "OperationForbiddenError", + } + + return self.api_client.call_api( + '/v1/fetch-iota-response', '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 initiate_data_sharing_request(self, initiate_data_sharing_request_input : Annotated[InitiateDataSharingRequestInput, Field(..., description="InitiateDataSharingRequestInput")], **kwargs) -> InitiateDataSharingRequestOK: # noqa: E501 + """initiate_data_sharing_request # noqa: E501 + + This will initiate data sharing request for the data sharing flow # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.initiate_data_sharing_request(initiate_data_sharing_request_input, async_req=True) + >>> result = thread.get() + + :param initiate_data_sharing_request_input: InitiateDataSharingRequestInput (required) + :type initiate_data_sharing_request_input: InitiateDataSharingRequestInput + :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: InitiateDataSharingRequestOK + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the initiate_data_sharing_request_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + return self.initiate_data_sharing_request_with_http_info(initiate_data_sharing_request_input, **kwargs) # noqa: E501 + + @validate_arguments + def initiate_data_sharing_request_with_http_info(self, initiate_data_sharing_request_input : Annotated[InitiateDataSharingRequestInput, Field(..., description="InitiateDataSharingRequestInput")], **kwargs) -> ApiResponse: # noqa: E501 + """initiate_data_sharing_request # noqa: E501 + + This will initiate data sharing request for the data sharing flow # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.initiate_data_sharing_request_with_http_info(initiate_data_sharing_request_input, async_req=True) + >>> result = thread.get() + + :param initiate_data_sharing_request_input: InitiateDataSharingRequestInput (required) + :type initiate_data_sharing_request_input: InitiateDataSharingRequestInput + :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(InitiateDataSharingRequestOK, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'initiate_data_sharing_request_input' + ] + _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 initiate_data_sharing_request" % _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['initiate_data_sharing_request_input'] is not None: + _body_params = _params['initiate_data_sharing_request_input'] + + # 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 = ['bearerAuth'] # noqa: E501 + + _response_types_map = { + '200': "InitiateDataSharingRequestOK", + '400': "InvalidParameterError", + '403': "OperationForbiddenError", + } + + return self.api_client.call_api( + '/v1/initiate-data-sharing-request', '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 iota_exchange_credentials(self, iota_exchange_credentials : Annotated[IotaExchangeCredentials, Field(..., description="IotaAwsExchangeCredentials")], **kwargs) -> IotaExchangeCredentialsOK: # noqa: E501 """iota_exchange_credentials # 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 c34e6f0d..f5107e5d 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 @@ -22,15 +22,24 @@ from affinidi_tdk_iota_client.models.aws_exchange_credentials_project_token_ok import AwsExchangeCredentialsProjectTokenOK from affinidi_tdk_iota_client.models.aws_exchange_credentials_project_token_ok_credentials import AwsExchangeCredentialsProjectTokenOKCredentials from affinidi_tdk_iota_client.models.callback_input import CallbackInput +from affinidi_tdk_iota_client.models.callback_response_ok import CallbackResponseOK +from affinidi_tdk_iota_client.models.callback_response_ok_redirect_response import CallbackResponseOKRedirectResponse from affinidi_tdk_iota_client.models.consent_dto import ConsentDto 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_fetch_iota_vp_response_ok import CorsFetchIotaVpResponseOK +from affinidi_tdk_iota_client.models.cors_initiate_data_sharing_request_ok import CorsInitiateDataSharingRequestOK 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 +from affinidi_tdk_iota_client.models.fetch_iotavp_response_input import FetchIOTAVPResponseInput +from affinidi_tdk_iota_client.models.fetch_iotavp_response_ok import FetchIOTAVPResponseOK from affinidi_tdk_iota_client.models.get_iota_configuration_meta_data_ok import GetIotaConfigurationMetaDataOK +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_input import InitiateDataSharingRequestInput +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_ok import InitiateDataSharingRequestOK +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_ok_data import InitiateDataSharingRequestOKData from affinidi_tdk_iota_client.models.invalid_parameter_error import InvalidParameterError from affinidi_tdk_iota_client.models.invalid_parameter_error_details_inner import InvalidParameterErrorDetailsInner from affinidi_tdk_iota_client.models.iota_configuration_dto import IotaConfigurationDto diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/callback_input.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/callback_input.py index dfb033da..1ace99ba 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/models/callback_input.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/callback_input.py @@ -20,26 +20,19 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr, validator +from pydantic import BaseModel, Field, StrictStr class CallbackInput(BaseModel): """ CallbackInput """ - state: constr(strict=True) = Field(default=..., description="A string that must be a valid UUID (version 1-5).") + state: StrictStr = Field(default=..., description="A string that must be a valid UUID (version 1-5).") presentation_submission: Optional[StrictStr] = Field(default=None, description="A string that must be a valid JSON object. The structure of presentation submission should follow OID4VP standard.") vp_token: Optional[StrictStr] = Field(default=None, description="A string that must be a valid JSON object. Ensure to escape special characters properly..") error: Optional[StrictStr] = Field(default=None, description="The error should follow the OAuth2 error format (e.g. invalid_request, login_required). Defaults to access_denied") error_description: Optional[StrictStr] = Field(default=None, description="Description of the error in a human readable format") __properties = ["state", "presentation_submission", "vp_token", "error", "error_description"] - @validator('state') - def state_validate_regular_expression(cls, value): - """Validates the regular expression""" - if not re.match(r"^[a-z]+-[a-z]+-\d+:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}\/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$", value): - raise ValueError(r"must validate the regular expression /^[a-z]+-[a-z]+-\d+:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}\/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/") - return value - class Config: """Pydantic configuration""" allow_population_by_field_name = True diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/callback_response_ok.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/callback_response_ok.py new file mode 100644 index 00000000..f2b95295 --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/callback_response_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 typing import Optional +from pydantic import BaseModel, Field, StrictStr +from affinidi_tdk_iota_client.models.callback_response_ok_redirect_response import CallbackResponseOKRedirectResponse + +class CallbackResponseOK(BaseModel): + """ + CallbackResponseOK + """ + message: StrictStr = Field(default=..., description="A message to vault that flow is updated successfully") + redirect_response: Optional[CallbackResponseOKRedirectResponse] = Field(default=None, alias="redirectResponse") + __properties = ["message", "redirectResponse"] + + 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) -> CallbackResponseOK: + """Create an instance of CallbackResponseOK 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 redirect_response + if self.redirect_response: + _dict['redirectResponse'] = self.redirect_response.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> CallbackResponseOK: + """Create an instance of CallbackResponseOK from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CallbackResponseOK.parse_obj(obj) + + _obj = CallbackResponseOK.parse_obj({ + "message": obj.get("message"), + "redirect_response": CallbackResponseOKRedirectResponse.from_dict(obj.get("redirectResponse")) if obj.get("redirectResponse") is not None else None + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/callback_response_ok_redirect_response.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/callback_response_ok_redirect_response.py new file mode 100644 index 00000000..00b6e43e --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/callback_response_ok_redirect_response.py @@ -0,0 +1,74 @@ +# 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 CallbackResponseOKRedirectResponse(BaseModel): + """ + CallbackResponseOKRedirectResponse + """ + redirect_uri: Optional[StrictStr] = Field(default=None, alias="redirectUri", description="the configured redirect url where vault will redirect") + response_code: Optional[StrictStr] = Field(default=None, alias="responseCode", description="Code which will be used to retrieve data along with transactionId") + __properties = ["redirectUri", "responseCode"] + + 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) -> CallbackResponseOKRedirectResponse: + """Create an instance of CallbackResponseOKRedirectResponse 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) -> CallbackResponseOKRedirectResponse: + """Create an instance of CallbackResponseOKRedirectResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CallbackResponseOKRedirectResponse.parse_obj(obj) + + _obj = CallbackResponseOKRedirectResponse.parse_obj({ + "redirect_uri": obj.get("redirectUri"), + "response_code": obj.get("responseCode") + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/cors_fetch_iota_vp_response_ok.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/cors_fetch_iota_vp_response_ok.py new file mode 100644 index 00000000..6add4e51 --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/cors_fetch_iota_vp_response_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 CorsFetchIotaVpResponseOK(BaseModel): + """ + CorsFetchIotaVpResponseOK + """ + cors_fetch_iota_vp_response_ok: Optional[StrictStr] = Field(default=None, alias="corsFetchIotaVpResponseOk") + __properties = ["corsFetchIotaVpResponseOk"] + + 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) -> CorsFetchIotaVpResponseOK: + """Create an instance of CorsFetchIotaVpResponseOK 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) -> CorsFetchIotaVpResponseOK: + """Create an instance of CorsFetchIotaVpResponseOK from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CorsFetchIotaVpResponseOK.parse_obj(obj) + + _obj = CorsFetchIotaVpResponseOK.parse_obj({ + "cors_fetch_iota_vp_response_ok": obj.get("corsFetchIotaVpResponseOk") + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/cors_initiate_data_sharing_request_ok.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/cors_initiate_data_sharing_request_ok.py new file mode 100644 index 00000000..6912c0f9 --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/cors_initiate_data_sharing_request_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 CorsInitiateDataSharingRequestOK(BaseModel): + """ + CorsInitiateDataSharingRequestOK + """ + cors_initiate_data_sharing_request_ok: Optional[StrictStr] = Field(default=None, alias="corsInitiateDataSharingRequestOk") + __properties = ["corsInitiateDataSharingRequestOk"] + + 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) -> CorsInitiateDataSharingRequestOK: + """Create an instance of CorsInitiateDataSharingRequestOK 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) -> CorsInitiateDataSharingRequestOK: + """Create an instance of CorsInitiateDataSharingRequestOK from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CorsInitiateDataSharingRequestOK.parse_obj(obj) + + _obj = CorsInitiateDataSharingRequestOK.parse_obj({ + "cors_initiate_data_sharing_request_ok": obj.get("corsInitiateDataSharingRequestOk") + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/create_iota_configuration_input.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/create_iota_configuration_input.py index 259c4cf5..b0d9b57b 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/models/create_iota_configuration_input.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/create_iota_configuration_input.py @@ -19,8 +19,8 @@ import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictStr, confloat, conint +from typing import List, Optional, Union +from pydantic import BaseModel, Field, StrictBool, StrictStr, confloat, conint, conlist, validator from affinidi_tdk_iota_client.models.iota_configuration_dto_client_metadata import IotaConfigurationDtoClientMetadata class CreateIotaConfigurationInput(BaseModel): @@ -35,7 +35,19 @@ class CreateIotaConfigurationInput(BaseModel): enable_consent_audit_log: StrictBool = Field(default=..., alias="enableConsentAuditLog") token_max_age: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = Field(default=None, alias="tokenMaxAge", description="token time to live in seconds") client_metadata: IotaConfigurationDtoClientMetadata = Field(default=..., alias="clientMetadata") - __properties = ["name", "description", "walletAri", "iotaResponseWebhookURL", "enableVerification", "enableConsentAuditLog", "tokenMaxAge", "clientMetadata"] + 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", "description", "walletAri", "iotaResponseWebhookURL", "enableVerification", "enableConsentAuditLog", "tokenMaxAge", "clientMetadata", "mode", "redirectUris"] + + @validator('mode') + def mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in ('redirect', 'websocket'): + raise ValueError("must be one of enum values ('redirect', 'websocket')") + return value class Config: """Pydantic configuration""" @@ -83,7 +95,9 @@ def from_dict(cls, obj: dict) -> CreateIotaConfigurationInput: "enable_verification": obj.get("enableVerification"), "enable_consent_audit_log": obj.get("enableConsentAuditLog"), "token_max_age": obj.get("tokenMaxAge"), - "client_metadata": IotaConfigurationDtoClientMetadata.from_dict(obj.get("clientMetadata")) if obj.get("clientMetadata") is not None else None + "client_metadata": IotaConfigurationDtoClientMetadata.from_dict(obj.get("clientMetadata")) if obj.get("clientMetadata") is not None else None, + "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/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 new file mode 100644 index 00000000..d97183bf --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/fetch_iotavp_response_input.py @@ -0,0 +1,76 @@ +# 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 FetchIOTAVPResponseInput(BaseModel): + """ + FetchIOTAVPResponseInput + """ + 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"] + + 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) -> FetchIOTAVPResponseInput: + """Create an instance of FetchIOTAVPResponseInput 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) -> FetchIOTAVPResponseInput: + """Create an instance of FetchIOTAVPResponseInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return FetchIOTAVPResponseInput.parse_obj(obj) + + _obj = FetchIOTAVPResponseInput.parse_obj({ + "correlation_id": obj.get("correlationId"), + "transaction_id": obj.get("transactionId"), + "response_code": obj.get("responseCode") + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/fetch_iotavp_response_ok.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/fetch_iotavp_response_ok.py new file mode 100644 index 00000000..e8d499c7 --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/fetch_iotavp_response_ok.py @@ -0,0 +1,88 @@ +# 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 FetchIOTAVPResponseOK(BaseModel): + """ + FetchIOTAVPResponseOK + """ + correlation_id: Optional[StrictStr] = Field(default=None, alias="correlationId", description="A correlationId used for the flow") + presentation_submission: Optional[StrictStr] = Field(default=None, description="A string that must be a valid JSON object. The structure of presentation submission should follow OID4VP standard.") + vp_token: Optional[StrictStr] = Field(default=None, description="A string that must be a valid JSON object. Ensure to escape special characters properly..") + additional_properties: Dict[str, Any] = {} + __properties = ["correlationId", "presentation_submission", "vp_token"] + + 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) -> FetchIOTAVPResponseOK: + """Create an instance of FetchIOTAVPResponseOK 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={ + "additional_properties" + }, + exclude_none=True) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> FetchIOTAVPResponseOK: + """Create an instance of FetchIOTAVPResponseOK from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return FetchIOTAVPResponseOK.parse_obj(obj) + + _obj = FetchIOTAVPResponseOK.parse_obj({ + "correlation_id": obj.get("correlationId"), + "presentation_submission": obj.get("presentation_submission"), + "vp_token": obj.get("vp_token") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + 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 new file mode 100644 index 00000000..b42e071f --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_input.py @@ -0,0 +1,80 @@ +# 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, Union +from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr + +class InitiateDataSharingRequestInput(BaseModel): + """ + InitiateDataSharingRequestInput + """ + query_id: StrictStr = Field(default=..., alias="queryId") + correlation_id: StrictStr = Field(default=..., alias="correlationId") + 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"] + + 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) -> InitiateDataSharingRequestInput: + """Create an instance of InitiateDataSharingRequestInput 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) -> InitiateDataSharingRequestInput: + """Create an instance of InitiateDataSharingRequestInput from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return InitiateDataSharingRequestInput.parse_obj(obj) + + _obj = InitiateDataSharingRequestInput.parse_obj({ + "query_id": obj.get("queryId"), + "correlation_id": obj.get("correlationId"), + "token_max_age": obj.get("tokenMaxAge"), + "nonce": obj.get("nonce"), + "redirect_uri": obj.get("redirectUri") + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_ok.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_ok.py new file mode 100644 index 00000000..6f4fada7 --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_ok.py @@ -0,0 +1,76 @@ +# 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 +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_ok_data import InitiateDataSharingRequestOKData + +class InitiateDataSharingRequestOK(BaseModel): + """ + InitiateDataSharingRequestOK + """ + data: Optional[InitiateDataSharingRequestOKData] = None + __properties = ["data"] + + 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) -> InitiateDataSharingRequestOK: + """Create an instance of InitiateDataSharingRequestOK 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 data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> InitiateDataSharingRequestOK: + """Create an instance of InitiateDataSharingRequestOK from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return InitiateDataSharingRequestOK.parse_obj(obj) + + _obj = InitiateDataSharingRequestOK.parse_obj({ + "data": InitiateDataSharingRequestOKData.from_dict(obj.get("data")) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_ok_data.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_ok_data.py new file mode 100644 index 00000000..75465fa7 --- /dev/null +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/initiate_data_sharing_request_ok_data.py @@ -0,0 +1,76 @@ +# 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 InitiateDataSharingRequestOKData(BaseModel): + """ + InitiateDataSharingRequestOKData + """ + jwt: StrictStr = Field(...) + correlation_id: StrictStr = Field(default=..., alias="correlationId") + transaction_id: StrictStr = Field(default=..., alias="transactionId") + __properties = ["jwt", "correlationId", "transactionId"] + + 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) -> InitiateDataSharingRequestOKData: + """Create an instance of InitiateDataSharingRequestOKData 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) -> InitiateDataSharingRequestOKData: + """Create an instance of InitiateDataSharingRequestOKData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return InitiateDataSharingRequestOKData.parse_obj(obj) + + _obj = InitiateDataSharingRequestOKData.parse_obj({ + "jwt": obj.get("jwt"), + "correlation_id": obj.get("correlationId"), + "transaction_id": obj.get("transactionId") + }) + return _obj + + diff --git a/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_configuration_dto.py b/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_configuration_dto.py index b5f869c6..28e1f987 100644 --- a/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_configuration_dto.py +++ b/clients/python/iota_client/affinidi_tdk_iota_client/models/iota_configuration_dto.py @@ -19,8 +19,8 @@ import json -from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +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 IotaConfigurationDto(BaseModel): @@ -37,7 +37,19 @@ class IotaConfigurationDto(BaseModel): enable_verification: StrictBool = Field(default=..., alias="enableVerification") enable_consent_audit_log: StrictBool = Field(default=..., alias="enableConsentAuditLog") client_metadata: IotaConfigurationDtoClientMetadata = Field(default=..., alias="clientMetadata") - __properties = ["ari", "configurationId", "name", "projectId", "walletAri", "tokenMaxAge", "iotaResponseWebhookURL", "enableVerification", "enableConsentAuditLog", "clientMetadata"] + 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 URLs 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 = ["ari", "configurationId", "name", "projectId", "walletAri", "tokenMaxAge", "iotaResponseWebhookURL", "enableVerification", "enableConsentAuditLog", "clientMetadata", "mode", "redirectUris"] + + @validator('mode') + def mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in ('redirect', 'websocket'): + raise ValueError("must be one of enum values ('redirect', 'websocket')") + return value class Config: """Pydantic configuration""" @@ -87,7 +99,9 @@ def from_dict(cls, obj: dict) -> IotaConfigurationDto: "iota_response_webhook_url": obj.get("iotaResponseWebhookURL"), "enable_verification": obj.get("enableVerification"), "enable_consent_audit_log": obj.get("enableConsentAuditLog"), - "client_metadata": IotaConfigurationDtoClientMetadata.from_dict(obj.get("clientMetadata")) if obj.get("clientMetadata") is not None else None + "client_metadata": IotaConfigurationDtoClientMetadata.from_dict(obj.get("clientMetadata")) if obj.get("clientMetadata") is not None else None, + "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/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 f75b2400..50ef979c 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 @@ -20,7 +20,7 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, validator from affinidi_tdk_iota_client.models.iota_configuration_dto_client_metadata import IotaConfigurationDtoClientMetadata class UpdateConfigurationByIdInput(BaseModel): @@ -35,7 +35,19 @@ 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") - __properties = ["name", "walletAri", "iotaResponseWebhookURL", "enableVerification", "enableConsentAuditLog", "tokenMaxAge", "description", "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"] + + @validator('mode') + def mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in ('redirect', 'websocket'): + raise ValueError("must be one of enum values ('redirect', 'websocket')") + return value class Config: """Pydantic configuration""" @@ -83,7 +95,9 @@ def from_dict(cls, obj: dict) -> UpdateConfigurationByIdInput: "enable_consent_audit_log": obj.get("enableConsentAuditLog"), "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 + "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") }) return _obj diff --git a/clients/python/iota_client/docs/CallbackApi.md b/clients/python/iota_client/docs/CallbackApi.md index 23b74d49..abca5a17 100644 --- a/clients/python/iota_client/docs/CallbackApi.md +++ b/clients/python/iota_client/docs/CallbackApi.md @@ -8,7 +8,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* # **iot_oidc4_vp_callback** -> object iot_oidc4_vp_callback(callback_input) +> CallbackResponseOK iot_oidc4_vp_callback(callback_input) Processes the callback for OIDC4VP flows @@ -21,6 +21,7 @@ import time import os import affinidi_tdk_iota_client from affinidi_tdk_iota_client.models.callback_input import CallbackInput +from affinidi_tdk_iota_client.models.callback_response_ok import CallbackResponseOK from affinidi_tdk_iota_client.rest import ApiException from pprint import pprint @@ -54,7 +55,7 @@ with affinidi_tdk_iota_client.ApiClient(configuration) as api_client: ### Return type -**object** +[**CallbackResponseOK**](CallbackResponseOK.md) ### Authorization diff --git a/clients/python/iota_client/docs/CallbackResponseOK.md b/clients/python/iota_client/docs/CallbackResponseOK.md new file mode 100644 index 00000000..ab25c3ec --- /dev/null +++ b/clients/python/iota_client/docs/CallbackResponseOK.md @@ -0,0 +1,28 @@ +# CallbackResponseOK + +## Properties + +| Name | Type | Description | Notes | +| --------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------- | ---------- | +| **message** | **str** | A message to vault that flow is updated successfully | +| **redirect_response** | [**CallbackResponseOKRedirectResponse**](CallbackResponseOKRedirectResponse.md) | | [optional] | + +## Example + +```python +from affinidi_tdk_iota_client.models.callback_response_ok import CallbackResponseOK + +# TODO update the JSON string below +json = "{}" +# create an instance of CallbackResponseOK from a JSON string +callback_response_ok_instance = CallbackResponseOK.from_json(json) +# print the JSON string representation of the object +print CallbackResponseOK.to_json() + +# convert the object into a dict +callback_response_ok_dict = callback_response_ok_instance.to_dict() +# create an instance of CallbackResponseOK from a dict +callback_response_ok_from_dict = CallbackResponseOK.from_dict(callback_response_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/CallbackResponseOKRedirectResponse.md b/clients/python/iota_client/docs/CallbackResponseOKRedirectResponse.md new file mode 100644 index 00000000..27b5d84f --- /dev/null +++ b/clients/python/iota_client/docs/CallbackResponseOKRedirectResponse.md @@ -0,0 +1,28 @@ +# CallbackResponseOKRedirectResponse + +## Properties + +| Name | Type | Description | Notes | +| ----------------- | ------- | ----------------------------------------------------------------- | ---------- | +| **redirect_uri** | **str** | the configured redirect url where vault will redirect | [optional] | +| **response_code** | **str** | Code which will be used to retrieve data along with transactionId | [optional] | + +## Example + +```python +from affinidi_tdk_iota_client.models.callback_response_ok_redirect_response import CallbackResponseOKRedirectResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of CallbackResponseOKRedirectResponse from a JSON string +callback_response_ok_redirect_response_instance = CallbackResponseOKRedirectResponse.from_json(json) +# print the JSON string representation of the object +print CallbackResponseOKRedirectResponse.to_json() + +# convert the object into a dict +callback_response_ok_redirect_response_dict = callback_response_ok_redirect_response_instance.to_dict() +# create an instance of CallbackResponseOKRedirectResponse from a dict +callback_response_ok_redirect_response_from_dict = CallbackResponseOKRedirectResponse.from_dict(callback_response_ok_redirect_response_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/CorsFetchIotaVpResponseOK.md b/clients/python/iota_client/docs/CorsFetchIotaVpResponseOK.md new file mode 100644 index 00000000..893a126d --- /dev/null +++ b/clients/python/iota_client/docs/CorsFetchIotaVpResponseOK.md @@ -0,0 +1,27 @@ +# CorsFetchIotaVpResponseOK + +## Properties + +| Name | Type | Description | Notes | +| ---------------------------------- | ------- | ----------- | ---------- | +| **cors_fetch_iota_vp_response_ok** | **str** | | [optional] | + +## Example + +```python +from affinidi_tdk_iota_client.models.cors_fetch_iota_vp_response_ok import CorsFetchIotaVpResponseOK + +# TODO update the JSON string below +json = "{}" +# create an instance of CorsFetchIotaVpResponseOK from a JSON string +cors_fetch_iota_vp_response_ok_instance = CorsFetchIotaVpResponseOK.from_json(json) +# print the JSON string representation of the object +print CorsFetchIotaVpResponseOK.to_json() + +# convert the object into a dict +cors_fetch_iota_vp_response_ok_dict = cors_fetch_iota_vp_response_ok_instance.to_dict() +# create an instance of CorsFetchIotaVpResponseOK from a dict +cors_fetch_iota_vp_response_ok_from_dict = CorsFetchIotaVpResponseOK.from_dict(cors_fetch_iota_vp_response_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/CorsInitiateDataSharingRequestOK.md b/clients/python/iota_client/docs/CorsInitiateDataSharingRequestOK.md new file mode 100644 index 00000000..dd4a1035 --- /dev/null +++ b/clients/python/iota_client/docs/CorsInitiateDataSharingRequestOK.md @@ -0,0 +1,27 @@ +# CorsInitiateDataSharingRequestOK + +## Properties + +| Name | Type | Description | Notes | +| ----------------------------------------- | ------- | ----------- | ---------- | +| **cors_initiate_data_sharing_request_ok** | **str** | | [optional] | + +## Example + +```python +from affinidi_tdk_iota_client.models.cors_initiate_data_sharing_request_ok import CorsInitiateDataSharingRequestOK + +# TODO update the JSON string below +json = "{}" +# create an instance of CorsInitiateDataSharingRequestOK from a JSON string +cors_initiate_data_sharing_request_ok_instance = CorsInitiateDataSharingRequestOK.from_json(json) +# print the JSON string representation of the object +print CorsInitiateDataSharingRequestOK.to_json() + +# convert the object into a dict +cors_initiate_data_sharing_request_ok_dict = cors_initiate_data_sharing_request_ok_instance.to_dict() +# create an instance of CorsInitiateDataSharingRequestOK from a dict +cors_initiate_data_sharing_request_ok_from_dict = CorsInitiateDataSharingRequestOK.from_dict(cors_initiate_data_sharing_request_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/CreateIotaConfigurationInput.md b/clients/python/iota_client/docs/CreateIotaConfigurationInput.md index 40f4c7c8..25cdd4e7 100644 --- a/clients/python/iota_client/docs/CreateIotaConfigurationInput.md +++ b/clients/python/iota_client/docs/CreateIotaConfigurationInput.md @@ -2,16 +2,18 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------- | ---------- | -| **name** | **str** | The name of the configuration | -| **description** | **str** | Description of the configuration | [optional] | -| **wallet_ari** | **str** | The wallet Ari that will be used to sign | -| **iota_response_webhook_url** | **str** | webhook to call when data is ready | [optional] | -| **enable_verification** | **bool** | | -| **enable_consent_audit_log** | **bool** | | -| **token_max_age** | **float** | token time to live in seconds | [optional] | -| **client_metadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | +| Name | Type | Description | Notes | +| ----------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | +| **name** | **str** | The name of the configuration | +| **description** | **str** | Description of the configuration | [optional] | +| **wallet_ari** | **str** | The wallet Ari that will be used to sign | +| **iota_response_webhook_url** | **str** | webhook to call when data is ready | [optional] | +| **enable_verification** | **bool** | | +| **enable_consent_audit_log** | **bool** | | +| **token_max_age** | **float** | token time to live in seconds | [optional] | +| **client_metadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | +| **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/python/iota_client/docs/FetchIOTAVPResponseInput.md b/clients/python/iota_client/docs/FetchIOTAVPResponseInput.md new file mode 100644 index 00000000..374bd340 --- /dev/null +++ b/clients/python/iota_client/docs/FetchIOTAVPResponseInput.md @@ -0,0 +1,29 @@ +# FetchIOTAVPResponseInput + +## Properties + +| Name | Type | Description | Notes | +| ------------------ | ------- | ------------------ | ----- | +| **correlation_id** | **str** | The correlation ID | +| **transaction_id** | **str** | The transaction ID | +| **response_code** | **str** | The response code. | + +## Example + +```python +from affinidi_tdk_iota_client.models.fetch_iotavp_response_input import FetchIOTAVPResponseInput + +# TODO update the JSON string below +json = "{}" +# create an instance of FetchIOTAVPResponseInput from a JSON string +fetch_iotavp_response_input_instance = FetchIOTAVPResponseInput.from_json(json) +# print the JSON string representation of the object +print FetchIOTAVPResponseInput.to_json() + +# convert the object into a dict +fetch_iotavp_response_input_dict = fetch_iotavp_response_input_instance.to_dict() +# create an instance of FetchIOTAVPResponseInput from a dict +fetch_iotavp_response_input_from_dict = FetchIOTAVPResponseInput.from_dict(fetch_iotavp_response_input_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/FetchIOTAVPResponseOK.md b/clients/python/iota_client/docs/FetchIOTAVPResponseOK.md new file mode 100644 index 00000000..a61544c1 --- /dev/null +++ b/clients/python/iota_client/docs/FetchIOTAVPResponseOK.md @@ -0,0 +1,29 @@ +# FetchIOTAVPResponseOK + +## Properties + +| Name | Type | Description | Notes | +| --------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------ | ---------- | +| **correlation_id** | **str** | A correlationId used for the flow | [optional] | +| **presentation_submission** | **str** | A string that must be a valid JSON object. The structure of presentation submission should follow OID4VP standard. | [optional] | +| **vp_token** | **str** | A string that must be a valid JSON object. Ensure to escape special characters properly.. | [optional] | + +## Example + +```python +from affinidi_tdk_iota_client.models.fetch_iotavp_response_ok import FetchIOTAVPResponseOK + +# TODO update the JSON string below +json = "{}" +# create an instance of FetchIOTAVPResponseOK from a JSON string +fetch_iotavp_response_ok_instance = FetchIOTAVPResponseOK.from_json(json) +# print the JSON string representation of the object +print FetchIOTAVPResponseOK.to_json() + +# convert the object into a dict +fetch_iotavp_response_ok_dict = fetch_iotavp_response_ok_instance.to_dict() +# create an instance of FetchIOTAVPResponseOK from a dict +fetch_iotavp_response_ok_from_dict = FetchIOTAVPResponseOK.from_dict(fetch_iotavp_response_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/InitiateDataSharingRequestInput.md b/clients/python/iota_client/docs/InitiateDataSharingRequestInput.md new file mode 100644 index 00000000..fd6c9417 --- /dev/null +++ b/clients/python/iota_client/docs/InitiateDataSharingRequestInput.md @@ -0,0 +1,31 @@ +# InitiateDataSharingRequestInput + +## 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. | + +## Example + +```python +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_input import InitiateDataSharingRequestInput + +# TODO update the JSON string below +json = "{}" +# create an instance of InitiateDataSharingRequestInput from a JSON string +initiate_data_sharing_request_input_instance = InitiateDataSharingRequestInput.from_json(json) +# print the JSON string representation of the object +print InitiateDataSharingRequestInput.to_json() + +# convert the object into a dict +initiate_data_sharing_request_input_dict = initiate_data_sharing_request_input_instance.to_dict() +# create an instance of InitiateDataSharingRequestInput from a dict +initiate_data_sharing_request_input_from_dict = InitiateDataSharingRequestInput.from_dict(initiate_data_sharing_request_input_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/InitiateDataSharingRequestOK.md b/clients/python/iota_client/docs/InitiateDataSharingRequestOK.md new file mode 100644 index 00000000..ad985f51 --- /dev/null +++ b/clients/python/iota_client/docs/InitiateDataSharingRequestOK.md @@ -0,0 +1,27 @@ +# InitiateDataSharingRequestOK + +## Properties + +| Name | Type | Description | Notes | +| -------- | --------------------------------------------------------------------------- | ----------- | ---------- | +| **data** | [**InitiateDataSharingRequestOKData**](InitiateDataSharingRequestOKData.md) | | [optional] | + +## Example + +```python +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_ok import InitiateDataSharingRequestOK + +# TODO update the JSON string below +json = "{}" +# create an instance of InitiateDataSharingRequestOK from a JSON string +initiate_data_sharing_request_ok_instance = InitiateDataSharingRequestOK.from_json(json) +# print the JSON string representation of the object +print InitiateDataSharingRequestOK.to_json() + +# convert the object into a dict +initiate_data_sharing_request_ok_dict = initiate_data_sharing_request_ok_instance.to_dict() +# create an instance of InitiateDataSharingRequestOK from a dict +initiate_data_sharing_request_ok_from_dict = InitiateDataSharingRequestOK.from_dict(initiate_data_sharing_request_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/InitiateDataSharingRequestOKData.md b/clients/python/iota_client/docs/InitiateDataSharingRequestOKData.md new file mode 100644 index 00000000..a7b78d01 --- /dev/null +++ b/clients/python/iota_client/docs/InitiateDataSharingRequestOKData.md @@ -0,0 +1,29 @@ +# InitiateDataSharingRequestOKData + +## Properties + +| Name | Type | Description | Notes | +| ------------------ | ------- | ----------- | ----- | +| **jwt** | **str** | | +| **correlation_id** | **str** | | +| **transaction_id** | **str** | | + +## Example + +```python +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_ok_data import InitiateDataSharingRequestOKData + +# TODO update the JSON string below +json = "{}" +# create an instance of InitiateDataSharingRequestOKData from a JSON string +initiate_data_sharing_request_ok_data_instance = InitiateDataSharingRequestOKData.from_json(json) +# print the JSON string representation of the object +print InitiateDataSharingRequestOKData.to_json() + +# convert the object into a dict +initiate_data_sharing_request_ok_data_dict = initiate_data_sharing_request_ok_data_instance.to_dict() +# create an instance of InitiateDataSharingRequestOKData from a dict +initiate_data_sharing_request_ok_data_from_dict = InitiateDataSharingRequestOKData.from_dict(initiate_data_sharing_request_ok_data_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 5c06521f..4fb1dfcb 100644 --- a/clients/python/iota_client/docs/IotaApi.md +++ b/clients/python/iota_client/docs/IotaApi.md @@ -7,6 +7,8 @@ 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 | +| [**fetch_iota_vp_response**](IotaApi.md#fetch_iota_vp_response) | **POST** /v1/fetch-iota-response | +| [**initiate_data_sharing_request**](IotaApi.md#initiate_data_sharing_request) | **POST** /v1/initiate-data-sharing-request | | [**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 | @@ -234,6 +236,162 @@ 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) +# **fetch_iota_vp_response** + +> FetchIOTAVPResponseOK fetch_iota_vp_response(fetch_iotavp_response_input) + +This will get the final data response + +### Example + +- Bearer (JWT) Authentication (bearerAuth): + +```python +import time +import os +import affinidi_tdk_iota_client +from affinidi_tdk_iota_client.models.fetch_iotavp_response_input import FetchIOTAVPResponseInput +from affinidi_tdk_iota_client.models.fetch_iotavp_response_ok import FetchIOTAVPResponseOK +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" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# 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"] +) + +# 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) + fetch_iotavp_response_input = affinidi_tdk_iota_client.FetchIOTAVPResponseInput() # FetchIOTAVPResponseInput | FetchIOTAVPResponseInput + + try: + api_response = api_instance.fetch_iota_vp_response(fetch_iotavp_response_input) + print("The response of IotaApi->fetch_iota_vp_response:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IotaApi->fetch_iota_vp_response: %s\n" % e) +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------------------------- | ----------------------------------------------------------- | ------------------------ | ----- | +| **fetch_iotavp_response_input** | [**FetchIOTAVPResponseInput**](FetchIOTAVPResponseInput.md) | FetchIOTAVPResponseInput | + +### Return type + +[**FetchIOTAVPResponseOK**](FetchIOTAVPResponseOK.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +| ----------- | --------------------- | ----------------------------------------------------------------------------------------------------------------- | +| **200** | FetchIOTAVPResponseOK | _ 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) + +# **initiate_data_sharing_request** + +> InitiateDataSharingRequestOK initiate_data_sharing_request(initiate_data_sharing_request_input) + +This will initiate data sharing request for the data sharing flow + +### Example + +- Bearer (JWT) Authentication (bearerAuth): + +```python +import time +import os +import affinidi_tdk_iota_client +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_input import InitiateDataSharingRequestInput +from affinidi_tdk_iota_client.models.initiate_data_sharing_request_ok import InitiateDataSharingRequestOK +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" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# 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"] +) + +# 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) + initiate_data_sharing_request_input = affinidi_tdk_iota_client.InitiateDataSharingRequestInput() # InitiateDataSharingRequestInput | InitiateDataSharingRequestInput + + try: + api_response = api_instance.initiate_data_sharing_request(initiate_data_sharing_request_input) + print("The response of IotaApi->initiate_data_sharing_request:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IotaApi->initiate_data_sharing_request: %s\n" % e) +``` + +### Parameters + +| Name | Type | Description | Notes | +| --------------------------------------- | ------------------------------------------------------------------------- | ------------------------------- | ----- | +| **initiate_data_sharing_request_input** | [**InitiateDataSharingRequestInput**](InitiateDataSharingRequestInput.md) | InitiateDataSharingRequestInput | + +### Return type + +[**InitiateDataSharingRequestOK**](InitiateDataSharingRequestOK.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +| ----------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| **200** | InitiateDataSharingRequestOK | _ 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) + # **iota_exchange_credentials** > IotaExchangeCredentialsOK iota_exchange_credentials(iota_exchange_credentials) diff --git a/clients/python/iota_client/docs/IotaConfigurationDto.md b/clients/python/iota_client/docs/IotaConfigurationDto.md index f27bda8b..bcacc00c 100644 --- a/clients/python/iota_client/docs/IotaConfigurationDto.md +++ b/clients/python/iota_client/docs/IotaConfigurationDto.md @@ -2,18 +2,20 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------- | ---------- | -| **ari** | **str** | The ARI of the config | -| **configuration_id** | **str** | | -| **name** | **str** | The name of the config | -| **project_id** | **str** | | -| **wallet_ari** | **str** | The wallet Ari that will be used to sign | -| **token_max_age** | **float** | token time to live in seconds | -| **iota_response_webhook_url** | **str** | webhook to call when data is ready | [optional] | -| **enable_verification** | **bool** | | -| **enable_consent_audit_log** | **bool** | | -| **client_metadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | +| Name | Type | Description | Notes | +| ----------------------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | +| **ari** | **str** | The ARI of the config | +| **configuration_id** | **str** | | +| **name** | **str** | The name of the config | +| **project_id** | **str** | | +| **wallet_ari** | **str** | The wallet Ari that will be used to sign | +| **token_max_age** | **float** | token time to live in seconds | +| **iota_response_webhook_url** | **str** | webhook to call when data is ready | [optional] | +| **enable_verification** | **bool** | | +| **enable_consent_audit_log** | **bool** | | +| **client_metadata** | [**IotaConfigurationDtoClientMetadata**](IotaConfigurationDtoClientMetadata.md) | | +| **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 URLs 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/python/iota_client/docs/UpdateConfigurationByIdInput.md b/clients/python/iota_client/docs/UpdateConfigurationByIdInput.md index d367d601..8a678de3 100644 --- a/clients/python/iota_client/docs/UpdateConfigurationByIdInput.md +++ b/clients/python/iota_client/docs/UpdateConfigurationByIdInput.md @@ -2,16 +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] | +| 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] | ## Example diff --git a/clients/python/iota_client/test/test_callback_response_ok.py b/clients/python/iota_client/test/test_callback_response_ok.py new file mode 100644 index 00000000..1bc6feeb --- /dev/null +++ b/clients/python/iota_client/test/test_callback_response_ok.py @@ -0,0 +1,57 @@ +# 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.callback_response_ok import CallbackResponseOK # noqa: E501 + +class TestCallbackResponseOK(unittest.TestCase): + """CallbackResponseOK unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CallbackResponseOK: + """Test CallbackResponseOK + 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 `CallbackResponseOK` + """ + model = CallbackResponseOK() # noqa: E501 + if include_optional: + return CallbackResponseOK( + message = '', + redirect_response = affinidi_tdk_iota_client.models.callback_response_ok_redirect_response.CallbackResponseOK_redirectResponse( + redirect_uri = '', + response_code = '', ) + ) + else: + return CallbackResponseOK( + message = '', + ) + """ + + def testCallbackResponseOK(self): + """Test CallbackResponseOK""" + # 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_callback_response_ok_redirect_response.py b/clients/python/iota_client/test/test_callback_response_ok_redirect_response.py new file mode 100644 index 00000000..d56d4a20 --- /dev/null +++ b/clients/python/iota_client/test/test_callback_response_ok_redirect_response.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.callback_response_ok_redirect_response import CallbackResponseOKRedirectResponse # noqa: E501 + +class TestCallbackResponseOKRedirectResponse(unittest.TestCase): + """CallbackResponseOKRedirectResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CallbackResponseOKRedirectResponse: + """Test CallbackResponseOKRedirectResponse + 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 `CallbackResponseOKRedirectResponse` + """ + model = CallbackResponseOKRedirectResponse() # noqa: E501 + if include_optional: + return CallbackResponseOKRedirectResponse( + redirect_uri = '', + response_code = '' + ) + else: + return CallbackResponseOKRedirectResponse( + ) + """ + + def testCallbackResponseOKRedirectResponse(self): + """Test CallbackResponseOKRedirectResponse""" + # 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_cors_fetch_iota_vp_response_ok.py b/clients/python/iota_client/test/test_cors_fetch_iota_vp_response_ok.py new file mode 100644 index 00000000..3022663d --- /dev/null +++ b/clients/python/iota_client/test/test_cors_fetch_iota_vp_response_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_fetch_iota_vp_response_ok import CorsFetchIotaVpResponseOK # noqa: E501 + +class TestCorsFetchIotaVpResponseOK(unittest.TestCase): + """CorsFetchIotaVpResponseOK unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CorsFetchIotaVpResponseOK: + """Test CorsFetchIotaVpResponseOK + 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 `CorsFetchIotaVpResponseOK` + """ + model = CorsFetchIotaVpResponseOK() # noqa: E501 + if include_optional: + return CorsFetchIotaVpResponseOK( + cors_fetch_iota_vp_response_ok = '' + ) + else: + return CorsFetchIotaVpResponseOK( + ) + """ + + def testCorsFetchIotaVpResponseOK(self): + """Test CorsFetchIotaVpResponseOK""" + # 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_cors_initiate_data_sharing_request_ok.py b/clients/python/iota_client/test/test_cors_initiate_data_sharing_request_ok.py new file mode 100644 index 00000000..175292d2 --- /dev/null +++ b/clients/python/iota_client/test/test_cors_initiate_data_sharing_request_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_initiate_data_sharing_request_ok import CorsInitiateDataSharingRequestOK # noqa: E501 + +class TestCorsInitiateDataSharingRequestOK(unittest.TestCase): + """CorsInitiateDataSharingRequestOK unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CorsInitiateDataSharingRequestOK: + """Test CorsInitiateDataSharingRequestOK + 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 `CorsInitiateDataSharingRequestOK` + """ + model = CorsInitiateDataSharingRequestOK() # noqa: E501 + if include_optional: + return CorsInitiateDataSharingRequestOK( + cors_initiate_data_sharing_request_ok = '' + ) + else: + return CorsInitiateDataSharingRequestOK( + ) + """ + + def testCorsInitiateDataSharingRequestOK(self): + """Test CorsInitiateDataSharingRequestOK""" + # 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_fetch_iotavp_response_input.py b/clients/python/iota_client/test/test_fetch_iotavp_response_input.py new file mode 100644 index 00000000..47a7be71 --- /dev/null +++ b/clients/python/iota_client/test/test_fetch_iotavp_response_input.py @@ -0,0 +1,58 @@ +# 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.fetch_iotavp_response_input import FetchIOTAVPResponseInput # noqa: E501 + +class TestFetchIOTAVPResponseInput(unittest.TestCase): + """FetchIOTAVPResponseInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FetchIOTAVPResponseInput: + """Test FetchIOTAVPResponseInput + 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 `FetchIOTAVPResponseInput` + """ + model = FetchIOTAVPResponseInput() # noqa: E501 + if include_optional: + return FetchIOTAVPResponseInput( + correlation_id = '', + transaction_id = '', + response_code = '' + ) + else: + return FetchIOTAVPResponseInput( + correlation_id = '', + transaction_id = '', + response_code = '', + ) + """ + + def testFetchIOTAVPResponseInput(self): + """Test FetchIOTAVPResponseInput""" + # 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_fetch_iotavp_response_ok.py b/clients/python/iota_client/test/test_fetch_iotavp_response_ok.py new file mode 100644 index 00000000..6b48459b --- /dev/null +++ b/clients/python/iota_client/test/test_fetch_iotavp_response_ok.py @@ -0,0 +1,55 @@ +# 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.fetch_iotavp_response_ok import FetchIOTAVPResponseOK # noqa: E501 + +class TestFetchIOTAVPResponseOK(unittest.TestCase): + """FetchIOTAVPResponseOK unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FetchIOTAVPResponseOK: + """Test FetchIOTAVPResponseOK + 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 `FetchIOTAVPResponseOK` + """ + model = FetchIOTAVPResponseOK() # noqa: E501 + if include_optional: + return FetchIOTAVPResponseOK( + correlation_id = '', + presentation_submission = '', + vp_token = '' + ) + else: + return FetchIOTAVPResponseOK( + ) + """ + + def testFetchIOTAVPResponseOK(self): + """Test FetchIOTAVPResponseOK""" + # 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_initiate_data_sharing_request_input.py b/clients/python/iota_client/test/test_initiate_data_sharing_request_input.py new file mode 100644 index 00000000..938f286b --- /dev/null +++ b/clients/python/iota_client/test/test_initiate_data_sharing_request_input.py @@ -0,0 +1,61 @@ +# 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.initiate_data_sharing_request_input import InitiateDataSharingRequestInput # noqa: E501 + +class TestInitiateDataSharingRequestInput(unittest.TestCase): + """InitiateDataSharingRequestInput unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InitiateDataSharingRequestInput: + """Test InitiateDataSharingRequestInput + 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 `InitiateDataSharingRequestInput` + """ + model = InitiateDataSharingRequestInput() # noqa: E501 + if include_optional: + return InitiateDataSharingRequestInput( + query_id = '', + correlation_id = '', + token_max_age = 1.337, + nonce = '', + redirect_uri = '' + ) + else: + return InitiateDataSharingRequestInput( + query_id = '', + correlation_id = '', + nonce = '', + redirect_uri = '', + ) + """ + + def testInitiateDataSharingRequestInput(self): + """Test InitiateDataSharingRequestInput""" + # 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_initiate_data_sharing_request_ok.py b/clients/python/iota_client/test/test_initiate_data_sharing_request_ok.py new file mode 100644 index 00000000..35c2c3e2 --- /dev/null +++ b/clients/python/iota_client/test/test_initiate_data_sharing_request_ok.py @@ -0,0 +1,56 @@ +# 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.initiate_data_sharing_request_ok import InitiateDataSharingRequestOK # noqa: E501 + +class TestInitiateDataSharingRequestOK(unittest.TestCase): + """InitiateDataSharingRequestOK unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InitiateDataSharingRequestOK: + """Test InitiateDataSharingRequestOK + 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 `InitiateDataSharingRequestOK` + """ + model = InitiateDataSharingRequestOK() # noqa: E501 + if include_optional: + return InitiateDataSharingRequestOK( + data = affinidi_tdk_iota_client.models.initiate_data_sharing_request_ok_data.InitiateDataSharingRequestOK_data( + jwt = '', + correlation_id = '', + transaction_id = '', ) + ) + else: + return InitiateDataSharingRequestOK( + ) + """ + + def testInitiateDataSharingRequestOK(self): + """Test InitiateDataSharingRequestOK""" + # 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_initiate_data_sharing_request_ok_data.py b/clients/python/iota_client/test/test_initiate_data_sharing_request_ok_data.py new file mode 100644 index 00000000..7a0bfead --- /dev/null +++ b/clients/python/iota_client/test/test_initiate_data_sharing_request_ok_data.py @@ -0,0 +1,58 @@ +# 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.initiate_data_sharing_request_ok_data import InitiateDataSharingRequestOKData # noqa: E501 + +class TestInitiateDataSharingRequestOKData(unittest.TestCase): + """InitiateDataSharingRequestOKData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InitiateDataSharingRequestOKData: + """Test InitiateDataSharingRequestOKData + 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 `InitiateDataSharingRequestOKData` + """ + model = InitiateDataSharingRequestOKData() # noqa: E501 + if include_optional: + return InitiateDataSharingRequestOKData( + jwt = '', + correlation_id = '', + transaction_id = '' + ) + else: + return InitiateDataSharingRequestOKData( + jwt = '', + correlation_id = '', + transaction_id = '', + ) + """ + + def testInitiateDataSharingRequestOKData(self): + """Test InitiateDataSharingRequestOKData""" + # 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/credential-issuance-client/CHANGELOG.md b/clients/typescript/credential-issuance-client/CHANGELOG.md index 011734c9..3ea25dbc 100644 --- a/clients/typescript/credential-issuance-client/CHANGELOG.md +++ b/clients/typescript/credential-issuance-client/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.26.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/credential-issuance-client-v1.25.0...@affinidi-tdk/credential-issuance-client-v1.26.0) (2024-09-13) + + +### Features + +* update client ais ([#240](https://github.com/affinidi/affinidi-tdk/issues/240)) ([f6461e0](https://github.com/affinidi/affinidi-tdk/commit/f6461e0e194ca40f70adbe2267a820851e04f9a0)) + # [1.25.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/credential-issuance-client-v1.24.0...@affinidi-tdk/credential-issuance-client-v1.25.0) (2024-09-12) diff --git a/clients/typescript/credential-issuance-client/package.json b/clients/typescript/credential-issuance-client/package.json index c898c271..d6f2c0d8 100644 --- a/clients/typescript/credential-issuance-client/package.json +++ b/clients/typescript/credential-issuance-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/credential-issuance-client", - "version": "1.25.0", + "version": "1.26.0", "description": "Affinidi TDK typescript client for Affinidi CREDENTIAL ISSUANCE", "author": "Affinidi", "repository": { diff --git a/clients/typescript/credential-verification-client/CHANGELOG.md b/clients/typescript/credential-verification-client/CHANGELOG.md index 1b7043c7..cfa5aebf 100644 --- a/clients/typescript/credential-verification-client/CHANGELOG.md +++ b/clients/typescript/credential-verification-client/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.26.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/credential-verification-client-v1.25.0...@affinidi-tdk/credential-verification-client-v1.26.0) (2024-09-13) + + +### Features + +* update client ais ([#240](https://github.com/affinidi/affinidi-tdk/issues/240)) ([f6461e0](https://github.com/affinidi/affinidi-tdk/commit/f6461e0e194ca40f70adbe2267a820851e04f9a0)) + # [1.25.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/credential-verification-client-v1.24.0...@affinidi-tdk/credential-verification-client-v1.25.0) (2024-09-12) diff --git a/clients/typescript/credential-verification-client/package.json b/clients/typescript/credential-verification-client/package.json index e8d7525b..befdb88d 100644 --- a/clients/typescript/credential-verification-client/package.json +++ b/clients/typescript/credential-verification-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/credential-verification-client", - "version": "1.25.0", + "version": "1.26.0", "description": "Affinidi TDK typescript client for Affinidi CREDENTIAL VERIFICATION", "author": "Affinidi", "repository": { diff --git a/clients/typescript/iam-client/CHANGELOG.md b/clients/typescript/iam-client/CHANGELOG.md index b9416466..f5793fc7 100644 --- a/clients/typescript/iam-client/CHANGELOG.md +++ b/clients/typescript/iam-client/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.26.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/iam-client-v1.25.0...@affinidi-tdk/iam-client-v1.26.0) (2024-09-13) + + +### Features + +* update client ais ([#240](https://github.com/affinidi/affinidi-tdk/issues/240)) ([f6461e0](https://github.com/affinidi/affinidi-tdk/commit/f6461e0e194ca40f70adbe2267a820851e04f9a0)) + # [1.25.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/iam-client-v1.24.0...@affinidi-tdk/iam-client-v1.25.0) (2024-09-12) diff --git a/clients/typescript/iam-client/package.json b/clients/typescript/iam-client/package.json index 4cca4045..fad25e30 100644 --- a/clients/typescript/iam-client/package.json +++ b/clients/typescript/iam-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/iam-client", - "version": "1.25.0", + "version": "1.26.0", "description": "Affinidi TDK typescript client for Affinidi IAM", "author": "Affinidi", "repository": { diff --git a/clients/typescript/iota-client/CHANGELOG.md b/clients/typescript/iota-client/CHANGELOG.md index 86857676..5eb4a154 100644 --- a/clients/typescript/iota-client/CHANGELOG.md +++ b/clients/typescript/iota-client/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.22.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/iota-client-v1.21.0...@affinidi-tdk/iota-client-v1.22.0) (2024-09-13) + + +### Features + +* update client ais ([#240](https://github.com/affinidi/affinidi-tdk/issues/240)) ([f6461e0](https://github.com/affinidi/affinidi-tdk/commit/f6461e0e194ca40f70adbe2267a820851e04f9a0)) + # [1.21.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/iota-client-v1.20.0...@affinidi-tdk/iota-client-v1.21.0) (2024-09-12) diff --git a/clients/typescript/iota-client/api.ts b/clients/typescript/iota-client/api.ts index a6d46a30..cd7d55a4 100644 --- a/clients/typescript/iota-client/api.ts +++ b/clients/typescript/iota-client/api.ts @@ -228,6 +228,44 @@ export interface CallbackInput { */ error_description?: string } +/** + * + * @export + * @interface CallbackResponseOK + */ +export interface CallbackResponseOK { + /** + * A message to vault that flow is updated successfully + * @type {string} + * @memberof CallbackResponseOK + */ + message: string + /** + * + * @type {CallbackResponseOKRedirectResponse} + * @memberof CallbackResponseOK + */ + redirectResponse?: CallbackResponseOKRedirectResponse +} +/** + * + * @export + * @interface CallbackResponseOKRedirectResponse + */ +export interface CallbackResponseOKRedirectResponse { + /** + * the configured redirect url where vault will redirect + * @type {string} + * @memberof CallbackResponseOKRedirectResponse + */ + redirectUri?: string + /** + * Code which will be used to retrieve data along with transactionId + * @type {string} + * @memberof CallbackResponseOKRedirectResponse + */ + responseCode?: string +} /** * * @export @@ -323,6 +361,32 @@ export interface CorsAwsExchangeCredentialsProjectTokenOK { */ corsAwsExchangeCredentialsProjectTokenOk?: string } +/** + * + * @export + * @interface CorsFetchIotaVpResponseOK + */ +export interface CorsFetchIotaVpResponseOK { + /** + * + * @type {string} + * @memberof CorsFetchIotaVpResponseOK + */ + corsFetchIotaVpResponseOk?: string +} +/** + * + * @export + * @interface CorsInitiateDataSharingRequestOK + */ +export interface CorsInitiateDataSharingRequestOK { + /** + * + * @type {string} + * @memberof CorsInitiateDataSharingRequestOK + */ + corsInitiateDataSharingRequestOk?: string +} /** * * @export @@ -403,7 +467,28 @@ export interface CreateIotaConfigurationInput { * @memberof CreateIotaConfigurationInput */ clientMetadata: IotaConfigurationDtoClientMetadata + /** + * 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 CreateIotaConfigurationInput + */ + mode?: CreateIotaConfigurationInputModeEnum + /** + * 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 CreateIotaConfigurationInput + */ + redirectUris?: Array } + +export const CreateIotaConfigurationInputModeEnum = { + Redirect: 'redirect', + Websocket: 'websocket', +} as const + +export type CreateIotaConfigurationInputModeEnum = + (typeof CreateIotaConfigurationInputModeEnum)[keyof typeof CreateIotaConfigurationInputModeEnum] + /** * * @export @@ -442,6 +527,58 @@ export interface DeletePexQueriesInput { */ queryIds: Array } +/** + * + * @export + * @interface FetchIOTAVPResponseInput + */ +export interface FetchIOTAVPResponseInput { + /** + * The correlation ID + * @type {string} + * @memberof FetchIOTAVPResponseInput + */ + correlationId: string + /** + * The transaction ID + * @type {string} + * @memberof FetchIOTAVPResponseInput + */ + transactionId: string + /** + * The response code. + * @type {string} + * @memberof FetchIOTAVPResponseInput + */ + responseCode: string +} +/** + * + * @export + * @interface FetchIOTAVPResponseOK + */ +export interface FetchIOTAVPResponseOK { + [key: string]: any + + /** + * A correlationId used for the flow + * @type {string} + * @memberof FetchIOTAVPResponseOK + */ + correlationId?: string + /** + * A string that must be a valid JSON object. The structure of presentation submission should follow OID4VP standard. + * @type {string} + * @memberof FetchIOTAVPResponseOK + */ + presentation_submission?: string + /** + * A string that must be a valid JSON object. Ensure to escape special characters properly.. + * @type {string} + * @memberof FetchIOTAVPResponseOK + */ + vp_token?: string +} /** * * @export @@ -467,6 +604,81 @@ export interface GetIotaConfigurationMetaDataOK { */ logo: string } +/** + * + * @export + * @interface InitiateDataSharingRequestInput + */ +export interface InitiateDataSharingRequestInput { + /** + * + * @type {string} + * @memberof InitiateDataSharingRequestInput + */ + queryId: string + /** + * + * @type {string} + * @memberof InitiateDataSharingRequestInput + */ + correlationId: string + /** + * token time to live in seconds + * @type {number} + * @memberof InitiateDataSharingRequestInput + */ + tokenMaxAge?: number + /** + * Random value used to prevent replay attacks + * @type {string} + * @memberof InitiateDataSharingRequestInput + */ + nonce: 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. + * @type {string} + * @memberof InitiateDataSharingRequestInput + */ + redirectUri: string +} +/** + * + * @export + * @interface InitiateDataSharingRequestOK + */ +export interface InitiateDataSharingRequestOK { + /** + * + * @type {InitiateDataSharingRequestOKData} + * @memberof InitiateDataSharingRequestOK + */ + data?: InitiateDataSharingRequestOKData +} +/** + * + * @export + * @interface InitiateDataSharingRequestOKData + */ +export interface InitiateDataSharingRequestOKData { + /** + * + * @type {string} + * @memberof InitiateDataSharingRequestOKData + */ + jwt: string + /** + * + * @type {string} + * @memberof InitiateDataSharingRequestOKData + */ + correlationId: string + /** + * + * @type {string} + * @memberof InitiateDataSharingRequestOKData + */ + transactionId: string +} /** * * @export @@ -621,7 +833,28 @@ export interface IotaConfigurationDto { * @memberof IotaConfigurationDto */ clientMetadata: IotaConfigurationDtoClientMetadata + /** + * 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 IotaConfigurationDto + */ + mode?: IotaConfigurationDtoModeEnum + /** + * the URLs 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 IotaConfigurationDto + */ + redirectUris?: Array } + +export const IotaConfigurationDtoModeEnum = { + Redirect: 'redirect', + Websocket: 'websocket', +} as const + +export type IotaConfigurationDtoModeEnum = + (typeof IotaConfigurationDtoModeEnum)[keyof typeof IotaConfigurationDtoModeEnum] + /** * iota configuration client metadata * @export @@ -1195,7 +1428,28 @@ export interface UpdateConfigurationByIdInput { * @memberof UpdateConfigurationByIdInput */ clientMetadata?: IotaConfigurationDtoClientMetadata + /** + * 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 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} + * @memberof UpdateConfigurationByIdInput + */ + redirectUri?: string } + +export const UpdateConfigurationByIdInputModeEnum = { + Redirect: 'redirect', + Websocket: 'websocket', +} as const + +export type UpdateConfigurationByIdInputModeEnum = + (typeof UpdateConfigurationByIdInputModeEnum)[keyof typeof UpdateConfigurationByIdInputModeEnum] + /** * * @export @@ -1364,7 +1618,10 @@ export const CallbackApiFp = function (configuration?: Configuration) { callbackInput: CallbackInput, options?: RawAxiosRequestConfig, ): Promise< - (axios?: AxiosInstance, basePath?: string) => AxiosPromise + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.iotOIDC4VPCallback( @@ -1408,7 +1665,7 @@ export const CallbackApiFactory = function ( iotOIDC4VPCallback( callbackInput: CallbackInput, options?: RawAxiosRequestConfig, - ): AxiosPromise { + ): AxiosPromise { return localVarFp .iotOIDC4VPCallback(callbackInput, options) .then((request) => request(axios, basePath)) @@ -2598,6 +2855,120 @@ export const IotaApiAxiosParamCreator = function ( options: localVarRequestOptions, } }, + /** + * This will get the final data response + * @param {FetchIOTAVPResponseInput} fetchIOTAVPResponseInput FetchIOTAVPResponseInput + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchIotaVpResponse: async ( + fetchIOTAVPResponseInput: FetchIOTAVPResponseInput, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'fetchIOTAVPResponseInput' is not null or undefined + assertParamExists( + 'fetchIotaVpResponse', + 'fetchIOTAVPResponseInput', + fetchIOTAVPResponseInput, + ) + const localVarPath = `/v1/fetch-iota-response` + // 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 + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + localVarHeaderParameter['Content-Type'] = 'application/json' + + setSearchParams(localVarUrlObj, localVarQueryParameter) + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {} + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + } + localVarRequestOptions.data = serializeDataIfNeeded( + fetchIOTAVPResponseInput, + localVarRequestOptions, + configuration, + ) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + } + }, + /** + * This will initiate data sharing request for the data sharing flow + * @param {InitiateDataSharingRequestInput} initiateDataSharingRequestInput InitiateDataSharingRequestInput + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + initiateDataSharingRequest: async ( + initiateDataSharingRequestInput: InitiateDataSharingRequestInput, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'initiateDataSharingRequestInput' is not null or undefined + assertParamExists( + 'initiateDataSharingRequest', + 'initiateDataSharingRequestInput', + initiateDataSharingRequestInput, + ) + const localVarPath = `/v1/initiate-data-sharing-request` + // 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 + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + localVarHeaderParameter['Content-Type'] = 'application/json' + + setSearchParams(localVarUrlObj, localVarQueryParameter) + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {} + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + } + localVarRequestOptions.data = serializeDataIfNeeded( + initiateDataSharingRequestInput, + localVarRequestOptions, + configuration, + ) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + } + }, /** * It exchanges limited token into cognito sts identity credentials * @param {IotaExchangeCredentials} iotaExchangeCredentials IotaAwsExchangeCredentials @@ -2826,6 +3197,72 @@ export const IotaApiFp = function (configuration?: Configuration) { configuration, )(axios, localVarOperationServerBasePath || basePath) }, + /** + * This will get the final data response + * @param {FetchIOTAVPResponseInput} fetchIOTAVPResponseInput FetchIOTAVPResponseInput + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async fetchIotaVpResponse( + fetchIOTAVPResponseInput: FetchIOTAVPResponseInput, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.fetchIotaVpResponse( + fetchIOTAVPResponseInput, + options, + ) + const localVarOperationServerIndex = configuration?.serverIndex ?? 0 + const localVarOperationServerBasePath = + operationServerMap['IotaApi.fetchIotaVpResponse']?.[ + localVarOperationServerIndex + ]?.url + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath) + }, + /** + * This will initiate data sharing request for the data sharing flow + * @param {InitiateDataSharingRequestInput} initiateDataSharingRequestInput InitiateDataSharingRequestInput + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async initiateDataSharingRequest( + initiateDataSharingRequestInput: InitiateDataSharingRequestInput, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.initiateDataSharingRequest( + initiateDataSharingRequestInput, + options, + ) + const localVarOperationServerIndex = configuration?.serverIndex ?? 0 + const localVarOperationServerBasePath = + operationServerMap['IotaApi.initiateDataSharingRequest']?.[ + localVarOperationServerIndex + ]?.url + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath) + }, /** * It exchanges limited token into cognito sts identity credentials * @param {IotaExchangeCredentials} iotaExchangeCredentials IotaAwsExchangeCredentials @@ -2951,6 +3388,34 @@ export const IotaApiFactory = function ( .deletePexQueries(configurationId, options) .then((request) => request(axios, basePath)) }, + /** + * This will get the final data response + * @param {FetchIOTAVPResponseInput} fetchIOTAVPResponseInput FetchIOTAVPResponseInput + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + fetchIotaVpResponse( + fetchIOTAVPResponseInput: FetchIOTAVPResponseInput, + options?: RawAxiosRequestConfig, + ): AxiosPromise { + return localVarFp + .fetchIotaVpResponse(fetchIOTAVPResponseInput, options) + .then((request) => request(axios, basePath)) + }, + /** + * This will initiate data sharing request for the data sharing flow + * @param {InitiateDataSharingRequestInput} initiateDataSharingRequestInput InitiateDataSharingRequestInput + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + initiateDataSharingRequest( + initiateDataSharingRequestInput: InitiateDataSharingRequestInput, + options?: RawAxiosRequestConfig, + ): AxiosPromise { + return localVarFp + .initiateDataSharingRequest(initiateDataSharingRequestInput, options) + .then((request) => request(axios, basePath)) + }, /** * It exchanges limited token into cognito sts identity credentials * @param {IotaExchangeCredentials} iotaExchangeCredentials IotaAwsExchangeCredentials @@ -3043,6 +3508,38 @@ export class IotaApi extends BaseAPI { .then((request) => request(this.axios, this.basePath)) } + /** + * This will get the final data response + * @param {FetchIOTAVPResponseInput} fetchIOTAVPResponseInput FetchIOTAVPResponseInput + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IotaApi + */ + public fetchIotaVpResponse( + fetchIOTAVPResponseInput: FetchIOTAVPResponseInput, + options?: RawAxiosRequestConfig, + ) { + return IotaApiFp(this.configuration) + .fetchIotaVpResponse(fetchIOTAVPResponseInput, options) + .then((request) => request(this.axios, this.basePath)) + } + + /** + * This will initiate data sharing request for the data sharing flow + * @param {InitiateDataSharingRequestInput} initiateDataSharingRequestInput InitiateDataSharingRequestInput + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IotaApi + */ + public initiateDataSharingRequest( + initiateDataSharingRequestInput: InitiateDataSharingRequestInput, + options?: RawAxiosRequestConfig, + ) { + return IotaApiFp(this.configuration) + .initiateDataSharingRequest(initiateDataSharingRequestInput, options) + .then((request) => request(this.axios, this.basePath)) + } + /** * It exchanges limited token into cognito sts identity credentials * @param {IotaExchangeCredentials} iotaExchangeCredentials IotaAwsExchangeCredentials diff --git a/clients/typescript/iota-client/docs/.openapi-generator/FILES b/clients/typescript/iota-client/docs/.openapi-generator/FILES index 8c756dce..0522b38f 100644 --- a/clients/typescript/iota-client/docs/.openapi-generator/FILES +++ b/clients/typescript/iota-client/docs/.openapi-generator/FILES @@ -10,15 +10,24 @@ Models/AwsExchangeCredentialsProjectToken.md Models/AwsExchangeCredentialsProjectTokenOK.md Models/AwsExchangeCredentialsProjectTokenOK_credentials.md Models/CallbackInput.md +Models/CallbackResponseOK.md +Models/CallbackResponseOK_redirectResponse.md Models/ConsentDto.md Models/CorsAwsExchangeCredentialsOK.md Models/CorsAwsExchangeCredentialsProjectTokenOK.md +Models/CorsFetchIotaVpResponseOK.md +Models/CorsInitiateDataSharingRequestOK.md Models/CorsIotOidc4vpcallbackOK.md Models/CorsIotaExchangeCredentialsOK.md Models/CreateIotaConfigurationInput.md Models/CreatePexQueryInput.md Models/DeletePexQueriesInput.md +Models/FetchIOTAVPResponseInput.md +Models/FetchIOTAVPResponseOK.md Models/GetIotaConfigurationMetaDataOK.md +Models/InitiateDataSharingRequestInput.md +Models/InitiateDataSharingRequestOK.md +Models/InitiateDataSharingRequestOK_data.md Models/InvalidParameterError.md Models/InvalidParameterError_details_inner.md Models/IotaConfigurationDto.md diff --git a/clients/typescript/iota-client/docs/Apis/CallbackApi.md b/clients/typescript/iota-client/docs/Apis/CallbackApi.md index 48bc12d5..72fb6447 100644 --- a/clients/typescript/iota-client/docs/Apis/CallbackApi.md +++ b/clients/typescript/iota-client/docs/Apis/CallbackApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* # **iotOIDC4VPCallback** -> Object iotOIDC4VPCallback(CallbackInput) +> CallbackResponseOK iotOIDC4VPCallback(CallbackInput) Processes the callback for OIDC4VP flows @@ -24,7 +24,7 @@ Processes the callback for OIDC4VP flows ### Return type -**Object** +[**CallbackResponseOK**](../Models/CallbackResponseOK.md) ### Authorization diff --git a/clients/typescript/iota-client/docs/Apis/IotaApi.md b/clients/typescript/iota-client/docs/Apis/IotaApi.md index 4b0878b1..c12b8b67 100644 --- a/clients/typescript/iota-client/docs/Apis/IotaApi.md +++ b/clients/typescript/iota-client/docs/Apis/IotaApi.md @@ -7,6 +7,8 @@ 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 | +| [**fetchIotaVpResponse**](IotaApi.md#fetchIotaVpResponse) | **POST** /v1/fetch-iota-response | | +| [**initiateDataSharingRequest**](IotaApi.md#initiateDataSharingRequest) | **POST** /v1/initiate-data-sharing-request | | | [**iotaExchangeCredentials**](IotaApi.md#iotaExchangeCredentials) | **POST** /v1/exchange-credentials | | | [**savePexQueries**](IotaApi.md#savePexQueries) | **POST** /v1/configurations/{configurationId}/save-queries | | @@ -93,6 +95,60 @@ null (empty response body) - **Content-Type**: Not defined - **Accept**: application/json + + +# **fetchIotaVpResponse** + +> FetchIOTAVPResponseOK fetchIotaVpResponse(FetchIOTAVPResponseInput) + + This will get the final data response + +### Parameters + +| Name | Type | Description | Notes | +| ---------------------------- | --------------------------------------------------------------------- | ------------------------ | ----- | +| **FetchIOTAVPResponseInput** | [**FetchIOTAVPResponseInput**](../Models/FetchIOTAVPResponseInput.md) | FetchIOTAVPResponseInput | | + +### Return type + +[**FetchIOTAVPResponseOK**](../Models/FetchIOTAVPResponseOK.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + + +# **initiateDataSharingRequest** + +> InitiateDataSharingRequestOK initiateDataSharingRequest(InitiateDataSharingRequestInput) + + This will initiate data sharing request for the data sharing flow + +### Parameters + +| Name | Type | Description | Notes | +| ----------------------------------- | ----------------------------------------------------------------------------------- | ------------------------------- | ----- | +| **InitiateDataSharingRequestInput** | [**InitiateDataSharingRequestInput**](../Models/InitiateDataSharingRequestInput.md) | InitiateDataSharingRequestInput | | + +### Return type + +[**InitiateDataSharingRequestOK**](../Models/InitiateDataSharingRequestOK.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + # **iotaExchangeCredentials** diff --git a/clients/typescript/iota-client/docs/Models/CallbackResponseOK.md b/clients/typescript/iota-client/docs/Models/CallbackResponseOK.md new file mode 100644 index 00000000..5cca2fb3 --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/CallbackResponseOK.md @@ -0,0 +1,10 @@ +# CallbackResponseOK + +## Properties + +| Name | Type | Description | Notes | +| -------------------- | --------------------------------------------------------------------------------- | ---------------------------------------------------- | ---------------------------- | +| **message** | **String** | A message to vault that flow is updated successfully | [default to null] | +| **redirectResponse** | [**CallbackResponseOK_redirectResponse**](CallbackResponseOK_redirectResponse.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/iota-client/docs/Models/CallbackResponseOK_redirectResponse.md b/clients/typescript/iota-client/docs/Models/CallbackResponseOK_redirectResponse.md new file mode 100644 index 00000000..92995413 --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/CallbackResponseOK_redirectResponse.md @@ -0,0 +1,10 @@ +# CallbackResponseOK_redirectResponse + +## Properties + +| Name | Type | Description | Notes | +| ---------------- | ---------- | ----------------------------------------------------------------- | ---------------------------- | +| **redirectUri** | **String** | the configured redirect url where vault will redirect | [optional] [default to null] | +| **responseCode** | **String** | Code which will be used to retrieve data along with transactionId | [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/CorsFetchIotaVpResponseOK.md b/clients/typescript/iota-client/docs/Models/CorsFetchIotaVpResponseOK.md new file mode 100644 index 00000000..3ff9755c --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/CorsFetchIotaVpResponseOK.md @@ -0,0 +1,9 @@ +# CorsFetchIotaVpResponseOK + +## Properties + +| Name | Type | Description | Notes | +| ----------------------------- | ---------- | ----------- | ---------------------------- | +| **corsFetchIotaVpResponseOk** | **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/CorsInitiateDataSharingRequestOK.md b/clients/typescript/iota-client/docs/Models/CorsInitiateDataSharingRequestOK.md new file mode 100644 index 00000000..efc7ac54 --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/CorsInitiateDataSharingRequestOK.md @@ -0,0 +1,9 @@ +# CorsInitiateDataSharingRequestOK + +## Properties + +| Name | Type | Description | Notes | +| ------------------------------------ | ---------- | ----------- | ---------------------------- | +| **corsInitiateDataSharingRequestOk** | **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/CreateIotaConfigurationInput.md b/clients/typescript/iota-client/docs/Models/CreateIotaConfigurationInput.md index bfa5687f..1c026fc5 100644 --- a/clients/typescript/iota-client/docs/Models/CreateIotaConfigurationInput.md +++ b/clients/typescript/iota-client/docs/Models/CreateIotaConfigurationInput.md @@ -2,15 +2,17 @@ ## Properties -| Name | Type | Description | Notes | -| -------------------------- | --------------------------------------------------------------------------------- | ---------------------------------------- | ---------------------------- | -| **name** | **String** | The name of the configuration | [default to null] | -| **description** | **String** | Description of the configuration | [optional] [default to null] | -| **walletAri** | **String** | The wallet Ari that will be used to sign | [default to null] | -| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] [default to null] | -| **enableVerification** | **Boolean** | | [default to null] | -| **enableConsentAuditLog** | **Boolean** | | [default to null] | -| **tokenMaxAge** | **BigDecimal** | token time to live in seconds | [optional] [default to null] | -| **clientMetadata** | [**IotaConfigurationDto_clientMetadata**](IotaConfigurationDto_clientMetadata.md) | | [default to null] | +| Name | Type | Description | Notes | +| -------------------------- | --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | +| **name** | **String** | The name of the configuration | [default to null] | +| **description** | **String** | Description of the configuration | [optional] [default to null] | +| **walletAri** | **String** | The wallet Ari that will be used to sign | [default to null] | +| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] [default to null] | +| **enableVerification** | **Boolean** | | [default to null] | +| **enableConsentAuditLog** | **Boolean** | | [default to null] | +| **tokenMaxAge** | **BigDecimal** | token time to live in seconds | [optional] [default to null] | +| **clientMetadata** | [**IotaConfigurationDto_clientMetadata**](IotaConfigurationDto_clientMetadata.md) | | [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/clients/typescript/iota-client/docs/Models/FetchIOTAVPResponseInput.md b/clients/typescript/iota-client/docs/Models/FetchIOTAVPResponseInput.md new file mode 100644 index 00000000..8e3b1708 --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/FetchIOTAVPResponseInput.md @@ -0,0 +1,11 @@ +# FetchIOTAVPResponseInput + +## 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] | + +[[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/FetchIOTAVPResponseOK.md b/clients/typescript/iota-client/docs/Models/FetchIOTAVPResponseOK.md new file mode 100644 index 00000000..3baabcbb --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/FetchIOTAVPResponseOK.md @@ -0,0 +1,11 @@ +# FetchIOTAVPResponseOK + +## Properties + +| Name | Type | Description | Notes | +| --------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------ | ---------------------------- | +| **correlationId** | **String** | A correlationId used for the flow | [optional] [default to null] | +| **presentation_submission** | **String** | A string that must be a valid JSON object. The structure of presentation submission should follow OID4VP standard. | [optional] [default to null] | +| **vp_token** | **String** | A string that must be a valid JSON object. Ensure to escape special characters properly.. | [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/InitiateDataSharingRequestInput.md b/clients/typescript/iota-client/docs/Models/InitiateDataSharingRequestInput.md new file mode 100644 index 00000000..dc32ec60 --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/InitiateDataSharingRequestInput.md @@ -0,0 +1,13 @@ +# InitiateDataSharingRequestInput + +## 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] | + +[[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/InitiateDataSharingRequestOK.md b/clients/typescript/iota-client/docs/Models/InitiateDataSharingRequestOK.md new file mode 100644 index 00000000..353f6c59 --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/InitiateDataSharingRequestOK.md @@ -0,0 +1,9 @@ +# InitiateDataSharingRequestOK + +## Properties + +| Name | Type | Description | Notes | +| -------- | ----------------------------------------------------------------------------- | ----------- | ---------------------------- | +| **data** | [**InitiateDataSharingRequestOK_data**](InitiateDataSharingRequestOK_data.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/iota-client/docs/Models/InitiateDataSharingRequestOK_data.md b/clients/typescript/iota-client/docs/Models/InitiateDataSharingRequestOK_data.md new file mode 100644 index 00000000..a6b5dd44 --- /dev/null +++ b/clients/typescript/iota-client/docs/Models/InitiateDataSharingRequestOK_data.md @@ -0,0 +1,11 @@ +# InitiateDataSharingRequestOK_data + +## Properties + +| Name | Type | Description | Notes | +| ----------------- | ---------- | ----------- | ----------------- | +| **jwt** | **String** | | [default to null] | +| **correlationId** | **String** | | [default to null] | +| **transactionId** | **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/Models/IotaConfigurationDto.md b/clients/typescript/iota-client/docs/Models/IotaConfigurationDto.md index 9baa7657..9496e3d0 100644 --- a/clients/typescript/iota-client/docs/Models/IotaConfigurationDto.md +++ b/clients/typescript/iota-client/docs/Models/IotaConfigurationDto.md @@ -2,17 +2,19 @@ ## Properties -| Name | Type | Description | Notes | -| -------------------------- | --------------------------------------------------------------------------------- | ---------------------------------------- | ---------------------------- | -| **ari** | **String** | The ARI of the config | [default to null] | -| **configurationId** | **String** | | [default to null] | -| **name** | **String** | The name of the config | [default to null] | -| **projectId** | **String** | | [default to null] | -| **walletAri** | **String** | The wallet Ari that will be used to sign | [default to null] | -| **tokenMaxAge** | **BigDecimal** | token time to live in seconds | [default to null] | -| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] [default to null] | -| **enableVerification** | **Boolean** | | [default to null] | -| **enableConsentAuditLog** | **Boolean** | | [default to null] | -| **clientMetadata** | [**IotaConfigurationDto_clientMetadata**](IotaConfigurationDto_clientMetadata.md) | | [default to null] | +| Name | Type | Description | Notes | +| -------------------------- | --------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | +| **ari** | **String** | The ARI of the config | [default to null] | +| **configurationId** | **String** | | [default to null] | +| **name** | **String** | The name of the config | [default to null] | +| **projectId** | **String** | | [default to null] | +| **walletAri** | **String** | The wallet Ari that will be used to sign | [default to null] | +| **tokenMaxAge** | **BigDecimal** | token time to live in seconds | [default to null] | +| **iotaResponseWebhookURL** | **String** | webhook to call when data is ready | [optional] [default to null] | +| **enableVerification** | **Boolean** | | [default to null] | +| **enableConsentAuditLog** | **Boolean** | | [default to null] | +| **clientMetadata** | [**IotaConfigurationDto_clientMetadata**](IotaConfigurationDto_clientMetadata.md) | | [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 URLs 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/clients/typescript/iota-client/docs/Models/UpdateConfigurationByIdInput.md b/clients/typescript/iota-client/docs/Models/UpdateConfigurationByIdInput.md index 9bca419f..cd8251ee 100644 --- a/clients/typescript/iota-client/docs/Models/UpdateConfigurationByIdInput.md +++ b/clients/typescript/iota-client/docs/Models/UpdateConfigurationByIdInput.md @@ -2,15 +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] | +| 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] | [[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 86b6de3a..e13f38cb 100644 --- a/clients/typescript/iota-client/docs/README.md +++ b/clients/typescript/iota-client/docs/README.md @@ -6,26 +6,28 @@ 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_ | [**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} | | +| 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_ | [**fetchIotaVpResponse**](Apis/IotaApi.md#fetchiotavpresponse) | **POST** /v1/fetch-iota-response | This will get the final data response | +| _IotaApi_ | [**initiateDataSharingRequest**](Apis/IotaApi.md#initiatedatasharingrequest) | **POST** /v1/initiate-data-sharing-request | This will initiate data sharing request for the data sharing flow | +| _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} | | @@ -38,15 +40,24 @@ All URIs are relative to *https://apse1.api.affinidi.io/ais* - [AwsExchangeCredentialsProjectTokenOK](./Models/AwsExchangeCredentialsProjectTokenOK.md) - [AwsExchangeCredentialsProjectTokenOK_credentials](./Models/AwsExchangeCredentialsProjectTokenOK_credentials.md) - [CallbackInput](./Models/CallbackInput.md) +- [CallbackResponseOK](./Models/CallbackResponseOK.md) +- [CallbackResponseOK_redirectResponse](./Models/CallbackResponseOK_redirectResponse.md) - [ConsentDto](./Models/ConsentDto.md) - [CorsAwsExchangeCredentialsOK](./Models/CorsAwsExchangeCredentialsOK.md) - [CorsAwsExchangeCredentialsProjectTokenOK](./Models/CorsAwsExchangeCredentialsProjectTokenOK.md) +- [CorsFetchIotaVpResponseOK](./Models/CorsFetchIotaVpResponseOK.md) +- [CorsInitiateDataSharingRequestOK](./Models/CorsInitiateDataSharingRequestOK.md) - [CorsIotOidc4vpcallbackOK](./Models/CorsIotOidc4vpcallbackOK.md) - [CorsIotaExchangeCredentialsOK](./Models/CorsIotaExchangeCredentialsOK.md) - [CreateIotaConfigurationInput](./Models/CreateIotaConfigurationInput.md) - [CreatePexQueryInput](./Models/CreatePexQueryInput.md) - [DeletePexQueriesInput](./Models/DeletePexQueriesInput.md) +- [FetchIOTAVPResponseInput](./Models/FetchIOTAVPResponseInput.md) +- [FetchIOTAVPResponseOK](./Models/FetchIOTAVPResponseOK.md) - [GetIotaConfigurationMetaDataOK](./Models/GetIotaConfigurationMetaDataOK.md) +- [InitiateDataSharingRequestInput](./Models/InitiateDataSharingRequestInput.md) +- [InitiateDataSharingRequestOK](./Models/InitiateDataSharingRequestOK.md) +- [InitiateDataSharingRequestOK_data](./Models/InitiateDataSharingRequestOK_data.md) - [InvalidParameterError](./Models/InvalidParameterError.md) - [InvalidParameterError_details_inner](./Models/InvalidParameterError_details_inner.md) - [IotaConfigurationDto](./Models/IotaConfigurationDto.md) diff --git a/clients/typescript/iota-client/package.json b/clients/typescript/iota-client/package.json index 90ee4eeb..9d443252 100644 --- a/clients/typescript/iota-client/package.json +++ b/clients/typescript/iota-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/iota-client", - "version": "1.21.0", + "version": "1.22.0", "description": "Affinidi TDK typescript client for Affinidi IOTA", "author": "Affinidi", "repository": { diff --git a/clients/typescript/login-configuration-client/CHANGELOG.md b/clients/typescript/login-configuration-client/CHANGELOG.md index e60f612e..bdf04e86 100644 --- a/clients/typescript/login-configuration-client/CHANGELOG.md +++ b/clients/typescript/login-configuration-client/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.28.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/login-configuration-client-v1.27.0...@affinidi-tdk/login-configuration-client-v1.28.0) (2024-09-13) + + +### Features + +* update client ais ([#240](https://github.com/affinidi/affinidi-tdk/issues/240)) ([f6461e0](https://github.com/affinidi/affinidi-tdk/commit/f6461e0e194ca40f70adbe2267a820851e04f9a0)) + # [1.27.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/login-configuration-client-v1.26.0...@affinidi-tdk/login-configuration-client-v1.27.0) (2024-09-12) diff --git a/clients/typescript/login-configuration-client/package.json b/clients/typescript/login-configuration-client/package.json index 43c8776e..cd9da3cf 100644 --- a/clients/typescript/login-configuration-client/package.json +++ b/clients/typescript/login-configuration-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/login-configuration-client", - "version": "1.27.0", + "version": "1.28.0", "description": "Affinidi TDK typescript client for Affinidi LOGIN CONFIGURATION", "author": "Affinidi", "repository": { diff --git a/clients/typescript/wallets-client/CHANGELOG.md b/clients/typescript/wallets-client/CHANGELOG.md index 9cf1a49a..95684256 100644 --- a/clients/typescript/wallets-client/CHANGELOG.md +++ b/clients/typescript/wallets-client/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.25.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/wallets-client-v1.24.0...@affinidi-tdk/wallets-client-v1.25.0) (2024-09-13) + + +### Features + +* update client ais ([#240](https://github.com/affinidi/affinidi-tdk/issues/240)) ([f6461e0](https://github.com/affinidi/affinidi-tdk/commit/f6461e0e194ca40f70adbe2267a820851e04f9a0)) + # [1.24.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/wallets-client-v1.23.0...@affinidi-tdk/wallets-client-v1.24.0) (2024-09-12) diff --git a/clients/typescript/wallets-client/package.json b/clients/typescript/wallets-client/package.json index c79cc347..81269360 100644 --- a/clients/typescript/wallets-client/package.json +++ b/clients/typescript/wallets-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/wallets-client", - "version": "1.24.0", + "version": "1.25.0", "description": "Affinidi TDK typescript client for Affinidi WALLETS", "author": "Affinidi", "repository": { diff --git a/libs/iota-browser/CHANGELOG.md b/libs/iota-browser/CHANGELOG.md index 25926d51..81b28615 100644 --- a/libs/iota-browser/CHANGELOG.md +++ b/libs/iota-browser/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.16.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/iota-browser-v1.15.0...@affinidi-tdk/iota-browser-v1.16.0) (2024-09-13) + + +### Features + +* update client ais ([#240](https://github.com/affinidi/affinidi-tdk/issues/240)) ([f6461e0](https://github.com/affinidi/affinidi-tdk/commit/f6461e0e194ca40f70adbe2267a820851e04f9a0)) + # [1.15.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/iota-browser-v1.14.0...@affinidi-tdk/iota-browser-v1.15.0) (2024-09-12) diff --git a/libs/iota-browser/package.json b/libs/iota-browser/package.json index e687e901..0a02595e 100644 --- a/libs/iota-browser/package.json +++ b/libs/iota-browser/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/iota-browser", - "version": "1.15.0", + "version": "1.16.0", "description": "Browser module to fetch data through Affinidi Iota Framework", "author": "Affinidi", "repository": { diff --git a/libs/iota-core/CHANGELOG.md b/libs/iota-core/CHANGELOG.md index 9370e836..0883da72 100644 --- a/libs/iota-core/CHANGELOG.md +++ b/libs/iota-core/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.17.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/iota-core-v1.16.0...@affinidi-tdk/iota-core-v1.17.0) (2024-09-13) + + +### Features + +* update client ais ([#240](https://github.com/affinidi/affinidi-tdk/issues/240)) ([f6461e0](https://github.com/affinidi/affinidi-tdk/commit/f6461e0e194ca40f70adbe2267a820851e04f9a0)) + # [1.16.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/iota-core-v1.15.0...@affinidi-tdk/iota-core-v1.16.0) (2024-09-12) diff --git a/libs/iota-core/package.json b/libs/iota-core/package.json index dee565ed..cfb64d0e 100644 --- a/libs/iota-core/package.json +++ b/libs/iota-core/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/iota-core", - "version": "1.16.0", + "version": "1.17.0", "description": "Affinidi Iota Framework core library primarily used in the backend", "author": "Affinidi", "repository": { diff --git a/package-lock.json b/package-lock.json index 15a5a787..8edd726d 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.24.0", + "version": "1.25.0", "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.24.0", + "version": "1.25.0", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -115,7 +115,7 @@ }, "clients/typescript/iam-client": { "name": "@affinidi-tdk/iam-client", - "version": "1.24.0", + "version": "1.25.0", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -149,7 +149,7 @@ }, "clients/typescript/iota-client": { "name": "@affinidi-tdk/iota-client", - "version": "1.20.0", + "version": "1.21.0", "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.26.0", + "version": "1.27.0", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -217,7 +217,7 @@ }, "clients/typescript/wallets-client": { "name": "@affinidi-tdk/wallets-client", - "version": "1.23.0", + "version": "1.24.0", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.0", @@ -251,7 +251,7 @@ }, "libs/iota-browser": { "name": "@affinidi-tdk/iota-browser", - "version": "1.14.0", + "version": "1.15.0", "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.15.0", + "version": "1.16.0", "bundleDependencies": [ "@affinidi-tdk/common", "@affinidi-tdk/iota-client", @@ -23629,7 +23629,7 @@ }, "packages/auth-provider": { "name": "@affinidi-tdk/auth-provider", - "version": "1.24.0", + "version": "1.25.0", "bundleDependencies": [ "@affinidi-tdk/common", "@types/jsonwebtoken", @@ -23849,7 +23849,7 @@ }, "packages/common": { "name": "@affinidi-tdk/common", - "version": "1.16.0", + "version": "1.17.0", "license": "Apache-2.0", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.4.0", diff --git a/packages/auth-provider/CHANGELOG.md b/packages/auth-provider/CHANGELOG.md index 24ea8c6a..3b023bd4 100644 --- a/packages/auth-provider/CHANGELOG.md +++ b/packages/auth-provider/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.26.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/auth-provider-v1.25.0...@affinidi-tdk/auth-provider-v1.26.0) (2024-09-13) + + +### Features + +* update client ais ([#240](https://github.com/affinidi/affinidi-tdk/issues/240)) ([f6461e0](https://github.com/affinidi/affinidi-tdk/commit/f6461e0e194ca40f70adbe2267a820851e04f9a0)) + # [1.25.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/auth-provider-v1.24.0...@affinidi-tdk/auth-provider-v1.25.0) (2024-09-12) diff --git a/packages/auth-provider/package.json b/packages/auth-provider/package.json index 8921be3c..6f19564e 100644 --- a/packages/auth-provider/package.json +++ b/packages/auth-provider/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/auth-provider", - "version": "1.25.0", + "version": "1.26.0", "description": "Internal module for managing access tokens", "author": "Affinidi", "repository": { diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 07cd2d64..88d32de3 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.18.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/common-v1.17.0...@affinidi-tdk/common-v1.18.0) (2024-09-13) + + +### Features + +* update client ais ([#240](https://github.com/affinidi/affinidi-tdk/issues/240)) ([f6461e0](https://github.com/affinidi/affinidi-tdk/commit/f6461e0e194ca40f70adbe2267a820851e04f9a0)) + # [1.17.0](https://github.com/affinidi/affinidi-tdk/compare/@affinidi-tdk/common-v1.16.0...@affinidi-tdk/common-v1.17.0) (2024-09-12) diff --git a/packages/common/package.json b/packages/common/package.json index 37158554..46b93386 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/common", - "version": "1.17.0", + "version": "1.18.0", "description": "Affinidi TDK Common library with shared utils", "author": "Affinidi", "repository": {