diff --git a/clients/dart/credential_issuance_client/.openapi-generator/FILES b/clients/dart/credential_issuance_client/.openapi-generator/FILES index 5a1314ff3..3ce7658d6 100644 --- a/clients/dart/credential_issuance_client/.openapi-generator/FILES +++ b/clients/dart/credential_issuance_client/.openapi-generator/FILES @@ -6,9 +6,15 @@ doc/ActionForbiddenErrorDetailsInner.md doc/ChangeCredentialStatus400Response.md doc/ChangeCredentialStatusInput.md doc/ChangeStatusForbiddenError.md +doc/CisConfigurationWebhookSetting.md +doc/CisConfigurationWebhookSettingEndpoint.md +doc/ClaimedCredentialListResponse.md +doc/ClaimedCredentialResponse.md doc/ConfigurationApi.md doc/CorsGenerateCredentialsOK.md +doc/CorsGetClaimedCredentialsOK.md doc/CorsGetCredentialOfferOK.md +doc/CorsGetIssuanceIdClaimedCredentialOK.md doc/CorsGetWellKnownOpenIdCredentialIssuerOK.md doc/CreateCredentialInput.md doc/CreateIssuanceConfig400Response.md @@ -89,8 +95,14 @@ lib/src/model/action_forbidden_error_details_inner.dart lib/src/model/change_credential_status400_response.dart lib/src/model/change_credential_status_input.dart lib/src/model/change_status_forbidden_error.dart +lib/src/model/cis_configuration_webhook_setting.dart +lib/src/model/cis_configuration_webhook_setting_endpoint.dart +lib/src/model/claimed_credential_list_response.dart +lib/src/model/claimed_credential_response.dart lib/src/model/cors_generate_credentials_ok.dart +lib/src/model/cors_get_claimed_credentials_ok.dart lib/src/model/cors_get_credential_offer_ok.dart +lib/src/model/cors_get_issuance_id_claimed_credential_ok.dart lib/src/model/cors_get_well_known_open_id_credential_issuer_ok.dart lib/src/model/create_credential_input.dart lib/src/model/create_issuance_config400_response.dart @@ -154,9 +166,15 @@ test/action_forbidden_error_test.dart test/change_credential_status400_response_test.dart test/change_credential_status_input_test.dart test/change_status_forbidden_error_test.dart +test/cis_configuration_webhook_setting_endpoint_test.dart +test/cis_configuration_webhook_setting_test.dart +test/claimed_credential_list_response_test.dart +test/claimed_credential_response_test.dart test/configuration_api_test.dart test/cors_generate_credentials_ok_test.dart +test/cors_get_claimed_credentials_ok_test.dart test/cors_get_credential_offer_ok_test.dart +test/cors_get_issuance_id_claimed_credential_ok_test.dart test/cors_get_well_known_open_id_credential_issuer_ok_test.dart test/create_credential_input_test.dart test/create_issuance_config400_response_test.dart diff --git a/clients/dart/credential_issuance_client/README.md b/clients/dart/credential_issuance_client/README.md index ee7206601..8f5a48beb 100644 --- a/clients/dart/credential_issuance_client/README.md +++ b/clients/dart/credential_issuance_client/README.md @@ -71,21 +71,23 @@ try { All URIs are relative to *https://apse1.api.affinidi.io/cis* -| Class | Method | HTTP request | Description | -| --------------------------------------------- | ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- | ------------------------- | -| [_ConfigurationApi_](doc/ConfigurationApi.md) | [**createIssuanceConfig**](doc/ConfigurationApi.md#createissuanceconfig) | **POST** /v1/configurations | -| [_ConfigurationApi_](doc/ConfigurationApi.md) | [**deleteIssuanceConfigById**](doc/ConfigurationApi.md#deleteissuanceconfigbyid) | **DELETE** /v1/configurations/{configurationId} | -| [_ConfigurationApi_](doc/ConfigurationApi.md) | [**getIssuanceConfigById**](doc/ConfigurationApi.md#getissuanceconfigbyid) | **GET** /v1/configurations/{configurationId} | -| [_ConfigurationApi_](doc/ConfigurationApi.md) | [**getIssuanceConfigList**](doc/ConfigurationApi.md#getissuanceconfiglist) | **GET** /v1/configurations | -| [_ConfigurationApi_](doc/ConfigurationApi.md) | [**updateIssuanceConfigById**](doc/ConfigurationApi.md#updateissuanceconfigbyid) | **PUT** /v1/configurations/{configurationId} | -| [_CredentialsApi_](doc/CredentialsApi.md) | [**generateCredentials**](doc/CredentialsApi.md#generatecredentials) | **POST** /v1/{projectId}/credential | -| [_DefaultApi_](doc/DefaultApi.md) | [**changeCredentialStatus**](doc/DefaultApi.md#changecredentialstatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. | -| [_DefaultApi_](doc/DefaultApi.md) | [**listIssuanceDataRecords**](doc/DefaultApi.md#listissuancedatarecords) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records | -| [_IssuanceApi_](doc/IssuanceApi.md) | [**issuanceState**](doc/IssuanceApi.md#issuancestate) | **GET** /v1/{projectId}/issuance/state/{issuanceId} | -| [_IssuanceApi_](doc/IssuanceApi.md) | [**listIssuance**](doc/IssuanceApi.md#listissuance) | **GET** /v1/{projectId}/issuance | -| [_IssuanceApi_](doc/IssuanceApi.md) | [**startIssuance**](doc/IssuanceApi.md#startissuance) | **POST** /v1/{projectId}/issuance/start | -| [_OfferApi_](doc/OfferApi.md) | [**getCredentialOffer**](doc/OfferApi.md#getcredentialoffer) | **GET** /v1/{projectId}/offers/{issuanceId} | -| [_WellKnownApi_](doc/WellKnownApi.md) | [**getWellKnownOpenIdCredentialIssuer**](doc/WellKnownApi.md#getwellknownopenidcredentialissuer) | **GET** /v1/{projectId}/.well-known/openid-credential-issuer | +| Class | Method | HTTP request | Description | +| --------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------- | --------------------------------------------- | +| [_ConfigurationApi_](doc/ConfigurationApi.md) | [**createIssuanceConfig**](doc/ConfigurationApi.md#createissuanceconfig) | **POST** /v1/configurations | +| [_ConfigurationApi_](doc/ConfigurationApi.md) | [**deleteIssuanceConfigById**](doc/ConfigurationApi.md#deleteissuanceconfigbyid) | **DELETE** /v1/configurations/{configurationId} | +| [_ConfigurationApi_](doc/ConfigurationApi.md) | [**getIssuanceConfigById**](doc/ConfigurationApi.md#getissuanceconfigbyid) | **GET** /v1/configurations/{configurationId} | +| [_ConfigurationApi_](doc/ConfigurationApi.md) | [**getIssuanceConfigList**](doc/ConfigurationApi.md#getissuanceconfiglist) | **GET** /v1/configurations | +| [_ConfigurationApi_](doc/ConfigurationApi.md) | [**updateIssuanceConfigById**](doc/ConfigurationApi.md#updateissuanceconfigbyid) | **PUT** /v1/configurations/{configurationId} | +| [_CredentialsApi_](doc/CredentialsApi.md) | [**generateCredentials**](doc/CredentialsApi.md#generatecredentials) | **POST** /v1/{projectId}/credential | +| [_CredentialsApi_](doc/CredentialsApi.md) | [**getClaimedCredentials**](doc/CredentialsApi.md#getclaimedcredentials) | **GET** /v1/{projectId}/configurations/{configurationId}/credentials | Get claimed credential in the specified range | +| [_CredentialsApi_](doc/CredentialsApi.md) | [**getIssuanceIdClaimedCredential**](doc/CredentialsApi.md#getissuanceidclaimedcredential) | **GET** /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials | Get claimed VC linked to the issuanceId | +| [_DefaultApi_](doc/DefaultApi.md) | [**changeCredentialStatus**](doc/DefaultApi.md#changecredentialstatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. | +| [_DefaultApi_](doc/DefaultApi.md) | [**listIssuanceDataRecords**](doc/DefaultApi.md#listissuancedatarecords) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records | +| [_IssuanceApi_](doc/IssuanceApi.md) | [**issuanceState**](doc/IssuanceApi.md#issuancestate) | **GET** /v1/{projectId}/issuance/state/{issuanceId} | +| [_IssuanceApi_](doc/IssuanceApi.md) | [**listIssuance**](doc/IssuanceApi.md#listissuance) | **GET** /v1/{projectId}/issuance | +| [_IssuanceApi_](doc/IssuanceApi.md) | [**startIssuance**](doc/IssuanceApi.md#startissuance) | **POST** /v1/{projectId}/issuance/start | +| [_OfferApi_](doc/OfferApi.md) | [**getCredentialOffer**](doc/OfferApi.md#getcredentialoffer) | **GET** /v1/{projectId}/offers/{issuanceId} | +| [_WellKnownApi_](doc/WellKnownApi.md) | [**getWellKnownOpenIdCredentialIssuer**](doc/WellKnownApi.md#getwellknownopenidcredentialissuer) | **GET** /v1/{projectId}/.well-known/openid-credential-issuer | ## Documentation For Models @@ -94,8 +96,14 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [ChangeCredentialStatus400Response](doc/ChangeCredentialStatus400Response.md) - [ChangeCredentialStatusInput](doc/ChangeCredentialStatusInput.md) - [ChangeStatusForbiddenError](doc/ChangeStatusForbiddenError.md) +- [CisConfigurationWebhookSetting](doc/CisConfigurationWebhookSetting.md) +- [CisConfigurationWebhookSettingEndpoint](doc/CisConfigurationWebhookSettingEndpoint.md) +- [ClaimedCredentialListResponse](doc/ClaimedCredentialListResponse.md) +- [ClaimedCredentialResponse](doc/ClaimedCredentialResponse.md) - [CorsGenerateCredentialsOK](doc/CorsGenerateCredentialsOK.md) +- [CorsGetClaimedCredentialsOK](doc/CorsGetClaimedCredentialsOK.md) - [CorsGetCredentialOfferOK](doc/CorsGetCredentialOfferOK.md) +- [CorsGetIssuanceIdClaimedCredentialOK](doc/CorsGetIssuanceIdClaimedCredentialOK.md) - [CorsGetWellKnownOpenIdCredentialIssuerOK](doc/CorsGetWellKnownOpenIdCredentialIssuerOK.md) - [CreateCredentialInput](doc/CreateCredentialInput.md) - [CreateIssuanceConfig400Response](doc/CreateIssuanceConfig400Response.md) diff --git a/clients/dart/credential_issuance_client/doc/CisConfigurationWebhookSetting.md b/clients/dart/credential_issuance_client/doc/CisConfigurationWebhookSetting.md new file mode 100644 index 000000000..690ab2a41 --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/CisConfigurationWebhookSetting.md @@ -0,0 +1,16 @@ +# affinidi_tdk_credential_issuance_client.model.CisConfigurationWebhookSetting + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ------------ | --------------------------------------------------------------------------------------- | --------------------------------------- | ------------------ | +| **enabled** | **bool** | flag to enabled or disabled the webhook | [default to false] | +| **endpoint** | [**CisConfigurationWebhookSettingEndpoint**](CisConfigurationWebhookSettingEndpoint.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/credential_issuance_client/doc/CisConfigurationWebhookSettingEndpoint.md b/clients/dart/credential_issuance_client/doc/CisConfigurationWebhookSettingEndpoint.md new file mode 100644 index 000000000..05cdfcfc2 --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/CisConfigurationWebhookSettingEndpoint.md @@ -0,0 +1,15 @@ +# affinidi_tdk_credential_issuance_client.model.CisConfigurationWebhookSettingEndpoint + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ------- | ---------- | ---------------------------------------------------------------------------------------------------------------- | ---------- | +| **url** | **String** | url endpoint where notification will be sent with issuanceId after user has claimed the VC related to issuanceId | [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/credential_issuance_client/doc/ClaimedCredentialListResponse.md b/clients/dart/credential_issuance_client/doc/ClaimedCredentialListResponse.md new file mode 100644 index 000000000..3f8bea424 --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/ClaimedCredentialListResponse.md @@ -0,0 +1,16 @@ +# affinidi_tdk_credential_issuance_client.model.ClaimedCredentialListResponse + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| --------------- | ---------------------------------------------------------------------- | ------------------------------------------- | ---------- | +| **credentials** | [**BuiltList<BuiltMap<String, JsonObject>>**](BuiltMap.md) | list of credentials | [optional] | +| **next** | **String** | for pagination to fetch next set of records | [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/credential_issuance_client/doc/ClaimedCredentialResponse.md b/clients/dart/credential_issuance_client/doc/ClaimedCredentialResponse.md new file mode 100644 index 000000000..18e928c42 --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/ClaimedCredentialResponse.md @@ -0,0 +1,15 @@ +# affinidi_tdk_credential_issuance_client.model.ClaimedCredentialResponse + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| -------------- | ------------------------------------------------------- | ------------------ | ---------- | +| **credential** | [**BuiltMap<String, JsonObject>**](JsonObject.md) | claimed credential | [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/credential_issuance_client/doc/CorsGetClaimedCredentialsOK.md b/clients/dart/credential_issuance_client/doc/CorsGetClaimedCredentialsOK.md new file mode 100644 index 000000000..3d4916842 --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/CorsGetClaimedCredentialsOK.md @@ -0,0 +1,15 @@ +# affinidi_tdk_credential_issuance_client.model.CorsGetClaimedCredentialsOK + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ------------------------------- | ---------- | ----------- | ---------- | +| **corsGetClaimedCredentialsOk** | **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/credential_issuance_client/doc/CorsGetIssuanceIdClaimedCredentialOK.md b/clients/dart/credential_issuance_client/doc/CorsGetIssuanceIdClaimedCredentialOK.md new file mode 100644 index 000000000..04961981b --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/CorsGetIssuanceIdClaimedCredentialOK.md @@ -0,0 +1,15 @@ +# affinidi_tdk_credential_issuance_client.model.CorsGetIssuanceIdClaimedCredentialOK + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ---------------------------------------- | ---------- | ----------- | ---------- | +| **corsGetIssuanceIdClaimedCredentialOk** | **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/credential_issuance_client/doc/CreateIssuanceConfigInput.md b/clients/dart/credential_issuance_client/doc/CreateIssuanceConfigInput.md index fe0d94658..d13714699 100644 --- a/clients/dart/credential_issuance_client/doc/CreateIssuanceConfigInput.md +++ b/clients/dart/credential_issuance_client/doc/CreateIssuanceConfigInput.md @@ -18,5 +18,6 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart'; | **credentialSupported** | [**BuiltList<CredentialSupportedObject>**](CredentialSupportedObject.md) | | | **issuerMetadata** | [**BuiltMap<String, JsonObject>**](JsonObject.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] | | **returnUris** | **BuiltList<String>** | List of allowed URIs to be returned to after issuance | [optional] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.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/credential_issuance_client/doc/CredentialsApi.md b/clients/dart/credential_issuance_client/doc/CredentialsApi.md index eafa436ab..6f19734ce 100644 --- a/clients/dart/credential_issuance_client/doc/CredentialsApi.md +++ b/clients/dart/credential_issuance_client/doc/CredentialsApi.md @@ -8,9 +8,11 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart'; All URIs are relative to *https://apse1.api.affinidi.io/cis* -| Method | HTTP request | Description | -| ---------------------------------------------------------------- | ----------------------------------- | ----------- | -| [**generateCredentials**](CredentialsApi.md#generatecredentials) | **POST** /v1/{projectId}/credential | +| Method | HTTP request | Description | +| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------- | +| [**generateCredentials**](CredentialsApi.md#generatecredentials) | **POST** /v1/{projectId}/credential | +| [**getClaimedCredentials**](CredentialsApi.md#getclaimedcredentials) | **GET** /v1/{projectId}/configurations/{configurationId}/credentials | Get claimed credential in the specified range | +| [**getIssuanceIdClaimedCredential**](CredentialsApi.md#getissuanceidclaimedcredential) | **GET** /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials | Get claimed VC linked to the issuanceId | # **generateCredentials** @@ -56,3 +58,113 @@ try { - **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) + +# **getClaimedCredentials** + +> ClaimedCredentialListResponse getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, next) + +Get claimed credential in the specified range + +Get claimed credential in the specified range + +### Example + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +// TODO Configure API key authorization: ProjectTokenAuth +//defaultApiClient.getAuthentication('ProjectTokenAuth').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('ProjectTokenAuth').apiKeyPrefix = 'Bearer'; + +final api = AffinidiTdkCredentialIssuanceClient().getCredentialsApi(); +final String projectId = projectId_example; // String | project id +final String configurationId = configurationId_example; // String | configuration id +final String rangeStartTime = rangeStartTime_example; // String | +final String rangeEndTime = rangeEndTime_example; // String | +final String next = next_example; // String | + +try { + final response = api.getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, next); + print(response); +} catch on DioException (e) { + print('Exception when calling CredentialsApi->getClaimedCredentials: $e\n'); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------------- | ---------- | ---------------- | ---------- | +| **projectId** | **String** | project id | +| **configurationId** | **String** | configuration id | +| **rangeStartTime** | **String** | | +| **rangeEndTime** | **String** | | [optional] | +| **next** | **String** | | [optional] | + +### Return type + +[**ClaimedCredentialListResponse**](ClaimedCredentialListResponse.md) + +### Authorization + +[ProjectTokenAuth](../README.md#ProjectTokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **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) + +# **getIssuanceIdClaimedCredential** + +> ClaimedCredentialResponse getIssuanceIdClaimedCredential(projectId, configurationId, issuanceId) + +Get claimed VC linked to the issuanceId + +Get claimed VC linked to the issuanceId + +### Example + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +// TODO Configure API key authorization: ProjectTokenAuth +//defaultApiClient.getAuthentication('ProjectTokenAuth').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('ProjectTokenAuth').apiKeyPrefix = 'Bearer'; + +final api = AffinidiTdkCredentialIssuanceClient().getCredentialsApi(); +final String projectId = projectId_example; // String | project id +final String configurationId = configurationId_example; // String | configuration id +final String issuanceId = issuanceId_example; // String | issuance id + +try { + final response = api.getIssuanceIdClaimedCredential(projectId, configurationId, issuanceId); + print(response); +} catch on DioException (e) { + print('Exception when calling CredentialsApi->getIssuanceIdClaimedCredential: $e\n'); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------------- | ---------- | ---------------- | ----- | +| **projectId** | **String** | project id | +| **configurationId** | **String** | configuration id | +| **issuanceId** | **String** | issuance id | + +### Return type + +[**ClaimedCredentialResponse**](ClaimedCredentialResponse.md) + +### Authorization + +[ProjectTokenAuth](../README.md#ProjectTokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **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) diff --git a/clients/dart/credential_issuance_client/doc/IssuanceConfigDto.md b/clients/dart/credential_issuance_client/doc/IssuanceConfigDto.md index d21dc9755..f150b9afa 100644 --- a/clients/dart/credential_issuance_client/doc/IssuanceConfigDto.md +++ b/clients/dart/credential_issuance_client/doc/IssuanceConfigDto.md @@ -23,5 +23,6 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart'; | **issuerMetadata** | [**BuiltMap<String, JsonObject>**](JsonObject.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] | | **version** | **int** | | [optional] | | **returnUris** | **BuiltList<String>** | List of allowed URIs to be returned to after issuance | [optional] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.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/credential_issuance_client/doc/UpdateIssuanceConfigInput.md b/clients/dart/credential_issuance_client/doc/UpdateIssuanceConfigInput.md index 435546caf..d4b362332 100644 --- a/clients/dart/credential_issuance_client/doc/UpdateIssuanceConfigInput.md +++ b/clients/dart/credential_issuance_client/doc/UpdateIssuanceConfigInput.md @@ -19,5 +19,6 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart'; | **credentialSupported** | [**BuiltList<CredentialSupportedObject>**](CredentialSupportedObject.md) | | [optional] | | **issuerMetadata** | [**BuiltMap<String, JsonObject>**](JsonObject.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] | | **returnUris** | **BuiltList<String>** | List of allowed URIs to be returned to after issuance | [optional] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.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/credential_issuance_client/lib/affinidi_tdk_credential_issuance_client.dart b/clients/dart/credential_issuance_client/lib/affinidi_tdk_credential_issuance_client.dart index 43a8f7cc1..f2b6f7a68 100644 --- a/clients/dart/credential_issuance_client/lib/affinidi_tdk_credential_issuance_client.dart +++ b/clients/dart/credential_issuance_client/lib/affinidi_tdk_credential_issuance_client.dart @@ -22,8 +22,14 @@ export 'package:affinidi_tdk_credential_issuance_client/src/model/action_forbidd export 'package:affinidi_tdk_credential_issuance_client/src/model/change_credential_status400_response.dart'; export 'package:affinidi_tdk_credential_issuance_client/src/model/change_credential_status_input.dart'; export 'package:affinidi_tdk_credential_issuance_client/src/model/change_status_forbidden_error.dart'; +export 'package:affinidi_tdk_credential_issuance_client/src/model/cis_configuration_webhook_setting.dart'; +export 'package:affinidi_tdk_credential_issuance_client/src/model/cis_configuration_webhook_setting_endpoint.dart'; +export 'package:affinidi_tdk_credential_issuance_client/src/model/claimed_credential_list_response.dart'; +export 'package:affinidi_tdk_credential_issuance_client/src/model/claimed_credential_response.dart'; export 'package:affinidi_tdk_credential_issuance_client/src/model/cors_generate_credentials_ok.dart'; +export 'package:affinidi_tdk_credential_issuance_client/src/model/cors_get_claimed_credentials_ok.dart'; export 'package:affinidi_tdk_credential_issuance_client/src/model/cors_get_credential_offer_ok.dart'; +export 'package:affinidi_tdk_credential_issuance_client/src/model/cors_get_issuance_id_claimed_credential_ok.dart'; export 'package:affinidi_tdk_credential_issuance_client/src/model/cors_get_well_known_open_id_credential_issuer_ok.dart'; export 'package:affinidi_tdk_credential_issuance_client/src/model/create_credential_input.dart'; export 'package:affinidi_tdk_credential_issuance_client/src/model/create_issuance_config400_response.dart'; diff --git a/clients/dart/credential_issuance_client/lib/src/api/credentials_api.dart b/clients/dart/credential_issuance_client/lib/src/api/credentials_api.dart index c5071529e..72afaf5c5 100644 --- a/clients/dart/credential_issuance_client/lib/src/api/credentials_api.dart +++ b/clients/dart/credential_issuance_client/lib/src/api/credentials_api.dart @@ -9,10 +9,14 @@ import 'package:built_value/serializer.dart'; import 'package:dio/dio.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/api_util.dart'; +import 'package:affinidi_tdk_credential_issuance_client/src/model/claimed_credential_list_response.dart'; +import 'package:affinidi_tdk_credential_issuance_client/src/model/claimed_credential_response.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/create_credential_input.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/credential_response.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/generate_credentials400_response.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/invalid_jwt_token_error.dart'; +import 'package:affinidi_tdk_credential_issuance_client/src/model/invalid_parameter_error.dart'; +import 'package:affinidi_tdk_credential_issuance_client/src/model/not_found_error.dart'; class CredentialsApi { @@ -125,4 +129,187 @@ class CredentialsApi { ); } + /// Get claimed credential in the specified range + /// Get claimed credential in the specified range + /// + /// Parameters: + /// * [projectId] - project id + /// * [configurationId] - configuration id + /// * [rangeStartTime] + /// * [rangeEndTime] + /// * [next] + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [ClaimedCredentialListResponse] as data + /// Throws [DioException] if API call or serialization fails + Future> getClaimedCredentials({ + required String projectId, + required String configurationId, + required String rangeStartTime, + String? rangeEndTime, + String? next, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/v1/{projectId}/configurations/{configurationId}/credentials'.replaceAll('{' r'projectId' '}', encodeQueryParameter(_serializers, projectId, const FullType(String)).toString()).replaceAll('{' r'configurationId' '}', encodeQueryParameter(_serializers, configurationId, const FullType(String)).toString()); + final _options = Options( + method: r'GET', + headers: { + ...?headers, + }, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'ProjectTokenAuth', + 'keyName': 'authorization', + 'where': 'header', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _queryParameters = { + r'rangeStartTime': encodeQueryParameter(_serializers, rangeStartTime, const FullType(String)), + if (rangeEndTime != null) r'rangeEndTime': encodeQueryParameter(_serializers, rangeEndTime, const FullType(String)), + if (next != null) r'next': encodeQueryParameter(_serializers, next, const FullType(String)), + }; + + final _response = await _dio.request( + _path, + options: _options, + queryParameters: _queryParameters, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + ClaimedCredentialListResponse? _responseData; + + try { + final rawResponse = _response.data; + _responseData = rawResponse == null ? null : _serializers.deserialize( + rawResponse, + specifiedType: const FullType(ClaimedCredentialListResponse), + ) as ClaimedCredentialListResponse; + + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Get claimed VC linked to the issuanceId + /// Get claimed VC linked to the issuanceId + /// + /// Parameters: + /// * [projectId] - project id + /// * [configurationId] - configuration id + /// * [issuanceId] - issuance id + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [ClaimedCredentialResponse] as data + /// Throws [DioException] if API call or serialization fails + Future> getIssuanceIdClaimedCredential({ + required String projectId, + required String configurationId, + required String issuanceId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials'.replaceAll('{' r'projectId' '}', encodeQueryParameter(_serializers, projectId, const FullType(String)).toString()).replaceAll('{' r'configurationId' '}', encodeQueryParameter(_serializers, configurationId, const FullType(String)).toString()).replaceAll('{' r'issuanceId' '}', encodeQueryParameter(_serializers, issuanceId, const FullType(String)).toString()); + final _options = Options( + method: r'GET', + headers: { + ...?headers, + }, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'ProjectTokenAuth', + 'keyName': 'authorization', + 'where': 'header', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + ClaimedCredentialResponse? _responseData; + + try { + final rawResponse = _response.data; + _responseData = rawResponse == null ? null : _serializers.deserialize( + rawResponse, + specifiedType: const FullType(ClaimedCredentialResponse), + ) as ClaimedCredentialResponse; + + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + } diff --git a/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting.dart b/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting.dart new file mode 100644 index 000000000..b5378ff27 --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting.dart @@ -0,0 +1,127 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:affinidi_tdk_credential_issuance_client/src/model/cis_configuration_webhook_setting_endpoint.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'cis_configuration_webhook_setting.g.dart'; + +/// Webhook setting to notify developers for claimed VC +/// +/// Properties: +/// * [enabled] - flag to enabled or disabled the webhook +/// * [endpoint] +@BuiltValue() +abstract class CisConfigurationWebhookSetting implements Built { + /// flag to enabled or disabled the webhook + @BuiltValueField(wireName: r'enabled') + bool get enabled; + + @BuiltValueField(wireName: r'endpoint') + CisConfigurationWebhookSettingEndpoint? get endpoint; + + CisConfigurationWebhookSetting._(); + + factory CisConfigurationWebhookSetting([void updates(CisConfigurationWebhookSettingBuilder b)]) = _$CisConfigurationWebhookSetting; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(CisConfigurationWebhookSettingBuilder b) => b + ..enabled = false; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$CisConfigurationWebhookSettingSerializer(); +} + +class _$CisConfigurationWebhookSettingSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [CisConfigurationWebhookSetting, _$CisConfigurationWebhookSetting]; + + @override + final String wireName = r'CisConfigurationWebhookSetting'; + + Iterable _serializeProperties( + Serializers serializers, + CisConfigurationWebhookSetting object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + yield r'enabled'; + yield serializers.serialize( + object.enabled, + specifiedType: const FullType(bool), + ); + if (object.endpoint != null) { + yield r'endpoint'; + yield serializers.serialize( + object.endpoint, + specifiedType: const FullType(CisConfigurationWebhookSettingEndpoint), + ); + } + } + + @override + Object serialize( + Serializers serializers, + CisConfigurationWebhookSetting object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required CisConfigurationWebhookSettingBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'enabled': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool; + result.enabled = valueDes; + break; + case r'endpoint': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(CisConfigurationWebhookSettingEndpoint), + ) as CisConfigurationWebhookSettingEndpoint; + result.endpoint.replace(valueDes); + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + CisConfigurationWebhookSetting deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = CisConfigurationWebhookSettingBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting.g.dart b/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting.g.dart new file mode 100644 index 000000000..c27c420fe --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting.g.dart @@ -0,0 +1,129 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'cis_configuration_webhook_setting.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CisConfigurationWebhookSetting extends CisConfigurationWebhookSetting { + @override + final bool enabled; + @override + final CisConfigurationWebhookSettingEndpoint? endpoint; + + factory _$CisConfigurationWebhookSetting( + [void Function(CisConfigurationWebhookSettingBuilder)? updates]) => + (new CisConfigurationWebhookSettingBuilder()..update(updates))._build(); + + _$CisConfigurationWebhookSetting._({required this.enabled, this.endpoint}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + enabled, r'CisConfigurationWebhookSetting', 'enabled'); + } + + @override + CisConfigurationWebhookSetting rebuild( + void Function(CisConfigurationWebhookSettingBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CisConfigurationWebhookSettingBuilder toBuilder() => + new CisConfigurationWebhookSettingBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CisConfigurationWebhookSetting && + enabled == other.enabled && + endpoint == other.endpoint; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, enabled.hashCode); + _$hash = $jc(_$hash, endpoint.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CisConfigurationWebhookSetting') + ..add('enabled', enabled) + ..add('endpoint', endpoint)) + .toString(); + } +} + +class CisConfigurationWebhookSettingBuilder + implements + Builder { + _$CisConfigurationWebhookSetting? _$v; + + bool? _enabled; + bool? get enabled => _$this._enabled; + set enabled(bool? enabled) => _$this._enabled = enabled; + + CisConfigurationWebhookSettingEndpointBuilder? _endpoint; + CisConfigurationWebhookSettingEndpointBuilder get endpoint => + _$this._endpoint ??= new CisConfigurationWebhookSettingEndpointBuilder(); + set endpoint(CisConfigurationWebhookSettingEndpointBuilder? endpoint) => + _$this._endpoint = endpoint; + + CisConfigurationWebhookSettingBuilder() { + CisConfigurationWebhookSetting._defaults(this); + } + + CisConfigurationWebhookSettingBuilder get _$this { + final $v = _$v; + if ($v != null) { + _enabled = $v.enabled; + _endpoint = $v.endpoint?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(CisConfigurationWebhookSetting other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CisConfigurationWebhookSetting; + } + + @override + void update(void Function(CisConfigurationWebhookSettingBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CisConfigurationWebhookSetting build() => _build(); + + _$CisConfigurationWebhookSetting _build() { + _$CisConfigurationWebhookSetting _$result; + try { + _$result = _$v ?? + new _$CisConfigurationWebhookSetting._( + enabled: BuiltValueNullFieldError.checkNotNull( + enabled, r'CisConfigurationWebhookSetting', 'enabled'), + endpoint: _endpoint?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'endpoint'; + _endpoint?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'CisConfigurationWebhookSetting', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting_endpoint.dart b/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting_endpoint.dart new file mode 100644 index 000000000..133365135 --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting_endpoint.dart @@ -0,0 +1,109 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'cis_configuration_webhook_setting_endpoint.g.dart'; + +/// CisConfigurationWebhookSettingEndpoint +/// +/// Properties: +/// * [url] - url endpoint where notification will be sent with issuanceId after user has claimed the VC related to issuanceId +@BuiltValue() +abstract class CisConfigurationWebhookSettingEndpoint implements Built { + /// url endpoint where notification will be sent with issuanceId after user has claimed the VC related to issuanceId + @BuiltValueField(wireName: r'url') + String? get url; + + CisConfigurationWebhookSettingEndpoint._(); + + factory CisConfigurationWebhookSettingEndpoint([void updates(CisConfigurationWebhookSettingEndpointBuilder b)]) = _$CisConfigurationWebhookSettingEndpoint; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(CisConfigurationWebhookSettingEndpointBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$CisConfigurationWebhookSettingEndpointSerializer(); +} + +class _$CisConfigurationWebhookSettingEndpointSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [CisConfigurationWebhookSettingEndpoint, _$CisConfigurationWebhookSettingEndpoint]; + + @override + final String wireName = r'CisConfigurationWebhookSettingEndpoint'; + + Iterable _serializeProperties( + Serializers serializers, + CisConfigurationWebhookSettingEndpoint object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.url != null) { + yield r'url'; + yield serializers.serialize( + object.url, + specifiedType: const FullType(String), + ); + } + } + + @override + Object serialize( + Serializers serializers, + CisConfigurationWebhookSettingEndpoint object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required CisConfigurationWebhookSettingEndpointBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'url': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.url = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + CisConfigurationWebhookSettingEndpoint deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = CisConfigurationWebhookSettingEndpointBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting_endpoint.g.dart b/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting_endpoint.g.dart new file mode 100644 index 000000000..6153f6f8a --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/cis_configuration_webhook_setting_endpoint.g.dart @@ -0,0 +1,103 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'cis_configuration_webhook_setting_endpoint.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CisConfigurationWebhookSettingEndpoint + extends CisConfigurationWebhookSettingEndpoint { + @override + final String? url; + + factory _$CisConfigurationWebhookSettingEndpoint( + [void Function(CisConfigurationWebhookSettingEndpointBuilder)? + updates]) => + (new CisConfigurationWebhookSettingEndpointBuilder()..update(updates)) + ._build(); + + _$CisConfigurationWebhookSettingEndpoint._({this.url}) : super._(); + + @override + CisConfigurationWebhookSettingEndpoint rebuild( + void Function(CisConfigurationWebhookSettingEndpointBuilder) + updates) => + (toBuilder()..update(updates)).build(); + + @override + CisConfigurationWebhookSettingEndpointBuilder toBuilder() => + new CisConfigurationWebhookSettingEndpointBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CisConfigurationWebhookSettingEndpoint && url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper( + r'CisConfigurationWebhookSettingEndpoint') + ..add('url', url)) + .toString(); + } +} + +class CisConfigurationWebhookSettingEndpointBuilder + implements + Builder { + _$CisConfigurationWebhookSettingEndpoint? _$v; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + CisConfigurationWebhookSettingEndpointBuilder() { + CisConfigurationWebhookSettingEndpoint._defaults(this); + } + + CisConfigurationWebhookSettingEndpointBuilder get _$this { + final $v = _$v; + if ($v != null) { + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(CisConfigurationWebhookSettingEndpoint other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CisConfigurationWebhookSettingEndpoint; + } + + @override + void update( + void Function(CisConfigurationWebhookSettingEndpointBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CisConfigurationWebhookSettingEndpoint build() => _build(); + + _$CisConfigurationWebhookSettingEndpoint _build() { + final _$result = _$v ?? + new _$CisConfigurationWebhookSettingEndpoint._( + url: url, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_list_response.dart b/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_list_response.dart new file mode 100644 index 000000000..df3da660f --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_list_response.dart @@ -0,0 +1,130 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/json_object.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'claimed_credential_list_response.g.dart'; + +/// List of claimed credential +/// +/// Properties: +/// * [credentials] - list of credentials +/// * [next] - for pagination to fetch next set of records +@BuiltValue() +abstract class ClaimedCredentialListResponse implements Built { + /// list of credentials + @BuiltValueField(wireName: r'credentials') + BuiltList>? get credentials; + + /// for pagination to fetch next set of records + @BuiltValueField(wireName: r'next') + String? get next; + + ClaimedCredentialListResponse._(); + + factory ClaimedCredentialListResponse([void updates(ClaimedCredentialListResponseBuilder b)]) = _$ClaimedCredentialListResponse; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(ClaimedCredentialListResponseBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$ClaimedCredentialListResponseSerializer(); +} + +class _$ClaimedCredentialListResponseSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [ClaimedCredentialListResponse, _$ClaimedCredentialListResponse]; + + @override + final String wireName = r'ClaimedCredentialListResponse'; + + Iterable _serializeProperties( + Serializers serializers, + ClaimedCredentialListResponse object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.credentials != null) { + yield r'credentials'; + yield serializers.serialize( + object.credentials, + specifiedType: const FullType(BuiltList, [FullType(BuiltMap, [FullType(String), FullType.nullable(JsonObject)])]), + ); + } + if (object.next != null) { + yield r'next'; + yield serializers.serialize( + object.next, + specifiedType: const FullType(String), + ); + } + } + + @override + Object serialize( + Serializers serializers, + ClaimedCredentialListResponse object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required ClaimedCredentialListResponseBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'credentials': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, [FullType(BuiltMap, [FullType(String), FullType.nullable(JsonObject)])]), + ) as BuiltList>; + result.credentials.replace(valueDes); + break; + case r'next': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.next = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + ClaimedCredentialListResponse deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = ClaimedCredentialListResponseBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_list_response.g.dart b/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_list_response.g.dart new file mode 100644 index 000000000..ccdaa5e0b --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_list_response.g.dart @@ -0,0 +1,124 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'claimed_credential_list_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ClaimedCredentialListResponse extends ClaimedCredentialListResponse { + @override + final BuiltList>? credentials; + @override + final String? next; + + factory _$ClaimedCredentialListResponse( + [void Function(ClaimedCredentialListResponseBuilder)? updates]) => + (new ClaimedCredentialListResponseBuilder()..update(updates))._build(); + + _$ClaimedCredentialListResponse._({this.credentials, this.next}) : super._(); + + @override + ClaimedCredentialListResponse rebuild( + void Function(ClaimedCredentialListResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ClaimedCredentialListResponseBuilder toBuilder() => + new ClaimedCredentialListResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ClaimedCredentialListResponse && + credentials == other.credentials && + next == other.next; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, credentials.hashCode); + _$hash = $jc(_$hash, next.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ClaimedCredentialListResponse') + ..add('credentials', credentials) + ..add('next', next)) + .toString(); + } +} + +class ClaimedCredentialListResponseBuilder + implements + Builder { + _$ClaimedCredentialListResponse? _$v; + + ListBuilder>? _credentials; + ListBuilder> get credentials => + _$this._credentials ??= new ListBuilder>(); + set credentials(ListBuilder>? credentials) => + _$this._credentials = credentials; + + String? _next; + String? get next => _$this._next; + set next(String? next) => _$this._next = next; + + ClaimedCredentialListResponseBuilder() { + ClaimedCredentialListResponse._defaults(this); + } + + ClaimedCredentialListResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _credentials = $v.credentials?.toBuilder(); + _next = $v.next; + _$v = null; + } + return this; + } + + @override + void replace(ClaimedCredentialListResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ClaimedCredentialListResponse; + } + + @override + void update(void Function(ClaimedCredentialListResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ClaimedCredentialListResponse build() => _build(); + + _$ClaimedCredentialListResponse _build() { + _$ClaimedCredentialListResponse _$result; + try { + _$result = _$v ?? + new _$ClaimedCredentialListResponse._( + credentials: _credentials?.build(), + next: next, + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'credentials'; + _credentials?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ClaimedCredentialListResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_response.dart b/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_response.dart new file mode 100644 index 000000000..6b1d36968 --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_response.dart @@ -0,0 +1,111 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/json_object.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'claimed_credential_response.g.dart'; + +/// Response for getting the claimed VC +/// +/// Properties: +/// * [credential] - claimed credential +@BuiltValue() +abstract class ClaimedCredentialResponse implements Built { + /// claimed credential + @BuiltValueField(wireName: r'credential') + BuiltMap? get credential; + + ClaimedCredentialResponse._(); + + factory ClaimedCredentialResponse([void updates(ClaimedCredentialResponseBuilder b)]) = _$ClaimedCredentialResponse; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(ClaimedCredentialResponseBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$ClaimedCredentialResponseSerializer(); +} + +class _$ClaimedCredentialResponseSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [ClaimedCredentialResponse, _$ClaimedCredentialResponse]; + + @override + final String wireName = r'ClaimedCredentialResponse'; + + Iterable _serializeProperties( + Serializers serializers, + ClaimedCredentialResponse object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.credential != null) { + yield r'credential'; + yield serializers.serialize( + object.credential, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType.nullable(JsonObject)]), + ); + } + } + + @override + Object serialize( + Serializers serializers, + ClaimedCredentialResponse object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required ClaimedCredentialResponseBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'credential': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType.nullable(JsonObject)]), + ) as BuiltMap; + result.credential.replace(valueDes); + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + ClaimedCredentialResponse deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = ClaimedCredentialResponseBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_response.g.dart b/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_response.g.dart new file mode 100644 index 000000000..387f55c61 --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/claimed_credential_response.g.dart @@ -0,0 +1,111 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'claimed_credential_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ClaimedCredentialResponse extends ClaimedCredentialResponse { + @override + final BuiltMap? credential; + + factory _$ClaimedCredentialResponse( + [void Function(ClaimedCredentialResponseBuilder)? updates]) => + (new ClaimedCredentialResponseBuilder()..update(updates))._build(); + + _$ClaimedCredentialResponse._({this.credential}) : super._(); + + @override + ClaimedCredentialResponse rebuild( + void Function(ClaimedCredentialResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ClaimedCredentialResponseBuilder toBuilder() => + new ClaimedCredentialResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ClaimedCredentialResponse && credential == other.credential; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, credential.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ClaimedCredentialResponse') + ..add('credential', credential)) + .toString(); + } +} + +class ClaimedCredentialResponseBuilder + implements + Builder { + _$ClaimedCredentialResponse? _$v; + + MapBuilder? _credential; + MapBuilder get credential => + _$this._credential ??= new MapBuilder(); + set credential(MapBuilder? credential) => + _$this._credential = credential; + + ClaimedCredentialResponseBuilder() { + ClaimedCredentialResponse._defaults(this); + } + + ClaimedCredentialResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _credential = $v.credential?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(ClaimedCredentialResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ClaimedCredentialResponse; + } + + @override + void update(void Function(ClaimedCredentialResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ClaimedCredentialResponse build() => _build(); + + _$ClaimedCredentialResponse _build() { + _$ClaimedCredentialResponse _$result; + try { + _$result = _$v ?? + new _$ClaimedCredentialResponse._( + credential: _credential?.build(), + ); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'credential'; + _credential?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ClaimedCredentialResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/dart/credential_issuance_client/lib/src/model/cors_get_claimed_credentials_ok.dart b/clients/dart/credential_issuance_client/lib/src/model/cors_get_claimed_credentials_ok.dart new file mode 100644 index 000000000..600a017ed --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/cors_get_claimed_credentials_ok.dart @@ -0,0 +1,108 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'cors_get_claimed_credentials_ok.g.dart'; + +/// CorsGetClaimedCredentialsOK +/// +/// Properties: +/// * [corsGetClaimedCredentialsOk] +@BuiltValue() +abstract class CorsGetClaimedCredentialsOK implements Built { + @BuiltValueField(wireName: r'corsGetClaimedCredentialsOk') + String? get corsGetClaimedCredentialsOk; + + CorsGetClaimedCredentialsOK._(); + + factory CorsGetClaimedCredentialsOK([void updates(CorsGetClaimedCredentialsOKBuilder b)]) = _$CorsGetClaimedCredentialsOK; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(CorsGetClaimedCredentialsOKBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$CorsGetClaimedCredentialsOKSerializer(); +} + +class _$CorsGetClaimedCredentialsOKSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [CorsGetClaimedCredentialsOK, _$CorsGetClaimedCredentialsOK]; + + @override + final String wireName = r'CorsGetClaimedCredentialsOK'; + + Iterable _serializeProperties( + Serializers serializers, + CorsGetClaimedCredentialsOK object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.corsGetClaimedCredentialsOk != null) { + yield r'corsGetClaimedCredentialsOk'; + yield serializers.serialize( + object.corsGetClaimedCredentialsOk, + specifiedType: const FullType(String), + ); + } + } + + @override + Object serialize( + Serializers serializers, + CorsGetClaimedCredentialsOK object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required CorsGetClaimedCredentialsOKBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'corsGetClaimedCredentialsOk': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.corsGetClaimedCredentialsOk = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + CorsGetClaimedCredentialsOK deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = CorsGetClaimedCredentialsOKBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/dart/credential_issuance_client/lib/src/model/cors_get_claimed_credentials_ok.g.dart b/clients/dart/credential_issuance_client/lib/src/model/cors_get_claimed_credentials_ok.g.dart new file mode 100644 index 000000000..918c984ac --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/cors_get_claimed_credentials_ok.g.dart @@ -0,0 +1,101 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'cors_get_claimed_credentials_ok.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CorsGetClaimedCredentialsOK extends CorsGetClaimedCredentialsOK { + @override + final String? corsGetClaimedCredentialsOk; + + factory _$CorsGetClaimedCredentialsOK( + [void Function(CorsGetClaimedCredentialsOKBuilder)? updates]) => + (new CorsGetClaimedCredentialsOKBuilder()..update(updates))._build(); + + _$CorsGetClaimedCredentialsOK._({this.corsGetClaimedCredentialsOk}) + : super._(); + + @override + CorsGetClaimedCredentialsOK rebuild( + void Function(CorsGetClaimedCredentialsOKBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CorsGetClaimedCredentialsOKBuilder toBuilder() => + new CorsGetClaimedCredentialsOKBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CorsGetClaimedCredentialsOK && + corsGetClaimedCredentialsOk == other.corsGetClaimedCredentialsOk; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, corsGetClaimedCredentialsOk.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CorsGetClaimedCredentialsOK') + ..add('corsGetClaimedCredentialsOk', corsGetClaimedCredentialsOk)) + .toString(); + } +} + +class CorsGetClaimedCredentialsOKBuilder + implements + Builder { + _$CorsGetClaimedCredentialsOK? _$v; + + String? _corsGetClaimedCredentialsOk; + String? get corsGetClaimedCredentialsOk => + _$this._corsGetClaimedCredentialsOk; + set corsGetClaimedCredentialsOk(String? corsGetClaimedCredentialsOk) => + _$this._corsGetClaimedCredentialsOk = corsGetClaimedCredentialsOk; + + CorsGetClaimedCredentialsOKBuilder() { + CorsGetClaimedCredentialsOK._defaults(this); + } + + CorsGetClaimedCredentialsOKBuilder get _$this { + final $v = _$v; + if ($v != null) { + _corsGetClaimedCredentialsOk = $v.corsGetClaimedCredentialsOk; + _$v = null; + } + return this; + } + + @override + void replace(CorsGetClaimedCredentialsOK other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CorsGetClaimedCredentialsOK; + } + + @override + void update(void Function(CorsGetClaimedCredentialsOKBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CorsGetClaimedCredentialsOK build() => _build(); + + _$CorsGetClaimedCredentialsOK _build() { + final _$result = _$v ?? + new _$CorsGetClaimedCredentialsOK._( + corsGetClaimedCredentialsOk: corsGetClaimedCredentialsOk, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/dart/credential_issuance_client/lib/src/model/cors_get_issuance_id_claimed_credential_ok.dart b/clients/dart/credential_issuance_client/lib/src/model/cors_get_issuance_id_claimed_credential_ok.dart new file mode 100644 index 000000000..00694393c --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/cors_get_issuance_id_claimed_credential_ok.dart @@ -0,0 +1,108 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'cors_get_issuance_id_claimed_credential_ok.g.dart'; + +/// CorsGetIssuanceIdClaimedCredentialOK +/// +/// Properties: +/// * [corsGetIssuanceIdClaimedCredentialOk] +@BuiltValue() +abstract class CorsGetIssuanceIdClaimedCredentialOK implements Built { + @BuiltValueField(wireName: r'corsGetIssuanceIdClaimedCredentialOk') + String? get corsGetIssuanceIdClaimedCredentialOk; + + CorsGetIssuanceIdClaimedCredentialOK._(); + + factory CorsGetIssuanceIdClaimedCredentialOK([void updates(CorsGetIssuanceIdClaimedCredentialOKBuilder b)]) = _$CorsGetIssuanceIdClaimedCredentialOK; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(CorsGetIssuanceIdClaimedCredentialOKBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$CorsGetIssuanceIdClaimedCredentialOKSerializer(); +} + +class _$CorsGetIssuanceIdClaimedCredentialOKSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [CorsGetIssuanceIdClaimedCredentialOK, _$CorsGetIssuanceIdClaimedCredentialOK]; + + @override + final String wireName = r'CorsGetIssuanceIdClaimedCredentialOK'; + + Iterable _serializeProperties( + Serializers serializers, + CorsGetIssuanceIdClaimedCredentialOK object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.corsGetIssuanceIdClaimedCredentialOk != null) { + yield r'corsGetIssuanceIdClaimedCredentialOk'; + yield serializers.serialize( + object.corsGetIssuanceIdClaimedCredentialOk, + specifiedType: const FullType(String), + ); + } + } + + @override + Object serialize( + Serializers serializers, + CorsGetIssuanceIdClaimedCredentialOK object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required CorsGetIssuanceIdClaimedCredentialOKBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'corsGetIssuanceIdClaimedCredentialOk': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.corsGetIssuanceIdClaimedCredentialOk = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + CorsGetIssuanceIdClaimedCredentialOK deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = CorsGetIssuanceIdClaimedCredentialOKBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/dart/credential_issuance_client/lib/src/model/cors_get_issuance_id_claimed_credential_ok.g.dart b/clients/dart/credential_issuance_client/lib/src/model/cors_get_issuance_id_claimed_credential_ok.g.dart new file mode 100644 index 000000000..12a028782 --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/src/model/cors_get_issuance_id_claimed_credential_ok.g.dart @@ -0,0 +1,112 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'cors_get_issuance_id_claimed_credential_ok.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CorsGetIssuanceIdClaimedCredentialOK + extends CorsGetIssuanceIdClaimedCredentialOK { + @override + final String? corsGetIssuanceIdClaimedCredentialOk; + + factory _$CorsGetIssuanceIdClaimedCredentialOK( + [void Function(CorsGetIssuanceIdClaimedCredentialOKBuilder)? + updates]) => + (new CorsGetIssuanceIdClaimedCredentialOKBuilder()..update(updates)) + ._build(); + + _$CorsGetIssuanceIdClaimedCredentialOK._( + {this.corsGetIssuanceIdClaimedCredentialOk}) + : super._(); + + @override + CorsGetIssuanceIdClaimedCredentialOK rebuild( + void Function(CorsGetIssuanceIdClaimedCredentialOKBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CorsGetIssuanceIdClaimedCredentialOKBuilder toBuilder() => + new CorsGetIssuanceIdClaimedCredentialOKBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CorsGetIssuanceIdClaimedCredentialOK && + corsGetIssuanceIdClaimedCredentialOk == + other.corsGetIssuanceIdClaimedCredentialOk; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, corsGetIssuanceIdClaimedCredentialOk.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CorsGetIssuanceIdClaimedCredentialOK') + ..add('corsGetIssuanceIdClaimedCredentialOk', + corsGetIssuanceIdClaimedCredentialOk)) + .toString(); + } +} + +class CorsGetIssuanceIdClaimedCredentialOKBuilder + implements + Builder { + _$CorsGetIssuanceIdClaimedCredentialOK? _$v; + + String? _corsGetIssuanceIdClaimedCredentialOk; + String? get corsGetIssuanceIdClaimedCredentialOk => + _$this._corsGetIssuanceIdClaimedCredentialOk; + set corsGetIssuanceIdClaimedCredentialOk( + String? corsGetIssuanceIdClaimedCredentialOk) => + _$this._corsGetIssuanceIdClaimedCredentialOk = + corsGetIssuanceIdClaimedCredentialOk; + + CorsGetIssuanceIdClaimedCredentialOKBuilder() { + CorsGetIssuanceIdClaimedCredentialOK._defaults(this); + } + + CorsGetIssuanceIdClaimedCredentialOKBuilder get _$this { + final $v = _$v; + if ($v != null) { + _corsGetIssuanceIdClaimedCredentialOk = + $v.corsGetIssuanceIdClaimedCredentialOk; + _$v = null; + } + return this; + } + + @override + void replace(CorsGetIssuanceIdClaimedCredentialOK other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CorsGetIssuanceIdClaimedCredentialOK; + } + + @override + void update( + void Function(CorsGetIssuanceIdClaimedCredentialOKBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CorsGetIssuanceIdClaimedCredentialOK build() => _build(); + + _$CorsGetIssuanceIdClaimedCredentialOK _build() { + final _$result = _$v ?? + new _$CorsGetIssuanceIdClaimedCredentialOK._( + corsGetIssuanceIdClaimedCredentialOk: + corsGetIssuanceIdClaimedCredentialOk, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/dart/credential_issuance_client/lib/src/model/create_issuance_config_input.dart b/clients/dart/credential_issuance_client/lib/src/model/create_issuance_config_input.dart index 66aa2c80c..862b12f32 100644 --- a/clients/dart/credential_issuance_client/lib/src/model/create_issuance_config_input.dart +++ b/clients/dart/credential_issuance_client/lib/src/model/create_issuance_config_input.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:affinidi_tdk_credential_issuance_client/src/model/cis_configuration_webhook_setting.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/credential_supported_object.dart'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/json_object.dart'; @@ -22,6 +23,7 @@ part 'create_issuance_config_input.g.dart'; /// * [credentialSupported] /// * [issuerMetadata] - Issuer public information wallet may want to show to user during consent confirmation /// * [returnUris] - List of allowed URIs to be returned to after issuance +/// * [webhook] @BuiltValue() abstract class CreateIssuanceConfigInput implements Built { @BuiltValueField(wireName: r'name') @@ -54,6 +56,9 @@ abstract class CreateIssuanceConfigInput implements Built? get returnUris; + @BuiltValueField(wireName: r'webhook') + CisConfigurationWebhookSetting? get webhook; + CreateIssuanceConfigInput._(); factory CreateIssuanceConfigInput([void updates(CreateIssuanceConfigInputBuilder b)]) = _$CreateIssuanceConfigInput; @@ -129,6 +134,13 @@ class _$CreateIssuanceConfigInputSerializer implements PrimitiveSerializer; result.returnUris.replace(valueDes); break; + case r'webhook': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(CisConfigurationWebhookSetting), + ) as CisConfigurationWebhookSetting; + result.webhook.replace(valueDes); + break; default: unhandled.add(key); unhandled.add(value); diff --git a/clients/dart/credential_issuance_client/lib/src/model/create_issuance_config_input.g.dart b/clients/dart/credential_issuance_client/lib/src/model/create_issuance_config_input.g.dart index 13d53a7ae..977efff27 100644 --- a/clients/dart/credential_issuance_client/lib/src/model/create_issuance_config_input.g.dart +++ b/clients/dart/credential_issuance_client/lib/src/model/create_issuance_config_input.g.dart @@ -93,6 +93,8 @@ class _$CreateIssuanceConfigInput extends CreateIssuanceConfigInput { final BuiltMap? issuerMetadata; @override final BuiltList? returnUris; + @override + final CisConfigurationWebhookSetting? webhook; factory _$CreateIssuanceConfigInput( [void Function(CreateIssuanceConfigInputBuilder)? updates]) => @@ -106,7 +108,8 @@ class _$CreateIssuanceConfigInput extends CreateIssuanceConfigInput { this.format, required this.credentialSupported, this.issuerMetadata, - this.returnUris}) + this.returnUris, + this.webhook}) : super._() { BuiltValueNullFieldError.checkNotNull( issuerWalletId, r'CreateIssuanceConfigInput', 'issuerWalletId'); @@ -134,7 +137,8 @@ class _$CreateIssuanceConfigInput extends CreateIssuanceConfigInput { format == other.format && credentialSupported == other.credentialSupported && issuerMetadata == other.issuerMetadata && - returnUris == other.returnUris; + returnUris == other.returnUris && + webhook == other.webhook; } @override @@ -148,6 +152,7 @@ class _$CreateIssuanceConfigInput extends CreateIssuanceConfigInput { _$hash = $jc(_$hash, credentialSupported.hashCode); _$hash = $jc(_$hash, issuerMetadata.hashCode); _$hash = $jc(_$hash, returnUris.hashCode); + _$hash = $jc(_$hash, webhook.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -162,7 +167,8 @@ class _$CreateIssuanceConfigInput extends CreateIssuanceConfigInput { ..add('format', format) ..add('credentialSupported', credentialSupported) ..add('issuerMetadata', issuerMetadata) - ..add('returnUris', returnUris)) + ..add('returnUris', returnUris) + ..add('webhook', webhook)) .toString(); } } @@ -215,6 +221,12 @@ class CreateIssuanceConfigInputBuilder set returnUris(ListBuilder? returnUris) => _$this._returnUris = returnUris; + CisConfigurationWebhookSettingBuilder? _webhook; + CisConfigurationWebhookSettingBuilder get webhook => + _$this._webhook ??= new CisConfigurationWebhookSettingBuilder(); + set webhook(CisConfigurationWebhookSettingBuilder? webhook) => + _$this._webhook = webhook; + CreateIssuanceConfigInputBuilder() { CreateIssuanceConfigInput._defaults(this); } @@ -230,6 +242,7 @@ class CreateIssuanceConfigInputBuilder _credentialSupported = $v.credentialSupported.toBuilder(); _issuerMetadata = $v.issuerMetadata?.toBuilder(); _returnUris = $v.returnUris?.toBuilder(); + _webhook = $v.webhook?.toBuilder(); _$v = null; } return this; @@ -263,6 +276,7 @@ class CreateIssuanceConfigInputBuilder credentialSupported: credentialSupported.build(), issuerMetadata: _issuerMetadata?.build(), returnUris: _returnUris?.build(), + webhook: _webhook?.build(), ); } catch (_) { late String _$failedField; @@ -273,6 +287,8 @@ class CreateIssuanceConfigInputBuilder _issuerMetadata?.build(); _$failedField = 'returnUris'; _returnUris?.build(); + _$failedField = 'webhook'; + _webhook?.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'CreateIssuanceConfigInput', _$failedField, e.toString()); diff --git a/clients/dart/credential_issuance_client/lib/src/model/issuance_config_dto.dart b/clients/dart/credential_issuance_client/lib/src/model/issuance_config_dto.dart index 171495f86..abe7dabc4 100644 --- a/clients/dart/credential_issuance_client/lib/src/model/issuance_config_dto.dart +++ b/clients/dart/credential_issuance_client/lib/src/model/issuance_config_dto.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:affinidi_tdk_credential_issuance_client/src/model/cis_configuration_webhook_setting.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/credential_supported_object.dart'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/json_object.dart'; @@ -27,6 +28,7 @@ part 'issuance_config_dto.g.dart'; /// * [issuerMetadata] - Issuer public information wallet may want to show to user during consent confirmation /// * [version] /// * [returnUris] - List of allowed URIs to be returned to after issuance +/// * [webhook] @BuiltValue() abstract class IssuanceConfigDto implements Built { @BuiltValueField(wireName: r'id') @@ -77,6 +79,9 @@ abstract class IssuanceConfigDto implements Built? get returnUris; + @BuiltValueField(wireName: r'webhook') + CisConfigurationWebhookSetting? get webhook; + IssuanceConfigDto._(); factory IssuanceConfigDto([void updates(IssuanceConfigDtoBuilder b)]) = _$IssuanceConfigDto; @@ -191,6 +196,13 @@ class _$IssuanceConfigDtoSerializer implements PrimitiveSerializer; result.returnUris.replace(valueDes); break; + case r'webhook': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(CisConfigurationWebhookSetting), + ) as CisConfigurationWebhookSetting; + result.webhook.replace(valueDes); + break; default: unhandled.add(key); unhandled.add(value); diff --git a/clients/dart/credential_issuance_client/lib/src/model/issuance_config_dto.g.dart b/clients/dart/credential_issuance_client/lib/src/model/issuance_config_dto.g.dart index 762ad3135..744c0ac0a 100644 --- a/clients/dart/credential_issuance_client/lib/src/model/issuance_config_dto.g.dart +++ b/clients/dart/credential_issuance_client/lib/src/model/issuance_config_dto.g.dart @@ -96,6 +96,8 @@ class _$IssuanceConfigDto extends IssuanceConfigDto { final int? version; @override final BuiltList? returnUris; + @override + final CisConfigurationWebhookSetting? webhook; factory _$IssuanceConfigDto( [void Function(IssuanceConfigDtoBuilder)? updates]) => @@ -114,7 +116,8 @@ class _$IssuanceConfigDto extends IssuanceConfigDto { this.credentialSupported, this.issuerMetadata, this.version, - this.returnUris}) + this.returnUris, + this.webhook}) : super._(); @override @@ -141,7 +144,8 @@ class _$IssuanceConfigDto extends IssuanceConfigDto { credentialSupported == other.credentialSupported && issuerMetadata == other.issuerMetadata && version == other.version && - returnUris == other.returnUris; + returnUris == other.returnUris && + webhook == other.webhook; } @override @@ -160,6 +164,7 @@ class _$IssuanceConfigDto extends IssuanceConfigDto { _$hash = $jc(_$hash, issuerMetadata.hashCode); _$hash = $jc(_$hash, version.hashCode); _$hash = $jc(_$hash, returnUris.hashCode); + _$hash = $jc(_$hash, webhook.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -179,7 +184,8 @@ class _$IssuanceConfigDto extends IssuanceConfigDto { ..add('credentialSupported', credentialSupported) ..add('issuerMetadata', issuerMetadata) ..add('version', version) - ..add('returnUris', returnUris)) + ..add('returnUris', returnUris) + ..add('webhook', webhook)) .toString(); } } @@ -251,6 +257,12 @@ class IssuanceConfigDtoBuilder set returnUris(ListBuilder? returnUris) => _$this._returnUris = returnUris; + CisConfigurationWebhookSettingBuilder? _webhook; + CisConfigurationWebhookSettingBuilder get webhook => + _$this._webhook ??= new CisConfigurationWebhookSettingBuilder(); + set webhook(CisConfigurationWebhookSettingBuilder? webhook) => + _$this._webhook = webhook; + IssuanceConfigDtoBuilder() { IssuanceConfigDto._defaults(this); } @@ -271,6 +283,7 @@ class IssuanceConfigDtoBuilder _issuerMetadata = $v.issuerMetadata?.toBuilder(); _version = $v.version; _returnUris = $v.returnUris?.toBuilder(); + _webhook = $v.webhook?.toBuilder(); _$v = null; } return this; @@ -308,6 +321,7 @@ class IssuanceConfigDtoBuilder issuerMetadata: _issuerMetadata?.build(), version: version, returnUris: _returnUris?.build(), + webhook: _webhook?.build(), ); } catch (_) { late String _$failedField; @@ -319,6 +333,8 @@ class IssuanceConfigDtoBuilder _$failedField = 'returnUris'; _returnUris?.build(); + _$failedField = 'webhook'; + _webhook?.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'IssuanceConfigDto', _$failedField, e.toString()); diff --git a/clients/dart/credential_issuance_client/lib/src/model/update_issuance_config_input.dart b/clients/dart/credential_issuance_client/lib/src/model/update_issuance_config_input.dart index 7b4b755ad..016af48d2 100644 --- a/clients/dart/credential_issuance_client/lib/src/model/update_issuance_config_input.dart +++ b/clients/dart/credential_issuance_client/lib/src/model/update_issuance_config_input.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:affinidi_tdk_credential_issuance_client/src/model/cis_configuration_webhook_setting.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/credential_supported_object.dart'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/json_object.dart'; @@ -23,6 +24,7 @@ part 'update_issuance_config_input.g.dart'; /// * [credentialSupported] /// * [issuerMetadata] - Issuer public information wallet may want to show to user during consent confirmation /// * [returnUris] - List of allowed URIs to be returned to after issuance +/// * [webhook] @BuiltValue() abstract class UpdateIssuanceConfigInput implements Built { @BuiltValueField(wireName: r'name') @@ -59,6 +61,9 @@ abstract class UpdateIssuanceConfigInput implements Built? get returnUris; + @BuiltValueField(wireName: r'webhook') + CisConfigurationWebhookSetting? get webhook; + UpdateIssuanceConfigInput._(); factory UpdateIssuanceConfigInput([void updates(UpdateIssuanceConfigInputBuilder b)]) = _$UpdateIssuanceConfigInput; @@ -145,6 +150,13 @@ class _$UpdateIssuanceConfigInputSerializer implements PrimitiveSerializer; result.returnUris.replace(valueDes); break; + case r'webhook': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(CisConfigurationWebhookSetting), + ) as CisConfigurationWebhookSetting; + result.webhook.replace(valueDes); + break; default: unhandled.add(key); unhandled.add(value); diff --git a/clients/dart/credential_issuance_client/lib/src/model/update_issuance_config_input.g.dart b/clients/dart/credential_issuance_client/lib/src/model/update_issuance_config_input.g.dart index 34b0bc3da..15c013a05 100644 --- a/clients/dart/credential_issuance_client/lib/src/model/update_issuance_config_input.g.dart +++ b/clients/dart/credential_issuance_client/lib/src/model/update_issuance_config_input.g.dart @@ -95,6 +95,8 @@ class _$UpdateIssuanceConfigInput extends UpdateIssuanceConfigInput { final BuiltMap? issuerMetadata; @override final BuiltList? returnUris; + @override + final CisConfigurationWebhookSetting? webhook; factory _$UpdateIssuanceConfigInput( [void Function(UpdateIssuanceConfigInputBuilder)? updates]) => @@ -109,7 +111,8 @@ class _$UpdateIssuanceConfigInput extends UpdateIssuanceConfigInput { this.issuerUri, this.credentialSupported, this.issuerMetadata, - this.returnUris}) + this.returnUris, + this.webhook}) : super._(); @override @@ -133,7 +136,8 @@ class _$UpdateIssuanceConfigInput extends UpdateIssuanceConfigInput { issuerUri == other.issuerUri && credentialSupported == other.credentialSupported && issuerMetadata == other.issuerMetadata && - returnUris == other.returnUris; + returnUris == other.returnUris && + webhook == other.webhook; } @override @@ -148,6 +152,7 @@ class _$UpdateIssuanceConfigInput extends UpdateIssuanceConfigInput { _$hash = $jc(_$hash, credentialSupported.hashCode); _$hash = $jc(_$hash, issuerMetadata.hashCode); _$hash = $jc(_$hash, returnUris.hashCode); + _$hash = $jc(_$hash, webhook.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -163,7 +168,8 @@ class _$UpdateIssuanceConfigInput extends UpdateIssuanceConfigInput { ..add('issuerUri', issuerUri) ..add('credentialSupported', credentialSupported) ..add('issuerMetadata', issuerMetadata) - ..add('returnUris', returnUris)) + ..add('returnUris', returnUris) + ..add('webhook', webhook)) .toString(); } } @@ -220,6 +226,12 @@ class UpdateIssuanceConfigInputBuilder set returnUris(ListBuilder? returnUris) => _$this._returnUris = returnUris; + CisConfigurationWebhookSettingBuilder? _webhook; + CisConfigurationWebhookSettingBuilder get webhook => + _$this._webhook ??= new CisConfigurationWebhookSettingBuilder(); + set webhook(CisConfigurationWebhookSettingBuilder? webhook) => + _$this._webhook = webhook; + UpdateIssuanceConfigInputBuilder() { UpdateIssuanceConfigInput._defaults(this); } @@ -236,6 +248,7 @@ class UpdateIssuanceConfigInputBuilder _credentialSupported = $v.credentialSupported?.toBuilder(); _issuerMetadata = $v.issuerMetadata?.toBuilder(); _returnUris = $v.returnUris?.toBuilder(); + _webhook = $v.webhook?.toBuilder(); _$v = null; } return this; @@ -269,6 +282,7 @@ class UpdateIssuanceConfigInputBuilder credentialSupported: _credentialSupported?.build(), issuerMetadata: _issuerMetadata?.build(), returnUris: _returnUris?.build(), + webhook: _webhook?.build(), ); } catch (_) { late String _$failedField; @@ -279,6 +293,8 @@ class UpdateIssuanceConfigInputBuilder _issuerMetadata?.build(); _$failedField = 'returnUris'; _returnUris?.build(); + _$failedField = 'webhook'; + _webhook?.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'UpdateIssuanceConfigInput', _$failedField, e.toString()); diff --git a/clients/dart/credential_issuance_client/lib/src/serializers.dart b/clients/dart/credential_issuance_client/lib/src/serializers.dart index 9945aa01f..2f95f48eb 100644 --- a/clients/dart/credential_issuance_client/lib/src/serializers.dart +++ b/clients/dart/credential_issuance_client/lib/src/serializers.dart @@ -19,8 +19,14 @@ import 'package:affinidi_tdk_credential_issuance_client/src/model/action_forbidd import 'package:affinidi_tdk_credential_issuance_client/src/model/change_credential_status400_response.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/change_credential_status_input.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/change_status_forbidden_error.dart'; +import 'package:affinidi_tdk_credential_issuance_client/src/model/cis_configuration_webhook_setting.dart'; +import 'package:affinidi_tdk_credential_issuance_client/src/model/cis_configuration_webhook_setting_endpoint.dart'; +import 'package:affinidi_tdk_credential_issuance_client/src/model/claimed_credential_list_response.dart'; +import 'package:affinidi_tdk_credential_issuance_client/src/model/claimed_credential_response.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/cors_generate_credentials_ok.dart'; +import 'package:affinidi_tdk_credential_issuance_client/src/model/cors_get_claimed_credentials_ok.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/cors_get_credential_offer_ok.dart'; +import 'package:affinidi_tdk_credential_issuance_client/src/model/cors_get_issuance_id_claimed_credential_ok.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/cors_get_well_known_open_id_credential_issuer_ok.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/create_credential_input.dart'; import 'package:affinidi_tdk_credential_issuance_client/src/model/create_issuance_config400_response.dart'; @@ -85,8 +91,14 @@ part 'serializers.g.dart'; ChangeCredentialStatus400Response, ChangeCredentialStatusInput, ChangeStatusForbiddenError, + CisConfigurationWebhookSetting, + CisConfigurationWebhookSettingEndpoint, + ClaimedCredentialListResponse, + ClaimedCredentialResponse, CorsGenerateCredentialsOK, + CorsGetClaimedCredentialsOK, CorsGetCredentialOfferOK, + CorsGetIssuanceIdClaimedCredentialOK, CorsGetWellKnownOpenIdCredentialIssuerOK, CreateCredentialInput, CreateIssuanceConfig400Response, @@ -144,6 +156,10 @@ part 'serializers.g.dart'; WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner, ]) Serializers serializers = (_$serializers.toBuilder() + ..addBuilderFactory( + const FullType(BuiltMap, [FullType(String), FullType.nullable(JsonObject)]), + () => MapBuilder(), + ) ..add(const OneOfSerializer()) ..add(const AnyOfSerializer()) ..add(const DateSerializer()) diff --git a/clients/dart/credential_issuance_client/lib/src/serializers.g.dart b/clients/dart/credential_issuance_client/lib/src/serializers.g.dart index cc2ea7dde..5b310a073 100644 --- a/clients/dart/credential_issuance_client/lib/src/serializers.g.dart +++ b/clients/dart/credential_issuance_client/lib/src/serializers.g.dart @@ -19,8 +19,14 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(ChangeStatusForbiddenErrorHttpStatusCodeEnum.serializer) ..add(ChangeStatusForbiddenErrorMessageEnum.serializer) ..add(ChangeStatusForbiddenErrorNameEnum.serializer) + ..add(CisConfigurationWebhookSetting.serializer) + ..add(CisConfigurationWebhookSettingEndpoint.serializer) + ..add(ClaimedCredentialListResponse.serializer) + ..add(ClaimedCredentialResponse.serializer) ..add(CorsGenerateCredentialsOK.serializer) + ..add(CorsGetClaimedCredentialsOK.serializer) ..add(CorsGetCredentialOfferOK.serializer) + ..add(CorsGetIssuanceIdClaimedCredentialOK.serializer) ..add(CorsGetWellKnownOpenIdCredentialIssuerOK.serializer) ..add(CreateCredentialInput.serializer) ..add(CreateIssuanceConfig400Response.serializer) @@ -221,6 +227,14 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType(BuiltList, const [const FullType(ActionForbiddenErrorDetailsInner)]), () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [ + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]) + ]), + () => new ListBuilder>()) ..addBuilderFactory( const FullType( BuiltList, const [const FullType(CredentialSupportedObject)]), @@ -326,6 +340,12 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType.nullable(JsonObject) ]), () => new MapBuilder()) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType.nullable(JsonObject) + ]), + () => new MapBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [ const FullType(StartIssuanceInputDataInnerStatusListDetailsInner) diff --git a/clients/dart/credential_issuance_client/test/cis_configuration_webhook_setting_endpoint_test.dart b/clients/dart/credential_issuance_client/test/cis_configuration_webhook_setting_endpoint_test.dart new file mode 100644 index 000000000..505f7ac59 --- /dev/null +++ b/clients/dart/credential_issuance_client/test/cis_configuration_webhook_setting_endpoint_test.dart @@ -0,0 +1,17 @@ +import 'package:test/test.dart'; +import 'package:affinidi_tdk_credential_issuance_client/affinidi_tdk_credential_issuance_client.dart'; + +// tests for CisConfigurationWebhookSettingEndpoint +void main() { + final instance = CisConfigurationWebhookSettingEndpointBuilder(); + // TODO add properties to the builder and call build() + + group(CisConfigurationWebhookSettingEndpoint, () { + // url endpoint where notification will be sent with issuanceId after user has claimed the VC related to issuanceId + // String url + test('to test the property `url`', () async { + // TODO + }); + + }); +} diff --git a/clients/dart/credential_issuance_client/test/cis_configuration_webhook_setting_test.dart b/clients/dart/credential_issuance_client/test/cis_configuration_webhook_setting_test.dart new file mode 100644 index 000000000..fec3c0ade --- /dev/null +++ b/clients/dart/credential_issuance_client/test/cis_configuration_webhook_setting_test.dart @@ -0,0 +1,22 @@ +import 'package:test/test.dart'; +import 'package:affinidi_tdk_credential_issuance_client/affinidi_tdk_credential_issuance_client.dart'; + +// tests for CisConfigurationWebhookSetting +void main() { + final instance = CisConfigurationWebhookSettingBuilder(); + // TODO add properties to the builder and call build() + + group(CisConfigurationWebhookSetting, () { + // flag to enabled or disabled the webhook + // bool enabled (default value: false) + test('to test the property `enabled`', () async { + // TODO + }); + + // CisConfigurationWebhookSettingEndpoint endpoint + test('to test the property `endpoint`', () async { + // TODO + }); + + }); +} diff --git a/clients/dart/credential_issuance_client/test/claimed_credential_list_response_test.dart b/clients/dart/credential_issuance_client/test/claimed_credential_list_response_test.dart new file mode 100644 index 000000000..225f202d3 --- /dev/null +++ b/clients/dart/credential_issuance_client/test/claimed_credential_list_response_test.dart @@ -0,0 +1,23 @@ +import 'package:test/test.dart'; +import 'package:affinidi_tdk_credential_issuance_client/affinidi_tdk_credential_issuance_client.dart'; + +// tests for ClaimedCredentialListResponse +void main() { + final instance = ClaimedCredentialListResponseBuilder(); + // TODO add properties to the builder and call build() + + group(ClaimedCredentialListResponse, () { + // list of credentials + // BuiltList> credentials + test('to test the property `credentials`', () async { + // TODO + }); + + // for pagination to fetch next set of records + // String next + test('to test the property `next`', () async { + // TODO + }); + + }); +} diff --git a/clients/dart/credential_issuance_client/test/claimed_credential_response_test.dart b/clients/dart/credential_issuance_client/test/claimed_credential_response_test.dart new file mode 100644 index 000000000..d897d6d59 --- /dev/null +++ b/clients/dart/credential_issuance_client/test/claimed_credential_response_test.dart @@ -0,0 +1,17 @@ +import 'package:test/test.dart'; +import 'package:affinidi_tdk_credential_issuance_client/affinidi_tdk_credential_issuance_client.dart'; + +// tests for ClaimedCredentialResponse +void main() { + final instance = ClaimedCredentialResponseBuilder(); + // TODO add properties to the builder and call build() + + group(ClaimedCredentialResponse, () { + // claimed credential + // BuiltMap credential + test('to test the property `credential`', () async { + // TODO + }); + + }); +} diff --git a/clients/dart/credential_issuance_client/test/cors_get_claimed_credentials_ok_test.dart b/clients/dart/credential_issuance_client/test/cors_get_claimed_credentials_ok_test.dart new file mode 100644 index 000000000..2bf35e2ea --- /dev/null +++ b/clients/dart/credential_issuance_client/test/cors_get_claimed_credentials_ok_test.dart @@ -0,0 +1,16 @@ +import 'package:test/test.dart'; +import 'package:affinidi_tdk_credential_issuance_client/affinidi_tdk_credential_issuance_client.dart'; + +// tests for CorsGetClaimedCredentialsOK +void main() { + final instance = CorsGetClaimedCredentialsOKBuilder(); + // TODO add properties to the builder and call build() + + group(CorsGetClaimedCredentialsOK, () { + // String corsGetClaimedCredentialsOk + test('to test the property `corsGetClaimedCredentialsOk`', () async { + // TODO + }); + + }); +} diff --git a/clients/dart/credential_issuance_client/test/cors_get_issuance_id_claimed_credential_ok_test.dart b/clients/dart/credential_issuance_client/test/cors_get_issuance_id_claimed_credential_ok_test.dart new file mode 100644 index 000000000..da29b6338 --- /dev/null +++ b/clients/dart/credential_issuance_client/test/cors_get_issuance_id_claimed_credential_ok_test.dart @@ -0,0 +1,16 @@ +import 'package:test/test.dart'; +import 'package:affinidi_tdk_credential_issuance_client/affinidi_tdk_credential_issuance_client.dart'; + +// tests for CorsGetIssuanceIdClaimedCredentialOK +void main() { + final instance = CorsGetIssuanceIdClaimedCredentialOKBuilder(); + // TODO add properties to the builder and call build() + + group(CorsGetIssuanceIdClaimedCredentialOK, () { + // String corsGetIssuanceIdClaimedCredentialOk + test('to test the property `corsGetIssuanceIdClaimedCredentialOk`', () async { + // TODO + }); + + }); +} diff --git a/clients/dart/credential_issuance_client/test/create_issuance_config_input_test.dart b/clients/dart/credential_issuance_client/test/create_issuance_config_input_test.dart index 10153fb51..1847bb419 100644 --- a/clients/dart/credential_issuance_client/test/create_issuance_config_input_test.dart +++ b/clients/dart/credential_issuance_client/test/create_issuance_config_input_test.dart @@ -52,5 +52,10 @@ void main() { // TODO }); + // CisConfigurationWebhookSetting webhook + test('to test the property `webhook`', () async { + // TODO + }); + }); } diff --git a/clients/dart/credential_issuance_client/test/credentials_api_test.dart b/clients/dart/credential_issuance_client/test/credentials_api_test.dart index 40b9d4c50..53ab38ad5 100644 --- a/clients/dart/credential_issuance_client/test/credentials_api_test.dart +++ b/clients/dart/credential_issuance_client/test/credentials_api_test.dart @@ -14,5 +14,23 @@ void main() { // TODO }); + // Get claimed credential in the specified range + // + // Get claimed credential in the specified range + // + //Future getClaimedCredentials(String projectId, String configurationId, String rangeStartTime, { String rangeEndTime, String next }) async + test('test getClaimedCredentials', () async { + // TODO + }); + + // Get claimed VC linked to the issuanceId + // + // Get claimed VC linked to the issuanceId + // + //Future getIssuanceIdClaimedCredential(String projectId, String configurationId, String issuanceId) async + test('test getIssuanceIdClaimedCredential', () async { + // TODO + }); + }); } diff --git a/clients/dart/credential_issuance_client/test/issuance_config_dto_test.dart b/clients/dart/credential_issuance_client/test/issuance_config_dto_test.dart index 8610a1b56..40ca5fc9f 100644 --- a/clients/dart/credential_issuance_client/test/issuance_config_dto_test.dart +++ b/clients/dart/credential_issuance_client/test/issuance_config_dto_test.dart @@ -80,5 +80,10 @@ void main() { // TODO }); + // CisConfigurationWebhookSetting webhook + test('to test the property `webhook`', () async { + // TODO + }); + }); } diff --git a/clients/dart/credential_issuance_client/test/update_issuance_config_input_test.dart b/clients/dart/credential_issuance_client/test/update_issuance_config_input_test.dart index 47d2b9b7b..154bba3f3 100644 --- a/clients/dart/credential_issuance_client/test/update_issuance_config_input_test.dart +++ b/clients/dart/credential_issuance_client/test/update_issuance_config_input_test.dart @@ -58,5 +58,10 @@ void main() { // TODO }); + // CisConfigurationWebhookSetting webhook + test('to test the property `webhook`', () async { + // TODO + }); + }); } diff --git a/clients/dart/vault_data_manager_client/doc/ConsumerMetadataDto.md b/clients/dart/vault_data_manager_client/doc/ConsumerMetadataDto.md index 6a21a6965..261b6e10f 100644 --- a/clients/dart/vault_data_manager_client/doc/ConsumerMetadataDto.md +++ b/clients/dart/vault_data_manager_client/doc/ConsumerMetadataDto.md @@ -8,21 +8,21 @@ import 'package:affinidi_tdk_vault_data_manager_client/api.dart'; ## Properties -| Name | Type | Description | Notes | -| ----------------------- | ------------------------------- | -------------------------------------------------------------- | ---------- | -| **nodeId** | **String** | | -| **status** | [**NodeStatus**](NodeStatus.md) | | -| **fileCount** | **int** | | [optional] | -| **folderCount** | **int** | | [optional] | -| **profileCount** | **int** | | [optional] | -| **name** | **String** | | -| **consumerId** | **String** | | -| **createdAt** | **String** | [GEN] ISO 8601 string of the creation date/time the entity | -| **modifiedAt** | **String** | [GEN] ISO 8601 string of the modification date/time the entity | -| **createdBy** | **String** | [GEN] Identifier of the user who created the entity | -| **modifiedBy** | **String** | [GEN] Identifier of the user who last updated the entity | -| **description** | **String** | Description of the node | -| **type** | [**NodeType**](NodeType.md) | | -| **consumedFileStorage** | **int** | Tracks the amount of bytes used by the stored data. | +| Name | Type | Description | Notes | +| ----------------------- | ------------------------------- | --------------------------------------------------- | ---------- | +| **nodeId** | **String** | | +| **status** | [**NodeStatus**](NodeStatus.md) | | +| **fileCount** | **int** | | [optional] | +| **folderCount** | **int** | | [optional] | +| **profileCount** | **int** | | [optional] | +| **name** | **String** | | +| **consumerId** | **String** | | +| **createdAt** | **String** | creation date/time | +| **modifiedAt** | **String** | modification date/time | +| **createdBy** | **String** | Identifier of the user who created | +| **modifiedBy** | **String** | Identifier of the user who last updated | +| **description** | **String** | Description of the node | [optional] | +| **type** | [**NodeType**](NodeType.md) | | +| **consumedFileStorage** | **int** | Tracks the amount of bytes used by the stored data. | [[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/vault_data_manager_client/doc/GetDetailedNodeInfoOK.md b/clients/dart/vault_data_manager_client/doc/GetDetailedNodeInfoOK.md index 98156f80a..4255c8c7d 100644 --- a/clients/dart/vault_data_manager_client/doc/GetDetailedNodeInfoOK.md +++ b/clients/dart/vault_data_manager_client/doc/GetDetailedNodeInfoOK.md @@ -24,7 +24,7 @@ import 'package:affinidi_tdk_vault_data_manager_client/api.dart'; | **modifiedAt** | **String** | modification date/time of the node | | **createdBy** | **String** | Identifier of the user who created the node | | **modifiedBy** | **String** | Identifier of the user who last updated the node | -| **description** | **String** | Description of the node | +| **description** | **String** | Description of the node | [optional] | | **type** | [**NodeType**](NodeType.md) | | | **link** | **String** | id of the file, used for FILE node only | [optional] | | **schema** | **String** | name of the schema, used for PROFILE node only | [optional] | diff --git a/clients/dart/vault_data_manager_client/doc/NodeDto.md b/clients/dart/vault_data_manager_client/doc/NodeDto.md index 3d1a97198..c0e3f5c72 100644 --- a/clients/dart/vault_data_manager_client/doc/NodeDto.md +++ b/clients/dart/vault_data_manager_client/doc/NodeDto.md @@ -24,7 +24,7 @@ import 'package:affinidi_tdk_vault_data_manager_client/api.dart'; | **modifiedAt** | **String** | modification date/time of the node | | **createdBy** | **String** | Identifier of the user who created the node | | **modifiedBy** | **String** | Identifier of the user who last updated the node | -| **description** | **String** | Description of the node | +| **description** | **String** | Description of the node | [optional] | | **type** | [**NodeType**](NodeType.md) | | | **link** | **String** | id of the file, used for FILE node only | [optional] | | **schema** | **String** | name of the schema, used for PROFILE node only | [optional] | diff --git a/clients/dart/vault_data_manager_client/lib/src/model/consumer_metadata_dto.dart b/clients/dart/vault_data_manager_client/lib/src/model/consumer_metadata_dto.dart index f3735c9e1..f528977bb 100644 --- a/clients/dart/vault_data_manager_client/lib/src/model/consumer_metadata_dto.dart +++ b/clients/dart/vault_data_manager_client/lib/src/model/consumer_metadata_dto.dart @@ -20,10 +20,10 @@ part 'consumer_metadata_dto.g.dart'; /// * [profileCount] /// * [name] /// * [consumerId] -/// * [createdAt] - [GEN] ISO 8601 string of the creation date/time the entity -/// * [modifiedAt] - [GEN] ISO 8601 string of the modification date/time the entity -/// * [createdBy] - [GEN] Identifier of the user who created the entity -/// * [modifiedBy] - [GEN] Identifier of the user who last updated the entity +/// * [createdAt] - creation date/time +/// * [modifiedAt] - modification date/time +/// * [createdBy] - Identifier of the user who created +/// * [modifiedBy] - Identifier of the user who last updated /// * [description] - Description of the node /// * [type] /// * [consumedFileStorage] - Tracks the amount of bytes used by the stored data. @@ -51,25 +51,25 @@ abstract class ConsumerMetadataDto implements Built { object.modifiedBy, specifiedType: const FullType(String), ); - yield r'description'; - yield serializers.serialize( - object.description, - specifiedType: const FullType(String), - ); + if (object.description != null) { + yield r'description'; + yield serializers.serialize( + object.description, + specifiedType: const FullType(String), + ); + } yield r'type'; yield serializers.serialize( object.type, diff --git a/clients/dart/vault_data_manager_client/lib/src/model/node_dto.g.dart b/clients/dart/vault_data_manager_client/lib/src/model/node_dto.g.dart index bffd10489..f3f6f5ae4 100644 --- a/clients/dart/vault_data_manager_client/lib/src/model/node_dto.g.dart +++ b/clients/dart/vault_data_manager_client/lib/src/model/node_dto.g.dart @@ -103,7 +103,7 @@ class _$$NodeDto extends $NodeDto { @override final String modifiedBy; @override - final String description; + final String? description; @override final NodeType type; @override @@ -135,7 +135,7 @@ class _$$NodeDto extends $NodeDto { required this.modifiedAt, required this.createdBy, required this.modifiedBy, - required this.description, + this.description, required this.type, this.link, this.schema, @@ -157,8 +157,6 @@ class _$$NodeDto extends $NodeDto { BuiltValueNullFieldError.checkNotNull(createdBy, r'$NodeDto', 'createdBy'); BuiltValueNullFieldError.checkNotNull( modifiedBy, r'$NodeDto', 'modifiedBy'); - BuiltValueNullFieldError.checkNotNull( - description, r'$NodeDto', 'description'); BuiltValueNullFieldError.checkNotNull(type, r'$NodeDto', 'type'); } @@ -425,8 +423,7 @@ class $NodeDtoBuilder createdBy, r'$NodeDto', 'createdBy'), modifiedBy: BuiltValueNullFieldError.checkNotNull( modifiedBy, r'$NodeDto', 'modifiedBy'), - description: BuiltValueNullFieldError.checkNotNull( - description, r'$NodeDto', 'description'), + description: description, type: BuiltValueNullFieldError.checkNotNull( type, r'$NodeDto', 'type'), link: link, diff --git a/clients/dart/vault_data_manager_client/test/consumer_metadata_dto_test.dart b/clients/dart/vault_data_manager_client/test/consumer_metadata_dto_test.dart index 093252880..eed29001c 100644 --- a/clients/dart/vault_data_manager_client/test/consumer_metadata_dto_test.dart +++ b/clients/dart/vault_data_manager_client/test/consumer_metadata_dto_test.dart @@ -42,25 +42,25 @@ void main() { // TODO }); - // [GEN] ISO 8601 string of the creation date/time the entity + // creation date/time // String createdAt test('to test the property `createdAt`', () async { // TODO }); - // [GEN] ISO 8601 string of the modification date/time the entity + // modification date/time // String modifiedAt test('to test the property `modifiedAt`', () async { // TODO }); - // [GEN] Identifier of the user who created the entity + // Identifier of the user who created // String createdBy test('to test the property `createdBy`', () async { // TODO }); - // [GEN] Identifier of the user who last updated the entity + // Identifier of the user who last updated // String modifiedBy test('to test the property `modifiedBy`', () async { // TODO diff --git a/clients/java/credential.issuance.client/.openapi-generator/FILES b/clients/java/credential.issuance.client/.openapi-generator/FILES index ca573bdc4..086d6112c 100644 --- a/clients/java/credential.issuance.client/.openapi-generator/FILES +++ b/clients/java/credential.issuance.client/.openapi-generator/FILES @@ -9,9 +9,15 @@ docs/ActionForbiddenErrorDetailsInner.md docs/ChangeCredentialStatus400Response.md docs/ChangeCredentialStatusInput.md docs/ChangeStatusForbiddenError.md +docs/CisConfigurationWebhookSetting.md +docs/CisConfigurationWebhookSettingEndpoint.md +docs/ClaimedCredentialListResponse.md +docs/ClaimedCredentialResponse.md docs/ConfigurationApi.md docs/CorsGenerateCredentialsOK.md +docs/CorsGetClaimedCredentialsOK.md docs/CorsGetCredentialOfferOK.md +docs/CorsGetIssuanceIdClaimedCredentialOK.md docs/CorsGetWellKnownOpenIdCredentialIssuerOK.md docs/CreateCredentialInput.md docs/CreateIssuanceConfig400Response.md @@ -106,8 +112,14 @@ src/main/java/com/affinidi/tdk/credential/issuance/client/models/ActionForbidden src/main/java/com/affinidi/tdk/credential/issuance/client/models/ChangeCredentialStatus400Response.java src/main/java/com/affinidi/tdk/credential/issuance/client/models/ChangeCredentialStatusInput.java src/main/java/com/affinidi/tdk/credential/issuance/client/models/ChangeStatusForbiddenError.java +src/main/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSetting.java +src/main/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingEndpoint.java +src/main/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialListResponse.java +src/main/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialResponse.java src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGenerateCredentialsOK.java +src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetClaimedCredentialsOK.java src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetCredentialOfferOK.java +src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetIssuanceIdClaimedCredentialOK.java src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetWellKnownOpenIdCredentialIssuerOK.java src/main/java/com/affinidi/tdk/credential/issuance/client/models/CreateCredentialInput.java src/main/java/com/affinidi/tdk/credential/issuance/client/models/CreateIssuanceConfig400Response.java @@ -174,8 +186,14 @@ src/test/java/com/affinidi/tdk/credential/issuance/client/models/ActionForbidden src/test/java/com/affinidi/tdk/credential/issuance/client/models/ChangeCredentialStatus400ResponseTest.java src/test/java/com/affinidi/tdk/credential/issuance/client/models/ChangeCredentialStatusInputTest.java src/test/java/com/affinidi/tdk/credential/issuance/client/models/ChangeStatusForbiddenErrorTest.java +src/test/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingEndpointTest.java +src/test/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingTest.java +src/test/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialListResponseTest.java +src/test/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialResponseTest.java src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGenerateCredentialsOKTest.java +src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetClaimedCredentialsOKTest.java src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetCredentialOfferOKTest.java +src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetIssuanceIdClaimedCredentialOKTest.java src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetWellKnownOpenIdCredentialIssuerOKTest.java src/test/java/com/affinidi/tdk/credential/issuance/client/models/CreateCredentialInputTest.java src/test/java/com/affinidi/tdk/credential/issuance/client/models/CreateIssuanceConfig400ResponseTest.java diff --git a/clients/java/credential.issuance.client/README.md b/clients/java/credential.issuance.client/README.md index 0bc2616b5..f15d1dca8 100644 --- a/clients/java/credential.issuance.client/README.md +++ b/clients/java/credential.issuance.client/README.md @@ -115,21 +115,23 @@ public class ConfigurationApiExample { All URIs are relative to *https://apse1.api.affinidi.io/cis* -| Class | Method | HTTP request | Description | -| ------------------ | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------------- | -| _ConfigurationApi_ | [**createIssuanceConfig**](docs/ConfigurationApi.md#createIssuanceConfig) | **POST** /v1/configurations | -| _ConfigurationApi_ | [**deleteIssuanceConfigById**](docs/ConfigurationApi.md#deleteIssuanceConfigById) | **DELETE** /v1/configurations/{configurationId} | -| _ConfigurationApi_ | [**getIssuanceConfigById**](docs/ConfigurationApi.md#getIssuanceConfigById) | **GET** /v1/configurations/{configurationId} | -| _ConfigurationApi_ | [**getIssuanceConfigList**](docs/ConfigurationApi.md#getIssuanceConfigList) | **GET** /v1/configurations | -| _ConfigurationApi_ | [**updateIssuanceConfigById**](docs/ConfigurationApi.md#updateIssuanceConfigById) | **PUT** /v1/configurations/{configurationId} | -| _CredentialsApi_ | [**generateCredentials**](docs/CredentialsApi.md#generateCredentials) | **POST** /v1/{projectId}/credential | -| _DefaultApi_ | [**changeCredentialStatus**](docs/DefaultApi.md#changeCredentialStatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. | -| _DefaultApi_ | [**listIssuanceDataRecords**](docs/DefaultApi.md#listIssuanceDataRecords) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records | -| _IssuanceApi_ | [**issuanceState**](docs/IssuanceApi.md#issuanceState) | **GET** /v1/{projectId}/issuance/state/{issuanceId} | -| _IssuanceApi_ | [**listIssuance**](docs/IssuanceApi.md#listIssuance) | **GET** /v1/{projectId}/issuance | -| _IssuanceApi_ | [**startIssuance**](docs/IssuanceApi.md#startIssuance) | **POST** /v1/{projectId}/issuance/start | -| _OfferApi_ | [**getCredentialOffer**](docs/OfferApi.md#getCredentialOffer) | **GET** /v1/{projectId}/offers/{issuanceId} | -| _WellKnownApi_ | [**getWellKnownOpenIdCredentialIssuer**](docs/WellKnownApi.md#getWellKnownOpenIdCredentialIssuer) | **GET** /v1/{projectId}/.well-known/openid-credential-issuer | +| Class | Method | HTTP request | Description | +| ------------------ | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------- | +| _ConfigurationApi_ | [**createIssuanceConfig**](docs/ConfigurationApi.md#createIssuanceConfig) | **POST** /v1/configurations | +| _ConfigurationApi_ | [**deleteIssuanceConfigById**](docs/ConfigurationApi.md#deleteIssuanceConfigById) | **DELETE** /v1/configurations/{configurationId} | +| _ConfigurationApi_ | [**getIssuanceConfigById**](docs/ConfigurationApi.md#getIssuanceConfigById) | **GET** /v1/configurations/{configurationId} | +| _ConfigurationApi_ | [**getIssuanceConfigList**](docs/ConfigurationApi.md#getIssuanceConfigList) | **GET** /v1/configurations | +| _ConfigurationApi_ | [**updateIssuanceConfigById**](docs/ConfigurationApi.md#updateIssuanceConfigById) | **PUT** /v1/configurations/{configurationId} | +| _CredentialsApi_ | [**generateCredentials**](docs/CredentialsApi.md#generateCredentials) | **POST** /v1/{projectId}/credential | +| _CredentialsApi_ | [**getClaimedCredentials**](docs/CredentialsApi.md#getClaimedCredentials) | **GET** /v1/{projectId}/configurations/{configurationId}/credentials | Get claimed credential in the specified range | +| _CredentialsApi_ | [**getIssuanceIdClaimedCredential**](docs/CredentialsApi.md#getIssuanceIdClaimedCredential) | **GET** /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials | Get claimed VC linked to the issuanceId | +| _DefaultApi_ | [**changeCredentialStatus**](docs/DefaultApi.md#changeCredentialStatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. | +| _DefaultApi_ | [**listIssuanceDataRecords**](docs/DefaultApi.md#listIssuanceDataRecords) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records | +| _IssuanceApi_ | [**issuanceState**](docs/IssuanceApi.md#issuanceState) | **GET** /v1/{projectId}/issuance/state/{issuanceId} | +| _IssuanceApi_ | [**listIssuance**](docs/IssuanceApi.md#listIssuance) | **GET** /v1/{projectId}/issuance | +| _IssuanceApi_ | [**startIssuance**](docs/IssuanceApi.md#startIssuance) | **POST** /v1/{projectId}/issuance/start | +| _OfferApi_ | [**getCredentialOffer**](docs/OfferApi.md#getCredentialOffer) | **GET** /v1/{projectId}/offers/{issuanceId} | +| _WellKnownApi_ | [**getWellKnownOpenIdCredentialIssuer**](docs/WellKnownApi.md#getWellKnownOpenIdCredentialIssuer) | **GET** /v1/{projectId}/.well-known/openid-credential-issuer | ## Documentation for Models @@ -138,8 +140,14 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [ChangeCredentialStatus400Response](docs/ChangeCredentialStatus400Response.md) - [ChangeCredentialStatusInput](docs/ChangeCredentialStatusInput.md) - [ChangeStatusForbiddenError](docs/ChangeStatusForbiddenError.md) +- [CisConfigurationWebhookSetting](docs/CisConfigurationWebhookSetting.md) +- [CisConfigurationWebhookSettingEndpoint](docs/CisConfigurationWebhookSettingEndpoint.md) +- [ClaimedCredentialListResponse](docs/ClaimedCredentialListResponse.md) +- [ClaimedCredentialResponse](docs/ClaimedCredentialResponse.md) - [CorsGenerateCredentialsOK](docs/CorsGenerateCredentialsOK.md) +- [CorsGetClaimedCredentialsOK](docs/CorsGetClaimedCredentialsOK.md) - [CorsGetCredentialOfferOK](docs/CorsGetCredentialOfferOK.md) +- [CorsGetIssuanceIdClaimedCredentialOK](docs/CorsGetIssuanceIdClaimedCredentialOK.md) - [CorsGetWellKnownOpenIdCredentialIssuerOK](docs/CorsGetWellKnownOpenIdCredentialIssuerOK.md) - [CreateCredentialInput](docs/CreateCredentialInput.md) - [CreateIssuanceConfig400Response](docs/CreateIssuanceConfig400Response.md) diff --git a/clients/java/credential.issuance.client/api/openapi.yaml b/clients/java/credential.issuance.client/api/openapi.yaml index c6982e09f..acdcccd80 100644 --- a/clients/java/credential.issuance.client/api/openapi.yaml +++ b/clients/java/credential.issuance.client/api/openapi.yaml @@ -573,6 +573,171 @@ paths: x-content-type: application/json x-accepts: - application/json + /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials: + get: + description: Get claimed VC linked to the issuanceId + operationId: getIssuanceIdClaimedCredential + parameters: + - description: project id + explode: false + in: path + name: projectId + required: true + schema: + type: string + style: simple + - description: configuration id + explode: false + in: path + name: configurationId + required: true + schema: + type: string + style: simple + - description: issuance id + explode: false + in: path + name: issuanceId + required: true + schema: + type: string + style: simple + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClaimedCredentialResponse' + description: Ok + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/InvalidParameterError' + description: BadRequestError + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundError' + description: NotFoundError + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + security: + - ProjectTokenAuth: [] + summary: Get claimed VC linked to the issuanceId + tags: + - credentials + x-accepts: + - application/json + /v1/{projectId}/configurations/{configurationId}/credentials: + get: + description: Get claimed credential in the specified range + operationId: getClaimedCredentials + parameters: + - description: project id + explode: false + in: path + name: projectId + required: true + schema: + type: string + style: simple + - description: configuration id + explode: false + in: path + name: configurationId + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: rangeStartTime + required: true + schema: + type: string + style: form + - explode: true + in: query + name: rangeEndTime + required: false + schema: + type: string + style: form + - explode: true + in: query + name: next + required: false + schema: + type: string + style: form + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClaimedCredentialListResponse' + description: Ok + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/InvalidParameterError' + description: BadRequestError + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundError' + description: NotFoundError + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + security: + - ProjectTokenAuth: [] + summary: Get claimed credential in the specified range + tags: + - credentials + x-accepts: + - application/json components: examples: CredentialOfferResponse: @@ -792,6 +957,32 @@ components: schema: $ref: '#/components/schemas/ListIssuanceResponse' description: Ok + GetIssuanceIdClaimedCredentialOk: + content: + application/json: + schema: + $ref: '#/components/schemas/ClaimedCredentialResponse' + description: Ok + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + GetClaimedCredentialsOk: + content: + application/json: + schema: + $ref: '#/components/schemas/ClaimedCredentialListResponse' + description: Ok + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' CorsGetWellKnownOpenIdCredentialIssuerOK: content: application/json: @@ -831,6 +1022,32 @@ components: $ref: '#/components/headers/Access-Control-Allow-Methods' Access-Control-Allow-Headers: $ref: '#/components/headers/Access-Control-Allow-Headers' + CorsGetIssuanceIdClaimedCredentialOK: + content: + application/json: + schema: + $ref: '#/components/schemas/CorsGetIssuanceIdClaimedCredentialOK' + description: CorsGetIssuanceIdClaimedCredentialOK + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + CorsGetClaimedCredentialsOK: + content: + application/json: + schema: + $ref: '#/components/schemas/CorsGetClaimedCredentialsOK' + description: CorsGetClaimedCredentialsOK + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' GetCredentialOfferBadRequestError: content: application/json: @@ -972,6 +1189,58 @@ components: schema: $ref: '#/components/schemas/NotFoundError' description: NotFoundError + GetIssuanceIdClaimedCredentialBadRequestError: + content: + application/json: + schema: + $ref: '#/components/schemas/InvalidParameterError' + description: BadRequestError + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + GetIssuanceIdClaimedCredentialNotFoundError: + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundError' + description: NotFoundError + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + GetClaimedCredentialsBadRequestError: + content: + application/json: + schema: + $ref: '#/components/schemas/InvalidParameterError' + description: BadRequestError + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' + GetClaimedCredentialsNotFoundError: + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundError' + description: NotFoundError + headers: + Access-Control-Allow-Origin: + $ref: '#/components/headers/Access-Control-Allow-Origin' + Access-Control-Allow-Methods: + $ref: '#/components/headers/Access-Control-Allow-Methods' + Access-Control-Allow-Headers: + $ref: '#/components/headers/Access-Control-Allow-Headers' schemas: StartIssuanceInput: additionalProperties: false @@ -1241,6 +1510,38 @@ components: required: - issuances type: object + ClaimedCredentialResponse: + additionalProperties: false + description: Response for getting the claimed VC + example: + credential: + key: '' + properties: + credential: + additionalProperties: true + description: claimed credential + type: object + type: object + ClaimedCredentialListResponse: + additionalProperties: false + description: List of claimed credential + example: + next: next + credentials: + - key: '' + - key: '' + properties: + credentials: + description: list of credentials + items: + additionalProperties: true + description: claimed credential + type: object + type: array + next: + description: for pagination to fetch next set of records + type: string + type: object ListIssuanceRecordResponse: additionalProperties: false description: list of issuance data records @@ -1381,6 +1682,10 @@ components: returnUris: - returnUris - returnUris + webhook: + endpoint: + url: url + enabled: false issuerWalletId: issuerWalletId credentialOfferDuration: 48435.08895908198 name: name @@ -1467,6 +1772,8 @@ components: items: type: string type: array + webhook: + $ref: '#/components/schemas/CisConfigurationWebhookSetting' required: - credentialSupported - issuerWalletId @@ -1545,6 +1852,10 @@ components: returnUris: - returnUris - returnUris + webhook: + endpoint: + url: url + enabled: false issuerWalletId: issuerWalletId credentialOfferDuration: 48435.08895908198 name: name @@ -1634,6 +1945,8 @@ components: items: type: string type: array + webhook: + $ref: '#/components/schemas/CisConfigurationWebhookSetting' type: object CredentialOfferResponse: additionalProperties: false @@ -1730,6 +2043,10 @@ components: returnUris: - returnUris - returnUris + webhook: + endpoint: + url: url + enabled: false issuerWalletId: issuerWalletId credentialOfferDuration: 0.8008281904610115 format: ldp_vc @@ -1829,6 +2146,8 @@ components: items: type: string type: array + webhook: + $ref: '#/components/schemas/CisConfigurationWebhookSetting' type: object IssuanceConfigListResponse: additionalProperties: false @@ -2530,6 +2849,34 @@ components: required: - url type: object + CisConfigurationWebhookSetting: + description: Webhook setting to notify developers for claimed VC + example: + endpoint: + url: url + enabled: false + properties: + enabled: + default: false + description: flag to enabled or disabled the webhook + type: boolean + endpoint: + $ref: '#/components/schemas/CisConfigurationWebhookSetting_endpoint' + required: + - enabled + type: object + CorsGetIssuanceIdClaimedCredentialOK: + additionalProperties: false + properties: + corsGetIssuanceIdClaimedCredentialOk: + type: string + type: object + CorsGetClaimedCredentialsOK: + additionalProperties: false + properties: + corsGetClaimedCredentialsOk: + type: string + type: object getCredentialOffer_400_response: oneOf: - $ref: '#/components/schemas/InvalidParameterError' @@ -2827,6 +3174,16 @@ components: - jsonLdContextUrl - jsonSchemaUrl type: object + CisConfigurationWebhookSetting_endpoint: + example: + url: url + properties: + url: + description: + url endpoint where notification will be sent with issuanceId + after user has claimed the VC related to issuanceId + type: string + type: object securitySchemes: AwsSigV4: in: header diff --git a/clients/java/credential.issuance.client/docs/CisConfigurationWebhookSetting.md b/clients/java/credential.issuance.client/docs/CisConfigurationWebhookSetting.md new file mode 100644 index 000000000..f14b47efe --- /dev/null +++ b/clients/java/credential.issuance.client/docs/CisConfigurationWebhookSetting.md @@ -0,0 +1,10 @@ +# CisConfigurationWebhookSetting + +Webhook setting to notify developers for claimed VC + +## Properties + +| Name | Type | Description | Notes | +| ------------ | --------------------------------------------------------------------------------------- | --------------------------------------- | ---------- | +| **enabled** | **Boolean** | flag to enabled or disabled the webhook | | +| **endpoint** | [**CisConfigurationWebhookSettingEndpoint**](CisConfigurationWebhookSettingEndpoint.md) | | [optional] | diff --git a/clients/java/credential.issuance.client/docs/CisConfigurationWebhookSettingEndpoint.md b/clients/java/credential.issuance.client/docs/CisConfigurationWebhookSettingEndpoint.md new file mode 100644 index 000000000..1d02051ab --- /dev/null +++ b/clients/java/credential.issuance.client/docs/CisConfigurationWebhookSettingEndpoint.md @@ -0,0 +1,7 @@ +# CisConfigurationWebhookSettingEndpoint + +## Properties + +| Name | Type | Description | Notes | +| ------- | ---------- | ---------------------------------------------------------------------------------------------------------------- | ---------- | +| **url** | **String** | url endpoint where notification will be sent with issuanceId after user has claimed the VC related to issuanceId | [optional] | diff --git a/clients/java/credential.issuance.client/docs/ClaimedCredentialListResponse.md b/clients/java/credential.issuance.client/docs/ClaimedCredentialListResponse.md new file mode 100644 index 000000000..0c8d7270f --- /dev/null +++ b/clients/java/credential.issuance.client/docs/ClaimedCredentialListResponse.md @@ -0,0 +1,10 @@ +# ClaimedCredentialListResponse + +List of claimed credential + +## Properties + +| Name | Type | Description | Notes | +| --------------- | ----------------------------------------- | ------------------------------------------- | ---------- | +| **credentials** | **List<Map<String, Object>>** | list of credentials | [optional] | +| **next** | **String** | for pagination to fetch next set of records | [optional] | diff --git a/clients/java/credential.issuance.client/docs/ClaimedCredentialResponse.md b/clients/java/credential.issuance.client/docs/ClaimedCredentialResponse.md new file mode 100644 index 000000000..d6a2c0bd8 --- /dev/null +++ b/clients/java/credential.issuance.client/docs/ClaimedCredentialResponse.md @@ -0,0 +1,9 @@ +# ClaimedCredentialResponse + +Response for getting the claimed VC + +## Properties + +| Name | Type | Description | Notes | +| -------------- | ----------------------------- | ------------------ | ---------- | +| **credential** | **Map<String, Object>** | claimed credential | [optional] | diff --git a/clients/java/credential.issuance.client/docs/CorsGetClaimedCredentialsOK.md b/clients/java/credential.issuance.client/docs/CorsGetClaimedCredentialsOK.md new file mode 100644 index 000000000..62db1a145 --- /dev/null +++ b/clients/java/credential.issuance.client/docs/CorsGetClaimedCredentialsOK.md @@ -0,0 +1,7 @@ +# CorsGetClaimedCredentialsOK + +## Properties + +| Name | Type | Description | Notes | +| ------------------------------- | ---------- | ----------- | ---------- | +| **corsGetClaimedCredentialsOk** | **String** | | [optional] | diff --git a/clients/java/credential.issuance.client/docs/CorsGetIssuanceIdClaimedCredentialOK.md b/clients/java/credential.issuance.client/docs/CorsGetIssuanceIdClaimedCredentialOK.md new file mode 100644 index 000000000..a5974a644 --- /dev/null +++ b/clients/java/credential.issuance.client/docs/CorsGetIssuanceIdClaimedCredentialOK.md @@ -0,0 +1,7 @@ +# CorsGetIssuanceIdClaimedCredentialOK + +## Properties + +| Name | Type | Description | Notes | +| ---------------------------------------- | ---------- | ----------- | ---------- | +| **corsGetIssuanceIdClaimedCredentialOk** | **String** | | [optional] | diff --git a/clients/java/credential.issuance.client/docs/CreateIssuanceConfigInput.md b/clients/java/credential.issuance.client/docs/CreateIssuanceConfigInput.md index 33afc9ddb..b405a2404 100644 --- a/clients/java/credential.issuance.client/docs/CreateIssuanceConfigInput.md +++ b/clients/java/credential.issuance.client/docs/CreateIssuanceConfigInput.md @@ -12,6 +12,7 @@ | **credentialSupported** | [**List<CredentialSupportedObject>**](CredentialSupportedObject.md) | | | | **issuerMetadata** | **Map<String, Object>** | Issuer public information wallet may want to show to user during consent confirmation | [optional] | | **returnUris** | **List<String>** | List of allowed URIs to be returned to after issuance | [optional] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.md) | | [optional] | ## Enum: FormatEnum diff --git a/clients/java/credential.issuance.client/docs/CredentialsApi.md b/clients/java/credential.issuance.client/docs/CredentialsApi.md index 9ba4569e8..5e3bf8fca 100644 --- a/clients/java/credential.issuance.client/docs/CredentialsApi.md +++ b/clients/java/credential.issuance.client/docs/CredentialsApi.md @@ -2,9 +2,11 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* -| Method | HTTP request | Description | -| ---------------------------------------------------------------- | ----------------------------------- | ----------- | -| [**generateCredentials**](CredentialsApi.md#generateCredentials) | **POST** /v1/{projectId}/credential | | +| Method | HTTP request | Description | +| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------- | +| [**generateCredentials**](CredentialsApi.md#generateCredentials) | **POST** /v1/{projectId}/credential | | +| [**getClaimedCredentials**](CredentialsApi.md#getClaimedCredentials) | **GET** /v1/{projectId}/configurations/{configurationId}/credentials | Get claimed credential in the specified range | +| [**getIssuanceIdClaimedCredential**](CredentialsApi.md#getIssuanceIdClaimedCredential) | **GET** /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials | Get claimed VC linked to the issuanceId | ## generateCredentials @@ -76,3 +78,161 @@ public class Example { | **200** | Ok | _ 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 -
| | **401** | UnauthorizedError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| + +## getClaimedCredentials + +> ClaimedCredentialListResponse getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, next) + +Get claimed credential in the specified range + +Get claimed credential in the specified range + +### Example + +```java +// Import classes: +import com.affinidi.tdk.credential.issuance.client.ApiClient; +import com.affinidi.tdk.credential.issuance.client.ApiException; +import com.affinidi.tdk.credential.issuance.client.Configuration; +import com.affinidi.tdk.credential.issuance.client.auth.*; +import com.affinidi.tdk.credential.issuance.client.models.*; +import com.affinidi.tdk.credential.issuance.client.apis.CredentialsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://apse1.api.affinidi.io/cis"); + + // Configure API key authorization: ProjectTokenAuth + ApiKeyAuth ProjectTokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("ProjectTokenAuth"); + ProjectTokenAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ProjectTokenAuth.setApiKeyPrefix("Token"); + + CredentialsApi apiInstance = new CredentialsApi(defaultClient); + String projectId = "projectId_example"; // String | project id + String configurationId = "configurationId_example"; // String | configuration id + String rangeStartTime = "rangeStartTime_example"; // String | + String rangeEndTime = "rangeEndTime_example"; // String | + String next = "next_example"; // String | + try { + ClaimedCredentialListResponse result = apiInstance.getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, next); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CredentialsApi#getClaimedCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------------- | ---------- | ---------------- | ---------- | +| **projectId** | **String** | project id | | +| **configurationId** | **String** | configuration id | | +| **rangeStartTime** | **String** | | | +| **rangeEndTime** | **String** | | [optional] | +| **next** | **String** | | [optional] | + +### Return type + +[**ClaimedCredentialListResponse**](ClaimedCredentialListResponse.md) + +### Authorization + +[ProjectTokenAuth](../README.md#ProjectTokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +| ----------- | --------------- | ----------------------------------------------------------------------------------------------------------------- | +| **200** | Ok | _ 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 -
| +| **404** | NotFoundError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| + +## getIssuanceIdClaimedCredential + +> ClaimedCredentialResponse getIssuanceIdClaimedCredential(projectId, configurationId, issuanceId) + +Get claimed VC linked to the issuanceId + +Get claimed VC linked to the issuanceId + +### Example + +```java +// Import classes: +import com.affinidi.tdk.credential.issuance.client.ApiClient; +import com.affinidi.tdk.credential.issuance.client.ApiException; +import com.affinidi.tdk.credential.issuance.client.Configuration; +import com.affinidi.tdk.credential.issuance.client.auth.*; +import com.affinidi.tdk.credential.issuance.client.models.*; +import com.affinidi.tdk.credential.issuance.client.apis.CredentialsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://apse1.api.affinidi.io/cis"); + + // Configure API key authorization: ProjectTokenAuth + ApiKeyAuth ProjectTokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("ProjectTokenAuth"); + ProjectTokenAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ProjectTokenAuth.setApiKeyPrefix("Token"); + + CredentialsApi apiInstance = new CredentialsApi(defaultClient); + String projectId = "projectId_example"; // String | project id + String configurationId = "configurationId_example"; // String | configuration id + String issuanceId = "issuanceId_example"; // String | issuance id + try { + ClaimedCredentialResponse result = apiInstance.getIssuanceIdClaimedCredential(projectId, configurationId, issuanceId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CredentialsApi#getIssuanceIdClaimedCredential"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------------- | ---------- | ---------------- | ----- | +| **projectId** | **String** | project id | | +| **configurationId** | **String** | configuration id | | +| **issuanceId** | **String** | issuance id | | + +### Return type + +[**ClaimedCredentialResponse**](ClaimedCredentialResponse.md) + +### Authorization + +[ProjectTokenAuth](../README.md#ProjectTokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +| ----------- | --------------- | ----------------------------------------------------------------------------------------------------------------- | +| **200** | Ok | _ 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 -
| +| **404** | NotFoundError | _ Access-Control-Allow-Origin -
_ Access-Control-Allow-Methods -
\* Access-Control-Allow-Headers -
| diff --git a/clients/java/credential.issuance.client/docs/IssuanceConfigDto.md b/clients/java/credential.issuance.client/docs/IssuanceConfigDto.md index d79cadb05..d5b035e1c 100644 --- a/clients/java/credential.issuance.client/docs/IssuanceConfigDto.md +++ b/clients/java/credential.issuance.client/docs/IssuanceConfigDto.md @@ -17,6 +17,7 @@ | **issuerMetadata** | **Map<String, Object>** | Issuer public information wallet may want to show to user during consent confirmation | [optional] | | **version** | **BigDecimal** | | [optional] | | **returnUris** | **List<String>** | List of allowed URIs to be returned to after issuance | [optional] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.md) | | [optional] | ## Enum: FormatEnum diff --git a/clients/java/credential.issuance.client/docs/UpdateIssuanceConfigInput.md b/clients/java/credential.issuance.client/docs/UpdateIssuanceConfigInput.md index 06e1efc93..06d384f09 100644 --- a/clients/java/credential.issuance.client/docs/UpdateIssuanceConfigInput.md +++ b/clients/java/credential.issuance.client/docs/UpdateIssuanceConfigInput.md @@ -13,6 +13,7 @@ | **credentialSupported** | [**List<CredentialSupportedObject>**](CredentialSupportedObject.md) | | [optional] | | **issuerMetadata** | **Map<String, Object>** | Issuer public information wallet may want to show to user during consent confirmation | [optional] | | **returnUris** | **List<String>** | List of allowed URIs to be returned to after issuance | [optional] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.md) | | [optional] | ## Enum: FormatEnum diff --git a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/apis/CredentialsApi.java b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/apis/CredentialsApi.java index 47b4e533e..40a7e9ba3 100644 --- a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/apis/CredentialsApi.java +++ b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/apis/CredentialsApi.java @@ -20,10 +20,14 @@ import com.affinidi.tdk.credential.issuance.client.Configuration; import com.affinidi.tdk.credential.issuance.client.Pair; +import com.affinidi.tdk.credential.issuance.client.models.ClaimedCredentialListResponse; +import com.affinidi.tdk.credential.issuance.client.models.ClaimedCredentialResponse; import com.affinidi.tdk.credential.issuance.client.models.CreateCredentialInput; import com.affinidi.tdk.credential.issuance.client.models.CredentialResponse; import com.affinidi.tdk.credential.issuance.client.models.GenerateCredentials400Response; import com.affinidi.tdk.credential.issuance.client.models.InvalidJwtTokenError; +import com.affinidi.tdk.credential.issuance.client.models.InvalidParameterError; +import com.affinidi.tdk.credential.issuance.client.models.NotFoundError; import java.util.ArrayList; @@ -126,6 +130,194 @@ public CredentialResponse generateCredentials(String projectId, CreateCredential ); } + /** + * Get claimed credential in the specified range + * Get claimed credential in the specified range + * @param projectId project id (required) + * @param configurationId configuration id (required) + * @param rangeStartTime (required) + * @param rangeEndTime (optional) + * @param next (optional) + * @return ClaimedCredentialListResponse + * @throws ApiException if fails to make API call + */ + public ClaimedCredentialListResponse getClaimedCredentials(String projectId, String configurationId, String rangeStartTime, String rangeEndTime, String next) throws ApiException { + return this.getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, next, Collections.emptyMap()); + } + + + /** + * Get claimed credential in the specified range + * Get claimed credential in the specified range + * @param projectId project id (required) + * @param configurationId configuration id (required) + * @param rangeStartTime (required) + * @param rangeEndTime (optional) + * @param next (optional) + * @param additionalHeaders additionalHeaders for this call + * @return ClaimedCredentialListResponse + * @throws ApiException if fails to make API call + */ + public ClaimedCredentialListResponse getClaimedCredentials(String projectId, String configurationId, String rangeStartTime, String rangeEndTime, String next, Map additionalHeaders) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'projectId' is set + if (projectId == null) { + throw new ApiException(400, "Missing the required parameter 'projectId' when calling getClaimedCredentials"); + } + + // verify the required parameter 'configurationId' is set + if (configurationId == null) { + throw new ApiException(400, "Missing the required parameter 'configurationId' when calling getClaimedCredentials"); + } + + // verify the required parameter 'rangeStartTime' is set + if (rangeStartTime == null) { + throw new ApiException(400, "Missing the required parameter 'rangeStartTime' when calling getClaimedCredentials"); + } + + // create path and map variables + String localVarPath = "/v1/{projectId}/configurations/{configurationId}/credentials" + .replaceAll("\\{" + "projectId" + "\\}", apiClient.escapeString(apiClient.parameterToString(projectId))) + .replaceAll("\\{" + "configurationId" + "\\}", apiClient.escapeString(apiClient.parameterToString(configurationId))); + + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPair("rangeStartTime", rangeStartTime)); + localVarQueryParams.addAll(apiClient.parameterToPair("rangeEndTime", rangeEndTime)); + localVarQueryParams.addAll(apiClient.parameterToPair("next", next)); + + localVarHeaderParams.putAll(additionalHeaders); + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "ProjectTokenAuth" }; + + TypeReference localVarReturnType = new TypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + "GET", + localVarQueryParams, + localVarCollectionQueryParams, + localVarQueryStringJoiner.toString(), + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType + ); + } + + /** + * Get claimed VC linked to the issuanceId + * Get claimed VC linked to the issuanceId + * @param projectId project id (required) + * @param configurationId configuration id (required) + * @param issuanceId issuance id (required) + * @return ClaimedCredentialResponse + * @throws ApiException if fails to make API call + */ + public ClaimedCredentialResponse getIssuanceIdClaimedCredential(String projectId, String configurationId, String issuanceId) throws ApiException { + return this.getIssuanceIdClaimedCredential(projectId, configurationId, issuanceId, Collections.emptyMap()); + } + + + /** + * Get claimed VC linked to the issuanceId + * Get claimed VC linked to the issuanceId + * @param projectId project id (required) + * @param configurationId configuration id (required) + * @param issuanceId issuance id (required) + * @param additionalHeaders additionalHeaders for this call + * @return ClaimedCredentialResponse + * @throws ApiException if fails to make API call + */ + public ClaimedCredentialResponse getIssuanceIdClaimedCredential(String projectId, String configurationId, String issuanceId, Map additionalHeaders) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'projectId' is set + if (projectId == null) { + throw new ApiException(400, "Missing the required parameter 'projectId' when calling getIssuanceIdClaimedCredential"); + } + + // verify the required parameter 'configurationId' is set + if (configurationId == null) { + throw new ApiException(400, "Missing the required parameter 'configurationId' when calling getIssuanceIdClaimedCredential"); + } + + // verify the required parameter 'issuanceId' is set + if (issuanceId == null) { + throw new ApiException(400, "Missing the required parameter 'issuanceId' when calling getIssuanceIdClaimedCredential"); + } + + // create path and map variables + String localVarPath = "/v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials" + .replaceAll("\\{" + "projectId" + "\\}", apiClient.escapeString(apiClient.parameterToString(projectId))) + .replaceAll("\\{" + "configurationId" + "\\}", apiClient.escapeString(apiClient.parameterToString(configurationId))) + .replaceAll("\\{" + "issuanceId" + "\\}", apiClient.escapeString(apiClient.parameterToString(issuanceId))); + + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + localVarHeaderParams.putAll(additionalHeaders); + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "ProjectTokenAuth" }; + + TypeReference localVarReturnType = new TypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + "GET", + localVarQueryParams, + localVarCollectionQueryParams, + localVarQueryStringJoiner.toString(), + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType + ); + } + @Override public T invokeAPI(String url, String method, Object request, TypeReference returnType, Map additionalHeaders) throws ApiException { String localVarPath = url.replace(apiClient.getBaseURL(), ""); @@ -144,11 +336,11 @@ public T invokeAPI(String url, String method, Object request, TypeReference< final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - "application/json" + }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - String[] localVarAuthNames = new String[] { "bearerAuth" }; + String[] localVarAuthNames = new String[] { "ProjectTokenAuth" }; return apiClient.invokeAPI( localVarPath, diff --git a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSetting.java b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSetting.java new file mode 100644 index 000000000..5df64b9aa --- /dev/null +++ b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSetting.java @@ -0,0 +1,188 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import java.util.Objects; +import java.util.Arrays; +import com.affinidi.tdk.credential.issuance.client.models.CisConfigurationWebhookSettingEndpoint; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.StringJoiner; + +/** + * Webhook setting to notify developers for claimed VC + */ +@JsonPropertyOrder({ + CisConfigurationWebhookSetting.JSON_PROPERTY_ENABLED, + CisConfigurationWebhookSetting.JSON_PROPERTY_ENDPOINT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CisConfigurationWebhookSetting { + public static final String JSON_PROPERTY_ENABLED = "enabled"; + private Boolean enabled = false; + + public static final String JSON_PROPERTY_ENDPOINT = "endpoint"; + private CisConfigurationWebhookSettingEndpoint endpoint; + + public CisConfigurationWebhookSetting() { + } + + public CisConfigurationWebhookSetting enabled(Boolean enabled) { + + this.enabled = enabled; + return this; + } + + /** + * flag to enabled or disabled the webhook + * @return enabled + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getEnabled() { + return enabled; + } + + + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public CisConfigurationWebhookSetting endpoint(CisConfigurationWebhookSettingEndpoint endpoint) { + + this.endpoint = endpoint; + return this; + } + + /** + * Get endpoint + * @return endpoint + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDPOINT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CisConfigurationWebhookSettingEndpoint getEndpoint() { + return endpoint; + } + + + @JsonProperty(JSON_PROPERTY_ENDPOINT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndpoint(CisConfigurationWebhookSettingEndpoint endpoint) { + this.endpoint = endpoint; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CisConfigurationWebhookSetting cisConfigurationWebhookSetting = (CisConfigurationWebhookSetting) o; + return Objects.equals(this.enabled, cisConfigurationWebhookSetting.enabled) && + Objects.equals(this.endpoint, cisConfigurationWebhookSetting.endpoint); + } + + @Override + public int hashCode() { + return Objects.hash(enabled, endpoint); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CisConfigurationWebhookSetting {\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `enabled` to the URL query string + if (getEnabled() != null) { + try { + joiner.add(String.format("%senabled%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEnabled()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + // add `endpoint` to the URL query string + if (getEndpoint() != null) { + joiner.add(getEndpoint().toUrlQueryString(prefix + "endpoint" + suffix)); + } + + return joiner.toString(); + } + +} + diff --git a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingEndpoint.java b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingEndpoint.java new file mode 100644 index 000000000..5b297a469 --- /dev/null +++ b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingEndpoint.java @@ -0,0 +1,152 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.StringJoiner; + +/** + * CisConfigurationWebhookSettingEndpoint + */ +@JsonPropertyOrder({ + CisConfigurationWebhookSettingEndpoint.JSON_PROPERTY_URL +}) +@JsonTypeName("CisConfigurationWebhookSetting_endpoint") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CisConfigurationWebhookSettingEndpoint { + public static final String JSON_PROPERTY_URL = "url"; + private String url; + + public CisConfigurationWebhookSettingEndpoint() { + } + + public CisConfigurationWebhookSettingEndpoint url(String url) { + + this.url = url; + return this; + } + + /** + * url endpoint where notification will be sent with issuanceId after user has claimed the VC related to issuanceId + * @return url + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUrl() { + return url; + } + + + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(String url) { + this.url = url; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CisConfigurationWebhookSettingEndpoint cisConfigurationWebhookSettingEndpoint = (CisConfigurationWebhookSettingEndpoint) o; + return Objects.equals(this.url, cisConfigurationWebhookSettingEndpoint.url); + } + + @Override + public int hashCode() { + return Objects.hash(url); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CisConfigurationWebhookSettingEndpoint {\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `url` to the URL query string + if (getUrl() != null) { + try { + joiner.add(String.format("%surl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUrl()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } + +} + diff --git a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialListResponse.java b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialListResponse.java new file mode 100644 index 000000000..62be1cc42 --- /dev/null +++ b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialListResponse.java @@ -0,0 +1,208 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.StringJoiner; + +/** + * List of claimed credential + */ +@JsonPropertyOrder({ + ClaimedCredentialListResponse.JSON_PROPERTY_CREDENTIALS, + ClaimedCredentialListResponse.JSON_PROPERTY_NEXT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ClaimedCredentialListResponse { + public static final String JSON_PROPERTY_CREDENTIALS = "credentials"; + private List> credentials = new ArrayList<>(); + + public static final String JSON_PROPERTY_NEXT = "next"; + private String next; + + public ClaimedCredentialListResponse() { + } + + public ClaimedCredentialListResponse credentials(List> credentials) { + + this.credentials = credentials; + return this; + } + + public ClaimedCredentialListResponse addCredentialsItem(Map credentialsItem) { + if (this.credentials == null) { + this.credentials = new ArrayList<>(); + } + this.credentials.add(credentialsItem); + return this; + } + + /** + * list of credentials + * @return credentials + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREDENTIALS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List> getCredentials() { + return credentials; + } + + + @JsonProperty(JSON_PROPERTY_CREDENTIALS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCredentials(List> credentials) { + this.credentials = credentials; + } + + public ClaimedCredentialListResponse next(String next) { + + this.next = next; + return this; + } + + /** + * for pagination to fetch next set of records + * @return next + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getNext() { + return next; + } + + + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNext(String next) { + this.next = next; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClaimedCredentialListResponse claimedCredentialListResponse = (ClaimedCredentialListResponse) o; + return Objects.equals(this.credentials, claimedCredentialListResponse.credentials) && + Objects.equals(this.next, claimedCredentialListResponse.next); + } + + @Override + public int hashCode() { + return Objects.hash(credentials, next); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClaimedCredentialListResponse {\n"); + sb.append(" credentials: ").append(toIndentedString(credentials)).append("\n"); + sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `credentials` to the URL query string + if (getCredentials() != null) { + for (int i = 0; i < getCredentials().size(); i++) { + try { + joiner.add(String.format("%scredentials%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(getCredentials().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + + // add `next` to the URL query string + if (getNext() != null) { + try { + joiner.add(String.format("%snext%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNext()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } + +} + diff --git a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialResponse.java b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialResponse.java new file mode 100644 index 000000000..9527a8973 --- /dev/null +++ b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialResponse.java @@ -0,0 +1,165 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.StringJoiner; + +/** + * Response for getting the claimed VC + */ +@JsonPropertyOrder({ + ClaimedCredentialResponse.JSON_PROPERTY_CREDENTIAL +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ClaimedCredentialResponse { + public static final String JSON_PROPERTY_CREDENTIAL = "credential"; + private Map credential = new HashMap<>(); + + public ClaimedCredentialResponse() { + } + + public ClaimedCredentialResponse credential(Map credential) { + + this.credential = credential; + return this; + } + + public ClaimedCredentialResponse putCredentialItem(String key, Object credentialItem) { + if (this.credential == null) { + this.credential = new HashMap<>(); + } + this.credential.put(key, credentialItem); + return this; + } + + /** + * claimed credential + * @return credential + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREDENTIAL) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + + public Map getCredential() { + return credential; + } + + + @JsonProperty(JSON_PROPERTY_CREDENTIAL) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setCredential(Map credential) { + this.credential = credential; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClaimedCredentialResponse claimedCredentialResponse = (ClaimedCredentialResponse) o; + return Objects.equals(this.credential, claimedCredentialResponse.credential); + } + + @Override + public int hashCode() { + return Objects.hash(credential); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClaimedCredentialResponse {\n"); + sb.append(" credential: ").append(toIndentedString(credential)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `credential` to the URL query string + if (getCredential() != null) { + for (String _key : getCredential().keySet()) { + try { + joiner.add(String.format("%scredential%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getCredential().get(_key), URLEncoder.encode(String.valueOf(getCredential().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + + return joiner.toString(); + } + +} + diff --git a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetClaimedCredentialsOK.java b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetClaimedCredentialsOK.java new file mode 100644 index 000000000..ce54b02e8 --- /dev/null +++ b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetClaimedCredentialsOK.java @@ -0,0 +1,151 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.StringJoiner; + +/** + * CorsGetClaimedCredentialsOK + */ +@JsonPropertyOrder({ + CorsGetClaimedCredentialsOK.JSON_PROPERTY_CORS_GET_CLAIMED_CREDENTIALS_OK +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CorsGetClaimedCredentialsOK { + public static final String JSON_PROPERTY_CORS_GET_CLAIMED_CREDENTIALS_OK = "corsGetClaimedCredentialsOk"; + private String corsGetClaimedCredentialsOk; + + public CorsGetClaimedCredentialsOK() { + } + + public CorsGetClaimedCredentialsOK corsGetClaimedCredentialsOk(String corsGetClaimedCredentialsOk) { + + this.corsGetClaimedCredentialsOk = corsGetClaimedCredentialsOk; + return this; + } + + /** + * Get corsGetClaimedCredentialsOk + * @return corsGetClaimedCredentialsOk + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CORS_GET_CLAIMED_CREDENTIALS_OK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCorsGetClaimedCredentialsOk() { + return corsGetClaimedCredentialsOk; + } + + + @JsonProperty(JSON_PROPERTY_CORS_GET_CLAIMED_CREDENTIALS_OK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCorsGetClaimedCredentialsOk(String corsGetClaimedCredentialsOk) { + this.corsGetClaimedCredentialsOk = corsGetClaimedCredentialsOk; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CorsGetClaimedCredentialsOK corsGetClaimedCredentialsOK = (CorsGetClaimedCredentialsOK) o; + return Objects.equals(this.corsGetClaimedCredentialsOk, corsGetClaimedCredentialsOK.corsGetClaimedCredentialsOk); + } + + @Override + public int hashCode() { + return Objects.hash(corsGetClaimedCredentialsOk); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CorsGetClaimedCredentialsOK {\n"); + sb.append(" corsGetClaimedCredentialsOk: ").append(toIndentedString(corsGetClaimedCredentialsOk)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `corsGetClaimedCredentialsOk` to the URL query string + if (getCorsGetClaimedCredentialsOk() != null) { + try { + joiner.add(String.format("%scorsGetClaimedCredentialsOk%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCorsGetClaimedCredentialsOk()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } + +} + diff --git a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetIssuanceIdClaimedCredentialOK.java b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetIssuanceIdClaimedCredentialOK.java new file mode 100644 index 000000000..eb17aa469 --- /dev/null +++ b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetIssuanceIdClaimedCredentialOK.java @@ -0,0 +1,151 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.StringJoiner; + +/** + * CorsGetIssuanceIdClaimedCredentialOK + */ +@JsonPropertyOrder({ + CorsGetIssuanceIdClaimedCredentialOK.JSON_PROPERTY_CORS_GET_ISSUANCE_ID_CLAIMED_CREDENTIAL_OK +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CorsGetIssuanceIdClaimedCredentialOK { + public static final String JSON_PROPERTY_CORS_GET_ISSUANCE_ID_CLAIMED_CREDENTIAL_OK = "corsGetIssuanceIdClaimedCredentialOk"; + private String corsGetIssuanceIdClaimedCredentialOk; + + public CorsGetIssuanceIdClaimedCredentialOK() { + } + + public CorsGetIssuanceIdClaimedCredentialOK corsGetIssuanceIdClaimedCredentialOk(String corsGetIssuanceIdClaimedCredentialOk) { + + this.corsGetIssuanceIdClaimedCredentialOk = corsGetIssuanceIdClaimedCredentialOk; + return this; + } + + /** + * Get corsGetIssuanceIdClaimedCredentialOk + * @return corsGetIssuanceIdClaimedCredentialOk + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CORS_GET_ISSUANCE_ID_CLAIMED_CREDENTIAL_OK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCorsGetIssuanceIdClaimedCredentialOk() { + return corsGetIssuanceIdClaimedCredentialOk; + } + + + @JsonProperty(JSON_PROPERTY_CORS_GET_ISSUANCE_ID_CLAIMED_CREDENTIAL_OK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCorsGetIssuanceIdClaimedCredentialOk(String corsGetIssuanceIdClaimedCredentialOk) { + this.corsGetIssuanceIdClaimedCredentialOk = corsGetIssuanceIdClaimedCredentialOk; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CorsGetIssuanceIdClaimedCredentialOK corsGetIssuanceIdClaimedCredentialOK = (CorsGetIssuanceIdClaimedCredentialOK) o; + return Objects.equals(this.corsGetIssuanceIdClaimedCredentialOk, corsGetIssuanceIdClaimedCredentialOK.corsGetIssuanceIdClaimedCredentialOk); + } + + @Override + public int hashCode() { + return Objects.hash(corsGetIssuanceIdClaimedCredentialOk); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CorsGetIssuanceIdClaimedCredentialOK {\n"); + sb.append(" corsGetIssuanceIdClaimedCredentialOk: ").append(toIndentedString(corsGetIssuanceIdClaimedCredentialOk)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `corsGetIssuanceIdClaimedCredentialOk` to the URL query string + if (getCorsGetIssuanceIdClaimedCredentialOk() != null) { + try { + joiner.add(String.format("%scorsGetIssuanceIdClaimedCredentialOk%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCorsGetIssuanceIdClaimedCredentialOk()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + + return joiner.toString(); + } + +} + diff --git a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CreateIssuanceConfigInput.java b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CreateIssuanceConfigInput.java index d6cedc6cd..dc6273b21 100644 --- a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CreateIssuanceConfigInput.java +++ b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/CreateIssuanceConfigInput.java @@ -15,6 +15,7 @@ import java.util.Objects; import java.util.Arrays; +import com.affinidi.tdk.credential.issuance.client.models.CisConfigurationWebhookSetting; import com.affinidi.tdk.credential.issuance.client.models.CredentialSupportedObject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -44,7 +45,8 @@ CreateIssuanceConfigInput.JSON_PROPERTY_FORMAT, CreateIssuanceConfigInput.JSON_PROPERTY_CREDENTIAL_SUPPORTED, CreateIssuanceConfigInput.JSON_PROPERTY_ISSUER_METADATA, - CreateIssuanceConfigInput.JSON_PROPERTY_RETURN_URIS + CreateIssuanceConfigInput.JSON_PROPERTY_RETURN_URIS, + CreateIssuanceConfigInput.JSON_PROPERTY_WEBHOOK }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateIssuanceConfigInput { @@ -109,6 +111,9 @@ public static FormatEnum fromValue(String value) { public static final String JSON_PROPERTY_RETURN_URIS = "returnUris"; private List returnUris = new ArrayList<>(); + public static final String JSON_PROPERTY_WEBHOOK = "webhook"; + private CisConfigurationWebhookSetting webhook; + public CreateIssuanceConfigInput() { } @@ -338,6 +343,31 @@ public void setReturnUris(List returnUris) { this.returnUris = returnUris; } + public CreateIssuanceConfigInput webhook(CisConfigurationWebhookSetting webhook) { + + this.webhook = webhook; + return this; + } + + /** + * Get webhook + * @return webhook + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WEBHOOK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CisConfigurationWebhookSetting getWebhook() { + return webhook; + } + + + @JsonProperty(JSON_PROPERTY_WEBHOOK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWebhook(CisConfigurationWebhookSetting webhook) { + this.webhook = webhook; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -354,12 +384,13 @@ public boolean equals(Object o) { Objects.equals(this.format, createIssuanceConfigInput.format) && Objects.equals(this.credentialSupported, createIssuanceConfigInput.credentialSupported) && Objects.equals(this.issuerMetadata, createIssuanceConfigInput.issuerMetadata) && - Objects.equals(this.returnUris, createIssuanceConfigInput.returnUris); + Objects.equals(this.returnUris, createIssuanceConfigInput.returnUris) && + Objects.equals(this.webhook, createIssuanceConfigInput.webhook); } @Override public int hashCode() { - return Objects.hash(name, description, issuerWalletId, credentialOfferDuration, format, credentialSupported, issuerMetadata, returnUris); + return Objects.hash(name, description, issuerWalletId, credentialOfferDuration, format, credentialSupported, issuerMetadata, returnUris, webhook); } @Override @@ -374,6 +405,7 @@ public String toString() { sb.append(" credentialSupported: ").append(toIndentedString(credentialSupported)).append("\n"); sb.append(" issuerMetadata: ").append(toIndentedString(issuerMetadata)).append("\n"); sb.append(" returnUris: ").append(toIndentedString(returnUris)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); sb.append("}"); return sb.toString(); } @@ -509,6 +541,11 @@ public String toUrlQueryString(String prefix) { } } + // add `webhook` to the URL query string + if (getWebhook() != null) { + joiner.add(getWebhook().toUrlQueryString(prefix + "webhook" + suffix)); + } + return joiner.toString(); } diff --git a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/IssuanceConfigDto.java b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/IssuanceConfigDto.java index 3adb15daa..779ecba20 100644 --- a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/IssuanceConfigDto.java +++ b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/IssuanceConfigDto.java @@ -15,6 +15,7 @@ import java.util.Objects; import java.util.Arrays; +import com.affinidi.tdk.credential.issuance.client.models.CisConfigurationWebhookSetting; import com.affinidi.tdk.credential.issuance.client.models.CredentialSupportedObject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -49,7 +50,8 @@ IssuanceConfigDto.JSON_PROPERTY_CREDENTIAL_SUPPORTED, IssuanceConfigDto.JSON_PROPERTY_ISSUER_METADATA, IssuanceConfigDto.JSON_PROPERTY_VERSION, - IssuanceConfigDto.JSON_PROPERTY_RETURN_URIS + IssuanceConfigDto.JSON_PROPERTY_RETURN_URIS, + IssuanceConfigDto.JSON_PROPERTY_WEBHOOK }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class IssuanceConfigDto { @@ -129,6 +131,9 @@ public static FormatEnum fromValue(String value) { public static final String JSON_PROPERTY_RETURN_URIS = "returnUris"; private List returnUris = new ArrayList<>(); + public static final String JSON_PROPERTY_WEBHOOK = "webhook"; + private CisConfigurationWebhookSetting webhook; + public IssuanceConfigDto() { } @@ -481,6 +486,31 @@ public void setReturnUris(List returnUris) { this.returnUris = returnUris; } + public IssuanceConfigDto webhook(CisConfigurationWebhookSetting webhook) { + + this.webhook = webhook; + return this; + } + + /** + * Get webhook + * @return webhook + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WEBHOOK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CisConfigurationWebhookSetting getWebhook() { + return webhook; + } + + + @JsonProperty(JSON_PROPERTY_WEBHOOK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWebhook(CisConfigurationWebhookSetting webhook) { + this.webhook = webhook; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -502,12 +532,13 @@ public boolean equals(Object o) { Objects.equals(this.credentialSupported, issuanceConfigDto.credentialSupported) && Objects.equals(this.issuerMetadata, issuanceConfigDto.issuerMetadata) && Objects.equals(this.version, issuanceConfigDto.version) && - Objects.equals(this.returnUris, issuanceConfigDto.returnUris); + Objects.equals(this.returnUris, issuanceConfigDto.returnUris) && + Objects.equals(this.webhook, issuanceConfigDto.webhook); } @Override public int hashCode() { - return Objects.hash(id, name, description, issuerDid, issuerWalletId, credentialOfferDuration, cNonceDuration, format, issuerUri, credentialSupported, issuerMetadata, version, returnUris); + return Objects.hash(id, name, description, issuerDid, issuerWalletId, credentialOfferDuration, cNonceDuration, format, issuerUri, credentialSupported, issuerMetadata, version, returnUris, webhook); } @Override @@ -527,6 +558,7 @@ public String toString() { sb.append(" issuerMetadata: ").append(toIndentedString(issuerMetadata)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" returnUris: ").append(toIndentedString(returnUris)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); sb.append("}"); return sb.toString(); } @@ -712,6 +744,11 @@ public String toUrlQueryString(String prefix) { } } + // add `webhook` to the URL query string + if (getWebhook() != null) { + joiner.add(getWebhook().toUrlQueryString(prefix + "webhook" + suffix)); + } + return joiner.toString(); } diff --git a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/UpdateIssuanceConfigInput.java b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/UpdateIssuanceConfigInput.java index 9214aef31..2aad0ed21 100644 --- a/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/UpdateIssuanceConfigInput.java +++ b/clients/java/credential.issuance.client/src/main/java/com/affinidi/tdk/credential/issuance/client/models/UpdateIssuanceConfigInput.java @@ -15,6 +15,7 @@ import java.util.Objects; import java.util.Arrays; +import com.affinidi.tdk.credential.issuance.client.models.CisConfigurationWebhookSetting; import com.affinidi.tdk.credential.issuance.client.models.CredentialSupportedObject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -45,7 +46,8 @@ UpdateIssuanceConfigInput.JSON_PROPERTY_ISSUER_URI, UpdateIssuanceConfigInput.JSON_PROPERTY_CREDENTIAL_SUPPORTED, UpdateIssuanceConfigInput.JSON_PROPERTY_ISSUER_METADATA, - UpdateIssuanceConfigInput.JSON_PROPERTY_RETURN_URIS + UpdateIssuanceConfigInput.JSON_PROPERTY_RETURN_URIS, + UpdateIssuanceConfigInput.JSON_PROPERTY_WEBHOOK }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateIssuanceConfigInput { @@ -113,6 +115,9 @@ public static FormatEnum fromValue(String value) { public static final String JSON_PROPERTY_RETURN_URIS = "returnUris"; private List returnUris = new ArrayList<>(); + public static final String JSON_PROPERTY_WEBHOOK = "webhook"; + private CisConfigurationWebhookSetting webhook; + public UpdateIssuanceConfigInput() { } @@ -367,6 +372,31 @@ public void setReturnUris(List returnUris) { this.returnUris = returnUris; } + public UpdateIssuanceConfigInput webhook(CisConfigurationWebhookSetting webhook) { + + this.webhook = webhook; + return this; + } + + /** + * Get webhook + * @return webhook + */ + @javax.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WEBHOOK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CisConfigurationWebhookSetting getWebhook() { + return webhook; + } + + + @JsonProperty(JSON_PROPERTY_WEBHOOK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWebhook(CisConfigurationWebhookSetting webhook) { + this.webhook = webhook; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -384,12 +414,13 @@ public boolean equals(Object o) { Objects.equals(this.issuerUri, updateIssuanceConfigInput.issuerUri) && Objects.equals(this.credentialSupported, updateIssuanceConfigInput.credentialSupported) && Objects.equals(this.issuerMetadata, updateIssuanceConfigInput.issuerMetadata) && - Objects.equals(this.returnUris, updateIssuanceConfigInput.returnUris); + Objects.equals(this.returnUris, updateIssuanceConfigInput.returnUris) && + Objects.equals(this.webhook, updateIssuanceConfigInput.webhook); } @Override public int hashCode() { - return Objects.hash(name, description, issuerWalletId, credentialOfferDuration, format, issuerUri, credentialSupported, issuerMetadata, returnUris); + return Objects.hash(name, description, issuerWalletId, credentialOfferDuration, format, issuerUri, credentialSupported, issuerMetadata, returnUris, webhook); } @Override @@ -405,6 +436,7 @@ public String toString() { sb.append(" credentialSupported: ").append(toIndentedString(credentialSupported)).append("\n"); sb.append(" issuerMetadata: ").append(toIndentedString(issuerMetadata)).append("\n"); sb.append(" returnUris: ").append(toIndentedString(returnUris)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); sb.append("}"); return sb.toString(); } @@ -550,6 +582,11 @@ public String toUrlQueryString(String prefix) { } } + // add `webhook` to the URL query string + if (getWebhook() != null) { + joiner.add(getWebhook().toUrlQueryString(prefix + "webhook" + suffix)); + } + return joiner.toString(); } diff --git a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/apis/CredentialsApiTest.java b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/apis/CredentialsApiTest.java index d0ed83ac4..ced672b71 100644 --- a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/apis/CredentialsApiTest.java +++ b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/apis/CredentialsApiTest.java @@ -14,10 +14,14 @@ package com.affinidi.tdk.credential.issuance.client.apis; import com.affinidi.tdk.credential.issuance.client.ApiException; +import com.affinidi.tdk.credential.issuance.client.models.ClaimedCredentialListResponse; +import com.affinidi.tdk.credential.issuance.client.models.ClaimedCredentialResponse; import com.affinidi.tdk.credential.issuance.client.models.CreateCredentialInput; import com.affinidi.tdk.credential.issuance.client.models.CredentialResponse; import com.affinidi.tdk.credential.issuance.client.models.GenerateCredentials400Response; import com.affinidi.tdk.credential.issuance.client.models.InvalidJwtTokenError; +import com.affinidi.tdk.credential.issuance.client.models.InvalidParameterError; +import com.affinidi.tdk.credential.issuance.client.models.NotFoundError; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -49,6 +53,42 @@ public void generateCredentialsTest() throws ApiException { CreateCredentialInput createCredentialInput = null; CredentialResponse response = api.generateCredentials(projectId, createCredentialInput); + // TODO: test validations + } + /** + * Get claimed credential in the specified range + * + * Get claimed credential in the specified range + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getClaimedCredentialsTest() throws ApiException { + String projectId = null; + String configurationId = null; + String rangeStartTime = null; + String rangeEndTime = null; + String next = null; + ClaimedCredentialListResponse response = api.getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, next); + + // TODO: test validations + } + /** + * Get claimed VC linked to the issuanceId + * + * Get claimed VC linked to the issuanceId + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getIssuanceIdClaimedCredentialTest() throws ApiException { + String projectId = null; + String configurationId = null; + String issuanceId = null; + ClaimedCredentialResponse response = api.getIssuanceIdClaimedCredential(projectId, configurationId, issuanceId); + // TODO: test validations } } diff --git a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingEndpointTest.java b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingEndpointTest.java new file mode 100644 index 000000000..1ae42fab2 --- /dev/null +++ b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingEndpointTest.java @@ -0,0 +1,47 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CisConfigurationWebhookSettingEndpoint + */ +class CisConfigurationWebhookSettingEndpointTest { + private final CisConfigurationWebhookSettingEndpoint model = new CisConfigurationWebhookSettingEndpoint(); + + /** + * Model tests for CisConfigurationWebhookSettingEndpoint + */ + @Test + void testCisConfigurationWebhookSettingEndpoint() { + // TODO: test CisConfigurationWebhookSettingEndpoint + } + + /** + * Test the property 'url' + */ + @Test + void urlTest() { + // TODO: test url + } + +} diff --git a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingTest.java b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingTest.java new file mode 100644 index 000000000..1579cc94f --- /dev/null +++ b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CisConfigurationWebhookSettingTest.java @@ -0,0 +1,56 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import com.affinidi.tdk.credential.issuance.client.models.CisConfigurationWebhookSettingEndpoint; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CisConfigurationWebhookSetting + */ +class CisConfigurationWebhookSettingTest { + private final CisConfigurationWebhookSetting model = new CisConfigurationWebhookSetting(); + + /** + * Model tests for CisConfigurationWebhookSetting + */ + @Test + void testCisConfigurationWebhookSetting() { + // TODO: test CisConfigurationWebhookSetting + } + + /** + * Test the property 'enabled' + */ + @Test + void enabledTest() { + // TODO: test enabled + } + + /** + * Test the property 'endpoint' + */ + @Test + void endpointTest() { + // TODO: test endpoint + } + +} diff --git a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialListResponseTest.java b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialListResponseTest.java new file mode 100644 index 000000000..5c6d6c8db --- /dev/null +++ b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialListResponseTest.java @@ -0,0 +1,59 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ClaimedCredentialListResponse + */ +class ClaimedCredentialListResponseTest { + private final ClaimedCredentialListResponse model = new ClaimedCredentialListResponse(); + + /** + * Model tests for ClaimedCredentialListResponse + */ + @Test + void testClaimedCredentialListResponse() { + // TODO: test ClaimedCredentialListResponse + } + + /** + * Test the property 'credentials' + */ + @Test + void credentialsTest() { + // TODO: test credentials + } + + /** + * Test the property 'next' + */ + @Test + void nextTest() { + // TODO: test next + } + +} diff --git a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialResponseTest.java b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialResponseTest.java new file mode 100644 index 000000000..9b48e9ae0 --- /dev/null +++ b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/ClaimedCredentialResponseTest.java @@ -0,0 +1,49 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ClaimedCredentialResponse + */ +class ClaimedCredentialResponseTest { + private final ClaimedCredentialResponse model = new ClaimedCredentialResponse(); + + /** + * Model tests for ClaimedCredentialResponse + */ + @Test + void testClaimedCredentialResponse() { + // TODO: test ClaimedCredentialResponse + } + + /** + * Test the property 'credential' + */ + @Test + void credentialTest() { + // TODO: test credential + } + +} diff --git a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetClaimedCredentialsOKTest.java b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetClaimedCredentialsOKTest.java new file mode 100644 index 000000000..1f65bede8 --- /dev/null +++ b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetClaimedCredentialsOKTest.java @@ -0,0 +1,47 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CorsGetClaimedCredentialsOK + */ +class CorsGetClaimedCredentialsOKTest { + private final CorsGetClaimedCredentialsOK model = new CorsGetClaimedCredentialsOK(); + + /** + * Model tests for CorsGetClaimedCredentialsOK + */ + @Test + void testCorsGetClaimedCredentialsOK() { + // TODO: test CorsGetClaimedCredentialsOK + } + + /** + * Test the property 'corsGetClaimedCredentialsOk' + */ + @Test + void corsGetClaimedCredentialsOkTest() { + // TODO: test corsGetClaimedCredentialsOk + } + +} diff --git a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetIssuanceIdClaimedCredentialOKTest.java b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetIssuanceIdClaimedCredentialOKTest.java new file mode 100644 index 000000000..cc2ec3858 --- /dev/null +++ b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CorsGetIssuanceIdClaimedCredentialOKTest.java @@ -0,0 +1,47 @@ +/* + * CredentialIssuanceService + * 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 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.affinidi.tdk.credential.issuance.client.models; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CorsGetIssuanceIdClaimedCredentialOK + */ +class CorsGetIssuanceIdClaimedCredentialOKTest { + private final CorsGetIssuanceIdClaimedCredentialOK model = new CorsGetIssuanceIdClaimedCredentialOK(); + + /** + * Model tests for CorsGetIssuanceIdClaimedCredentialOK + */ + @Test + void testCorsGetIssuanceIdClaimedCredentialOK() { + // TODO: test CorsGetIssuanceIdClaimedCredentialOK + } + + /** + * Test the property 'corsGetIssuanceIdClaimedCredentialOk' + */ + @Test + void corsGetIssuanceIdClaimedCredentialOkTest() { + // TODO: test corsGetIssuanceIdClaimedCredentialOk + } + +} diff --git a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CreateIssuanceConfigInputTest.java b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CreateIssuanceConfigInputTest.java index 0e9e5271b..fffe4f0c9 100644 --- a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CreateIssuanceConfigInputTest.java +++ b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/CreateIssuanceConfigInputTest.java @@ -13,6 +13,7 @@ package com.affinidi.tdk.credential.issuance.client.models; +import com.affinidi.tdk.credential.issuance.client.models.CisConfigurationWebhookSetting; import com.affinidi.tdk.credential.issuance.client.models.CredentialSupportedObject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -107,4 +108,12 @@ void returnUrisTest() { // TODO: test returnUris } + /** + * Test the property 'webhook' + */ + @Test + void webhookTest() { + // TODO: test webhook + } + } diff --git a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/IssuanceConfigDtoTest.java b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/IssuanceConfigDtoTest.java index f04a9b536..76e837e59 100644 --- a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/IssuanceConfigDtoTest.java +++ b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/IssuanceConfigDtoTest.java @@ -13,6 +13,7 @@ package com.affinidi.tdk.credential.issuance.client.models; +import com.affinidi.tdk.credential.issuance.client.models.CisConfigurationWebhookSetting; import com.affinidi.tdk.credential.issuance.client.models.CredentialSupportedObject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -147,4 +148,12 @@ void returnUrisTest() { // TODO: test returnUris } + /** + * Test the property 'webhook' + */ + @Test + void webhookTest() { + // TODO: test webhook + } + } diff --git a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/UpdateIssuanceConfigInputTest.java b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/UpdateIssuanceConfigInputTest.java index a270a30ad..bc17a250a 100644 --- a/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/UpdateIssuanceConfigInputTest.java +++ b/clients/java/credential.issuance.client/src/test/java/com/affinidi/tdk/credential/issuance/client/models/UpdateIssuanceConfigInputTest.java @@ -13,6 +13,7 @@ package com.affinidi.tdk.credential.issuance.client.models; +import com.affinidi.tdk.credential.issuance.client.models.CisConfigurationWebhookSetting; import com.affinidi.tdk.credential.issuance.client.models.CredentialSupportedObject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -115,4 +116,12 @@ void returnUrisTest() { // TODO: test returnUris } + /** + * Test the property 'webhook' + */ + @Test + void webhookTest() { + // TODO: test webhook + } + } diff --git a/clients/java/vault.data.manager.client/api/openapi.yaml b/clients/java/vault.data.manager.client/api/openapi.yaml index 783a2f956..cb618f054 100644 --- a/clients/java/vault.data.manager.client/api/openapi.yaml +++ b/clients/java/vault.data.manager.client/api/openapi.yaml @@ -1950,7 +1950,6 @@ components: - consumerId - createdAt - createdBy - - description - modifiedAt - modifiedBy - name @@ -2009,16 +2008,16 @@ components: consumerId: type: string createdAt: - description: '[GEN] ISO 8601 string of the creation date/time the entity' + description: creation date/time type: string modifiedAt: - description: '[GEN] ISO 8601 string of the modification date/time the entity' + description: modification date/time type: string createdBy: - description: '[GEN] Identifier of the user who created the entity' + description: Identifier of the user who created type: string modifiedBy: - description: '[GEN] Identifier of the user who last updated the entity' + description: Identifier of the user who last updated type: string description: description: Description of the node @@ -2033,7 +2032,6 @@ components: - consumerId - createdAt - createdBy - - description - modifiedAt - modifiedBy - name diff --git a/clients/java/vault.data.manager.client/docs/ConsumerMetadataDto.md b/clients/java/vault.data.manager.client/docs/ConsumerMetadataDto.md index b2f35df82..6c068b845 100644 --- a/clients/java/vault.data.manager.client/docs/ConsumerMetadataDto.md +++ b/clients/java/vault.data.manager.client/docs/ConsumerMetadataDto.md @@ -2,19 +2,19 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------------- | -------------- | -------------------------------------------------------------- | ---------- | -| **nodeId** | **String** | | | -| **status** | **NodeStatus** | | | -| **fileCount** | **BigDecimal** | | [optional] | -| **folderCount** | **BigDecimal** | | [optional] | -| **profileCount** | **BigDecimal** | | [optional] | -| **name** | **String** | | | -| **consumerId** | **String** | | | -| **createdAt** | **String** | [GEN] ISO 8601 string of the creation date/time the entity | | -| **modifiedAt** | **String** | [GEN] ISO 8601 string of the modification date/time the entity | | -| **createdBy** | **String** | [GEN] Identifier of the user who created the entity | | -| **modifiedBy** | **String** | [GEN] Identifier of the user who last updated the entity | | -| **description** | **String** | Description of the node | | -| **type** | **NodeType** | | | -| **consumedFileStorage** | **BigDecimal** | Tracks the amount of bytes used by the stored data. | | +| Name | Type | Description | Notes | +| ----------------------- | -------------- | --------------------------------------------------- | ---------- | +| **nodeId** | **String** | | | +| **status** | **NodeStatus** | | | +| **fileCount** | **BigDecimal** | | [optional] | +| **folderCount** | **BigDecimal** | | [optional] | +| **profileCount** | **BigDecimal** | | [optional] | +| **name** | **String** | | | +| **consumerId** | **String** | | | +| **createdAt** | **String** | creation date/time | | +| **modifiedAt** | **String** | modification date/time | | +| **createdBy** | **String** | Identifier of the user who created | | +| **modifiedBy** | **String** | Identifier of the user who last updated | | +| **description** | **String** | Description of the node | [optional] | +| **type** | **NodeType** | | | +| **consumedFileStorage** | **BigDecimal** | Tracks the amount of bytes used by the stored data. | | diff --git a/clients/java/vault.data.manager.client/docs/GetDetailedNodeInfoOK.md b/clients/java/vault.data.manager.client/docs/GetDetailedNodeInfoOK.md index 5337bdc0a..c65194339 100644 --- a/clients/java/vault.data.manager.client/docs/GetDetailedNodeInfoOK.md +++ b/clients/java/vault.data.manager.client/docs/GetDetailedNodeInfoOK.md @@ -18,7 +18,7 @@ | **modifiedAt** | **String** | modification date/time of the node | | | **createdBy** | **String** | Identifier of the user who created the node | | | **modifiedBy** | **String** | Identifier of the user who last updated the node | | -| **description** | **String** | Description of the node | | +| **description** | **String** | Description of the node | [optional] | | **type** | **NodeType** | | | | **link** | **String** | id of the file, used for FILE node only | [optional] | | **schema** | **String** | name of the schema, used for PROFILE node only | [optional] | diff --git a/clients/java/vault.data.manager.client/docs/NodeDto.md b/clients/java/vault.data.manager.client/docs/NodeDto.md index 865ec9222..a64e0e436 100644 --- a/clients/java/vault.data.manager.client/docs/NodeDto.md +++ b/clients/java/vault.data.manager.client/docs/NodeDto.md @@ -18,7 +18,7 @@ | **modifiedAt** | **String** | modification date/time of the node | | | **createdBy** | **String** | Identifier of the user who created the node | | | **modifiedBy** | **String** | Identifier of the user who last updated the node | | -| **description** | **String** | Description of the node | | +| **description** | **String** | Description of the node | [optional] | | **type** | **NodeType** | | | | **link** | **String** | id of the file, used for FILE node only | [optional] | | **schema** | **String** | name of the schema, used for PROFILE node only | [optional] | diff --git a/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/ConsumerMetadataDto.java b/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/ConsumerMetadataDto.java index 10ff0c06d..c67f3ba8b 100644 --- a/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/ConsumerMetadataDto.java +++ b/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/ConsumerMetadataDto.java @@ -277,7 +277,7 @@ public ConsumerMetadataDto createdAt(String createdAt) { } /** - * [GEN] ISO 8601 string of the creation date/time the entity + * creation date/time * @return createdAt */ @javax.annotation.Nonnull @@ -302,7 +302,7 @@ public ConsumerMetadataDto modifiedAt(String modifiedAt) { } /** - * [GEN] ISO 8601 string of the modification date/time the entity + * modification date/time * @return modifiedAt */ @javax.annotation.Nonnull @@ -327,7 +327,7 @@ public ConsumerMetadataDto createdBy(String createdBy) { } /** - * [GEN] Identifier of the user who created the entity + * Identifier of the user who created * @return createdBy */ @javax.annotation.Nonnull @@ -352,7 +352,7 @@ public ConsumerMetadataDto modifiedBy(String modifiedBy) { } /** - * [GEN] Identifier of the user who last updated the entity + * Identifier of the user who last updated * @return modifiedBy */ @javax.annotation.Nonnull @@ -380,9 +380,9 @@ public ConsumerMetadataDto description(String description) { * Description of the node * @return description */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; @@ -390,7 +390,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } diff --git a/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/GetDetailedNodeInfoOK.java b/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/GetDetailedNodeInfoOK.java index 5a770be40..2bde7f50b 100644 --- a/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/GetDetailedNodeInfoOK.java +++ b/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/GetDetailedNodeInfoOK.java @@ -488,9 +488,9 @@ public GetDetailedNodeInfoOK description(String description) { * Description of the node * @return description */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; @@ -498,7 +498,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } diff --git a/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/NodeDto.java b/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/NodeDto.java index b32889e19..59e358f13 100644 --- a/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/NodeDto.java +++ b/clients/java/vault.data.manager.client/src/main/java/com/affinidi/tdk/vault/data/manager/client/models/NodeDto.java @@ -484,9 +484,9 @@ public NodeDto description(String description) { * Description of the node * @return description */ - @javax.annotation.Nonnull + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; @@ -494,7 +494,7 @@ public String getDescription() { @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } diff --git a/clients/python/credential_issuance_client/.openapi-generator/FILES b/clients/python/credential_issuance_client/.openapi-generator/FILES index 6b125f54d..a6a88f946 100644 --- a/clients/python/credential_issuance_client/.openapi-generator/FILES +++ b/clients/python/credential_issuance_client/.openapi-generator/FILES @@ -20,8 +20,14 @@ affinidi_tdk_credential_issuance_client/models/action_forbidden_error_details_in affinidi_tdk_credential_issuance_client/models/change_credential_status400_response.py affinidi_tdk_credential_issuance_client/models/change_credential_status_input.py affinidi_tdk_credential_issuance_client/models/change_status_forbidden_error.py +affinidi_tdk_credential_issuance_client/models/cis_configuration_webhook_setting.py +affinidi_tdk_credential_issuance_client/models/cis_configuration_webhook_setting_endpoint.py +affinidi_tdk_credential_issuance_client/models/claimed_credential_list_response.py +affinidi_tdk_credential_issuance_client/models/claimed_credential_response.py affinidi_tdk_credential_issuance_client/models/cors_generate_credentials_ok.py +affinidi_tdk_credential_issuance_client/models/cors_get_claimed_credentials_ok.py affinidi_tdk_credential_issuance_client/models/cors_get_credential_offer_ok.py +affinidi_tdk_credential_issuance_client/models/cors_get_issuance_id_claimed_credential_ok.py affinidi_tdk_credential_issuance_client/models/cors_get_well_known_open_id_credential_issuer_ok.py affinidi_tdk_credential_issuance_client/models/create_credential_input.py affinidi_tdk_credential_issuance_client/models/create_issuance_config400_response.py @@ -84,9 +90,15 @@ docs/ActionForbiddenErrorDetailsInner.md docs/ChangeCredentialStatus400Response.md docs/ChangeCredentialStatusInput.md docs/ChangeStatusForbiddenError.md +docs/CisConfigurationWebhookSetting.md +docs/CisConfigurationWebhookSettingEndpoint.md +docs/ClaimedCredentialListResponse.md +docs/ClaimedCredentialResponse.md docs/ConfigurationApi.md docs/CorsGenerateCredentialsOK.md +docs/CorsGetClaimedCredentialsOK.md docs/CorsGetCredentialOfferOK.md +docs/CorsGetIssuanceIdClaimedCredentialOK.md docs/CorsGetWellKnownOpenIdCredentialIssuerOK.md docs/CreateCredentialInput.md docs/CreateIssuanceConfig400Response.md @@ -159,9 +171,15 @@ test/test_action_forbidden_error_details_inner.py test/test_change_credential_status400_response.py test/test_change_credential_status_input.py test/test_change_status_forbidden_error.py +test/test_cis_configuration_webhook_setting.py +test/test_cis_configuration_webhook_setting_endpoint.py +test/test_claimed_credential_list_response.py +test/test_claimed_credential_response.py test/test_configuration_api.py test/test_cors_generate_credentials_ok.py +test/test_cors_get_claimed_credentials_ok.py test/test_cors_get_credential_offer_ok.py +test/test_cors_get_issuance_id_claimed_credential_ok.py test/test_cors_get_well_known_open_id_credential_issuer_ok.py test/test_create_credential_input.py test/test_create_issuance_config400_response.py diff --git a/clients/python/credential_issuance_client/README.md b/clients/python/credential_issuance_client/README.md index 7750bd8a0..a02f11153 100644 --- a/clients/python/credential_issuance_client/README.md +++ b/clients/python/credential_issuance_client/README.md @@ -107,21 +107,23 @@ with affinidi_tdk_credential_issuance_client.ApiClient(configuration) as api_cli All URIs are relative to *https://apse1.api.affinidi.io/cis* -| Class | Method | HTTP request | Description | -| ------------------ | ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------------- | -| _ConfigurationApi_ | [**create_issuance_config**](docs/ConfigurationApi.md#create_issuance_config) | **POST** /v1/configurations | -| _ConfigurationApi_ | [**delete_issuance_config_by_id**](docs/ConfigurationApi.md#delete_issuance_config_by_id) | **DELETE** /v1/configurations/{configurationId} | -| _ConfigurationApi_ | [**get_issuance_config_by_id**](docs/ConfigurationApi.md#get_issuance_config_by_id) | **GET** /v1/configurations/{configurationId} | -| _ConfigurationApi_ | [**get_issuance_config_list**](docs/ConfigurationApi.md#get_issuance_config_list) | **GET** /v1/configurations | -| _ConfigurationApi_ | [**update_issuance_config_by_id**](docs/ConfigurationApi.md#update_issuance_config_by_id) | **PUT** /v1/configurations/{configurationId} | -| _CredentialsApi_ | [**generate_credentials**](docs/CredentialsApi.md#generate_credentials) | **POST** /v1/{projectId}/credential | -| _DefaultApi_ | [**change_credential_status**](docs/DefaultApi.md#change_credential_status) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. | -| _DefaultApi_ | [**list_issuance_data_records**](docs/DefaultApi.md#list_issuance_data_records) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records | -| _IssuanceApi_ | [**issuance_state**](docs/IssuanceApi.md#issuance_state) | **GET** /v1/{projectId}/issuance/state/{issuanceId} | -| _IssuanceApi_ | [**list_issuance**](docs/IssuanceApi.md#list_issuance) | **GET** /v1/{projectId}/issuance | -| _IssuanceApi_ | [**start_issuance**](docs/IssuanceApi.md#start_issuance) | **POST** /v1/{projectId}/issuance/start | -| _OfferApi_ | [**get_credential_offer**](docs/OfferApi.md#get_credential_offer) | **GET** /v1/{projectId}/offers/{issuanceId} | -| _WellKnownApi_ | [**get_well_known_open_id_credential_issuer**](docs/WellKnownApi.md#get_well_known_open_id_credential_issuer) | **GET** /v1/{projectId}/.well-known/openid-credential-issuer | +| Class | Method | HTTP request | Description | +| ------------------ | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------- | +| _ConfigurationApi_ | [**create_issuance_config**](docs/ConfigurationApi.md#create_issuance_config) | **POST** /v1/configurations | +| _ConfigurationApi_ | [**delete_issuance_config_by_id**](docs/ConfigurationApi.md#delete_issuance_config_by_id) | **DELETE** /v1/configurations/{configurationId} | +| _ConfigurationApi_ | [**get_issuance_config_by_id**](docs/ConfigurationApi.md#get_issuance_config_by_id) | **GET** /v1/configurations/{configurationId} | +| _ConfigurationApi_ | [**get_issuance_config_list**](docs/ConfigurationApi.md#get_issuance_config_list) | **GET** /v1/configurations | +| _ConfigurationApi_ | [**update_issuance_config_by_id**](docs/ConfigurationApi.md#update_issuance_config_by_id) | **PUT** /v1/configurations/{configurationId} | +| _CredentialsApi_ | [**generate_credentials**](docs/CredentialsApi.md#generate_credentials) | **POST** /v1/{projectId}/credential | +| _CredentialsApi_ | [**get_claimed_credentials**](docs/CredentialsApi.md#get_claimed_credentials) | **GET** /v1/{projectId}/configurations/{configurationId}/credentials | Get claimed credential in the specified range | +| _CredentialsApi_ | [**get_issuance_id_claimed_credential**](docs/CredentialsApi.md#get_issuance_id_claimed_credential) | **GET** /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials | Get claimed VC linked to the issuanceId | +| _DefaultApi_ | [**change_credential_status**](docs/DefaultApi.md#change_credential_status) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. | +| _DefaultApi_ | [**list_issuance_data_records**](docs/DefaultApi.md#list_issuance_data_records) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records | +| _IssuanceApi_ | [**issuance_state**](docs/IssuanceApi.md#issuance_state) | **GET** /v1/{projectId}/issuance/state/{issuanceId} | +| _IssuanceApi_ | [**list_issuance**](docs/IssuanceApi.md#list_issuance) | **GET** /v1/{projectId}/issuance | +| _IssuanceApi_ | [**start_issuance**](docs/IssuanceApi.md#start_issuance) | **POST** /v1/{projectId}/issuance/start | +| _OfferApi_ | [**get_credential_offer**](docs/OfferApi.md#get_credential_offer) | **GET** /v1/{projectId}/offers/{issuanceId} | +| _WellKnownApi_ | [**get_well_known_open_id_credential_issuer**](docs/WellKnownApi.md#get_well_known_open_id_credential_issuer) | **GET** /v1/{projectId}/.well-known/openid-credential-issuer | ## Documentation For Models @@ -130,8 +132,14 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [ChangeCredentialStatus400Response](docs/ChangeCredentialStatus400Response.md) - [ChangeCredentialStatusInput](docs/ChangeCredentialStatusInput.md) - [ChangeStatusForbiddenError](docs/ChangeStatusForbiddenError.md) +- [CisConfigurationWebhookSetting](docs/CisConfigurationWebhookSetting.md) +- [CisConfigurationWebhookSettingEndpoint](docs/CisConfigurationWebhookSettingEndpoint.md) +- [ClaimedCredentialListResponse](docs/ClaimedCredentialListResponse.md) +- [ClaimedCredentialResponse](docs/ClaimedCredentialResponse.md) - [CorsGenerateCredentialsOK](docs/CorsGenerateCredentialsOK.md) +- [CorsGetClaimedCredentialsOK](docs/CorsGetClaimedCredentialsOK.md) - [CorsGetCredentialOfferOK](docs/CorsGetCredentialOfferOK.md) +- [CorsGetIssuanceIdClaimedCredentialOK](docs/CorsGetIssuanceIdClaimedCredentialOK.md) - [CorsGetWellKnownOpenIdCredentialIssuerOK](docs/CorsGetWellKnownOpenIdCredentialIssuerOK.md) - [CreateCredentialInput](docs/CreateCredentialInput.md) - [CreateIssuanceConfig400Response](docs/CreateIssuanceConfig400Response.md) diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/__init__.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/__init__.py index 015566d9d..0770a1afa 100644 --- a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/__init__.py +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/__init__.py @@ -42,8 +42,14 @@ from affinidi_tdk_credential_issuance_client.models.change_credential_status400_response import ChangeCredentialStatus400Response from affinidi_tdk_credential_issuance_client.models.change_credential_status_input import ChangeCredentialStatusInput from affinidi_tdk_credential_issuance_client.models.change_status_forbidden_error import ChangeStatusForbiddenError +from affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting import CisConfigurationWebhookSetting +from affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting_endpoint import CisConfigurationWebhookSettingEndpoint +from affinidi_tdk_credential_issuance_client.models.claimed_credential_list_response import ClaimedCredentialListResponse +from affinidi_tdk_credential_issuance_client.models.claimed_credential_response import ClaimedCredentialResponse from affinidi_tdk_credential_issuance_client.models.cors_generate_credentials_ok import CorsGenerateCredentialsOK +from affinidi_tdk_credential_issuance_client.models.cors_get_claimed_credentials_ok import CorsGetClaimedCredentialsOK from affinidi_tdk_credential_issuance_client.models.cors_get_credential_offer_ok import CorsGetCredentialOfferOK +from affinidi_tdk_credential_issuance_client.models.cors_get_issuance_id_claimed_credential_ok import CorsGetIssuanceIdClaimedCredentialOK from affinidi_tdk_credential_issuance_client.models.cors_get_well_known_open_id_credential_issuer_ok import CorsGetWellKnownOpenIdCredentialIssuerOK from affinidi_tdk_credential_issuance_client.models.create_credential_input import CreateCredentialInput from affinidi_tdk_credential_issuance_client.models.create_issuance_config400_response import CreateIssuanceConfig400Response diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/api/credentials_api.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/api/credentials_api.py index b12d048ca..e2c1a97f8 100644 --- a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/api/credentials_api.py +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/api/credentials_api.py @@ -22,6 +22,10 @@ from typing_extensions import Annotated from pydantic import Field, StrictStr +from typing import Optional + +from affinidi_tdk_credential_issuance_client.models.claimed_credential_list_response import ClaimedCredentialListResponse +from affinidi_tdk_credential_issuance_client.models.claimed_credential_response import ClaimedCredentialResponse from affinidi_tdk_credential_issuance_client.models.create_credential_input import CreateCredentialInput from affinidi_tdk_credential_issuance_client.models.credential_response import CredentialResponse @@ -201,3 +205,335 @@ def generate_credentials_with_http_info(self, project_id : Annotated[StrictStr, _request_timeout=_params.get('_request_timeout'), collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) + + @validate_arguments + def get_claimed_credentials(self, project_id : Annotated[StrictStr, Field(..., description="project id")], configuration_id : Annotated[StrictStr, Field(..., description="configuration id")], range_start_time : StrictStr, range_end_time : Optional[StrictStr] = None, next : Optional[StrictStr] = None, **kwargs) -> ClaimedCredentialListResponse: # noqa: E501 + """Get claimed credential in the specified range # noqa: E501 + + Get claimed credential in the specified range # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_claimed_credentials(project_id, configuration_id, range_start_time, range_end_time, next, async_req=True) + >>> result = thread.get() + + :param project_id: project id (required) + :type project_id: str + :param configuration_id: configuration id (required) + :type configuration_id: str + :param range_start_time: (required) + :type range_start_time: str + :param range_end_time: + :type range_end_time: str + :param next: + :type next: str + :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: ClaimedCredentialListResponse + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the get_claimed_credentials_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + return self.get_claimed_credentials_with_http_info(project_id, configuration_id, range_start_time, range_end_time, next, **kwargs) # noqa: E501 + + @validate_arguments + def get_claimed_credentials_with_http_info(self, project_id : Annotated[StrictStr, Field(..., description="project id")], configuration_id : Annotated[StrictStr, Field(..., description="configuration id")], range_start_time : StrictStr, range_end_time : Optional[StrictStr] = None, next : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501 + """Get claimed credential in the specified range # noqa: E501 + + Get claimed credential in the specified range # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_claimed_credentials_with_http_info(project_id, configuration_id, range_start_time, range_end_time, next, async_req=True) + >>> result = thread.get() + + :param project_id: project id (required) + :type project_id: str + :param configuration_id: configuration id (required) + :type configuration_id: str + :param range_start_time: (required) + :type range_start_time: str + :param range_end_time: + :type range_end_time: str + :param next: + :type next: str + :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(ClaimedCredentialListResponse, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'project_id', + 'configuration_id', + 'range_start_time', + 'range_end_time', + 'next' + ] + _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 get_claimed_credentials" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + if _params['project_id'] is not None: + _path_params['projectId'] = _params['project_id'] + + if _params['configuration_id'] is not None: + _path_params['configurationId'] = _params['configuration_id'] + + + # process the query parameters + _query_params = [] + if _params.get('range_start_time') is not None: # noqa: E501 + _query_params.append(('rangeStartTime', _params['range_start_time'])) + + if _params.get('range_end_time') is not None: # noqa: E501 + _query_params.append(('rangeEndTime', _params['range_end_time'])) + + if _params.get('next') is not None: # noqa: E501 + _query_params.append(('next', _params['next'])) + + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['ProjectTokenAuth'] # noqa: E501 + + _response_types_map = { + '200': "ClaimedCredentialListResponse", + '400': "InvalidParameterError", + '404': "NotFoundError", + } + + return self.api_client.call_api( + '/v1/{projectId}/configurations/{configurationId}/credentials', 'GET', + _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 get_issuance_id_claimed_credential(self, project_id : Annotated[StrictStr, Field(..., description="project id")], configuration_id : Annotated[StrictStr, Field(..., description="configuration id")], issuance_id : Annotated[StrictStr, Field(..., description="issuance id")], **kwargs) -> ClaimedCredentialResponse: # noqa: E501 + """Get claimed VC linked to the issuanceId # noqa: E501 + + Get claimed VC linked to the issuanceId # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_issuance_id_claimed_credential(project_id, configuration_id, issuance_id, async_req=True) + >>> result = thread.get() + + :param project_id: project id (required) + :type project_id: str + :param configuration_id: configuration id (required) + :type configuration_id: str + :param issuance_id: issuance id (required) + :type issuance_id: str + :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: ClaimedCredentialResponse + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the get_issuance_id_claimed_credential_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + return self.get_issuance_id_claimed_credential_with_http_info(project_id, configuration_id, issuance_id, **kwargs) # noqa: E501 + + @validate_arguments + def get_issuance_id_claimed_credential_with_http_info(self, project_id : Annotated[StrictStr, Field(..., description="project id")], configuration_id : Annotated[StrictStr, Field(..., description="configuration id")], issuance_id : Annotated[StrictStr, Field(..., description="issuance id")], **kwargs) -> ApiResponse: # noqa: E501 + """Get claimed VC linked to the issuanceId # noqa: E501 + + Get claimed VC linked to the issuanceId # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_issuance_id_claimed_credential_with_http_info(project_id, configuration_id, issuance_id, async_req=True) + >>> result = thread.get() + + :param project_id: project id (required) + :type project_id: str + :param configuration_id: configuration id (required) + :type configuration_id: str + :param issuance_id: issuance id (required) + :type issuance_id: str + :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(ClaimedCredentialResponse, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'project_id', + 'configuration_id', + 'issuance_id' + ] + _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 get_issuance_id_claimed_credential" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + if _params['project_id'] is not None: + _path_params['projectId'] = _params['project_id'] + + if _params['configuration_id'] is not None: + _path_params['configurationId'] = _params['configuration_id'] + + if _params['issuance_id'] is not None: + _path_params['issuanceId'] = _params['issuance_id'] + + + # 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 + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['ProjectTokenAuth'] # noqa: E501 + + _response_types_map = { + '200': "ClaimedCredentialResponse", + '400': "InvalidParameterError", + '404': "NotFoundError", + } + + return self.api_client.call_api( + '/v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials', 'GET', + _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')) diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/__init__.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/__init__.py index 570c19988..f0b09c1d9 100644 --- a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/__init__.py +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/__init__.py @@ -20,8 +20,14 @@ from affinidi_tdk_credential_issuance_client.models.change_credential_status400_response import ChangeCredentialStatus400Response from affinidi_tdk_credential_issuance_client.models.change_credential_status_input import ChangeCredentialStatusInput from affinidi_tdk_credential_issuance_client.models.change_status_forbidden_error import ChangeStatusForbiddenError +from affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting import CisConfigurationWebhookSetting +from affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting_endpoint import CisConfigurationWebhookSettingEndpoint +from affinidi_tdk_credential_issuance_client.models.claimed_credential_list_response import ClaimedCredentialListResponse +from affinidi_tdk_credential_issuance_client.models.claimed_credential_response import ClaimedCredentialResponse from affinidi_tdk_credential_issuance_client.models.cors_generate_credentials_ok import CorsGenerateCredentialsOK +from affinidi_tdk_credential_issuance_client.models.cors_get_claimed_credentials_ok import CorsGetClaimedCredentialsOK from affinidi_tdk_credential_issuance_client.models.cors_get_credential_offer_ok import CorsGetCredentialOfferOK +from affinidi_tdk_credential_issuance_client.models.cors_get_issuance_id_claimed_credential_ok import CorsGetIssuanceIdClaimedCredentialOK from affinidi_tdk_credential_issuance_client.models.cors_get_well_known_open_id_credential_issuer_ok import CorsGetWellKnownOpenIdCredentialIssuerOK from affinidi_tdk_credential_issuance_client.models.create_credential_input import CreateCredentialInput from affinidi_tdk_credential_issuance_client.models.create_issuance_config400_response import CreateIssuanceConfig400Response diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cis_configuration_webhook_setting.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cis_configuration_webhook_setting.py new file mode 100644 index 000000000..eaf97dae6 --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cis_configuration_webhook_setting.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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, StrictBool +from affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting_endpoint import CisConfigurationWebhookSettingEndpoint + +class CisConfigurationWebhookSetting(BaseModel): + """ + Webhook setting to notify developers for claimed VC # noqa: E501 + """ + enabled: StrictBool = Field(default=..., description="flag to enabled or disabled the webhook") + endpoint: Optional[CisConfigurationWebhookSettingEndpoint] = None + __properties = ["enabled", "endpoint"] + + 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) -> CisConfigurationWebhookSetting: + """Create an instance of CisConfigurationWebhookSetting 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 endpoint + if self.endpoint: + _dict['endpoint'] = self.endpoint.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> CisConfigurationWebhookSetting: + """Create an instance of CisConfigurationWebhookSetting from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CisConfigurationWebhookSetting.parse_obj(obj) + + _obj = CisConfigurationWebhookSetting.parse_obj({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else False, + "endpoint": CisConfigurationWebhookSettingEndpoint.from_dict(obj.get("endpoint")) if obj.get("endpoint") is not None else None + }) + return _obj + + diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cis_configuration_webhook_setting_endpoint.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cis_configuration_webhook_setting_endpoint.py new file mode 100644 index 000000000..740b41bba --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cis_configuration_webhook_setting_endpoint.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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 CisConfigurationWebhookSettingEndpoint(BaseModel): + """ + CisConfigurationWebhookSettingEndpoint + """ + url: Optional[StrictStr] = Field(default=None, description="url endpoint where notification will be sent with issuanceId after user has claimed the VC related to issuanceId") + __properties = ["url"] + + 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) -> CisConfigurationWebhookSettingEndpoint: + """Create an instance of CisConfigurationWebhookSettingEndpoint 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) -> CisConfigurationWebhookSettingEndpoint: + """Create an instance of CisConfigurationWebhookSettingEndpoint from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CisConfigurationWebhookSettingEndpoint.parse_obj(obj) + + _obj = CisConfigurationWebhookSettingEndpoint.parse_obj({ + "url": obj.get("url") + }) + return _obj + + diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/claimed_credential_list_response.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/claimed_credential_list_response.py new file mode 100644 index 000000000..3b9474d93 --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/claimed_credential_list_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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 Any, Dict, List, Optional +from pydantic import BaseModel, Field, StrictStr, conlist + +class ClaimedCredentialListResponse(BaseModel): + """ + List of claimed credential # noqa: E501 + """ + credentials: Optional[conlist(Dict[str, Any])] = Field(default=None, description="list of credentials") + next: Optional[StrictStr] = Field(default=None, description="for pagination to fetch next set of records") + __properties = ["credentials", "next"] + + 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) -> ClaimedCredentialListResponse: + """Create an instance of ClaimedCredentialListResponse 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) -> ClaimedCredentialListResponse: + """Create an instance of ClaimedCredentialListResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return ClaimedCredentialListResponse.parse_obj(obj) + + _obj = ClaimedCredentialListResponse.parse_obj({ + "credentials": obj.get("credentials"), + "next": obj.get("next") + }) + return _obj + + diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/claimed_credential_response.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/claimed_credential_response.py new file mode 100644 index 000000000..e6f4ecbaa --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/claimed_credential_response.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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 Any, Dict, Optional +from pydantic import BaseModel, Field + +class ClaimedCredentialResponse(BaseModel): + """ + Response for getting the claimed VC # noqa: E501 + """ + credential: Optional[Dict[str, Any]] = Field(default=None, description="claimed credential") + __properties = ["credential"] + + 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) -> ClaimedCredentialResponse: + """Create an instance of ClaimedCredentialResponse 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) -> ClaimedCredentialResponse: + """Create an instance of ClaimedCredentialResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return ClaimedCredentialResponse.parse_obj(obj) + + _obj = ClaimedCredentialResponse.parse_obj({ + "credential": obj.get("credential") + }) + return _obj + + diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cors_get_claimed_credentials_ok.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cors_get_claimed_credentials_ok.py new file mode 100644 index 000000000..8a624e0cd --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cors_get_claimed_credentials_ok.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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 CorsGetClaimedCredentialsOK(BaseModel): + """ + CorsGetClaimedCredentialsOK + """ + cors_get_claimed_credentials_ok: Optional[StrictStr] = Field(default=None, alias="corsGetClaimedCredentialsOk") + __properties = ["corsGetClaimedCredentialsOk"] + + 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) -> CorsGetClaimedCredentialsOK: + """Create an instance of CorsGetClaimedCredentialsOK 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) -> CorsGetClaimedCredentialsOK: + """Create an instance of CorsGetClaimedCredentialsOK from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CorsGetClaimedCredentialsOK.parse_obj(obj) + + _obj = CorsGetClaimedCredentialsOK.parse_obj({ + "cors_get_claimed_credentials_ok": obj.get("corsGetClaimedCredentialsOk") + }) + return _obj + + diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cors_get_issuance_id_claimed_credential_ok.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cors_get_issuance_id_claimed_credential_ok.py new file mode 100644 index 000000000..985cdc54c --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/cors_get_issuance_id_claimed_credential_ok.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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 CorsGetIssuanceIdClaimedCredentialOK(BaseModel): + """ + CorsGetIssuanceIdClaimedCredentialOK + """ + cors_get_issuance_id_claimed_credential_ok: Optional[StrictStr] = Field(default=None, alias="corsGetIssuanceIdClaimedCredentialOk") + __properties = ["corsGetIssuanceIdClaimedCredentialOk"] + + 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) -> CorsGetIssuanceIdClaimedCredentialOK: + """Create an instance of CorsGetIssuanceIdClaimedCredentialOK 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) -> CorsGetIssuanceIdClaimedCredentialOK: + """Create an instance of CorsGetIssuanceIdClaimedCredentialOK from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CorsGetIssuanceIdClaimedCredentialOK.parse_obj(obj) + + _obj = CorsGetIssuanceIdClaimedCredentialOK.parse_obj({ + "cors_get_issuance_id_claimed_credential_ok": obj.get("corsGetIssuanceIdClaimedCredentialOk") + }) + return _obj + + diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/create_issuance_config_input.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/create_issuance_config_input.py index 92f744db9..e32b124ea 100644 --- a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/create_issuance_config_input.py +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/create_issuance_config_input.py @@ -21,6 +21,7 @@ from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field, StrictStr, confloat, conint, conlist, constr, validator +from affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting import CisConfigurationWebhookSetting from affinidi_tdk_credential_issuance_client.models.credential_supported_object import CredentialSupportedObject class CreateIssuanceConfigInput(BaseModel): @@ -35,7 +36,8 @@ class CreateIssuanceConfigInput(BaseModel): credential_supported: conlist(CredentialSupportedObject) = Field(default=..., alias="credentialSupported") issuer_metadata: Optional[Dict[str, Any]] = Field(default=None, alias="issuerMetadata", description="Issuer public information wallet may want to show to user during consent confirmation") return_uris: Optional[conlist(StrictStr)] = Field(default=None, alias="returnUris", description="List of allowed URIs to be returned to after issuance") - __properties = ["name", "description", "issuerWalletId", "credentialOfferDuration", "format", "credentialSupported", "issuerMetadata", "returnUris"] + webhook: Optional[CisConfigurationWebhookSetting] = None + __properties = ["name", "description", "issuerWalletId", "credentialOfferDuration", "format", "credentialSupported", "issuerMetadata", "returnUris", "webhook"] @validator('name') def name_validate_regular_expression(cls, value): @@ -88,6 +90,9 @@ def to_dict(self): if _item: _items.append(_item.to_dict()) _dict['credentialSupported'] = _items + # override the default output from pydantic by calling `to_dict()` of webhook + if self.webhook: + _dict['webhook'] = self.webhook.to_dict() return _dict @classmethod @@ -107,7 +112,8 @@ def from_dict(cls, obj: dict) -> CreateIssuanceConfigInput: "format": obj.get("format"), "credential_supported": [CredentialSupportedObject.from_dict(_item) for _item in obj.get("credentialSupported")] if obj.get("credentialSupported") is not None else None, "issuer_metadata": obj.get("issuerMetadata"), - "return_uris": obj.get("returnUris") + "return_uris": obj.get("returnUris"), + "webhook": CisConfigurationWebhookSetting.from_dict(obj.get("webhook")) if obj.get("webhook") is not None else None }) return _obj diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/issuance_config_dto.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/issuance_config_dto.py index 1cfe7356c..e81710ab7 100644 --- a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/issuance_config_dto.py +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/issuance_config_dto.py @@ -21,6 +21,7 @@ from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, validator +from affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting import CisConfigurationWebhookSetting from affinidi_tdk_credential_issuance_client.models.credential_supported_object import CredentialSupportedObject class IssuanceConfigDto(BaseModel): @@ -40,7 +41,8 @@ class IssuanceConfigDto(BaseModel): issuer_metadata: Optional[Dict[str, Any]] = Field(default=None, alias="issuerMetadata", description="Issuer public information wallet may want to show to user during consent confirmation") version: Optional[Union[StrictFloat, StrictInt]] = None return_uris: Optional[conlist(StrictStr)] = Field(default=None, alias="returnUris", description="List of allowed URIs to be returned to after issuance") - __properties = ["id", "name", "description", "issuerDid", "issuerWalletId", "credentialOfferDuration", "cNonceDuration", "format", "issuerUri", "credentialSupported", "issuerMetadata", "version", "returnUris"] + webhook: Optional[CisConfigurationWebhookSetting] = None + __properties = ["id", "name", "description", "issuerDid", "issuerWalletId", "credentialOfferDuration", "cNonceDuration", "format", "issuerUri", "credentialSupported", "issuerMetadata", "version", "returnUris", "webhook"] @validator('format') def format_validate_enum(cls, value): @@ -83,6 +85,9 @@ def to_dict(self): if _item: _items.append(_item.to_dict()) _dict['credentialSupported'] = _items + # override the default output from pydantic by calling `to_dict()` of webhook + if self.webhook: + _dict['webhook'] = self.webhook.to_dict() return _dict @classmethod @@ -107,7 +112,8 @@ def from_dict(cls, obj: dict) -> IssuanceConfigDto: "credential_supported": [CredentialSupportedObject.from_dict(_item) for _item in obj.get("credentialSupported")] if obj.get("credentialSupported") is not None else None, "issuer_metadata": obj.get("issuerMetadata"), "version": obj.get("version"), - "return_uris": obj.get("returnUris") + "return_uris": obj.get("returnUris"), + "webhook": CisConfigurationWebhookSetting.from_dict(obj.get("webhook")) if obj.get("webhook") is not None else None }) return _obj diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/update_issuance_config_input.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/update_issuance_config_input.py index 31561aeca..80f1b98c7 100644 --- a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/update_issuance_config_input.py +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/update_issuance_config_input.py @@ -21,6 +21,7 @@ from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field, StrictStr, confloat, conint, conlist, constr, validator +from affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting import CisConfigurationWebhookSetting from affinidi_tdk_credential_issuance_client.models.credential_supported_object import CredentialSupportedObject class UpdateIssuanceConfigInput(BaseModel): @@ -36,7 +37,8 @@ class UpdateIssuanceConfigInput(BaseModel): credential_supported: Optional[conlist(CredentialSupportedObject)] = Field(default=None, alias="credentialSupported") issuer_metadata: Optional[Dict[str, Any]] = Field(default=None, alias="issuerMetadata", description="Issuer public information wallet may want to show to user during consent confirmation") return_uris: Optional[conlist(StrictStr)] = Field(default=None, alias="returnUris", description="List of allowed URIs to be returned to after issuance") - __properties = ["name", "description", "issuerWalletId", "credentialOfferDuration", "format", "issuerUri", "credentialSupported", "issuerMetadata", "returnUris"] + webhook: Optional[CisConfigurationWebhookSetting] = None + __properties = ["name", "description", "issuerWalletId", "credentialOfferDuration", "format", "issuerUri", "credentialSupported", "issuerMetadata", "returnUris", "webhook"] @validator('name') def name_validate_regular_expression(cls, value): @@ -89,6 +91,9 @@ def to_dict(self): if _item: _items.append(_item.to_dict()) _dict['credentialSupported'] = _items + # override the default output from pydantic by calling `to_dict()` of webhook + if self.webhook: + _dict['webhook'] = self.webhook.to_dict() return _dict @classmethod @@ -109,7 +114,8 @@ def from_dict(cls, obj: dict) -> UpdateIssuanceConfigInput: "issuer_uri": obj.get("issuerUri"), "credential_supported": [CredentialSupportedObject.from_dict(_item) for _item in obj.get("credentialSupported")] if obj.get("credentialSupported") is not None else None, "issuer_metadata": obj.get("issuerMetadata"), - "return_uris": obj.get("returnUris") + "return_uris": obj.get("returnUris"), + "webhook": CisConfigurationWebhookSetting.from_dict(obj.get("webhook")) if obj.get("webhook") is not None else None }) return _obj diff --git a/clients/python/credential_issuance_client/docs/CisConfigurationWebhookSetting.md b/clients/python/credential_issuance_client/docs/CisConfigurationWebhookSetting.md new file mode 100644 index 000000000..317dd1d09 --- /dev/null +++ b/clients/python/credential_issuance_client/docs/CisConfigurationWebhookSetting.md @@ -0,0 +1,30 @@ +# CisConfigurationWebhookSetting + +Webhook setting to notify developers for claimed VC + +## Properties + +| Name | Type | Description | Notes | +| ------------ | --------------------------------------------------------------------------------------- | --------------------------------------- | ------------------ | +| **enabled** | **bool** | flag to enabled or disabled the webhook | [default to False] | +| **endpoint** | [**CisConfigurationWebhookSettingEndpoint**](CisConfigurationWebhookSettingEndpoint.md) | | [optional] | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting import CisConfigurationWebhookSetting + +# TODO update the JSON string below +json = "{}" +# create an instance of CisConfigurationWebhookSetting from a JSON string +cis_configuration_webhook_setting_instance = CisConfigurationWebhookSetting.from_json(json) +# print the JSON string representation of the object +print CisConfigurationWebhookSetting.to_json() + +# convert the object into a dict +cis_configuration_webhook_setting_dict = cis_configuration_webhook_setting_instance.to_dict() +# create an instance of CisConfigurationWebhookSetting from a dict +cis_configuration_webhook_setting_from_dict = CisConfigurationWebhookSetting.from_dict(cis_configuration_webhook_setting_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/credential_issuance_client/docs/CisConfigurationWebhookSettingEndpoint.md b/clients/python/credential_issuance_client/docs/CisConfigurationWebhookSettingEndpoint.md new file mode 100644 index 000000000..75ad95bb5 --- /dev/null +++ b/clients/python/credential_issuance_client/docs/CisConfigurationWebhookSettingEndpoint.md @@ -0,0 +1,27 @@ +# CisConfigurationWebhookSettingEndpoint + +## Properties + +| Name | Type | Description | Notes | +| ------- | ------- | ---------------------------------------------------------------------------------------------------------------- | ---------- | +| **url** | **str** | url endpoint where notification will be sent with issuanceId after user has claimed the VC related to issuanceId | [optional] | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting_endpoint import CisConfigurationWebhookSettingEndpoint + +# TODO update the JSON string below +json = "{}" +# create an instance of CisConfigurationWebhookSettingEndpoint from a JSON string +cis_configuration_webhook_setting_endpoint_instance = CisConfigurationWebhookSettingEndpoint.from_json(json) +# print the JSON string representation of the object +print CisConfigurationWebhookSettingEndpoint.to_json() + +# convert the object into a dict +cis_configuration_webhook_setting_endpoint_dict = cis_configuration_webhook_setting_endpoint_instance.to_dict() +# create an instance of CisConfigurationWebhookSettingEndpoint from a dict +cis_configuration_webhook_setting_endpoint_from_dict = CisConfigurationWebhookSettingEndpoint.from_dict(cis_configuration_webhook_setting_endpoint_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/credential_issuance_client/docs/ClaimedCredentialListResponse.md b/clients/python/credential_issuance_client/docs/ClaimedCredentialListResponse.md new file mode 100644 index 000000000..525f57140 --- /dev/null +++ b/clients/python/credential_issuance_client/docs/ClaimedCredentialListResponse.md @@ -0,0 +1,30 @@ +# ClaimedCredentialListResponse + +List of claimed credential + +## Properties + +| Name | Type | Description | Notes | +| --------------- | --------------------------- | ------------------------------------------- | ---------- | +| **credentials** | **List[Dict[str, object]]** | list of credentials | [optional] | +| **next** | **str** | for pagination to fetch next set of records | [optional] | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.claimed_credential_list_response import ClaimedCredentialListResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimedCredentialListResponse from a JSON string +claimed_credential_list_response_instance = ClaimedCredentialListResponse.from_json(json) +# print the JSON string representation of the object +print ClaimedCredentialListResponse.to_json() + +# convert the object into a dict +claimed_credential_list_response_dict = claimed_credential_list_response_instance.to_dict() +# create an instance of ClaimedCredentialListResponse from a dict +claimed_credential_list_response_from_dict = ClaimedCredentialListResponse.from_dict(claimed_credential_list_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/credential_issuance_client/docs/ClaimedCredentialResponse.md b/clients/python/credential_issuance_client/docs/ClaimedCredentialResponse.md new file mode 100644 index 000000000..e0b9b2b54 --- /dev/null +++ b/clients/python/credential_issuance_client/docs/ClaimedCredentialResponse.md @@ -0,0 +1,29 @@ +# ClaimedCredentialResponse + +Response for getting the claimed VC + +## Properties + +| Name | Type | Description | Notes | +| -------------- | --------------------- | ------------------ | ---------- | +| **credential** | **Dict[str, object]** | claimed credential | [optional] | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.claimed_credential_response import ClaimedCredentialResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ClaimedCredentialResponse from a JSON string +claimed_credential_response_instance = ClaimedCredentialResponse.from_json(json) +# print the JSON string representation of the object +print ClaimedCredentialResponse.to_json() + +# convert the object into a dict +claimed_credential_response_dict = claimed_credential_response_instance.to_dict() +# create an instance of ClaimedCredentialResponse from a dict +claimed_credential_response_from_dict = ClaimedCredentialResponse.from_dict(claimed_credential_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/credential_issuance_client/docs/CorsGetClaimedCredentialsOK.md b/clients/python/credential_issuance_client/docs/CorsGetClaimedCredentialsOK.md new file mode 100644 index 000000000..ca71d68a9 --- /dev/null +++ b/clients/python/credential_issuance_client/docs/CorsGetClaimedCredentialsOK.md @@ -0,0 +1,27 @@ +# CorsGetClaimedCredentialsOK + +## Properties + +| Name | Type | Description | Notes | +| ----------------------------------- | ------- | ----------- | ---------- | +| **cors_get_claimed_credentials_ok** | **str** | | [optional] | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.cors_get_claimed_credentials_ok import CorsGetClaimedCredentialsOK + +# TODO update the JSON string below +json = "{}" +# create an instance of CorsGetClaimedCredentialsOK from a JSON string +cors_get_claimed_credentials_ok_instance = CorsGetClaimedCredentialsOK.from_json(json) +# print the JSON string representation of the object +print CorsGetClaimedCredentialsOK.to_json() + +# convert the object into a dict +cors_get_claimed_credentials_ok_dict = cors_get_claimed_credentials_ok_instance.to_dict() +# create an instance of CorsGetClaimedCredentialsOK from a dict +cors_get_claimed_credentials_ok_from_dict = CorsGetClaimedCredentialsOK.from_dict(cors_get_claimed_credentials_ok_dict) +``` + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/python/credential_issuance_client/docs/CorsGetIssuanceIdClaimedCredentialOK.md b/clients/python/credential_issuance_client/docs/CorsGetIssuanceIdClaimedCredentialOK.md new file mode 100644 index 000000000..998963176 --- /dev/null +++ b/clients/python/credential_issuance_client/docs/CorsGetIssuanceIdClaimedCredentialOK.md @@ -0,0 +1,27 @@ +# CorsGetIssuanceIdClaimedCredentialOK + +## Properties + +| Name | Type | Description | Notes | +| ---------------------------------------------- | ------- | ----------- | ---------- | +| **cors_get_issuance_id_claimed_credential_ok** | **str** | | [optional] | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.cors_get_issuance_id_claimed_credential_ok import CorsGetIssuanceIdClaimedCredentialOK + +# TODO update the JSON string below +json = "{}" +# create an instance of CorsGetIssuanceIdClaimedCredentialOK from a JSON string +cors_get_issuance_id_claimed_credential_ok_instance = CorsGetIssuanceIdClaimedCredentialOK.from_json(json) +# print the JSON string representation of the object +print CorsGetIssuanceIdClaimedCredentialOK.to_json() + +# convert the object into a dict +cors_get_issuance_id_claimed_credential_ok_dict = cors_get_issuance_id_claimed_credential_ok_instance.to_dict() +# create an instance of CorsGetIssuanceIdClaimedCredentialOK from a dict +cors_get_issuance_id_claimed_credential_ok_from_dict = CorsGetIssuanceIdClaimedCredentialOK.from_dict(cors_get_issuance_id_claimed_credential_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/credential_issuance_client/docs/CreateIssuanceConfigInput.md b/clients/python/credential_issuance_client/docs/CreateIssuanceConfigInput.md index 15d66e2df..5cafb5083 100644 --- a/clients/python/credential_issuance_client/docs/CreateIssuanceConfigInput.md +++ b/clients/python/credential_issuance_client/docs/CreateIssuanceConfigInput.md @@ -2,16 +2,17 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -| **name** | **str** | | [optional] | -| **description** | **str** | | [optional] | -| **issuer_wallet_id** | **str** | Issuer Wallet id | -| **credential_offer_duration** | **float** | credential offer duration in second | [optional] | -| **format** | **str** | String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] | -| **credential_supported** | [**List[CredentialSupportedObject]**](CredentialSupportedObject.md) | | -| **issuer_metadata** | **Dict[str, object]** | Issuer public information wallet may want to show to user during consent confirmation | [optional] | -| **return_uris** | **List[str]** | List of allowed URIs to be returned to after issuance | [optional] | +| Name | Type | Description | Notes | +| ----------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| **name** | **str** | | [optional] | +| **description** | **str** | | [optional] | +| **issuer_wallet_id** | **str** | Issuer Wallet id | +| **credential_offer_duration** | **float** | credential offer duration in second | [optional] | +| **format** | **str** | String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] | +| **credential_supported** | [**List[CredentialSupportedObject]**](CredentialSupportedObject.md) | | +| **issuer_metadata** | **Dict[str, object]** | Issuer public information wallet may want to show to user during consent confirmation | [optional] | +| **return_uris** | **List[str]** | List of allowed URIs to be returned to after issuance | [optional] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.md) | | [optional] | ## Example diff --git a/clients/python/credential_issuance_client/docs/CredentialsApi.md b/clients/python/credential_issuance_client/docs/CredentialsApi.md index 3876826cf..1f0923f7c 100644 --- a/clients/python/credential_issuance_client/docs/CredentialsApi.md +++ b/clients/python/credential_issuance_client/docs/CredentialsApi.md @@ -2,9 +2,11 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* -| Method | HTTP request | Description | -| ------------------------------------------------------------------ | ----------------------------------- | ----------- | -| [**generate_credentials**](CredentialsApi.md#generate_credentials) | **POST** /v1/{projectId}/credential | +| Method | HTTP request | Description | +| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------- | +| [**generate_credentials**](CredentialsApi.md#generate_credentials) | **POST** /v1/{projectId}/credential | +| [**get_claimed_credentials**](CredentialsApi.md#get_claimed_credentials) | **GET** /v1/{projectId}/configurations/{configurationId}/credentials | Get claimed credential in the specified range | +| [**get_issuance_id_claimed_credential**](CredentialsApi.md#get_issuance_id_claimed_credential) | **GET** /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials | Get claimed VC linked to the issuanceId | # **generate_credentials** @@ -85,3 +87,207 @@ with affinidi_tdk_credential_issuance_client.ApiClient(configuration) as api_cli | **401** | UnauthorizedError | _ 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) + +# **get_claimed_credentials** + +> ClaimedCredentialListResponse get_claimed_credentials(project_id, configuration_id, range_start_time, range_end_time=range_end_time, next=next) + +Get claimed credential in the specified range + +Get claimed credential in the specified range + +### Example + +- Api Key Authentication (ProjectTokenAuth): + +```python +import time +import os +import affinidi_tdk_credential_issuance_client +from affinidi_tdk_credential_issuance_client.models.claimed_credential_list_response import ClaimedCredentialListResponse +from affinidi_tdk_credential_issuance_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://apse1.api.affinidi.io/cis +# See configuration.py for a list of all supported configuration parameters. +configuration = affinidi_tdk_credential_issuance_client.Configuration( + host = "https://apse1.api.affinidi.io/cis" +) + +# 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 API key authorization: ProjectTokenAuth +configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"] + +# Configure a hook to auto-refresh API key for your personal access token (PAT), if expired +import affinidi_tdk_auth_provider + +stats = { + apiGatewayUrl, + keyId, + passphrase, + privateKey, + projectId, + tokenEndpoint, + tokenId, +} +authProvider = affinidi_tdk_auth_provider.AuthProvider(stats) +configuration.refresh_api_key_hook = lambda api_client: authProvider.fetch_project_scoped_token() + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ProjectTokenAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with affinidi_tdk_credential_issuance_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = affinidi_tdk_credential_issuance_client.CredentialsApi(api_client) + project_id = 'project_id_example' # str | project id + configuration_id = 'configuration_id_example' # str | configuration id + range_start_time = 'range_start_time_example' # str | + range_end_time = 'range_end_time_example' # str | (optional) + next = 'next_example' # str | (optional) + + try: + # Get claimed credential in the specified range + api_response = api_instance.get_claimed_credentials(project_id, configuration_id, range_start_time, range_end_time=range_end_time, next=next) + print("The response of CredentialsApi->get_claimed_credentials:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CredentialsApi->get_claimed_credentials: %s\n" % e) +``` + +### Parameters + +| Name | Type | Description | Notes | +| -------------------- | ------- | ---------------- | ---------- | +| **project_id** | **str** | project id | +| **configuration_id** | **str** | configuration id | +| **range_start_time** | **str** | | +| **range_end_time** | **str** | | [optional] | +| **next** | **str** | | [optional] | + +### Return type + +[**ClaimedCredentialListResponse**](ClaimedCredentialListResponse.md) + +### Authorization + +[ProjectTokenAuth](../README.md#ProjectTokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +| ----------- | --------------- | ----------------------------------------------------------------------------------------------------------------- | +| **200** | Ok | _ 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 -
| +| **404** | NotFoundError | _ 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) + +# **get_issuance_id_claimed_credential** + +> ClaimedCredentialResponse get_issuance_id_claimed_credential(project_id, configuration_id, issuance_id) + +Get claimed VC linked to the issuanceId + +Get claimed VC linked to the issuanceId + +### Example + +- Api Key Authentication (ProjectTokenAuth): + +```python +import time +import os +import affinidi_tdk_credential_issuance_client +from affinidi_tdk_credential_issuance_client.models.claimed_credential_response import ClaimedCredentialResponse +from affinidi_tdk_credential_issuance_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://apse1.api.affinidi.io/cis +# See configuration.py for a list of all supported configuration parameters. +configuration = affinidi_tdk_credential_issuance_client.Configuration( + host = "https://apse1.api.affinidi.io/cis" +) + +# 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 API key authorization: ProjectTokenAuth +configuration.api_key['ProjectTokenAuth'] = os.environ["API_KEY"] + +# Configure a hook to auto-refresh API key for your personal access token (PAT), if expired +import affinidi_tdk_auth_provider + +stats = { + apiGatewayUrl, + keyId, + passphrase, + privateKey, + projectId, + tokenEndpoint, + tokenId, +} +authProvider = affinidi_tdk_auth_provider.AuthProvider(stats) +configuration.refresh_api_key_hook = lambda api_client: authProvider.fetch_project_scoped_token() + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['ProjectTokenAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with affinidi_tdk_credential_issuance_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = affinidi_tdk_credential_issuance_client.CredentialsApi(api_client) + project_id = 'project_id_example' # str | project id + configuration_id = 'configuration_id_example' # str | configuration id + issuance_id = 'issuance_id_example' # str | issuance id + + try: + # Get claimed VC linked to the issuanceId + api_response = api_instance.get_issuance_id_claimed_credential(project_id, configuration_id, issuance_id) + print("The response of CredentialsApi->get_issuance_id_claimed_credential:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CredentialsApi->get_issuance_id_claimed_credential: %s\n" % e) +``` + +### Parameters + +| Name | Type | Description | Notes | +| -------------------- | ------- | ---------------- | ----- | +| **project_id** | **str** | project id | +| **configuration_id** | **str** | configuration id | +| **issuance_id** | **str** | issuance id | + +### Return type + +[**ClaimedCredentialResponse**](ClaimedCredentialResponse.md) + +### Authorization + +[ProjectTokenAuth](../README.md#ProjectTokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +| ----------- | --------------- | ----------------------------------------------------------------------------------------------------------------- | +| **200** | Ok | _ 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 -
| +| **404** | NotFoundError | _ 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) diff --git a/clients/python/credential_issuance_client/docs/IssuanceConfigDto.md b/clients/python/credential_issuance_client/docs/IssuanceConfigDto.md index 53a601d75..bea85be84 100644 --- a/clients/python/credential_issuance_client/docs/IssuanceConfigDto.md +++ b/clients/python/credential_issuance_client/docs/IssuanceConfigDto.md @@ -2,21 +2,22 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -| **id** | **str** | | [optional] | -| **name** | **str** | | [optional] | -| **description** | **str** | | [optional] | -| **issuer_did** | **str** | Issuer DID | [optional] | -| **issuer_wallet_id** | **str** | Issuer Wallet id | [optional] | -| **credential_offer_duration** | **float** | credential offer duration in second | [optional] | -| **c_nonce_duration** | **float** | c_nonce duration in second | [optional] | -| **format** | **str** | String identifying the format of this Credential, i.e., jwt_vc_json-ld or ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] | -| **issuer_uri** | **str** | Issuer URI | [optional] | -| **credential_supported** | [**List[CredentialSupportedObject]**](CredentialSupportedObject.md) | | [optional] | -| **issuer_metadata** | **Dict[str, object]** | Issuer public information wallet may want to show to user during consent confirmation | [optional] | -| **version** | **float** | | [optional] | -| **return_uris** | **List[str]** | List of allowed URIs to be returned to after issuance | [optional] | +| Name | Type | Description | Notes | +| ----------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| **id** | **str** | | [optional] | +| **name** | **str** | | [optional] | +| **description** | **str** | | [optional] | +| **issuer_did** | **str** | Issuer DID | [optional] | +| **issuer_wallet_id** | **str** | Issuer Wallet id | [optional] | +| **credential_offer_duration** | **float** | credential offer duration in second | [optional] | +| **c_nonce_duration** | **float** | c_nonce duration in second | [optional] | +| **format** | **str** | String identifying the format of this Credential, i.e., jwt_vc_json-ld or ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] | +| **issuer_uri** | **str** | Issuer URI | [optional] | +| **credential_supported** | [**List[CredentialSupportedObject]**](CredentialSupportedObject.md) | | [optional] | +| **issuer_metadata** | **Dict[str, object]** | Issuer public information wallet may want to show to user during consent confirmation | [optional] | +| **version** | **float** | | [optional] | +| **return_uris** | **List[str]** | List of allowed URIs to be returned to after issuance | [optional] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.md) | | [optional] | ## Example diff --git a/clients/python/credential_issuance_client/docs/UpdateIssuanceConfigInput.md b/clients/python/credential_issuance_client/docs/UpdateIssuanceConfigInput.md index e6b2894de..357205fd0 100644 --- a/clients/python/credential_issuance_client/docs/UpdateIssuanceConfigInput.md +++ b/clients/python/credential_issuance_client/docs/UpdateIssuanceConfigInput.md @@ -2,17 +2,18 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -| **name** | **str** | | [optional] | -| **description** | **str** | | [optional] | -| **issuer_wallet_id** | **str** | Issuer Wallet id | [optional] | -| **credential_offer_duration** | **float** | credential offer duration in second | [optional] | -| **format** | **str** | String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] | -| **issuer_uri** | **str** | Issuer URI | [optional] | -| **credential_supported** | [**List[CredentialSupportedObject]**](CredentialSupportedObject.md) | | [optional] | -| **issuer_metadata** | **Dict[str, object]** | Issuer public information wallet may want to show to user during consent confirmation | [optional] | -| **return_uris** | **List[str]** | List of allowed URIs to be returned to after issuance | [optional] | +| Name | Type | Description | Notes | +| ----------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| **name** | **str** | | [optional] | +| **description** | **str** | | [optional] | +| **issuer_wallet_id** | **str** | Issuer Wallet id | [optional] | +| **credential_offer_duration** | **float** | credential offer duration in second | [optional] | +| **format** | **str** | String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] | +| **issuer_uri** | **str** | Issuer URI | [optional] | +| **credential_supported** | [**List[CredentialSupportedObject]**](CredentialSupportedObject.md) | | [optional] | +| **issuer_metadata** | **Dict[str, object]** | Issuer public information wallet may want to show to user during consent confirmation | [optional] | +| **return_uris** | **List[str]** | List of allowed URIs to be returned to after issuance | [optional] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.md) | | [optional] | ## Example diff --git a/clients/python/credential_issuance_client/test/test_cis_configuration_webhook_setting.py b/clients/python/credential_issuance_client/test/test_cis_configuration_webhook_setting.py new file mode 100644 index 000000000..32965b9f4 --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_cis_configuration_webhook_setting.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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_credential_issuance_client.models.cis_configuration_webhook_setting import CisConfigurationWebhookSetting # noqa: E501 + +class TestCisConfigurationWebhookSetting(unittest.TestCase): + """CisConfigurationWebhookSetting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CisConfigurationWebhookSetting: + """Test CisConfigurationWebhookSetting + 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 `CisConfigurationWebhookSetting` + """ + model = CisConfigurationWebhookSetting() # noqa: E501 + if include_optional: + return CisConfigurationWebhookSetting( + enabled = True, + endpoint = affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting_endpoint.CisConfigurationWebhookSetting_endpoint( + url = '', ) + ) + else: + return CisConfigurationWebhookSetting( + enabled = True, + ) + """ + + def testCisConfigurationWebhookSetting(self): + """Test CisConfigurationWebhookSetting""" + # 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/credential_issuance_client/test/test_cis_configuration_webhook_setting_endpoint.py b/clients/python/credential_issuance_client/test/test_cis_configuration_webhook_setting_endpoint.py new file mode 100644 index 000000000..e5e7949db --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_cis_configuration_webhook_setting_endpoint.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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_credential_issuance_client.models.cis_configuration_webhook_setting_endpoint import CisConfigurationWebhookSettingEndpoint # noqa: E501 + +class TestCisConfigurationWebhookSettingEndpoint(unittest.TestCase): + """CisConfigurationWebhookSettingEndpoint unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CisConfigurationWebhookSettingEndpoint: + """Test CisConfigurationWebhookSettingEndpoint + 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 `CisConfigurationWebhookSettingEndpoint` + """ + model = CisConfigurationWebhookSettingEndpoint() # noqa: E501 + if include_optional: + return CisConfigurationWebhookSettingEndpoint( + url = '' + ) + else: + return CisConfigurationWebhookSettingEndpoint( + ) + """ + + def testCisConfigurationWebhookSettingEndpoint(self): + """Test CisConfigurationWebhookSettingEndpoint""" + # 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/credential_issuance_client/test/test_claimed_credential_list_response.py b/clients/python/credential_issuance_client/test/test_claimed_credential_list_response.py new file mode 100644 index 000000000..7e35b90d2 --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_claimed_credential_list_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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_credential_issuance_client.models.claimed_credential_list_response import ClaimedCredentialListResponse # noqa: E501 + +class TestClaimedCredentialListResponse(unittest.TestCase): + """ClaimedCredentialListResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimedCredentialListResponse: + """Test ClaimedCredentialListResponse + 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 `ClaimedCredentialListResponse` + """ + model = ClaimedCredentialListResponse() # noqa: E501 + if include_optional: + return ClaimedCredentialListResponse( + credentials = [ + { } + ], + next = '' + ) + else: + return ClaimedCredentialListResponse( + ) + """ + + def testClaimedCredentialListResponse(self): + """Test ClaimedCredentialListResponse""" + # 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/credential_issuance_client/test/test_claimed_credential_response.py b/clients/python/credential_issuance_client/test/test_claimed_credential_response.py new file mode 100644 index 000000000..500f8cae4 --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_claimed_credential_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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_credential_issuance_client.models.claimed_credential_response import ClaimedCredentialResponse # noqa: E501 + +class TestClaimedCredentialResponse(unittest.TestCase): + """ClaimedCredentialResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClaimedCredentialResponse: + """Test ClaimedCredentialResponse + 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 `ClaimedCredentialResponse` + """ + model = ClaimedCredentialResponse() # noqa: E501 + if include_optional: + return ClaimedCredentialResponse( + credential = { } + ) + else: + return ClaimedCredentialResponse( + ) + """ + + def testClaimedCredentialResponse(self): + """Test ClaimedCredentialResponse""" + # 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/credential_issuance_client/test/test_cors_get_claimed_credentials_ok.py b/clients/python/credential_issuance_client/test/test_cors_get_claimed_credentials_ok.py new file mode 100644 index 000000000..8bdc5785c --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_cors_get_claimed_credentials_ok.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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_credential_issuance_client.models.cors_get_claimed_credentials_ok import CorsGetClaimedCredentialsOK # noqa: E501 + +class TestCorsGetClaimedCredentialsOK(unittest.TestCase): + """CorsGetClaimedCredentialsOK unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CorsGetClaimedCredentialsOK: + """Test CorsGetClaimedCredentialsOK + 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 `CorsGetClaimedCredentialsOK` + """ + model = CorsGetClaimedCredentialsOK() # noqa: E501 + if include_optional: + return CorsGetClaimedCredentialsOK( + cors_get_claimed_credentials_ok = '' + ) + else: + return CorsGetClaimedCredentialsOK( + ) + """ + + def testCorsGetClaimedCredentialsOK(self): + """Test CorsGetClaimedCredentialsOK""" + # 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/credential_issuance_client/test/test_cors_get_issuance_id_claimed_credential_ok.py b/clients/python/credential_issuance_client/test/test_cors_get_issuance_id_claimed_credential_ok.py new file mode 100644 index 000000000..ca71b7732 --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_cors_get_issuance_id_claimed_credential_ok.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + 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_credential_issuance_client.models.cors_get_issuance_id_claimed_credential_ok import CorsGetIssuanceIdClaimedCredentialOK # noqa: E501 + +class TestCorsGetIssuanceIdClaimedCredentialOK(unittest.TestCase): + """CorsGetIssuanceIdClaimedCredentialOK unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CorsGetIssuanceIdClaimedCredentialOK: + """Test CorsGetIssuanceIdClaimedCredentialOK + 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 `CorsGetIssuanceIdClaimedCredentialOK` + """ + model = CorsGetIssuanceIdClaimedCredentialOK() # noqa: E501 + if include_optional: + return CorsGetIssuanceIdClaimedCredentialOK( + cors_get_issuance_id_claimed_credential_ok = '' + ) + else: + return CorsGetIssuanceIdClaimedCredentialOK( + ) + """ + + def testCorsGetIssuanceIdClaimedCredentialOK(self): + """Test CorsGetIssuanceIdClaimedCredentialOK""" + # 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/credential_issuance_client/test/test_create_issuance_config_input.py b/clients/python/credential_issuance_client/test/test_create_issuance_config_input.py index 600d52d84..cc421ad7e 100644 --- a/clients/python/credential_issuance_client/test/test_create_issuance_config_input.py +++ b/clients/python/credential_issuance_client/test/test_create_issuance_config_input.py @@ -52,7 +52,11 @@ def make_instance(self, include_optional) -> CreateIssuanceConfigInput: issuer_metadata = { }, return_uris = [ '' - ] + ], + webhook = affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting.CisConfigurationWebhookSetting( + enabled = True, + endpoint = affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting_endpoint.CisConfigurationWebhookSetting_endpoint( + url = '', ), ) ) else: return CreateIssuanceConfigInput( diff --git a/clients/python/credential_issuance_client/test/test_credentials_api.py b/clients/python/credential_issuance_client/test/test_credentials_api.py index 51514e724..65e662ae7 100644 --- a/clients/python/credential_issuance_client/test/test_credentials_api.py +++ b/clients/python/credential_issuance_client/test/test_credentials_api.py @@ -33,6 +33,20 @@ def test_generate_credentials(self) -> None: """ pass + def test_get_claimed_credentials(self) -> None: + """Test case for get_claimed_credentials + + Get claimed credential in the specified range # noqa: E501 + """ + pass + + def test_get_issuance_id_claimed_credential(self) -> None: + """Test case for get_issuance_id_claimed_credential + + Get claimed VC linked to the issuanceId # noqa: E501 + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/clients/python/credential_issuance_client/test/test_issuance_config_dto.py b/clients/python/credential_issuance_client/test/test_issuance_config_dto.py index 69b466e6d..e2a699e42 100644 --- a/clients/python/credential_issuance_client/test/test_issuance_config_dto.py +++ b/clients/python/credential_issuance_client/test/test_issuance_config_dto.py @@ -57,7 +57,11 @@ def make_instance(self, include_optional) -> IssuanceConfigDto: version = 1.337, return_uris = [ '' - ] + ], + webhook = affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting.CisConfigurationWebhookSetting( + enabled = True, + endpoint = affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting_endpoint.CisConfigurationWebhookSetting_endpoint( + url = '', ), ) ) else: return IssuanceConfigDto( diff --git a/clients/python/credential_issuance_client/test/test_update_issuance_config_input.py b/clients/python/credential_issuance_client/test/test_update_issuance_config_input.py index c12ae7a23..e5a738ab4 100644 --- a/clients/python/credential_issuance_client/test/test_update_issuance_config_input.py +++ b/clients/python/credential_issuance_client/test/test_update_issuance_config_input.py @@ -53,7 +53,11 @@ def make_instance(self, include_optional) -> UpdateIssuanceConfigInput: issuer_metadata = { }, return_uris = [ '' - ] + ], + webhook = affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting.CisConfigurationWebhookSetting( + enabled = True, + endpoint = affinidi_tdk_credential_issuance_client.models.cis_configuration_webhook_setting_endpoint.CisConfigurationWebhookSetting_endpoint( + url = '', ), ) ) else: return UpdateIssuanceConfigInput( diff --git a/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/consumer_metadata_dto.py b/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/consumer_metadata_dto.py index 9316c6892..2769755c4 100644 --- a/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/consumer_metadata_dto.py +++ b/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/consumer_metadata_dto.py @@ -35,11 +35,11 @@ class ConsumerMetadataDto(BaseModel): profile_count: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="profileCount") name: StrictStr = Field(...) consumer_id: StrictStr = Field(default=..., alias="consumerId") - created_at: StrictStr = Field(default=..., alias="createdAt", description="[GEN] ISO 8601 string of the creation date/time the entity") - modified_at: StrictStr = Field(default=..., alias="modifiedAt", description="[GEN] ISO 8601 string of the modification date/time the entity") - created_by: StrictStr = Field(default=..., alias="createdBy", description="[GEN] Identifier of the user who created the entity") - modified_by: StrictStr = Field(default=..., alias="modifiedBy", description="[GEN] Identifier of the user who last updated the entity") - description: StrictStr = Field(default=..., description="Description of the node") + created_at: StrictStr = Field(default=..., alias="createdAt", description="creation date/time") + modified_at: StrictStr = Field(default=..., alias="modifiedAt", description="modification date/time") + created_by: StrictStr = Field(default=..., alias="createdBy", description="Identifier of the user who created") + modified_by: StrictStr = Field(default=..., alias="modifiedBy", description="Identifier of the user who last updated") + description: Optional[StrictStr] = Field(default=None, description="Description of the node") type: NodeType = Field(...) consumed_file_storage: Union[StrictFloat, StrictInt] = Field(default=..., alias="consumedFileStorage", description="Tracks the amount of bytes used by the stored data.") __properties = ["nodeId", "status", "fileCount", "folderCount", "profileCount", "name", "consumerId", "createdAt", "modifiedAt", "createdBy", "modifiedBy", "description", "type", "consumedFileStorage"] diff --git a/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/get_detailed_node_info_ok.py b/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/get_detailed_node_info_ok.py index 93d3fc6c9..754f38afb 100644 --- a/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/get_detailed_node_info_ok.py +++ b/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/get_detailed_node_info_ok.py @@ -43,7 +43,7 @@ class GetDetailedNodeInfoOK(BaseModel): modified_at: StrictStr = Field(default=..., alias="modifiedAt", description="modification date/time of the node") created_by: StrictStr = Field(default=..., alias="createdBy", description="Identifier of the user who created the node") modified_by: StrictStr = Field(default=..., alias="modifiedBy", description="Identifier of the user who last updated the node") - description: StrictStr = Field(default=..., description="Description of the node") + description: Optional[StrictStr] = Field(default=None, description="Description of the node") type: NodeType = Field(...) link: Optional[StrictStr] = Field(default=None, description="id of the file, used for FILE node only") var_schema: Optional[StrictStr] = Field(default=None, alias="schema", description="name of the schema, used for PROFILE node only") diff --git a/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/node_dto.py b/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/node_dto.py index 9ae0b964f..da26cf6d9 100644 --- a/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/node_dto.py +++ b/clients/python/vault_data_manager_client/affinidi_tdk_vault_data_manager_client/models/node_dto.py @@ -43,7 +43,7 @@ class NodeDto(BaseModel): modified_at: StrictStr = Field(default=..., alias="modifiedAt", description="modification date/time of the node") created_by: StrictStr = Field(default=..., alias="createdBy", description="Identifier of the user who created the node") modified_by: StrictStr = Field(default=..., alias="modifiedBy", description="Identifier of the user who last updated the node") - description: StrictStr = Field(default=..., description="Description of the node") + description: Optional[StrictStr] = Field(default=None, description="Description of the node") type: NodeType = Field(...) link: Optional[StrictStr] = Field(default=None, description="id of the file, used for FILE node only") var_schema: Optional[StrictStr] = Field(default=None, alias="schema", description="name of the schema, used for PROFILE node only") diff --git a/clients/python/vault_data_manager_client/docs/ConsumerMetadataDto.md b/clients/python/vault_data_manager_client/docs/ConsumerMetadataDto.md index 5a6432e4a..32210b29e 100644 --- a/clients/python/vault_data_manager_client/docs/ConsumerMetadataDto.md +++ b/clients/python/vault_data_manager_client/docs/ConsumerMetadataDto.md @@ -2,22 +2,22 @@ ## Properties -| Name | Type | Description | Notes | -| ------------------------- | ------------------------------- | -------------------------------------------------------------- | ---------- | -| **node_id** | **str** | | -| **status** | [**NodeStatus**](NodeStatus.md) | | -| **file_count** | **float** | | [optional] | -| **folder_count** | **float** | | [optional] | -| **profile_count** | **float** | | [optional] | -| **name** | **str** | | -| **consumer_id** | **str** | | -| **created_at** | **str** | [GEN] ISO 8601 string of the creation date/time the entity | -| **modified_at** | **str** | [GEN] ISO 8601 string of the modification date/time the entity | -| **created_by** | **str** | [GEN] Identifier of the user who created the entity | -| **modified_by** | **str** | [GEN] Identifier of the user who last updated the entity | -| **description** | **str** | Description of the node | -| **type** | [**NodeType**](NodeType.md) | | -| **consumed_file_storage** | **float** | Tracks the amount of bytes used by the stored data. | +| Name | Type | Description | Notes | +| ------------------------- | ------------------------------- | --------------------------------------------------- | ---------- | +| **node_id** | **str** | | +| **status** | [**NodeStatus**](NodeStatus.md) | | +| **file_count** | **float** | | [optional] | +| **folder_count** | **float** | | [optional] | +| **profile_count** | **float** | | [optional] | +| **name** | **str** | | +| **consumer_id** | **str** | | +| **created_at** | **str** | creation date/time | +| **modified_at** | **str** | modification date/time | +| **created_by** | **str** | Identifier of the user who created | +| **modified_by** | **str** | Identifier of the user who last updated | +| **description** | **str** | Description of the node | [optional] | +| **type** | [**NodeType**](NodeType.md) | | +| **consumed_file_storage** | **float** | Tracks the amount of bytes used by the stored data. | ## Example diff --git a/clients/python/vault_data_manager_client/docs/GetDetailedNodeInfoOK.md b/clients/python/vault_data_manager_client/docs/GetDetailedNodeInfoOK.md index 9b59c1d5e..b8591146b 100644 --- a/clients/python/vault_data_manager_client/docs/GetDetailedNodeInfoOK.md +++ b/clients/python/vault_data_manager_client/docs/GetDetailedNodeInfoOK.md @@ -18,7 +18,7 @@ | **modified_at** | **str** | modification date/time of the node | | **created_by** | **str** | Identifier of the user who created the node | | **modified_by** | **str** | Identifier of the user who last updated the node | -| **description** | **str** | Description of the node | +| **description** | **str** | Description of the node | [optional] | | **type** | [**NodeType**](NodeType.md) | | | **link** | **str** | id of the file, used for FILE node only | [optional] | | **var_schema** | **str** | name of the schema, used for PROFILE node only | [optional] | diff --git a/clients/python/vault_data_manager_client/docs/NodeDto.md b/clients/python/vault_data_manager_client/docs/NodeDto.md index 252597527..220b0747e 100644 --- a/clients/python/vault_data_manager_client/docs/NodeDto.md +++ b/clients/python/vault_data_manager_client/docs/NodeDto.md @@ -18,7 +18,7 @@ | **modified_at** | **str** | modification date/time of the node | | **created_by** | **str** | Identifier of the user who created the node | | **modified_by** | **str** | Identifier of the user who last updated the node | -| **description** | **str** | Description of the node | +| **description** | **str** | Description of the node | [optional] | | **type** | [**NodeType**](NodeType.md) | | | **link** | **str** | id of the file, used for FILE node only | [optional] | | **var_schema** | **str** | name of the schema, used for PROFILE node only | [optional] | diff --git a/clients/python/vault_data_manager_client/test/test_consumer_metadata_dto.py b/clients/python/vault_data_manager_client/test/test_consumer_metadata_dto.py index 9cc754d73..d6622f8f3 100644 --- a/clients/python/vault_data_manager_client/test/test_consumer_metadata_dto.py +++ b/clients/python/vault_data_manager_client/test/test_consumer_metadata_dto.py @@ -62,7 +62,6 @@ def make_instance(self, include_optional) -> ConsumerMetadataDto: modified_at = '', created_by = '', modified_by = '', - description = '', type = 'VC_ROOT', consumed_file_storage = 1.337, ) diff --git a/clients/python/vault_data_manager_client/test/test_get_detailed_node_info_ok.py b/clients/python/vault_data_manager_client/test/test_get_detailed_node_info_ok.py index 08c1c82c8..d97daff9c 100644 --- a/clients/python/vault_data_manager_client/test/test_get_detailed_node_info_ok.py +++ b/clients/python/vault_data_manager_client/test/test_get_detailed_node_info_ok.py @@ -74,7 +74,6 @@ def make_instance(self, include_optional) -> GetDetailedNodeInfoOK: modified_at = '', created_by = '', modified_by = '', - description = '', type = 'VC_ROOT', ) """ diff --git a/clients/python/vault_data_manager_client/test/test_node_dto.py b/clients/python/vault_data_manager_client/test/test_node_dto.py index f22b212ad..0c3bd7c0b 100644 --- a/clients/python/vault_data_manager_client/test/test_node_dto.py +++ b/clients/python/vault_data_manager_client/test/test_node_dto.py @@ -73,7 +73,6 @@ def make_instance(self, include_optional) -> NodeDto: modified_at = '', created_by = '', modified_by = '', - description = '', type = 'VC_ROOT', ) """ diff --git a/clients/typescript/credential-issuance-client/api.ts b/clients/typescript/credential-issuance-client/api.ts index 08dbc2a33..f7ab302cf 100644 --- a/clients/typescript/credential-issuance-client/api.ts +++ b/clients/typescript/credential-issuance-client/api.ts @@ -221,6 +221,70 @@ export const ChangeStatusForbiddenErrorHttpStatusCodeEnum = { export type ChangeStatusForbiddenErrorHttpStatusCodeEnum = (typeof ChangeStatusForbiddenErrorHttpStatusCodeEnum)[keyof typeof ChangeStatusForbiddenErrorHttpStatusCodeEnum] +/** + * Webhook setting to notify developers for claimed VC + * @export + * @interface CisConfigurationWebhookSetting + */ +export interface CisConfigurationWebhookSetting { + /** + * flag to enabled or disabled the webhook + * @type {boolean} + * @memberof CisConfigurationWebhookSetting + */ + enabled: boolean + /** + * + * @type {CisConfigurationWebhookSettingEndpoint} + * @memberof CisConfigurationWebhookSetting + */ + endpoint?: CisConfigurationWebhookSettingEndpoint +} +/** + * + * @export + * @interface CisConfigurationWebhookSettingEndpoint + */ +export interface CisConfigurationWebhookSettingEndpoint { + /** + * url endpoint where notification will be sent with issuanceId after user has claimed the VC related to issuanceId + * @type {string} + * @memberof CisConfigurationWebhookSettingEndpoint + */ + url?: string +} +/** + * List of claimed credential + * @export + * @interface ClaimedCredentialListResponse + */ +export interface ClaimedCredentialListResponse { + /** + * list of credentials + * @type {Array<{ [key: string]: any; }>} + * @memberof ClaimedCredentialListResponse + */ + credentials?: Array<{ [key: string]: any }> + /** + * for pagination to fetch next set of records + * @type {string} + * @memberof ClaimedCredentialListResponse + */ + next?: string +} +/** + * Response for getting the claimed VC + * @export + * @interface ClaimedCredentialResponse + */ +export interface ClaimedCredentialResponse { + /** + * claimed credential + * @type {{ [key: string]: any; }} + * @memberof ClaimedCredentialResponse + */ + credential?: { [key: string]: any } +} /** * * @export @@ -234,6 +298,19 @@ export interface CorsGenerateCredentialsOK { */ corsGenerateCredentialsOk?: string } +/** + * + * @export + * @interface CorsGetClaimedCredentialsOK + */ +export interface CorsGetClaimedCredentialsOK { + /** + * + * @type {string} + * @memberof CorsGetClaimedCredentialsOK + */ + corsGetClaimedCredentialsOk?: string +} /** * * @export @@ -247,6 +324,19 @@ export interface CorsGetCredentialOfferOK { */ corsGetCredentialOfferOk?: string } +/** + * + * @export + * @interface CorsGetIssuanceIdClaimedCredentialOK + */ +export interface CorsGetIssuanceIdClaimedCredentialOK { + /** + * + * @type {string} + * @memberof CorsGetIssuanceIdClaimedCredentialOK + */ + corsGetIssuanceIdClaimedCredentialOk?: string +} /** * * @export @@ -344,6 +434,12 @@ export interface CreateIssuanceConfigInput { * @memberof CreateIssuanceConfigInput */ returnUris?: Array + /** + * + * @type {CisConfigurationWebhookSetting} + * @memberof CreateIssuanceConfigInput + */ + webhook?: CisConfigurationWebhookSetting } export const CreateIssuanceConfigInputFormatEnum = { @@ -1418,6 +1514,12 @@ export interface IssuanceConfigDto { * @memberof IssuanceConfigDto */ returnUris?: Array + /** + * + * @type {CisConfigurationWebhookSetting} + * @memberof IssuanceConfigDto + */ + webhook?: CisConfigurationWebhookSetting } export const IssuanceConfigDtoFormatEnum = { @@ -2178,6 +2280,12 @@ export interface UpdateIssuanceConfigInput { * @memberof UpdateIssuanceConfigInput */ returnUris?: Array + /** + * + * @type {CisConfigurationWebhookSetting} + * @memberof UpdateIssuanceConfigInput + */ + webhook?: CisConfigurationWebhookSetting } export const UpdateIssuanceConfigInputFormatEnum = { @@ -3082,6 +3190,171 @@ export const CredentialsApiAxiosParamCreator = function ( configuration, ) + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + } + }, + /** + * Get claimed credential in the specified range + * @summary Get claimed credential in the specified range + * @param {string} projectId project id + * @param {string} configurationId configuration id + * @param {string} rangeStartTime + * @param {string} [rangeEndTime] + * @param {string} [next] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getClaimedCredentials: async ( + projectId: string, + configurationId: string, + rangeStartTime: string, + rangeEndTime?: string, + next?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'projectId' is not null or undefined + assertParamExists('getClaimedCredentials', 'projectId', projectId) + // verify required parameter 'configurationId' is not null or undefined + assertParamExists( + 'getClaimedCredentials', + 'configurationId', + configurationId, + ) + // verify required parameter 'rangeStartTime' is not null or undefined + assertParamExists( + 'getClaimedCredentials', + 'rangeStartTime', + rangeStartTime, + ) + const localVarPath = + `/v1/{projectId}/configurations/{configurationId}/credentials` + .replace(`{${'projectId'}}`, encodeURIComponent(String(projectId))) + .replace( + `{${'configurationId'}}`, + encodeURIComponent(String(configurationId)), + ) + // 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: 'GET', + ...baseOptions, + ...options, + } + const localVarHeaderParameter = {} as any + const localVarQueryParameter = {} as any + + // authentication ProjectTokenAuth required + await setApiKeyToObject( + localVarHeaderParameter, + 'authorization', + configuration, + ) + + if (rangeStartTime !== undefined) { + localVarQueryParameter['rangeStartTime'] = rangeStartTime + } + + if (rangeEndTime !== undefined) { + localVarQueryParameter['rangeEndTime'] = rangeEndTime + } + + if (next !== undefined) { + localVarQueryParameter['next'] = next + } + + setSearchParams(localVarUrlObj, localVarQueryParameter) + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {} + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + } + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + } + }, + /** + * Get claimed VC linked to the issuanceId + * @summary Get claimed VC linked to the issuanceId + * @param {string} projectId project id + * @param {string} configurationId configuration id + * @param {string} issuanceId issuance id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIssuanceIdClaimedCredential: async ( + projectId: string, + configurationId: string, + issuanceId: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'projectId' is not null or undefined + assertParamExists( + 'getIssuanceIdClaimedCredential', + 'projectId', + projectId, + ) + // verify required parameter 'configurationId' is not null or undefined + assertParamExists( + 'getIssuanceIdClaimedCredential', + 'configurationId', + configurationId, + ) + // verify required parameter 'issuanceId' is not null or undefined + assertParamExists( + 'getIssuanceIdClaimedCredential', + 'issuanceId', + issuanceId, + ) + const localVarPath = + `/v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials` + .replace(`{${'projectId'}}`, encodeURIComponent(String(projectId))) + .replace( + `{${'configurationId'}}`, + encodeURIComponent(String(configurationId)), + ) + .replace(`{${'issuanceId'}}`, encodeURIComponent(String(issuanceId))) + // 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: 'GET', + ...baseOptions, + ...options, + } + const localVarHeaderParameter = {} as any + const localVarQueryParameter = {} as any + + // authentication ProjectTokenAuth required + await setApiKeyToObject( + localVarHeaderParameter, + 'authorization', + configuration, + ) + + setSearchParams(localVarUrlObj, localVarQueryParameter) + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {} + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + } + return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, @@ -3134,6 +3407,92 @@ export const CredentialsApiFp = function (configuration?: Configuration) { configuration, )(axios, localVarOperationServerBasePath || basePath) }, + /** + * Get claimed credential in the specified range + * @summary Get claimed credential in the specified range + * @param {string} projectId project id + * @param {string} configurationId configuration id + * @param {string} rangeStartTime + * @param {string} [rangeEndTime] + * @param {string} [next] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getClaimedCredentials( + projectId: string, + configurationId: string, + rangeStartTime: string, + rangeEndTime?: string, + next?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getClaimedCredentials( + projectId, + configurationId, + rangeStartTime, + rangeEndTime, + next, + options, + ) + const localVarOperationServerIndex = configuration?.serverIndex ?? 0 + const localVarOperationServerBasePath = + operationServerMap['CredentialsApi.getClaimedCredentials']?.[ + localVarOperationServerIndex + ]?.url + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath) + }, + /** + * Get claimed VC linked to the issuanceId + * @summary Get claimed VC linked to the issuanceId + * @param {string} projectId project id + * @param {string} configurationId configuration id + * @param {string} issuanceId issuance id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getIssuanceIdClaimedCredential( + projectId: string, + configurationId: string, + issuanceId: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getIssuanceIdClaimedCredential( + projectId, + configurationId, + issuanceId, + options, + ) + const localVarOperationServerIndex = configuration?.serverIndex ?? 0 + const localVarOperationServerBasePath = + operationServerMap['CredentialsApi.getIssuanceIdClaimedCredential']?.[ + localVarOperationServerIndex + ]?.url + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath) + }, } } @@ -3164,6 +3523,60 @@ export const CredentialsApiFactory = function ( .generateCredentials(projectId, createCredentialInput, options) .then((request) => request(axios, basePath)) }, + /** + * Get claimed credential in the specified range + * @summary Get claimed credential in the specified range + * @param {string} projectId project id + * @param {string} configurationId configuration id + * @param {string} rangeStartTime + * @param {string} [rangeEndTime] + * @param {string} [next] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getClaimedCredentials( + projectId: string, + configurationId: string, + rangeStartTime: string, + rangeEndTime?: string, + next?: string, + options?: RawAxiosRequestConfig, + ): AxiosPromise { + return localVarFp + .getClaimedCredentials( + projectId, + configurationId, + rangeStartTime, + rangeEndTime, + next, + options, + ) + .then((request) => request(axios, basePath)) + }, + /** + * Get claimed VC linked to the issuanceId + * @summary Get claimed VC linked to the issuanceId + * @param {string} projectId project id + * @param {string} configurationId configuration id + * @param {string} issuanceId issuance id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getIssuanceIdClaimedCredential( + projectId: string, + configurationId: string, + issuanceId: string, + options?: RawAxiosRequestConfig, + ): AxiosPromise { + return localVarFp + .getIssuanceIdClaimedCredential( + projectId, + configurationId, + issuanceId, + options, + ) + .then((request) => request(axios, basePath)) + }, } } @@ -3191,6 +3604,64 @@ export class CredentialsApi extends BaseAPI { .generateCredentials(projectId, createCredentialInput, options) .then((request) => request(this.axios, this.basePath)) } + + /** + * Get claimed credential in the specified range + * @summary Get claimed credential in the specified range + * @param {string} projectId project id + * @param {string} configurationId configuration id + * @param {string} rangeStartTime + * @param {string} [rangeEndTime] + * @param {string} [next] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CredentialsApi + */ + public getClaimedCredentials( + projectId: string, + configurationId: string, + rangeStartTime: string, + rangeEndTime?: string, + next?: string, + options?: RawAxiosRequestConfig, + ) { + return CredentialsApiFp(this.configuration) + .getClaimedCredentials( + projectId, + configurationId, + rangeStartTime, + rangeEndTime, + next, + options, + ) + .then((request) => request(this.axios, this.basePath)) + } + + /** + * Get claimed VC linked to the issuanceId + * @summary Get claimed VC linked to the issuanceId + * @param {string} projectId project id + * @param {string} configurationId configuration id + * @param {string} issuanceId issuance id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CredentialsApi + */ + public getIssuanceIdClaimedCredential( + projectId: string, + configurationId: string, + issuanceId: string, + options?: RawAxiosRequestConfig, + ) { + return CredentialsApiFp(this.configuration) + .getIssuanceIdClaimedCredential( + projectId, + configurationId, + issuanceId, + options, + ) + .then((request) => request(this.axios, this.basePath)) + } } /** diff --git a/clients/typescript/credential-issuance-client/docs/.openapi-generator/FILES b/clients/typescript/credential-issuance-client/docs/.openapi-generator/FILES index 06a5bc52b..eee6632ea 100644 --- a/clients/typescript/credential-issuance-client/docs/.openapi-generator/FILES +++ b/clients/typescript/credential-issuance-client/docs/.openapi-generator/FILES @@ -9,8 +9,14 @@ Models/ActionForbiddenError.md Models/ActionForbiddenError_details_inner.md Models/ChangeCredentialStatusInput.md Models/ChangeStatusForbiddenError.md +Models/CisConfigurationWebhookSetting.md +Models/CisConfigurationWebhookSetting_endpoint.md +Models/ClaimedCredentialListResponse.md +Models/ClaimedCredentialResponse.md Models/CorsGenerateCredentialsOK.md +Models/CorsGetClaimedCredentialsOK.md Models/CorsGetCredentialOfferOK.md +Models/CorsGetIssuanceIdClaimedCredentialOK.md Models/CorsGetWellKnownOpenIdCredentialIssuerOK.md Models/CreateCredentialInput.md Models/CreateIssuanceConfigInput.md diff --git a/clients/typescript/credential-issuance-client/docs/Apis/CredentialsApi.md b/clients/typescript/credential-issuance-client/docs/Apis/CredentialsApi.md index 497177b0f..53adecc5c 100644 --- a/clients/typescript/credential-issuance-client/docs/Apis/CredentialsApi.md +++ b/clients/typescript/credential-issuance-client/docs/Apis/CredentialsApi.md @@ -2,9 +2,11 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* -| Method | HTTP request | Description | -| ---------------------------------------------------------------- | ----------------------------------- | ----------- | -| [**generateCredentials**](CredentialsApi.md#generateCredentials) | **POST** /v1/{projectId}/credential | | +| Method | HTTP request | Description | +| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------- | +| [**generateCredentials**](CredentialsApi.md#generateCredentials) | **POST** /v1/{projectId}/credential | | +| [**getClaimedCredentials**](CredentialsApi.md#getClaimedCredentials) | **GET** /v1/{projectId}/configurations/{configurationId}/credentials | Get claimed credential in the specified range | +| [**getIssuanceIdClaimedCredential**](CredentialsApi.md#getIssuanceIdClaimedCredential) | **GET** /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials | Get claimed VC linked to the issuanceId | @@ -33,3 +35,67 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - **Content-Type**: application/json - **Accept**: application/json + + + +# **getClaimedCredentials** + +> ClaimedCredentialListResponse getClaimedCredentials(projectId, configurationId, rangeStartTime, rangeEndTime, next) + +Get claimed credential in the specified range + + Get claimed credential in the specified range + +### Parameters + +| Name | Type | Description | Notes | +| ------------------- | ---------- | ---------------- | ---------------------------- | +| **projectId** | **String** | project id | [default to null] | +| **configurationId** | **String** | configuration id | [default to null] | +| **rangeStartTime** | **String** | | [default to null] | +| **rangeEndTime** | **String** | | [optional] [default to null] | +| **next** | **String** | | [optional] [default to null] | + +### Return type + +[**ClaimedCredentialListResponse**](../Models/ClaimedCredentialListResponse.md) + +### Authorization + +[ProjectTokenAuth](../README.md#ProjectTokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + + +# **getIssuanceIdClaimedCredential** + +> ClaimedCredentialResponse getIssuanceIdClaimedCredential(projectId, configurationId, issuanceId) + +Get claimed VC linked to the issuanceId + + Get claimed VC linked to the issuanceId + +### Parameters + +| Name | Type | Description | Notes | +| ------------------- | ---------- | ---------------- | ----------------- | +| **projectId** | **String** | project id | [default to null] | +| **configurationId** | **String** | configuration id | [default to null] | +| **issuanceId** | **String** | issuance id | [default to null] | + +### Return type + +[**ClaimedCredentialResponse**](../Models/ClaimedCredentialResponse.md) + +### Authorization + +[ProjectTokenAuth](../README.md#ProjectTokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json diff --git a/clients/typescript/credential-issuance-client/docs/Models/CisConfigurationWebhookSetting.md b/clients/typescript/credential-issuance-client/docs/Models/CisConfigurationWebhookSetting.md new file mode 100644 index 000000000..105e6cd03 --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/CisConfigurationWebhookSetting.md @@ -0,0 +1,10 @@ +# CisConfigurationWebhookSetting + +## Properties + +| Name | Type | Description | Notes | +| ------------ | ----------------------------------------------------------------------------------------- | --------------------------------------- | ---------------------------- | +| **enabled** | **Boolean** | flag to enabled or disabled the webhook | [default to false] | +| **endpoint** | [**CisConfigurationWebhookSetting_endpoint**](CisConfigurationWebhookSetting_endpoint.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/credential-issuance-client/docs/Models/CisConfigurationWebhookSetting_endpoint.md b/clients/typescript/credential-issuance-client/docs/Models/CisConfigurationWebhookSetting_endpoint.md new file mode 100644 index 000000000..a5589aba2 --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/CisConfigurationWebhookSetting_endpoint.md @@ -0,0 +1,9 @@ +# CisConfigurationWebhookSetting_endpoint + +## Properties + +| Name | Type | Description | Notes | +| ------- | ---------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------- | +| **url** | **String** | url endpoint where notification will be sent with issuanceId after user has claimed the VC related to issuanceId | [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/credential-issuance-client/docs/Models/ClaimedCredentialListResponse.md b/clients/typescript/credential-issuance-client/docs/Models/ClaimedCredentialListResponse.md new file mode 100644 index 000000000..6d26ea2c4 --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/ClaimedCredentialListResponse.md @@ -0,0 +1,10 @@ +# ClaimedCredentialListResponse + +## Properties + +| Name | Type | Description | Notes | +| --------------- | ------------------ | ------------------------------------------- | ---------------------------- | +| **credentials** | [**List**](map.md) | list of credentials | [optional] [default to null] | +| **next** | **String** | for pagination to fetch next set of records | [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/credential-issuance-client/docs/Models/ClaimedCredentialResponse.md b/clients/typescript/credential-issuance-client/docs/Models/ClaimedCredentialResponse.md new file mode 100644 index 000000000..222674602 --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/ClaimedCredentialResponse.md @@ -0,0 +1,9 @@ +# ClaimedCredentialResponse + +## Properties + +| Name | Type | Description | Notes | +| -------------- | --------------------- | ------------------ | ---------------------------- | +| **credential** | [**Map**](AnyType.md) | claimed credential | [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/credential-issuance-client/docs/Models/CorsGetClaimedCredentialsOK.md b/clients/typescript/credential-issuance-client/docs/Models/CorsGetClaimedCredentialsOK.md new file mode 100644 index 000000000..b50c27285 --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/CorsGetClaimedCredentialsOK.md @@ -0,0 +1,9 @@ +# CorsGetClaimedCredentialsOK + +## Properties + +| Name | Type | Description | Notes | +| ------------------------------- | ---------- | ----------- | ---------------------------- | +| **corsGetClaimedCredentialsOk** | **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/credential-issuance-client/docs/Models/CorsGetIssuanceIdClaimedCredentialOK.md b/clients/typescript/credential-issuance-client/docs/Models/CorsGetIssuanceIdClaimedCredentialOK.md new file mode 100644 index 000000000..9d2c408d6 --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/CorsGetIssuanceIdClaimedCredentialOK.md @@ -0,0 +1,9 @@ +# CorsGetIssuanceIdClaimedCredentialOK + +## Properties + +| Name | Type | Description | Notes | +| ---------------------------------------- | ---------- | ----------- | ---------------------------- | +| **corsGetIssuanceIdClaimedCredentialOk** | **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/credential-issuance-client/docs/Models/CreateIssuanceConfigInput.md b/clients/typescript/credential-issuance-client/docs/Models/CreateIssuanceConfigInput.md index 6393f4946..382db1710 100644 --- a/clients/typescript/credential-issuance-client/docs/Models/CreateIssuanceConfigInput.md +++ b/clients/typescript/credential-issuance-client/docs/Models/CreateIssuanceConfigInput.md @@ -2,15 +2,16 @@ ## Properties -| Name | Type | Description | Notes | -| --------------------------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | -| **name** | **String** | | [optional] [default to null] | -| **description** | **String** | | [optional] [default to null] | -| **issuerWalletId** | **String** | Issuer Wallet id | [default to null] | -| **credentialOfferDuration** | **BigDecimal** | credential offer duration in second | [optional] [default to null] | -| **format** | **String** | String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] [default to null] | -| **credentialSupported** | [**List**](CredentialSupportedObject.md) | | [default to null] | -| **issuerMetadata** | [**Map**](AnyType.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to null] | -| **returnUris** | **List** | List of allowed URIs to be returned to after issuance | [optional] [default to null] | +| Name | Type | Description | Notes | +| --------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | +| **name** | **String** | | [optional] [default to null] | +| **description** | **String** | | [optional] [default to null] | +| **issuerWalletId** | **String** | Issuer Wallet id | [default to null] | +| **credentialOfferDuration** | **BigDecimal** | credential offer duration in second | [optional] [default to null] | +| **format** | **String** | String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] [default to null] | +| **credentialSupported** | [**List**](CredentialSupportedObject.md) | | [default to null] | +| **issuerMetadata** | [**Map**](AnyType.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to null] | +| **returnUris** | **List** | List of allowed URIs to be returned to after issuance | [optional] [default to null] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.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/credential-issuance-client/docs/Models/IssuanceConfigDto.md b/clients/typescript/credential-issuance-client/docs/Models/IssuanceConfigDto.md index 096d6be03..f9c749492 100644 --- a/clients/typescript/credential-issuance-client/docs/Models/IssuanceConfigDto.md +++ b/clients/typescript/credential-issuance-client/docs/Models/IssuanceConfigDto.md @@ -2,20 +2,21 @@ ## Properties -| Name | Type | Description | Notes | -| --------------------------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | -| **id** | **String** | | [optional] [default to null] | -| **name** | **String** | | [optional] [default to null] | -| **description** | **String** | | [optional] [default to null] | -| **issuerDid** | **String** | Issuer DID | [optional] [default to null] | -| **issuerWalletId** | **String** | Issuer Wallet id | [optional] [default to null] | -| **credentialOfferDuration** | **BigDecimal** | credential offer duration in second | [optional] [default to null] | -| **cNonceDuration** | **BigDecimal** | c_nonce duration in second | [optional] [default to null] | -| **format** | **String** | String identifying the format of this Credential, i.e., jwt_vc_json-ld or ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] [default to null] | -| **issuerUri** | **String** | Issuer URI | [optional] [default to null] | -| **credentialSupported** | [**List**](CredentialSupportedObject.md) | | [optional] [default to null] | -| **issuerMetadata** | [**Map**](AnyType.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to null] | -| **version** | **BigDecimal** | | [optional] [default to null] | -| **returnUris** | **List** | List of allowed URIs to be returned to after issuance | [optional] [default to null] | +| Name | Type | Description | Notes | +| --------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | +| **id** | **String** | | [optional] [default to null] | +| **name** | **String** | | [optional] [default to null] | +| **description** | **String** | | [optional] [default to null] | +| **issuerDid** | **String** | Issuer DID | [optional] [default to null] | +| **issuerWalletId** | **String** | Issuer Wallet id | [optional] [default to null] | +| **credentialOfferDuration** | **BigDecimal** | credential offer duration in second | [optional] [default to null] | +| **cNonceDuration** | **BigDecimal** | c_nonce duration in second | [optional] [default to null] | +| **format** | **String** | String identifying the format of this Credential, i.e., jwt_vc_json-ld or ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] [default to null] | +| **issuerUri** | **String** | Issuer URI | [optional] [default to null] | +| **credentialSupported** | [**List**](CredentialSupportedObject.md) | | [optional] [default to null] | +| **issuerMetadata** | [**Map**](AnyType.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to null] | +| **version** | **BigDecimal** | | [optional] [default to null] | +| **returnUris** | **List** | List of allowed URIs to be returned to after issuance | [optional] [default to null] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.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/credential-issuance-client/docs/Models/UpdateIssuanceConfigInput.md b/clients/typescript/credential-issuance-client/docs/Models/UpdateIssuanceConfigInput.md index 280020b10..6e1fd6bf3 100644 --- a/clients/typescript/credential-issuance-client/docs/Models/UpdateIssuanceConfigInput.md +++ b/clients/typescript/credential-issuance-client/docs/Models/UpdateIssuanceConfigInput.md @@ -2,16 +2,17 @@ ## Properties -| Name | Type | Description | Notes | -| --------------------------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | -| **name** | **String** | | [optional] [default to null] | -| **description** | **String** | | [optional] [default to null] | -| **issuerWalletId** | **String** | Issuer Wallet id | [optional] [default to null] | -| **credentialOfferDuration** | **BigDecimal** | credential offer duration in second | [optional] [default to null] | -| **format** | **String** | String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] [default to null] | -| **issuerUri** | **String** | Issuer URI | [optional] [default to null] | -| **credentialSupported** | [**List**](CredentialSupportedObject.md) | | [optional] [default to null] | -| **issuerMetadata** | [**Map**](AnyType.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to null] | -| **returnUris** | **List** | List of allowed URIs to be returned to after issuance | [optional] [default to null] | +| Name | Type | Description | Notes | +| --------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | +| **name** | **String** | | [optional] [default to null] | +| **description** | **String** | | [optional] [default to null] | +| **issuerWalletId** | **String** | Issuer Wallet id | [optional] [default to null] | +| **credentialOfferDuration** | **BigDecimal** | credential offer duration in second | [optional] [default to null] | +| **format** | **String** | String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type | [optional] [default to null] | +| **issuerUri** | **String** | Issuer URI | [optional] [default to null] | +| **credentialSupported** | [**List**](CredentialSupportedObject.md) | | [optional] [default to null] | +| **issuerMetadata** | [**Map**](AnyType.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to null] | +| **returnUris** | **List** | List of allowed URIs to be returned to after issuance | [optional] [default to null] | +| **webhook** | [**CisConfigurationWebhookSetting**](CisConfigurationWebhookSetting.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/credential-issuance-client/docs/README.md b/clients/typescript/credential-issuance-client/docs/README.md index 350a9c019..da772e8c4 100644 --- a/clients/typescript/credential-issuance-client/docs/README.md +++ b/clients/typescript/credential-issuance-client/docs/README.md @@ -6,21 +6,23 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* -| Class | Method | HTTP request | Description | -| ------------------ | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| _ConfigurationApi_ | [**createIssuanceConfig**](Apis/ConfigurationApi.md#createissuanceconfig) | **POST** /v1/configurations | Create issuance configuration, project have only one configuration | -| _ConfigurationApi_ | [**deleteIssuanceConfigById**](Apis/ConfigurationApi.md#deleteissuanceconfigbyid) | **DELETE** /v1/configurations/{configurationId} | Delete project issuance configuration | -| _ConfigurationApi_ | [**getIssuanceConfigById**](Apis/ConfigurationApi.md#getissuanceconfigbyid) | **GET** /v1/configurations/{configurationId} | Get issuance configuration by id | -| _ConfigurationApi_ | [**getIssuanceConfigList**](Apis/ConfigurationApi.md#getissuanceconfiglist) | **GET** /v1/configurations | Get issuance configuration for my selected project | -| _ConfigurationApi_ | [**updateIssuanceConfigById**](Apis/ConfigurationApi.md#updateissuanceconfigbyid) | **PUT** /v1/configurations/{configurationId} | Update issuance configuration | -| _CredentialsApi_ | [**generateCredentials**](Apis/CredentialsApi.md#generatecredentials) | **POST** /v1/{projectId}/credential | Issue credential for end user upon presentation a valid access token. Since we don't immediate issue credential It's expected to return `transaction_id` and use this `transaction_id` to get the deferred credentials | -| _DefaultApi_ | [**changeCredentialStatus**](Apis/DefaultApi.md#changecredentialstatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. | -| _DefaultApi_ | [**listIssuanceDataRecords**](Apis/DefaultApi.md#listissuancedatarecords) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records | -| _IssuanceApi_ | [**issuanceState**](Apis/IssuanceApi.md#issuancestate) | **GET** /v1/{projectId}/issuance/state/{issuanceId} | Get issuance status | -| _IssuanceApi_ | [**listIssuance**](Apis/IssuanceApi.md#listissuance) | **GET** /v1/{projectId}/issuance | List all issuances for Project | -| _IssuanceApi_ | [**startIssuance**](Apis/IssuanceApi.md#startissuance) | **POST** /v1/{projectId}/issuance/start | Endpoint used b websites to start the issuance process | -| _OfferApi_ | [**getCredentialOffer**](Apis/OfferApi.md#getcredentialoffer) | **GET** /v1/{projectId}/offers/{issuanceId} | Endpoint used to return Credential Offer details, used with `credential_offer_uri` response | -| _WellKnownApi_ | [**getWellKnownOpenIdCredentialIssuer**](Apis/WellKnownApi.md#getwellknownopenidcredentialissuer) | **GET** /v1/{projectId}/.well-known/openid-credential-issuer | | +| Class | Method | HTTP request | Description | +| ------------------ | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| _ConfigurationApi_ | [**createIssuanceConfig**](Apis/ConfigurationApi.md#createissuanceconfig) | **POST** /v1/configurations | Create issuance configuration, project have only one configuration | +| _ConfigurationApi_ | [**deleteIssuanceConfigById**](Apis/ConfigurationApi.md#deleteissuanceconfigbyid) | **DELETE** /v1/configurations/{configurationId} | Delete project issuance configuration | +| _ConfigurationApi_ | [**getIssuanceConfigById**](Apis/ConfigurationApi.md#getissuanceconfigbyid) | **GET** /v1/configurations/{configurationId} | Get issuance configuration by id | +| _ConfigurationApi_ | [**getIssuanceConfigList**](Apis/ConfigurationApi.md#getissuanceconfiglist) | **GET** /v1/configurations | Get issuance configuration for my selected project | +| _ConfigurationApi_ | [**updateIssuanceConfigById**](Apis/ConfigurationApi.md#updateissuanceconfigbyid) | **PUT** /v1/configurations/{configurationId} | Update issuance configuration | +| _CredentialsApi_ | [**generateCredentials**](Apis/CredentialsApi.md#generatecredentials) | **POST** /v1/{projectId}/credential | Issue credential for end user upon presentation a valid access token. Since we don't immediate issue credential It's expected to return `transaction_id` and use this `transaction_id` to get the deferred credentials | +| _CredentialsApi_ | [**getClaimedCredentials**](Apis/CredentialsApi.md#getclaimedcredentials) | **GET** /v1/{projectId}/configurations/{configurationId}/credentials | Get claimed credential in the specified range | +| _CredentialsApi_ | [**getIssuanceIdClaimedCredential**](Apis/CredentialsApi.md#getissuanceidclaimedcredential) | **GET** /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials | Get claimed VC linked to the issuanceId | +| _DefaultApi_ | [**changeCredentialStatus**](Apis/DefaultApi.md#changecredentialstatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status. | +| _DefaultApi_ | [**listIssuanceDataRecords**](Apis/DefaultApi.md#listissuancedatarecords) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records | +| _IssuanceApi_ | [**issuanceState**](Apis/IssuanceApi.md#issuancestate) | **GET** /v1/{projectId}/issuance/state/{issuanceId} | Get issuance status | +| _IssuanceApi_ | [**listIssuance**](Apis/IssuanceApi.md#listissuance) | **GET** /v1/{projectId}/issuance | List all issuances for Project | +| _IssuanceApi_ | [**startIssuance**](Apis/IssuanceApi.md#startissuance) | **POST** /v1/{projectId}/issuance/start | Endpoint used b websites to start the issuance process | +| _OfferApi_ | [**getCredentialOffer**](Apis/OfferApi.md#getcredentialoffer) | **GET** /v1/{projectId}/offers/{issuanceId} | Endpoint used to return Credential Offer details, used with `credential_offer_uri` response | +| _WellKnownApi_ | [**getWellKnownOpenIdCredentialIssuer**](Apis/WellKnownApi.md#getwellknownopenidcredentialissuer) | **GET** /v1/{projectId}/.well-known/openid-credential-issuer | | @@ -30,8 +32,14 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [ActionForbiddenError_details_inner](./Models/ActionForbiddenError_details_inner.md) - [ChangeCredentialStatusInput](./Models/ChangeCredentialStatusInput.md) - [ChangeStatusForbiddenError](./Models/ChangeStatusForbiddenError.md) +- [CisConfigurationWebhookSetting](./Models/CisConfigurationWebhookSetting.md) +- [CisConfigurationWebhookSetting_endpoint](./Models/CisConfigurationWebhookSetting_endpoint.md) +- [ClaimedCredentialListResponse](./Models/ClaimedCredentialListResponse.md) +- [ClaimedCredentialResponse](./Models/ClaimedCredentialResponse.md) - [CorsGenerateCredentialsOK](./Models/CorsGenerateCredentialsOK.md) +- [CorsGetClaimedCredentialsOK](./Models/CorsGetClaimedCredentialsOK.md) - [CorsGetCredentialOfferOK](./Models/CorsGetCredentialOfferOK.md) +- [CorsGetIssuanceIdClaimedCredentialOK](./Models/CorsGetIssuanceIdClaimedCredentialOK.md) - [CorsGetWellKnownOpenIdCredentialIssuerOK](./Models/CorsGetWellKnownOpenIdCredentialIssuerOK.md) - [CreateCredentialInput](./Models/CreateCredentialInput.md) - [CreateIssuanceConfigInput](./Models/CreateIssuanceConfigInput.md) diff --git a/clients/typescript/vault-data-manager-client/api.ts b/clients/typescript/vault-data-manager-client/api.ts index 4293da19a..29bf30930 100644 --- a/clients/typescript/vault-data-manager-client/api.ts +++ b/clients/typescript/vault-data-manager-client/api.ts @@ -107,25 +107,25 @@ export interface ConsumerMetadataDto { */ consumerId: string /** - * [GEN] ISO 8601 string of the creation date/time the entity + * creation date/time * @type {string} * @memberof ConsumerMetadataDto */ createdAt: string /** - * [GEN] ISO 8601 string of the modification date/time the entity + * modification date/time * @type {string} * @memberof ConsumerMetadataDto */ modifiedAt: string /** - * [GEN] Identifier of the user who created the entity + * Identifier of the user who created * @type {string} * @memberof ConsumerMetadataDto */ createdBy: string /** - * [GEN] Identifier of the user who last updated the entity + * Identifier of the user who last updated * @type {string} * @memberof ConsumerMetadataDto */ @@ -135,7 +135,7 @@ export interface ConsumerMetadataDto { * @type {string} * @memberof ConsumerMetadataDto */ - description: string + description?: string /** * * @type {NodeType} @@ -559,7 +559,7 @@ export interface GetDetailedNodeInfoOK { * @type {string} * @memberof GetDetailedNodeInfoOK */ - description: string + description?: string /** * * @type {NodeType} @@ -1055,7 +1055,7 @@ export interface NodeDto { * @type {string} * @memberof NodeDto */ - description: string + description?: string /** * * @type {NodeType} diff --git a/clients/typescript/vault-data-manager-client/docs/Models/ConsumerMetadataDto.md b/clients/typescript/vault-data-manager-client/docs/Models/ConsumerMetadataDto.md index 6a3d39f38..081004d4b 100644 --- a/clients/typescript/vault-data-manager-client/docs/Models/ConsumerMetadataDto.md +++ b/clients/typescript/vault-data-manager-client/docs/Models/ConsumerMetadataDto.md @@ -2,21 +2,21 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------------- | ------------------------------- | -------------------------------------------------------------- | ---------------------------- | -| **nodeId** | **String** | | [default to null] | -| **status** | [**NodeStatus**](NodeStatus.md) | | [default to null] | -| **fileCount** | **BigDecimal** | | [optional] [default to null] | -| **folderCount** | **BigDecimal** | | [optional] [default to null] | -| **profileCount** | **BigDecimal** | | [optional] [default to null] | -| **name** | **String** | | [default to null] | -| **consumerId** | **String** | | [default to null] | -| **createdAt** | **String** | [GEN] ISO 8601 string of the creation date/time the entity | [default to null] | -| **modifiedAt** | **String** | [GEN] ISO 8601 string of the modification date/time the entity | [default to null] | -| **createdBy** | **String** | [GEN] Identifier of the user who created the entity | [default to null] | -| **modifiedBy** | **String** | [GEN] Identifier of the user who last updated the entity | [default to null] | -| **description** | **String** | Description of the node | [default to null] | -| **type** | [**NodeType**](NodeType.md) | | [default to null] | -| **consumedFileStorage** | **BigDecimal** | Tracks the amount of bytes used by the stored data. | [default to null] | +| Name | Type | Description | Notes | +| ----------------------- | ------------------------------- | --------------------------------------------------- | ---------------------------- | +| **nodeId** | **String** | | [default to null] | +| **status** | [**NodeStatus**](NodeStatus.md) | | [default to null] | +| **fileCount** | **BigDecimal** | | [optional] [default to null] | +| **folderCount** | **BigDecimal** | | [optional] [default to null] | +| **profileCount** | **BigDecimal** | | [optional] [default to null] | +| **name** | **String** | | [default to null] | +| **consumerId** | **String** | | [default to null] | +| **createdAt** | **String** | creation date/time | [default to null] | +| **modifiedAt** | **String** | modification date/time | [default to null] | +| **createdBy** | **String** | Identifier of the user who created | [default to null] | +| **modifiedBy** | **String** | Identifier of the user who last updated | [default to null] | +| **description** | **String** | Description of the node | [optional] [default to null] | +| **type** | [**NodeType**](NodeType.md) | | [default to null] | +| **consumedFileStorage** | **BigDecimal** | Tracks the amount of bytes used by the stored data. | [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/vault-data-manager-client/docs/Models/GetDetailedNodeInfoOK.md b/clients/typescript/vault-data-manager-client/docs/Models/GetDetailedNodeInfoOK.md index ff3079098..32ed9c6e0 100644 --- a/clients/typescript/vault-data-manager-client/docs/Models/GetDetailedNodeInfoOK.md +++ b/clients/typescript/vault-data-manager-client/docs/Models/GetDetailedNodeInfoOK.md @@ -18,7 +18,7 @@ | **modifiedAt** | **String** | modification date/time of the node | [default to null] | | **createdBy** | **String** | Identifier of the user who created the node | [default to null] | | **modifiedBy** | **String** | Identifier of the user who last updated the node | [default to null] | -| **description** | **String** | Description of the node | [default to null] | +| **description** | **String** | Description of the node | [optional] [default to null] | | **type** | [**NodeType**](NodeType.md) | | [default to null] | | **link** | **String** | id of the file, used for FILE node only | [optional] [default to null] | | **schema** | **String** | name of the schema, used for PROFILE node only | [optional] [default to null] | diff --git a/clients/typescript/vault-data-manager-client/docs/Models/NodeDto.md b/clients/typescript/vault-data-manager-client/docs/Models/NodeDto.md index bf1836a28..55718e50b 100644 --- a/clients/typescript/vault-data-manager-client/docs/Models/NodeDto.md +++ b/clients/typescript/vault-data-manager-client/docs/Models/NodeDto.md @@ -18,7 +18,7 @@ | **modifiedAt** | **String** | modification date/time of the node | [default to null] | | **createdBy** | **String** | Identifier of the user who created the node | [default to null] | | **modifiedBy** | **String** | Identifier of the user who last updated the node | [default to null] | -| **description** | **String** | Description of the node | [default to null] | +| **description** | **String** | Description of the node | [optional] [default to null] | | **type** | [**NodeType**](NodeType.md) | | [default to null] | | **link** | **String** | id of the file, used for FILE node only | [optional] [default to null] | | **schema** | **String** | name of the schema, used for PROFILE node only | [optional] [default to null] |