From 669bca70e2206773c4470880cf4d7741c52d2b56 Mon Sep 17 00:00:00 2001 From: Marat Shakirov Date: Sun, 18 Aug 2024 22:24:30 +0000 Subject: [PATCH] feat: update client all --- .../.openapi-generator/FILES | 19 +- .../dart/credential_issuance_client/README.md | 7 +- .../doc/CreateIssuanceConfigInput.md | 18 +- .../doc/CredentialSupportedObject.md | 18 ++ .../doc/IssuanceConfigDto.md | 28 +-- .../doc/SupportedCredentialMetadata.md | 15 ++ ...SupportedCredentialMetadataDisplayInner.md | 19 ++ ...ortedCredentialMetadataDisplayInnerLogo.md | 16 ++ .../doc/UpdateIssuanceConfigInput.md | 20 +- ...WellKnownOpenIdCredentialIssuerResponse.md | 24 +-- ...IssuerResponseCredentialsSupportedInner.md | 17 ++ .../credential_issuance_client/lib/api.dart | 7 +- .../lib/api_client.dart | 14 +- .../model/create_issuance_config_input.dart | 4 +- .../model/credential_supported_object.dart | 145 +++++++++++++ .../lib/model/issuance_config_dto.dart | 4 +- .../model/supported_credential_metadata.dart | 108 ++++++++++ ...ted_credential_metadata_display_inner.dart | 177 ++++++++++++++++ ...redential_metadata_display_inner_logo.dart | 126 +++++++++++ .../model/update_issuance_config_input.dart | 4 +- ...wn_open_id_credential_issuer_response.dart | 4 +- ..._response_credentials_supported_inner.dart | 128 +++++++++++ .../credential_supported_object_test.dart | 45 ++++ ...tial_metadata_display_inner_logo_test.dart | 32 +++ ...redential_metadata_display_inner_test.dart | 47 +++++ .../supported_credential_metadata_test.dart | 27 +++ ...onse_credentials_supported_inner_test.dart | 40 ++++ .../dart/iota_client/.openapi-generator/FILES | 4 - .../.openapi-generator/FILES | 19 +- .../credential_issuance_client/README.md | 7 +- .../__init__.py | 7 +- .../models/__init__.py | 7 +- .../models/create_issuance_config_input.py | 6 +- .../models/credential_supported_object.py | 96 +++++++++ .../models/issuance_config_dto.py | 6 +- .../models/supported_credential_metadata.py | 92 ++++++++ ...orted_credential_metadata_display_inner.py | 96 +++++++++ ..._credential_metadata_display_inner_logo.py | 86 ++++++++ .../models/update_issuance_config_input.py | 6 +- ...nown_open_id_credential_issuer_response.py | 6 +- ...er_response_credentials_supported_inner.py | 76 +++++++ .../docs/CreateIssuanceConfigInput.md | 18 +- .../docs/CredentialSupportedObject.md | 30 +++ .../docs/IssuanceConfigDto.md | 28 +-- .../docs/SupportedCredentialMetadata.md | 27 +++ ...SupportedCredentialMetadataDisplayInner.md | 31 +++ ...ortedCredentialMetadataDisplayInnerLogo.md | 28 +++ .../docs/UpdateIssuanceConfigInput.md | 20 +- ...WellKnownOpenIdCredentialIssuerResponse.md | 24 +-- ...IssuerResponseCredentialsSupportedInner.md | 29 +++ .../test/test_credential_supported_object.py | 59 ++++++ .../test_supported_credential_metadata.py | 55 +++++ ...orted_credential_metadata_display_inner.py | 58 +++++ ..._credential_metadata_display_inner_logo.py | 55 +++++ ...er_response_credentials_supported_inner.py | 58 +++++ .../iota_client/.openapi-generator/FILES | 4 - .../credential-issuance-client/api.ts | 198 +++++++++++++----- .../docs/.openapi-generator/FILES | 7 +- .../docs/Models/CreateIssuanceConfigInput.md | 18 +- .../docs/Models/CredentialSupportedObject.md | 12 ++ .../docs/Models/IssuanceConfigDto.md | 28 +-- .../Models/SupportedCredentialMetadata.md | 9 + ...pportedCredentialMetadata_display_inner.md | 13 ++ ...edCredentialMetadata_display_inner_logo.md | 10 + .../docs/Models/UpdateIssuanceConfigInput.md | 20 +- ...WellKnownOpenIdCredentialIssuerResponse.md | 24 +-- ...uerResponse_credentials_supported_inner.md | 11 + .../credential-issuance-client/docs/README.md | 7 +- .../credential-issuance-client/package.json | 2 +- .../package.json | 2 +- clients/typescript/iam-client/package.json | 2 +- clients/typescript/iota-client/package.json | 2 +- .../login-configuration-client/package.json | 2 +- .../typescript/wallets-client/package.json | 2 +- package-lock.json | 8 +- 75 files changed, 2271 insertions(+), 257 deletions(-) create mode 100644 clients/dart/credential_issuance_client/doc/CredentialSupportedObject.md create mode 100644 clients/dart/credential_issuance_client/doc/SupportedCredentialMetadata.md create mode 100644 clients/dart/credential_issuance_client/doc/SupportedCredentialMetadataDisplayInner.md create mode 100644 clients/dart/credential_issuance_client/doc/SupportedCredentialMetadataDisplayInnerLogo.md create mode 100644 clients/dart/credential_issuance_client/doc/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md create mode 100644 clients/dart/credential_issuance_client/lib/model/credential_supported_object.dart create mode 100644 clients/dart/credential_issuance_client/lib/model/supported_credential_metadata.dart create mode 100644 clients/dart/credential_issuance_client/lib/model/supported_credential_metadata_display_inner.dart create mode 100644 clients/dart/credential_issuance_client/lib/model/supported_credential_metadata_display_inner_logo.dart create mode 100644 clients/dart/credential_issuance_client/lib/model/well_known_open_id_credential_issuer_response_credentials_supported_inner.dart create mode 100644 clients/dart/credential_issuance_client/test/credential_supported_object_test.dart create mode 100644 clients/dart/credential_issuance_client/test/supported_credential_metadata_display_inner_logo_test.dart create mode 100644 clients/dart/credential_issuance_client/test/supported_credential_metadata_display_inner_test.dart create mode 100644 clients/dart/credential_issuance_client/test/supported_credential_metadata_test.dart create mode 100644 clients/dart/credential_issuance_client/test/well_known_open_id_credential_issuer_response_credentials_supported_inner_test.dart create mode 100644 clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/credential_supported_object.py create mode 100644 clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata.py create mode 100644 clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata_display_inner.py create mode 100644 clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata_display_inner_logo.py create mode 100644 clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/well_known_open_id_credential_issuer_response_credentials_supported_inner.py create mode 100644 clients/python/credential_issuance_client/docs/CredentialSupportedObject.md create mode 100644 clients/python/credential_issuance_client/docs/SupportedCredentialMetadata.md create mode 100644 clients/python/credential_issuance_client/docs/SupportedCredentialMetadataDisplayInner.md create mode 100644 clients/python/credential_issuance_client/docs/SupportedCredentialMetadataDisplayInnerLogo.md create mode 100644 clients/python/credential_issuance_client/docs/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md create mode 100644 clients/python/credential_issuance_client/test/test_credential_supported_object.py create mode 100644 clients/python/credential_issuance_client/test/test_supported_credential_metadata.py create mode 100644 clients/python/credential_issuance_client/test/test_supported_credential_metadata_display_inner.py create mode 100644 clients/python/credential_issuance_client/test/test_supported_credential_metadata_display_inner_logo.py create mode 100644 clients/python/credential_issuance_client/test/test_well_known_open_id_credential_issuer_response_credentials_supported_inner.py create mode 100644 clients/typescript/credential-issuance-client/docs/Models/CredentialSupportedObject.md create mode 100644 clients/typescript/credential-issuance-client/docs/Models/SupportedCredentialMetadata.md create mode 100644 clients/typescript/credential-issuance-client/docs/Models/SupportedCredentialMetadata_display_inner.md create mode 100644 clients/typescript/credential-issuance-client/docs/Models/SupportedCredentialMetadata_display_inner_logo.md create mode 100644 clients/typescript/credential-issuance-client/docs/Models/WellKnownOpenIdCredentialIssuerResponse_credentials_supported_inner.md diff --git a/clients/dart/credential_issuance_client/.openapi-generator/FILES b/clients/dart/credential_issuance_client/.openapi-generator/FILES index 9929e1cf..6f225f06 100644 --- a/clients/dart/credential_issuance_client/.openapi-generator/FILES +++ b/clients/dart/credential_issuance_client/.openapi-generator/FILES @@ -11,7 +11,6 @@ doc/CorsGetWellKnownOpenIdCredentialIssuerOK.md doc/CreateCredentialInput.md doc/CreateIssuanceConfig400Response.md doc/CreateIssuanceConfigInput.md -doc/CreateIssuanceConfigInputCredentialSupportedInner.md doc/CredentialIssuanceIdExistError.md doc/CredentialOfferClaimedError.md doc/CredentialOfferExpiredError.md @@ -26,6 +25,7 @@ doc/CredentialResponseImmediate.md doc/CredentialResponseImmediateCNonceExpiresIn.md doc/CredentialResponseImmediateCredential.md doc/CredentialSubjectNotValidError.md +doc/CredentialSupportedObject.md doc/CredentialsApi.md doc/DeferredCredentialInput.md doc/GenerateCredentials400Response.md @@ -38,7 +38,6 @@ doc/InvalidParameterError.md doc/InvalidProofError.md doc/IssuanceApi.md doc/IssuanceConfigDto.md -doc/IssuanceConfigDtoCredentialSupportedInner.md doc/IssuanceConfigListResponse.md doc/IssuanceConfigMiniDto.md doc/IssuanceStateResponse.md @@ -54,10 +53,14 @@ doc/StartIssuanceInput.md doc/StartIssuanceInputDataInner.md doc/StartIssuanceInputDataInnerMetaData.md doc/StartIssuanceResponse.md +doc/SupportedCredentialMetadata.md +doc/SupportedCredentialMetadataDisplayInner.md +doc/SupportedCredentialMetadataDisplayInnerLogo.md doc/UpdateIssuanceConfigInput.md doc/VcClaimedError.md doc/WellKnownApi.md doc/WellKnownOpenIdCredentialIssuerResponse.md +doc/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md lib/api.dart lib/api/configuration_api.dart lib/api/credentials_api.dart @@ -80,7 +83,6 @@ lib/model/cors_get_well_known_open_id_credential_issuer_ok.dart lib/model/create_credential_input.dart lib/model/create_issuance_config400_response.dart lib/model/create_issuance_config_input.dart -lib/model/create_issuance_config_input_credential_supported_inner.dart lib/model/credential_issuance_id_exist_error.dart lib/model/credential_offer_claimed_error.dart lib/model/credential_offer_expired_error.dart @@ -95,6 +97,7 @@ lib/model/credential_response_immediate.dart lib/model/credential_response_immediate_c_nonce_expires_in.dart lib/model/credential_response_immediate_credential.dart lib/model/credential_subject_not_valid_error.dart +lib/model/credential_supported_object.dart lib/model/deferred_credential_input.dart lib/model/generate_credentials400_response.dart lib/model/get_credential_offer400_response.dart @@ -105,7 +108,6 @@ lib/model/invalid_jwt_token_error.dart lib/model/invalid_parameter_error.dart lib/model/invalid_proof_error.dart lib/model/issuance_config_dto.dart -lib/model/issuance_config_dto_credential_supported_inner.dart lib/model/issuance_config_list_response.dart lib/model/issuance_config_mini_dto.dart lib/model/issuance_state_response.dart @@ -120,7 +122,16 @@ lib/model/start_issuance_input.dart lib/model/start_issuance_input_data_inner.dart lib/model/start_issuance_input_data_inner_meta_data.dart lib/model/start_issuance_response.dart +lib/model/supported_credential_metadata.dart +lib/model/supported_credential_metadata_display_inner.dart +lib/model/supported_credential_metadata_display_inner_logo.dart lib/model/update_issuance_config_input.dart lib/model/vc_claimed_error.dart lib/model/well_known_open_id_credential_issuer_response.dart +lib/model/well_known_open_id_credential_issuer_response_credentials_supported_inner.dart pubspec.yaml +test/credential_supported_object_test.dart +test/supported_credential_metadata_display_inner_logo_test.dart +test/supported_credential_metadata_display_inner_test.dart +test/supported_credential_metadata_test.dart +test/well_known_open_id_credential_issuer_response_credentials_supported_inner_test.dart diff --git a/clients/dart/credential_issuance_client/README.md b/clients/dart/credential_issuance_client/README.md index 2f6e50d0..73c808d6 100644 --- a/clients/dart/credential_issuance_client/README.md +++ b/clients/dart/credential_issuance_client/README.md @@ -90,7 +90,6 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [CreateCredentialInput](doc//CreateCredentialInput.md) - [CreateIssuanceConfig400Response](doc//CreateIssuanceConfig400Response.md) - [CreateIssuanceConfigInput](doc//CreateIssuanceConfigInput.md) -- [CreateIssuanceConfigInputCredentialSupportedInner](doc//CreateIssuanceConfigInputCredentialSupportedInner.md) - [CredentialIssuanceIdExistError](doc//CredentialIssuanceIdExistError.md) - [CredentialOfferClaimedError](doc//CredentialOfferClaimedError.md) - [CredentialOfferExpiredError](doc//CredentialOfferExpiredError.md) @@ -105,6 +104,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [CredentialResponseImmediateCNonceExpiresIn](doc//CredentialResponseImmediateCNonceExpiresIn.md) - [CredentialResponseImmediateCredential](doc//CredentialResponseImmediateCredential.md) - [CredentialSubjectNotValidError](doc//CredentialSubjectNotValidError.md) +- [CredentialSupportedObject](doc//CredentialSupportedObject.md) - [DeferredCredentialInput](doc//DeferredCredentialInput.md) - [GenerateCredentials400Response](doc//GenerateCredentials400Response.md) - [GetCredentialOffer400Response](doc//GetCredentialOffer400Response.md) @@ -115,7 +115,6 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [InvalidParameterError](doc//InvalidParameterError.md) - [InvalidProofError](doc//InvalidProofError.md) - [IssuanceConfigDto](doc//IssuanceConfigDto.md) -- [IssuanceConfigDtoCredentialSupportedInner](doc//IssuanceConfigDtoCredentialSupportedInner.md) - [IssuanceConfigListResponse](doc//IssuanceConfigListResponse.md) - [IssuanceConfigMiniDto](doc//IssuanceConfigMiniDto.md) - [IssuanceStateResponse](doc//IssuanceStateResponse.md) @@ -130,9 +129,13 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [StartIssuanceInputDataInner](doc//StartIssuanceInputDataInner.md) - [StartIssuanceInputDataInnerMetaData](doc//StartIssuanceInputDataInnerMetaData.md) - [StartIssuanceResponse](doc//StartIssuanceResponse.md) +- [SupportedCredentialMetadata](doc//SupportedCredentialMetadata.md) +- [SupportedCredentialMetadataDisplayInner](doc//SupportedCredentialMetadataDisplayInner.md) +- [SupportedCredentialMetadataDisplayInnerLogo](doc//SupportedCredentialMetadataDisplayInnerLogo.md) - [UpdateIssuanceConfigInput](doc//UpdateIssuanceConfigInput.md) - [VcClaimedError](doc//VcClaimedError.md) - [WellKnownOpenIdCredentialIssuerResponse](doc//WellKnownOpenIdCredentialIssuerResponse.md) +- [WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner](doc//WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md) ## Documentation For Authorization diff --git a/clients/dart/credential_issuance_client/doc/CreateIssuanceConfigInput.md b/clients/dart/credential_issuance_client/doc/CreateIssuanceConfigInput.md index 7053f29a..678e2291 100644 --- a/clients/dart/credential_issuance_client/doc/CreateIssuanceConfigInput.md +++ b/clients/dart/credential_issuance_client/doc/CreateIssuanceConfigInput.md @@ -8,14 +8,14 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart'; ## Properties -| Name | Type | Description | Notes | -| --------------------------- | ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | -| **name** | **String** | | [optional] | -| **description** | **String** | | [optional] | -| **issuerWalletId** | **String** | Issuer Wallet id | -| **credentialOfferDuration** | **int** | credential offer duration in second | [optional] | -| **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] | -| **credentialSupported** | [**List**](CreateIssuanceConfigInputCredentialSupportedInner.md) | | [default to const []] | -| **issuerMetadata** | [**Map**](Object.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to const {}] | +| Name | Type | Description | Notes | +| --------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | +| **name** | **String** | | [optional] | +| **description** | **String** | | [optional] | +| **issuerWalletId** | **String** | Issuer Wallet id | +| **credentialOfferDuration** | **int** | credential offer duration in second | [optional] | +| **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] | +| **credentialSupported** | [**List**](CredentialSupportedObject.md) | | [default to const []] | +| **issuerMetadata** | [**Map**](Object.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to const {}] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/credential_issuance_client/doc/CredentialSupportedObject.md b/clients/dart/credential_issuance_client/doc/CredentialSupportedObject.md new file mode 100644 index 00000000..b7ad07a4 --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/CredentialSupportedObject.md @@ -0,0 +1,18 @@ +# affinidi_tdk_credential_issuance_client.model.CredentialSupportedObject + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| -------------------- | ----------------------------------------------------------------- | --------------------------------------------------------------------------------- | ---------- | +| **credentialTypeId** | **String** | It is a String that identifies a Credential that is being requested to be issued. | +| **jsonSchemaUrl** | **String** | credential jsonLdContextUrl | +| **jsonLdContextUrl** | **String** | credential jsonSchemaUrl | +| **metadata** | [**SupportedCredentialMetadata**](SupportedCredentialMetadata.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/IssuanceConfigDto.md b/clients/dart/credential_issuance_client/doc/IssuanceConfigDto.md index 052a0f23..e2bd402b 100644 --- a/clients/dart/credential_issuance_client/doc/IssuanceConfigDto.md +++ b/clients/dart/credential_issuance_client/doc/IssuanceConfigDto.md @@ -8,19 +8,19 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart'; ## Properties -| Name | Type | Description | Notes | -| --------------------------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | -| **id** | **String** | | [optional] | -| **name** | **String** | | [optional] | -| **description** | **String** | | [optional] | -| **issuerDid** | **String** | Issuer DID | [optional] | -| **issuerWalletId** | **String** | Issuer Wallet id | [optional] | -| **credentialOfferDuration** | **int** | credential offer duration in second | [optional] | -| **cNonceDuration** | **int** | c_nonce duration in second | [optional] | -| **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] | -| **issuerUri** | **String** | Issuer URI | [optional] | -| **credentialSupported** | [**List**](IssuanceConfigDtoCredentialSupportedInner.md) | | [optional] [default to const []] | -| **issuerMetadata** | [**Map**](Object.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to const {}] | -| **version** | **int** | | [optional] | +| Name | Type | Description | Notes | +| --------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | +| **id** | **String** | | [optional] | +| **name** | **String** | | [optional] | +| **description** | **String** | | [optional] | +| **issuerDid** | **String** | Issuer DID | [optional] | +| **issuerWalletId** | **String** | Issuer Wallet id | [optional] | +| **credentialOfferDuration** | **int** | credential offer duration in second | [optional] | +| **cNonceDuration** | **int** | c_nonce duration in second | [optional] | +| **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] | +| **issuerUri** | **String** | Issuer URI | [optional] | +| **credentialSupported** | [**List**](CredentialSupportedObject.md) | | [optional] [default to const []] | +| **issuerMetadata** | [**Map**](Object.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to const {}] | +| **version** | **int** | | [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/SupportedCredentialMetadata.md b/clients/dart/credential_issuance_client/doc/SupportedCredentialMetadata.md new file mode 100644 index 00000000..a176c586 --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/SupportedCredentialMetadata.md @@ -0,0 +1,15 @@ +# affinidi_tdk_credential_issuance_client.model.SupportedCredentialMetadata + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ----------- | ----------------------------------------------------------------------------------------------- | ----------- | -------------------------------- | +| **display** | [**List**](SupportedCredentialMetadataDisplayInner.md) | | [optional] [default to const []] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/credential_issuance_client/doc/SupportedCredentialMetadataDisplayInner.md b/clients/dart/credential_issuance_client/doc/SupportedCredentialMetadataDisplayInner.md new file mode 100644 index 00000000..fd720eaa --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/SupportedCredentialMetadataDisplayInner.md @@ -0,0 +1,19 @@ +# affinidi_tdk_credential_issuance_client.model.SupportedCredentialMetadataDisplayInner + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ------------------- | ------------------------------------------------------------------------------------------------- | ----------- | ---------- | +| **name** | **String** | | +| **locale** | **String** | | [optional] | +| **logo** | [**SupportedCredentialMetadataDisplayInnerLogo**](SupportedCredentialMetadataDisplayInnerLogo.md) | | [optional] | +| **backgroundColor** | **String** | | [optional] | +| **textColor** | **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/SupportedCredentialMetadataDisplayInnerLogo.md b/clients/dart/credential_issuance_client/doc/SupportedCredentialMetadataDisplayInnerLogo.md new file mode 100644 index 00000000..5c4f4baf --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/SupportedCredentialMetadataDisplayInnerLogo.md @@ -0,0 +1,16 @@ +# affinidi_tdk_credential_issuance_client.model.SupportedCredentialMetadataDisplayInnerLogo + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| ----------- | ---------- | ----------- | ---------- | +| **url** | **String** | | +| **altText** | **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/UpdateIssuanceConfigInput.md b/clients/dart/credential_issuance_client/doc/UpdateIssuanceConfigInput.md index 2cfc6033..af2ac0e1 100644 --- a/clients/dart/credential_issuance_client/doc/UpdateIssuanceConfigInput.md +++ b/clients/dart/credential_issuance_client/doc/UpdateIssuanceConfigInput.md @@ -8,15 +8,15 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart'; ## Properties -| Name | Type | Description | Notes | -| --------------------------- | ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | -| **name** | **String** | | [optional] | -| **description** | **String** | | [optional] | -| **issuerWalletId** | **String** | Issuer Wallet id | [optional] | -| **credentialOfferDuration** | **int** | credential offer duration in second | [optional] | -| **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] | -| **issuerUri** | **String** | Issuer URI | [optional] | -| **credentialSupported** | [**List**](CreateIssuanceConfigInputCredentialSupportedInner.md) | | [optional] [default to const []] | -| **issuerMetadata** | [**Map**](Object.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to const {}] | +| Name | Type | Description | Notes | +| --------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | +| **name** | **String** | | [optional] | +| **description** | **String** | | [optional] | +| **issuerWalletId** | **String** | Issuer Wallet id | [optional] | +| **credentialOfferDuration** | **int** | credential offer duration in second | [optional] | +| **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] | +| **issuerUri** | **String** | Issuer URI | [optional] | +| **credentialSupported** | [**List**](CredentialSupportedObject.md) | | [optional] [default to const []] | +| **issuerMetadata** | [**Map**](Object.md) | Issuer public information wallet may want to show to user during consent confirmation | [optional] [default to const {}] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/credential_issuance_client/doc/WellKnownOpenIdCredentialIssuerResponse.md b/clients/dart/credential_issuance_client/doc/WellKnownOpenIdCredentialIssuerResponse.md index cf88b72a..29575ac7 100644 --- a/clients/dart/credential_issuance_client/doc/WellKnownOpenIdCredentialIssuerResponse.md +++ b/clients/dart/credential_issuance_client/doc/WellKnownOpenIdCredentialIssuerResponse.md @@ -8,17 +8,17 @@ import 'package:affinidi_tdk_credential_issuance_client/api.dart'; ## Properties -| Name | Type | Description | Notes | -| ------------------------------------- | --------------------------------------------------------------------------------------------------- | ----------- | -------------------------------- | -| **authorizationEndpoint** | **String** | | [optional] | -| **credentialEndpoint** | **String** | | [optional] | -| **credentialIssuer** | **String** | | [optional] | -| **credentialsSupported** | [**List**](IssuanceConfigDtoCredentialSupportedInner.md) | | [optional] [default to const []] | -| **deferredCredentialEndpoint** | **String** | | [optional] | -| **grantTypesSupported** | **List** | | [optional] [default to const []] | -| **jwksUri** | **String** | | [optional] | -| **scopesSupported** | **List** | | [optional] [default to const []] | -| **tokenEndpoint** | **String** | | [optional] | -| **tokenEndpointAuthMethodsSupported** | **List** | | [optional] [default to const []] | +| Name | Type | Description | Notes | +| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | -------------------------------- | +| **authorizationEndpoint** | **String** | | [optional] | +| **credentialEndpoint** | **String** | | [optional] | +| **credentialIssuer** | **String** | | [optional] | +| **credentialsSupported** | [**List**](WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md) | | [optional] [default to const []] | +| **deferredCredentialEndpoint** | **String** | | [optional] | +| **grantTypesSupported** | **List** | | [optional] [default to const []] | +| **jwksUri** | **String** | | [optional] | +| **scopesSupported** | **List** | | [optional] [default to const []] | +| **tokenEndpoint** | **String** | | [optional] | +| **tokenEndpointAuthMethodsSupported** | **List** | | [optional] [default to const []] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/dart/credential_issuance_client/doc/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md b/clients/dart/credential_issuance_client/doc/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md new file mode 100644 index 00000000..cf3149dd --- /dev/null +++ b/clients/dart/credential_issuance_client/doc/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md @@ -0,0 +1,17 @@ +# affinidi_tdk_credential_issuance_client.model.WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner + +## Load the model package + +```dart +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +``` + +## Properties + +| Name | Type | Description | Notes | +| -------------------- | ---------- | --------------------------------------------------------------------------------- | ----- | +| **credentialTypeId** | **String** | It is a String that identifies a Credential that is being requested to be issued. | +| **jsonSchemaUrl** | **String** | credential jsonLdContextUrl | +| **jsonLdContextUrl** | **String** | credential jsonSchemaUrl | + +[[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/api.dart b/clients/dart/credential_issuance_client/lib/api.dart index 22882bd7..0e9fa3d0 100644 --- a/clients/dart/credential_issuance_client/lib/api.dart +++ b/clients/dart/credential_issuance_client/lib/api.dart @@ -42,7 +42,6 @@ part 'model/cors_get_well_known_open_id_credential_issuer_ok.dart'; part 'model/create_credential_input.dart'; part 'model/create_issuance_config400_response.dart'; part 'model/create_issuance_config_input.dart'; -part 'model/create_issuance_config_input_credential_supported_inner.dart'; part 'model/credential_issuance_id_exist_error.dart'; part 'model/credential_offer_claimed_error.dart'; part 'model/credential_offer_expired_error.dart'; @@ -57,6 +56,7 @@ part 'model/credential_response_immediate.dart'; part 'model/credential_response_immediate_c_nonce_expires_in.dart'; part 'model/credential_response_immediate_credential.dart'; part 'model/credential_subject_not_valid_error.dart'; +part 'model/credential_supported_object.dart'; part 'model/deferred_credential_input.dart'; part 'model/generate_credentials400_response.dart'; part 'model/get_credential_offer400_response.dart'; @@ -67,7 +67,6 @@ part 'model/invalid_jwt_token_error.dart'; part 'model/invalid_parameter_error.dart'; part 'model/invalid_proof_error.dart'; part 'model/issuance_config_dto.dart'; -part 'model/issuance_config_dto_credential_supported_inner.dart'; part 'model/issuance_config_list_response.dart'; part 'model/issuance_config_mini_dto.dart'; part 'model/issuance_state_response.dart'; @@ -82,9 +81,13 @@ part 'model/start_issuance_input.dart'; part 'model/start_issuance_input_data_inner.dart'; part 'model/start_issuance_input_data_inner_meta_data.dart'; part 'model/start_issuance_response.dart'; +part 'model/supported_credential_metadata.dart'; +part 'model/supported_credential_metadata_display_inner.dart'; +part 'model/supported_credential_metadata_display_inner_logo.dart'; part 'model/update_issuance_config_input.dart'; part 'model/vc_claimed_error.dart'; part 'model/well_known_open_id_credential_issuer_response.dart'; +part 'model/well_known_open_id_credential_issuer_response_credentials_supported_inner.dart'; /// An [ApiClient] instance that uses the default values obtained from diff --git a/clients/dart/credential_issuance_client/lib/api_client.dart b/clients/dart/credential_issuance_client/lib/api_client.dart index c89204aa..24f6cdb1 100644 --- a/clients/dart/credential_issuance_client/lib/api_client.dart +++ b/clients/dart/credential_issuance_client/lib/api_client.dart @@ -198,8 +198,6 @@ class ApiClient { return CreateIssuanceConfig400Response.fromJson(value); case 'CreateIssuanceConfigInput': return CreateIssuanceConfigInput.fromJson(value); - case 'CreateIssuanceConfigInputCredentialSupportedInner': - return CreateIssuanceConfigInputCredentialSupportedInner.fromJson(value); case 'CredentialIssuanceIdExistError': return CredentialIssuanceIdExistError.fromJson(value); case 'CredentialOfferClaimedError': @@ -228,6 +226,8 @@ class ApiClient { return CredentialResponseImmediateCredential.fromJson(value); case 'CredentialSubjectNotValidError': return CredentialSubjectNotValidError.fromJson(value); + case 'CredentialSupportedObject': + return CredentialSupportedObject.fromJson(value); case 'DeferredCredentialInput': return DeferredCredentialInput.fromJson(value); case 'GenerateCredentials400Response': @@ -248,8 +248,6 @@ class ApiClient { return InvalidProofError.fromJson(value); case 'IssuanceConfigDto': return IssuanceConfigDto.fromJson(value); - case 'IssuanceConfigDtoCredentialSupportedInner': - return IssuanceConfigDtoCredentialSupportedInner.fromJson(value); case 'IssuanceConfigListResponse': return IssuanceConfigListResponse.fromJson(value); case 'IssuanceConfigMiniDto': @@ -278,12 +276,20 @@ class ApiClient { return StartIssuanceInputDataInnerMetaData.fromJson(value); case 'StartIssuanceResponse': return StartIssuanceResponse.fromJson(value); + case 'SupportedCredentialMetadata': + return SupportedCredentialMetadata.fromJson(value); + case 'SupportedCredentialMetadataDisplayInner': + return SupportedCredentialMetadataDisplayInner.fromJson(value); + case 'SupportedCredentialMetadataDisplayInnerLogo': + return SupportedCredentialMetadataDisplayInnerLogo.fromJson(value); case 'UpdateIssuanceConfigInput': return UpdateIssuanceConfigInput.fromJson(value); case 'VcClaimedError': return VcClaimedError.fromJson(value); case 'WellKnownOpenIdCredentialIssuerResponse': return WellKnownOpenIdCredentialIssuerResponse.fromJson(value); + case 'WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner': + return WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.fromJson(value); default: dynamic match; if (value is List && (match = _regList.firstMatch(targetType)?.group(1)) != null) { diff --git a/clients/dart/credential_issuance_client/lib/model/create_issuance_config_input.dart b/clients/dart/credential_issuance_client/lib/model/create_issuance_config_input.dart index 2e9003bf..d262435e 100644 --- a/clients/dart/credential_issuance_client/lib/model/create_issuance_config_input.dart +++ b/clients/dart/credential_issuance_client/lib/model/create_issuance_config_input.dart @@ -56,7 +56,7 @@ class CreateIssuanceConfigInput { /// String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type CreateIssuanceConfigInputFormatEnum? format; - List credentialSupported; + List credentialSupported; /// Issuer public information wallet may want to show to user during consent confirmation Map issuerMetadata; @@ -137,7 +137,7 @@ class CreateIssuanceConfigInput { issuerWalletId: mapValueOfType(json, r'issuerWalletId')!, credentialOfferDuration: mapValueOfType(json, r'credentialOfferDuration'), format: CreateIssuanceConfigInputFormatEnum.fromJson(json[r'format']), - credentialSupported: CreateIssuanceConfigInputCredentialSupportedInner.listFromJson(json[r'credentialSupported']), + credentialSupported: CredentialSupportedObject.listFromJson(json[r'credentialSupported']), issuerMetadata: mapCastOfType(json, r'issuerMetadata') ?? const {}, ); } diff --git a/clients/dart/credential_issuance_client/lib/model/credential_supported_object.dart b/clients/dart/credential_issuance_client/lib/model/credential_supported_object.dart new file mode 100644 index 00000000..a359e50d --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/model/credential_supported_object.dart @@ -0,0 +1,145 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.12 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class CredentialSupportedObject { + /// Returns a new [CredentialSupportedObject] instance. + CredentialSupportedObject({ + required this.credentialTypeId, + required this.jsonSchemaUrl, + required this.jsonLdContextUrl, + this.metadata, + }); + + /// It is a String that identifies a Credential that is being requested to be issued. + String credentialTypeId; + + /// credential jsonLdContextUrl + String jsonSchemaUrl; + + /// credential jsonSchemaUrl + String jsonLdContextUrl; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + SupportedCredentialMetadata? metadata; + + @override + bool operator ==(Object other) => identical(this, other) || other is CredentialSupportedObject && + other.credentialTypeId == credentialTypeId && + other.jsonSchemaUrl == jsonSchemaUrl && + other.jsonLdContextUrl == jsonLdContextUrl && + other.metadata == metadata; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (credentialTypeId.hashCode) + + (jsonSchemaUrl.hashCode) + + (jsonLdContextUrl.hashCode) + + (metadata == null ? 0 : metadata!.hashCode); + + @override + String toString() => 'CredentialSupportedObject[credentialTypeId=$credentialTypeId, jsonSchemaUrl=$jsonSchemaUrl, jsonLdContextUrl=$jsonLdContextUrl, metadata=$metadata]'; + + Map toJson() { + final json = {}; + json[r'credentialTypeId'] = this.credentialTypeId; + json[r'jsonSchemaUrl'] = this.jsonSchemaUrl; + json[r'jsonLdContextUrl'] = this.jsonLdContextUrl; + if (this.metadata != null) { + json[r'metadata'] = this.metadata; + } else { + json[r'metadata'] = null; + } + return json; + } + + /// Returns a new [CredentialSupportedObject] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static CredentialSupportedObject? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "CredentialSupportedObject[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "CredentialSupportedObject[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return CredentialSupportedObject( + credentialTypeId: mapValueOfType(json, r'credentialTypeId')!, + jsonSchemaUrl: mapValueOfType(json, r'jsonSchemaUrl')!, + jsonLdContextUrl: mapValueOfType(json, r'jsonLdContextUrl')!, + metadata: SupportedCredentialMetadata.fromJson(json[r'metadata']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = CredentialSupportedObject.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = CredentialSupportedObject.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of CredentialSupportedObject-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = CredentialSupportedObject.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'credentialTypeId', + 'jsonSchemaUrl', + 'jsonLdContextUrl', + }; +} + diff --git a/clients/dart/credential_issuance_client/lib/model/issuance_config_dto.dart b/clients/dart/credential_issuance_client/lib/model/issuance_config_dto.dart index 451c1102..58b5676c 100644 --- a/clients/dart/credential_issuance_client/lib/model/issuance_config_dto.dart +++ b/clients/dart/credential_issuance_client/lib/model/issuance_config_dto.dart @@ -99,7 +99,7 @@ class IssuanceConfigDto { /// String? issuerUri; - List credentialSupported; + List credentialSupported; /// Issuer public information wallet may want to show to user during consent confirmation Map issuerMetadata; @@ -231,7 +231,7 @@ class IssuanceConfigDto { cNonceDuration: mapValueOfType(json, r'cNonceDuration'), format: IssuanceConfigDtoFormatEnum.fromJson(json[r'format']), issuerUri: mapValueOfType(json, r'issuerUri'), - credentialSupported: IssuanceConfigDtoCredentialSupportedInner.listFromJson(json[r'credentialSupported']), + credentialSupported: CredentialSupportedObject.listFromJson(json[r'credentialSupported']), issuerMetadata: mapCastOfType(json, r'issuerMetadata') ?? const {}, version: mapValueOfType(json, r'version'), ); diff --git a/clients/dart/credential_issuance_client/lib/model/supported_credential_metadata.dart b/clients/dart/credential_issuance_client/lib/model/supported_credential_metadata.dart new file mode 100644 index 00000000..4d5535fe --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/model/supported_credential_metadata.dart @@ -0,0 +1,108 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.12 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class SupportedCredentialMetadata { + /// Returns a new [SupportedCredentialMetadata] instance. + SupportedCredentialMetadata({ + this.display = const [], + }); + + List display; + + @override + bool operator ==(Object other) => identical(this, other) || other is SupportedCredentialMetadata && + _deepEquality.equals(other.display, display); + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (display.hashCode); + + @override + String toString() => 'SupportedCredentialMetadata[display=$display]'; + + Map toJson() { + final json = {}; + json[r'display'] = this.display; + return json; + } + + /// Returns a new [SupportedCredentialMetadata] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static SupportedCredentialMetadata? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SupportedCredentialMetadata[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SupportedCredentialMetadata[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return SupportedCredentialMetadata( + display: SupportedCredentialMetadataDisplayInner.listFromJson(json[r'display']), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = SupportedCredentialMetadata.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = SupportedCredentialMetadata.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of SupportedCredentialMetadata-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = SupportedCredentialMetadata.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + }; +} + diff --git a/clients/dart/credential_issuance_client/lib/model/supported_credential_metadata_display_inner.dart b/clients/dart/credential_issuance_client/lib/model/supported_credential_metadata_display_inner.dart new file mode 100644 index 00000000..9f784934 --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/model/supported_credential_metadata_display_inner.dart @@ -0,0 +1,177 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.12 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class SupportedCredentialMetadataDisplayInner { + /// Returns a new [SupportedCredentialMetadataDisplayInner] instance. + SupportedCredentialMetadataDisplayInner({ + required this.name, + this.locale, + this.logo, + this.backgroundColor, + this.textColor, + }); + + String name; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? locale; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + SupportedCredentialMetadataDisplayInnerLogo? logo; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? backgroundColor; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? textColor; + + @override + bool operator ==(Object other) => identical(this, other) || other is SupportedCredentialMetadataDisplayInner && + other.name == name && + other.locale == locale && + other.logo == logo && + other.backgroundColor == backgroundColor && + other.textColor == textColor; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (name.hashCode) + + (locale == null ? 0 : locale!.hashCode) + + (logo == null ? 0 : logo!.hashCode) + + (backgroundColor == null ? 0 : backgroundColor!.hashCode) + + (textColor == null ? 0 : textColor!.hashCode); + + @override + String toString() => 'SupportedCredentialMetadataDisplayInner[name=$name, locale=$locale, logo=$logo, backgroundColor=$backgroundColor, textColor=$textColor]'; + + Map toJson() { + final json = {}; + json[r'name'] = this.name; + if (this.locale != null) { + json[r'locale'] = this.locale; + } else { + json[r'locale'] = null; + } + if (this.logo != null) { + json[r'logo'] = this.logo; + } else { + json[r'logo'] = null; + } + if (this.backgroundColor != null) { + json[r'backgroundColor'] = this.backgroundColor; + } else { + json[r'backgroundColor'] = null; + } + if (this.textColor != null) { + json[r'textColor'] = this.textColor; + } else { + json[r'textColor'] = null; + } + return json; + } + + /// Returns a new [SupportedCredentialMetadataDisplayInner] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static SupportedCredentialMetadataDisplayInner? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SupportedCredentialMetadataDisplayInner[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SupportedCredentialMetadataDisplayInner[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return SupportedCredentialMetadataDisplayInner( + name: mapValueOfType(json, r'name')!, + locale: mapValueOfType(json, r'locale'), + logo: SupportedCredentialMetadataDisplayInnerLogo.fromJson(json[r'logo']), + backgroundColor: mapValueOfType(json, r'backgroundColor'), + textColor: mapValueOfType(json, r'textColor'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = SupportedCredentialMetadataDisplayInner.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = SupportedCredentialMetadataDisplayInner.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of SupportedCredentialMetadataDisplayInner-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = SupportedCredentialMetadataDisplayInner.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'name', + }; +} + diff --git a/clients/dart/credential_issuance_client/lib/model/supported_credential_metadata_display_inner_logo.dart b/clients/dart/credential_issuance_client/lib/model/supported_credential_metadata_display_inner_logo.dart new file mode 100644 index 00000000..a8c1a196 --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/model/supported_credential_metadata_display_inner_logo.dart @@ -0,0 +1,126 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.12 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class SupportedCredentialMetadataDisplayInnerLogo { + /// Returns a new [SupportedCredentialMetadataDisplayInnerLogo] instance. + SupportedCredentialMetadataDisplayInnerLogo({ + required this.url, + this.altText, + }); + + String url; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? altText; + + @override + bool operator ==(Object other) => identical(this, other) || other is SupportedCredentialMetadataDisplayInnerLogo && + other.url == url && + other.altText == altText; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (url.hashCode) + + (altText == null ? 0 : altText!.hashCode); + + @override + String toString() => 'SupportedCredentialMetadataDisplayInnerLogo[url=$url, altText=$altText]'; + + Map toJson() { + final json = {}; + json[r'url'] = this.url; + if (this.altText != null) { + json[r'altText'] = this.altText; + } else { + json[r'altText'] = null; + } + return json; + } + + /// Returns a new [SupportedCredentialMetadataDisplayInnerLogo] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static SupportedCredentialMetadataDisplayInnerLogo? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "SupportedCredentialMetadataDisplayInnerLogo[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "SupportedCredentialMetadataDisplayInnerLogo[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return SupportedCredentialMetadataDisplayInnerLogo( + url: mapValueOfType(json, r'url')!, + altText: mapValueOfType(json, r'altText'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = SupportedCredentialMetadataDisplayInnerLogo.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = SupportedCredentialMetadataDisplayInnerLogo.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of SupportedCredentialMetadataDisplayInnerLogo-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = SupportedCredentialMetadataDisplayInnerLogo.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'url', + }; +} + diff --git a/clients/dart/credential_issuance_client/lib/model/update_issuance_config_input.dart b/clients/dart/credential_issuance_client/lib/model/update_issuance_config_input.dart index 313b0cdc..df345c2e 100644 --- a/clients/dart/credential_issuance_client/lib/model/update_issuance_config_input.dart +++ b/clients/dart/credential_issuance_client/lib/model/update_issuance_config_input.dart @@ -72,7 +72,7 @@ class UpdateIssuanceConfigInput { /// String? issuerUri; - List credentialSupported; + List credentialSupported; /// Issuer public information wallet may want to show to user during consent confirmation Map issuerMetadata; @@ -165,7 +165,7 @@ class UpdateIssuanceConfigInput { credentialOfferDuration: mapValueOfType(json, r'credentialOfferDuration'), format: UpdateIssuanceConfigInputFormatEnum.fromJson(json[r'format']), issuerUri: mapValueOfType(json, r'issuerUri'), - credentialSupported: CreateIssuanceConfigInputCredentialSupportedInner.listFromJson(json[r'credentialSupported']), + credentialSupported: CredentialSupportedObject.listFromJson(json[r'credentialSupported']), issuerMetadata: mapCastOfType(json, r'issuerMetadata') ?? const {}, ); } diff --git a/clients/dart/credential_issuance_client/lib/model/well_known_open_id_credential_issuer_response.dart b/clients/dart/credential_issuance_client/lib/model/well_known_open_id_credential_issuer_response.dart index 8f8236e1..ee6aff43 100644 --- a/clients/dart/credential_issuance_client/lib/model/well_known_open_id_credential_issuer_response.dart +++ b/clients/dart/credential_issuance_client/lib/model/well_known_open_id_credential_issuer_response.dart @@ -49,7 +49,7 @@ class WellKnownOpenIdCredentialIssuerResponse { /// String? credentialIssuer; - List credentialsSupported; + List credentialsSupported; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -172,7 +172,7 @@ class WellKnownOpenIdCredentialIssuerResponse { authorizationEndpoint: mapValueOfType(json, r'authorization_endpoint'), credentialEndpoint: mapValueOfType(json, r'credential_endpoint'), credentialIssuer: mapValueOfType(json, r'credential_issuer'), - credentialsSupported: IssuanceConfigDtoCredentialSupportedInner.listFromJson(json[r'credentials_supported']), + credentialsSupported: WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.listFromJson(json[r'credentials_supported']), deferredCredentialEndpoint: mapValueOfType(json, r'deferred_credential_endpoint'), grantTypesSupported: WellKnownOpenIdCredentialIssuerResponseGrantTypesSupportedEnum.listFromJson(json[r'grant_types_supported']), jwksUri: mapValueOfType(json, r'jwks_uri'), diff --git a/clients/dart/credential_issuance_client/lib/model/well_known_open_id_credential_issuer_response_credentials_supported_inner.dart b/clients/dart/credential_issuance_client/lib/model/well_known_open_id_credential_issuer_response_credentials_supported_inner.dart new file mode 100644 index 00000000..da12492d --- /dev/null +++ b/clients/dart/credential_issuance_client/lib/model/well_known_open_id_credential_issuer_response_credentials_supported_inner.dart @@ -0,0 +1,128 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.12 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner { + /// Returns a new [WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner] instance. + WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner({ + required this.credentialTypeId, + required this.jsonSchemaUrl, + required this.jsonLdContextUrl, + }); + + /// It is a String that identifies a Credential that is being requested to be issued. + String credentialTypeId; + + /// credential jsonLdContextUrl + String jsonSchemaUrl; + + /// credential jsonSchemaUrl + String jsonLdContextUrl; + + @override + bool operator ==(Object other) => identical(this, other) || other is WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner && + other.credentialTypeId == credentialTypeId && + other.jsonSchemaUrl == jsonSchemaUrl && + other.jsonLdContextUrl == jsonLdContextUrl; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (credentialTypeId.hashCode) + + (jsonSchemaUrl.hashCode) + + (jsonLdContextUrl.hashCode); + + @override + String toString() => 'WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner[credentialTypeId=$credentialTypeId, jsonSchemaUrl=$jsonSchemaUrl, jsonLdContextUrl=$jsonLdContextUrl]'; + + Map toJson() { + final json = {}; + json[r'credentialTypeId'] = this.credentialTypeId; + json[r'jsonSchemaUrl'] = this.jsonSchemaUrl; + json[r'jsonLdContextUrl'] = this.jsonLdContextUrl; + return json; + } + + /// Returns a new [WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner? fromJson(dynamic value) { + if (value is Map) { + final json = value.cast(); + + // Ensure that the map contains the required keys. + // Note 1: the values aren't checked for validity beyond being non-null. + // Note 2: this code is stripped in release mode! + assert(() { + requiredKeys.forEach((key) { + assert(json.containsKey(key), 'Required key "WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner[$key]" is missing from JSON.'); + assert(json[key] != null, 'Required key "WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner[$key]" has a null value in JSON.'); + }); + return true; + }()); + + return WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner( + credentialTypeId: mapValueOfType(json, r'credentialTypeId')!, + jsonSchemaUrl: mapValueOfType(json, r'jsonSchemaUrl')!, + jsonLdContextUrl: mapValueOfType(json, r'jsonLdContextUrl')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'credentialTypeId', + 'jsonSchemaUrl', + 'jsonLdContextUrl', + }; +} + diff --git a/clients/dart/credential_issuance_client/test/credential_supported_object_test.dart b/clients/dart/credential_issuance_client/test/credential_supported_object_test.dart new file mode 100644 index 00000000..1f66b5d1 --- /dev/null +++ b/clients/dart/credential_issuance_client/test/credential_supported_object_test.dart @@ -0,0 +1,45 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.12 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +import 'package:test/test.dart'; + +// tests for CredentialSupportedObject +void main() { + // final instance = CredentialSupportedObject(); + + group('test CredentialSupportedObject', () { + // It is a String that identifies a Credential that is being requested to be issued. + // String credentialTypeId + test('to test the property `credentialTypeId`', () async { + // TODO + }); + + // credential jsonLdContextUrl + // String jsonSchemaUrl + test('to test the property `jsonSchemaUrl`', () async { + // TODO + }); + + // credential jsonSchemaUrl + // String jsonLdContextUrl + test('to test the property `jsonLdContextUrl`', () async { + // TODO + }); + + // SupportedCredentialMetadata metadata + test('to test the property `metadata`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/credential_issuance_client/test/supported_credential_metadata_display_inner_logo_test.dart b/clients/dart/credential_issuance_client/test/supported_credential_metadata_display_inner_logo_test.dart new file mode 100644 index 00000000..e29ac479 --- /dev/null +++ b/clients/dart/credential_issuance_client/test/supported_credential_metadata_display_inner_logo_test.dart @@ -0,0 +1,32 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.12 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +import 'package:test/test.dart'; + +// tests for SupportedCredentialMetadataDisplayInnerLogo +void main() { + // final instance = SupportedCredentialMetadataDisplayInnerLogo(); + + group('test SupportedCredentialMetadataDisplayInnerLogo', () { + // String url + test('to test the property `url`', () async { + // TODO + }); + + // String altText + test('to test the property `altText`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/credential_issuance_client/test/supported_credential_metadata_display_inner_test.dart b/clients/dart/credential_issuance_client/test/supported_credential_metadata_display_inner_test.dart new file mode 100644 index 00000000..fb86c919 --- /dev/null +++ b/clients/dart/credential_issuance_client/test/supported_credential_metadata_display_inner_test.dart @@ -0,0 +1,47 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.12 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +import 'package:test/test.dart'; + +// tests for SupportedCredentialMetadataDisplayInner +void main() { + // final instance = SupportedCredentialMetadataDisplayInner(); + + group('test SupportedCredentialMetadataDisplayInner', () { + // String name + test('to test the property `name`', () async { + // TODO + }); + + // String locale + test('to test the property `locale`', () async { + // TODO + }); + + // SupportedCredentialMetadataDisplayInnerLogo logo + test('to test the property `logo`', () async { + // TODO + }); + + // String backgroundColor + test('to test the property `backgroundColor`', () async { + // TODO + }); + + // String textColor + test('to test the property `textColor`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/credential_issuance_client/test/supported_credential_metadata_test.dart b/clients/dart/credential_issuance_client/test/supported_credential_metadata_test.dart new file mode 100644 index 00000000..bd0708c4 --- /dev/null +++ b/clients/dart/credential_issuance_client/test/supported_credential_metadata_test.dart @@ -0,0 +1,27 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.12 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +import 'package:test/test.dart'; + +// tests for SupportedCredentialMetadata +void main() { + // final instance = SupportedCredentialMetadata(); + + group('test SupportedCredentialMetadata', () { + // List display (default value: const []) + test('to test the property `display`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/credential_issuance_client/test/well_known_open_id_credential_issuer_response_credentials_supported_inner_test.dart b/clients/dart/credential_issuance_client/test/well_known_open_id_credential_issuer_response_credentials_supported_inner_test.dart new file mode 100644 index 00000000..baa458a5 --- /dev/null +++ b/clients/dart/credential_issuance_client/test/well_known_open_id_credential_issuer_response_credentials_supported_inner_test.dart @@ -0,0 +1,40 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.12 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +import 'package:affinidi_tdk_credential_issuance_client/api.dart'; +import 'package:test/test.dart'; + +// tests for WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner +void main() { + // final instance = WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner(); + + group('test WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner', () { + // It is a String that identifies a Credential that is being requested to be issued. + // String credentialTypeId + test('to test the property `credentialTypeId`', () async { + // TODO + }); + + // credential jsonLdContextUrl + // String jsonSchemaUrl + test('to test the property `jsonSchemaUrl`', () async { + // TODO + }); + + // credential jsonSchemaUrl + // String jsonLdContextUrl + test('to test the property `jsonLdContextUrl`', () async { + // TODO + }); + + + }); + +} diff --git a/clients/dart/iota_client/.openapi-generator/FILES b/clients/dart/iota_client/.openapi-generator/FILES index 67bab101..b4d25797 100644 --- a/clients/dart/iota_client/.openapi-generator/FILES +++ b/clients/dart/iota_client/.openapi-generator/FILES @@ -88,7 +88,3 @@ lib/model/update_configuration_by_id_ok.dart lib/model/update_pex_query_input.dart lib/model/vp_token_validation_error.dart pubspec.yaml -test/aws_exchange_credentials_project_token_ok_credentials_test.dart -test/aws_exchange_credentials_project_token_ok_test.dart -test/aws_exchange_credentials_project_token_test.dart -test/cors_aws_exchange_credentials_project_token_ok_test.dart diff --git a/clients/python/credential_issuance_client/.openapi-generator/FILES b/clients/python/credential_issuance_client/.openapi-generator/FILES index 8acc55cf..7301e551 100644 --- a/clients/python/credential_issuance_client/.openapi-generator/FILES +++ b/clients/python/credential_issuance_client/.openapi-generator/FILES @@ -22,7 +22,6 @@ affinidi_tdk_credential_issuance_client/models/cors_get_well_known_open_id_crede affinidi_tdk_credential_issuance_client/models/create_credential_input.py affinidi_tdk_credential_issuance_client/models/create_issuance_config400_response.py affinidi_tdk_credential_issuance_client/models/create_issuance_config_input.py -affinidi_tdk_credential_issuance_client/models/create_issuance_config_input_credential_supported_inner.py affinidi_tdk_credential_issuance_client/models/credential_issuance_id_exist_error.py affinidi_tdk_credential_issuance_client/models/credential_offer_claimed_error.py affinidi_tdk_credential_issuance_client/models/credential_offer_expired_error.py @@ -37,6 +36,7 @@ affinidi_tdk_credential_issuance_client/models/credential_response_immediate.py affinidi_tdk_credential_issuance_client/models/credential_response_immediate_c_nonce_expires_in.py affinidi_tdk_credential_issuance_client/models/credential_response_immediate_credential.py affinidi_tdk_credential_issuance_client/models/credential_subject_not_valid_error.py +affinidi_tdk_credential_issuance_client/models/credential_supported_object.py affinidi_tdk_credential_issuance_client/models/deferred_credential_input.py affinidi_tdk_credential_issuance_client/models/generate_credentials400_response.py affinidi_tdk_credential_issuance_client/models/get_credential_offer400_response.py @@ -47,7 +47,6 @@ affinidi_tdk_credential_issuance_client/models/invalid_jwt_token_error.py affinidi_tdk_credential_issuance_client/models/invalid_parameter_error.py affinidi_tdk_credential_issuance_client/models/invalid_proof_error.py affinidi_tdk_credential_issuance_client/models/issuance_config_dto.py -affinidi_tdk_credential_issuance_client/models/issuance_config_dto_credential_supported_inner.py affinidi_tdk_credential_issuance_client/models/issuance_config_list_response.py affinidi_tdk_credential_issuance_client/models/issuance_config_mini_dto.py affinidi_tdk_credential_issuance_client/models/issuance_state_response.py @@ -62,9 +61,13 @@ affinidi_tdk_credential_issuance_client/models/start_issuance_input.py affinidi_tdk_credential_issuance_client/models/start_issuance_input_data_inner.py affinidi_tdk_credential_issuance_client/models/start_issuance_input_data_inner_meta_data.py affinidi_tdk_credential_issuance_client/models/start_issuance_response.py +affinidi_tdk_credential_issuance_client/models/supported_credential_metadata.py +affinidi_tdk_credential_issuance_client/models/supported_credential_metadata_display_inner.py +affinidi_tdk_credential_issuance_client/models/supported_credential_metadata_display_inner_logo.py affinidi_tdk_credential_issuance_client/models/update_issuance_config_input.py affinidi_tdk_credential_issuance_client/models/vc_claimed_error.py affinidi_tdk_credential_issuance_client/models/well_known_open_id_credential_issuer_response.py +affinidi_tdk_credential_issuance_client/models/well_known_open_id_credential_issuer_response_credentials_supported_inner.py affinidi_tdk_credential_issuance_client/py.typed affinidi_tdk_credential_issuance_client/rest.py docs/ActionForbiddenError.md @@ -76,7 +79,6 @@ docs/CorsGetWellKnownOpenIdCredentialIssuerOK.md docs/CreateCredentialInput.md docs/CreateIssuanceConfig400Response.md docs/CreateIssuanceConfigInput.md -docs/CreateIssuanceConfigInputCredentialSupportedInner.md docs/CredentialIssuanceIdExistError.md docs/CredentialOfferClaimedError.md docs/CredentialOfferExpiredError.md @@ -91,6 +93,7 @@ docs/CredentialResponseImmediate.md docs/CredentialResponseImmediateCNonceExpiresIn.md docs/CredentialResponseImmediateCredential.md docs/CredentialSubjectNotValidError.md +docs/CredentialSupportedObject.md docs/CredentialsApi.md docs/DeferredCredentialInput.md docs/GenerateCredentials400Response.md @@ -103,7 +106,6 @@ docs/InvalidParameterError.md docs/InvalidProofError.md docs/IssuanceApi.md docs/IssuanceConfigDto.md -docs/IssuanceConfigDtoCredentialSupportedInner.md docs/IssuanceConfigListResponse.md docs/IssuanceConfigMiniDto.md docs/IssuanceStateResponse.md @@ -119,14 +121,23 @@ docs/StartIssuanceInput.md docs/StartIssuanceInputDataInner.md docs/StartIssuanceInputDataInnerMetaData.md docs/StartIssuanceResponse.md +docs/SupportedCredentialMetadata.md +docs/SupportedCredentialMetadataDisplayInner.md +docs/SupportedCredentialMetadataDisplayInnerLogo.md docs/UpdateIssuanceConfigInput.md docs/VcClaimedError.md docs/WellKnownApi.md docs/WellKnownOpenIdCredentialIssuerResponse.md +docs/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md pyproject.toml requirements.txt setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_credential_supported_object.py +test/test_supported_credential_metadata.py +test/test_supported_credential_metadata_display_inner.py +test/test_supported_credential_metadata_display_inner_logo.py +test/test_well_known_open_id_credential_issuer_response_credentials_supported_inner.py tox.ini diff --git a/clients/python/credential_issuance_client/README.md b/clients/python/credential_issuance_client/README.md index 0bf5a96a..ec4e1fcd 100644 --- a/clients/python/credential_issuance_client/README.md +++ b/clients/python/credential_issuance_client/README.md @@ -123,7 +123,6 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [CreateCredentialInput](docs/CreateCredentialInput.md) - [CreateIssuanceConfig400Response](docs/CreateIssuanceConfig400Response.md) - [CreateIssuanceConfigInput](docs/CreateIssuanceConfigInput.md) -- [CreateIssuanceConfigInputCredentialSupportedInner](docs/CreateIssuanceConfigInputCredentialSupportedInner.md) - [CredentialIssuanceIdExistError](docs/CredentialIssuanceIdExistError.md) - [CredentialOfferClaimedError](docs/CredentialOfferClaimedError.md) - [CredentialOfferExpiredError](docs/CredentialOfferExpiredError.md) @@ -138,6 +137,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [CredentialResponseImmediateCNonceExpiresIn](docs/CredentialResponseImmediateCNonceExpiresIn.md) - [CredentialResponseImmediateCredential](docs/CredentialResponseImmediateCredential.md) - [CredentialSubjectNotValidError](docs/CredentialSubjectNotValidError.md) +- [CredentialSupportedObject](docs/CredentialSupportedObject.md) - [DeferredCredentialInput](docs/DeferredCredentialInput.md) - [GenerateCredentials400Response](docs/GenerateCredentials400Response.md) - [GetCredentialOffer400Response](docs/GetCredentialOffer400Response.md) @@ -148,7 +148,6 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [InvalidParameterError](docs/InvalidParameterError.md) - [InvalidProofError](docs/InvalidProofError.md) - [IssuanceConfigDto](docs/IssuanceConfigDto.md) -- [IssuanceConfigDtoCredentialSupportedInner](docs/IssuanceConfigDtoCredentialSupportedInner.md) - [IssuanceConfigListResponse](docs/IssuanceConfigListResponse.md) - [IssuanceConfigMiniDto](docs/IssuanceConfigMiniDto.md) - [IssuanceStateResponse](docs/IssuanceStateResponse.md) @@ -163,9 +162,13 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [StartIssuanceInputDataInner](docs/StartIssuanceInputDataInner.md) - [StartIssuanceInputDataInnerMetaData](docs/StartIssuanceInputDataInnerMetaData.md) - [StartIssuanceResponse](docs/StartIssuanceResponse.md) +- [SupportedCredentialMetadata](docs/SupportedCredentialMetadata.md) +- [SupportedCredentialMetadataDisplayInner](docs/SupportedCredentialMetadataDisplayInner.md) +- [SupportedCredentialMetadataDisplayInnerLogo](docs/SupportedCredentialMetadataDisplayInnerLogo.md) - [UpdateIssuanceConfigInput](docs/UpdateIssuanceConfigInput.md) - [VcClaimedError](docs/VcClaimedError.md) - [WellKnownOpenIdCredentialIssuerResponse](docs/WellKnownOpenIdCredentialIssuerResponse.md) +- [WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner](docs/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.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 480f9fb8..f6fa4d96 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 @@ -44,7 +44,6 @@ 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 from affinidi_tdk_credential_issuance_client.models.create_issuance_config_input import CreateIssuanceConfigInput -from affinidi_tdk_credential_issuance_client.models.create_issuance_config_input_credential_supported_inner import CreateIssuanceConfigInputCredentialSupportedInner from affinidi_tdk_credential_issuance_client.models.credential_issuance_id_exist_error import CredentialIssuanceIdExistError from affinidi_tdk_credential_issuance_client.models.credential_offer_claimed_error import CredentialOfferClaimedError from affinidi_tdk_credential_issuance_client.models.credential_offer_expired_error import CredentialOfferExpiredError @@ -59,6 +58,7 @@ from affinidi_tdk_credential_issuance_client.models.credential_response_immediate_c_nonce_expires_in import CredentialResponseImmediateCNonceExpiresIn from affinidi_tdk_credential_issuance_client.models.credential_response_immediate_credential import CredentialResponseImmediateCredential from affinidi_tdk_credential_issuance_client.models.credential_subject_not_valid_error import CredentialSubjectNotValidError +from affinidi_tdk_credential_issuance_client.models.credential_supported_object import CredentialSupportedObject from affinidi_tdk_credential_issuance_client.models.deferred_credential_input import DeferredCredentialInput from affinidi_tdk_credential_issuance_client.models.generate_credentials400_response import GenerateCredentials400Response from affinidi_tdk_credential_issuance_client.models.get_credential_offer400_response import GetCredentialOffer400Response @@ -69,7 +69,6 @@ from affinidi_tdk_credential_issuance_client.models.invalid_parameter_error import InvalidParameterError from affinidi_tdk_credential_issuance_client.models.invalid_proof_error import InvalidProofError from affinidi_tdk_credential_issuance_client.models.issuance_config_dto import IssuanceConfigDto -from affinidi_tdk_credential_issuance_client.models.issuance_config_dto_credential_supported_inner import IssuanceConfigDtoCredentialSupportedInner from affinidi_tdk_credential_issuance_client.models.issuance_config_list_response import IssuanceConfigListResponse from affinidi_tdk_credential_issuance_client.models.issuance_config_mini_dto import IssuanceConfigMiniDto from affinidi_tdk_credential_issuance_client.models.issuance_state_response import IssuanceStateResponse @@ -84,6 +83,10 @@ from affinidi_tdk_credential_issuance_client.models.start_issuance_input_data_inner import StartIssuanceInputDataInner from affinidi_tdk_credential_issuance_client.models.start_issuance_input_data_inner_meta_data import StartIssuanceInputDataInnerMetaData from affinidi_tdk_credential_issuance_client.models.start_issuance_response import StartIssuanceResponse +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata import SupportedCredentialMetadata +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata_display_inner import SupportedCredentialMetadataDisplayInner +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata_display_inner_logo import SupportedCredentialMetadataDisplayInnerLogo from affinidi_tdk_credential_issuance_client.models.update_issuance_config_input import UpdateIssuanceConfigInput from affinidi_tdk_credential_issuance_client.models.vc_claimed_error import VcClaimedError from affinidi_tdk_credential_issuance_client.models.well_known_open_id_credential_issuer_response import WellKnownOpenIdCredentialIssuerResponse +from affinidi_tdk_credential_issuance_client.models.well_known_open_id_credential_issuer_response_credentials_supported_inner import WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner 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 3e7a209e..0a840c4a 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 @@ -23,7 +23,6 @@ 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 from affinidi_tdk_credential_issuance_client.models.create_issuance_config_input import CreateIssuanceConfigInput -from affinidi_tdk_credential_issuance_client.models.create_issuance_config_input_credential_supported_inner import CreateIssuanceConfigInputCredentialSupportedInner from affinidi_tdk_credential_issuance_client.models.credential_issuance_id_exist_error import CredentialIssuanceIdExistError from affinidi_tdk_credential_issuance_client.models.credential_offer_claimed_error import CredentialOfferClaimedError from affinidi_tdk_credential_issuance_client.models.credential_offer_expired_error import CredentialOfferExpiredError @@ -38,6 +37,7 @@ from affinidi_tdk_credential_issuance_client.models.credential_response_immediate_c_nonce_expires_in import CredentialResponseImmediateCNonceExpiresIn from affinidi_tdk_credential_issuance_client.models.credential_response_immediate_credential import CredentialResponseImmediateCredential from affinidi_tdk_credential_issuance_client.models.credential_subject_not_valid_error import CredentialSubjectNotValidError +from affinidi_tdk_credential_issuance_client.models.credential_supported_object import CredentialSupportedObject from affinidi_tdk_credential_issuance_client.models.deferred_credential_input import DeferredCredentialInput from affinidi_tdk_credential_issuance_client.models.generate_credentials400_response import GenerateCredentials400Response from affinidi_tdk_credential_issuance_client.models.get_credential_offer400_response import GetCredentialOffer400Response @@ -48,7 +48,6 @@ from affinidi_tdk_credential_issuance_client.models.invalid_parameter_error import InvalidParameterError from affinidi_tdk_credential_issuance_client.models.invalid_proof_error import InvalidProofError from affinidi_tdk_credential_issuance_client.models.issuance_config_dto import IssuanceConfigDto -from affinidi_tdk_credential_issuance_client.models.issuance_config_dto_credential_supported_inner import IssuanceConfigDtoCredentialSupportedInner from affinidi_tdk_credential_issuance_client.models.issuance_config_list_response import IssuanceConfigListResponse from affinidi_tdk_credential_issuance_client.models.issuance_config_mini_dto import IssuanceConfigMiniDto from affinidi_tdk_credential_issuance_client.models.issuance_state_response import IssuanceStateResponse @@ -63,6 +62,10 @@ from affinidi_tdk_credential_issuance_client.models.start_issuance_input_data_inner import StartIssuanceInputDataInner from affinidi_tdk_credential_issuance_client.models.start_issuance_input_data_inner_meta_data import StartIssuanceInputDataInnerMetaData from affinidi_tdk_credential_issuance_client.models.start_issuance_response import StartIssuanceResponse +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata import SupportedCredentialMetadata +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata_display_inner import SupportedCredentialMetadataDisplayInner +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata_display_inner_logo import SupportedCredentialMetadataDisplayInnerLogo from affinidi_tdk_credential_issuance_client.models.update_issuance_config_input import UpdateIssuanceConfigInput from affinidi_tdk_credential_issuance_client.models.vc_claimed_error import VcClaimedError from affinidi_tdk_credential_issuance_client.models.well_known_open_id_credential_issuer_response import WellKnownOpenIdCredentialIssuerResponse +from affinidi_tdk_credential_issuance_client.models.well_known_open_id_credential_issuer_response_credentials_supported_inner import WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner 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 c64edb01..b0a00c90 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,7 +21,7 @@ from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field, StrictStr, confloat, conint, conlist, validator -from affinidi_tdk_credential_issuance_client.models.create_issuance_config_input_credential_supported_inner import CreateIssuanceConfigInputCredentialSupportedInner +from affinidi_tdk_credential_issuance_client.models.credential_supported_object import CredentialSupportedObject class CreateIssuanceConfigInput(BaseModel): """ @@ -32,7 +32,7 @@ class CreateIssuanceConfigInput(BaseModel): issuer_wallet_id: StrictStr = Field(..., alias="issuerWalletId", description="Issuer Wallet id") credential_offer_duration: Optional[Union[confloat(le=604801, ge=1, multiple_of=1, strict=True), conint(le=604801, ge=1, strict=True)]] = Field(None, alias="credentialOfferDuration", description="credential offer duration in second") format: Optional[StrictStr] = Field(None, description="String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type") - credential_supported: conlist(CreateIssuanceConfigInputCredentialSupportedInner) = Field(..., alias="credentialSupported") + credential_supported: conlist(CredentialSupportedObject) = Field(..., alias="credentialSupported") issuer_metadata: Optional[Dict[str, Any]] = Field(None, alias="issuerMetadata", description="Issuer public information wallet may want to show to user during consent confirmation") __properties = ["name", "description", "issuerWalletId", "credentialOfferDuration", "format", "credentialSupported", "issuerMetadata"] @@ -94,7 +94,7 @@ def from_dict(cls, obj: dict) -> CreateIssuanceConfigInput: "issuer_wallet_id": obj.get("issuerWalletId"), "credential_offer_duration": obj.get("credentialOfferDuration"), "format": obj.get("format"), - "credential_supported": [CreateIssuanceConfigInputCredentialSupportedInner.from_dict(_item) for _item in obj.get("credentialSupported")] if obj.get("credentialSupported") is not None else None, + "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 _obj diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/credential_supported_object.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/credential_supported_object.py new file mode 100644 index 00000000..4081c61d --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/credential_supported_object.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + Affinidi Credential Issuance Service Structure + + 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, constr, validator +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata import SupportedCredentialMetadata + +class CredentialSupportedObject(BaseModel): + """ + CredentialSupportedObject + """ + credential_type_id: StrictStr = Field(..., alias="credentialTypeId", description="It is a String that identifies a Credential that is being requested to be issued.") + json_schema_url: constr(strict=True) = Field(..., alias="jsonSchemaUrl", description="credential jsonLdContextUrl") + json_ld_context_url: constr(strict=True) = Field(..., alias="jsonLdContextUrl", description="credential jsonSchemaUrl") + metadata: Optional[SupportedCredentialMetadata] = None + __properties = ["credentialTypeId", "jsonSchemaUrl", "jsonLdContextUrl", "metadata"] + + @validator('json_schema_url') + def json_schema_url_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^https:\/\/(.+)\.json$", value): + raise ValueError(r"must validate the regular expression /^https:\/\/(.+)\.json$/") + return value + + @validator('json_ld_context_url') + def json_ld_context_url_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^https:\/\/(.+)\.jsonld$", value): + raise ValueError(r"must validate the regular expression /^https:\/\/(.+)\.jsonld$/") + return value + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> CredentialSupportedObject: + """Create an instance of CredentialSupportedObject 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 metadata + if self.metadata: + _dict['metadata'] = self.metadata.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> CredentialSupportedObject: + """Create an instance of CredentialSupportedObject from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CredentialSupportedObject.parse_obj(obj) + + _obj = CredentialSupportedObject.parse_obj({ + "credential_type_id": obj.get("credentialTypeId"), + "json_schema_url": obj.get("jsonSchemaUrl"), + "json_ld_context_url": obj.get("jsonLdContextUrl"), + "metadata": SupportedCredentialMetadata.from_dict(obj.get("metadata")) if obj.get("metadata") 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 2d3784c2..8a5eab3c 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,7 +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.issuance_config_dto_credential_supported_inner import IssuanceConfigDtoCredentialSupportedInner +from affinidi_tdk_credential_issuance_client.models.credential_supported_object import CredentialSupportedObject class IssuanceConfigDto(BaseModel): """ @@ -36,7 +36,7 @@ class IssuanceConfigDto(BaseModel): c_nonce_duration: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="cNonceDuration", description="c_nonce duration in second") format: Optional[StrictStr] = Field(None, description="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") issuer_uri: Optional[StrictStr] = Field(None, alias="issuerUri", description="Issuer URI") - credential_supported: Optional[conlist(IssuanceConfigDtoCredentialSupportedInner, min_items=1)] = Field(None, alias="credentialSupported") + credential_supported: Optional[conlist(CredentialSupportedObject, min_items=1)] = Field(None, alias="credentialSupported") issuer_metadata: Optional[Dict[str, Any]] = Field(None, alias="issuerMetadata", description="Issuer public information wallet may want to show to user during consent confirmation") version: Optional[Union[StrictFloat, StrictInt]] = None __properties = ["id", "name", "description", "issuerDid", "issuerWalletId", "credentialOfferDuration", "cNonceDuration", "format", "issuerUri", "credentialSupported", "issuerMetadata", "version"] @@ -103,7 +103,7 @@ def from_dict(cls, obj: dict) -> IssuanceConfigDto: "c_nonce_duration": obj.get("cNonceDuration"), "format": obj.get("format"), "issuer_uri": obj.get("issuerUri"), - "credential_supported": [IssuanceConfigDtoCredentialSupportedInner.from_dict(_item) for _item in obj.get("credentialSupported")] if obj.get("credentialSupported") is not None else None, + "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") }) diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata.py new file mode 100644 index 00000000..81f60c0e --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + Affinidi Credential Issuance Service Structure + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import List, Optional +from pydantic import BaseModel, conlist +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata_display_inner import SupportedCredentialMetadataDisplayInner + +class SupportedCredentialMetadata(BaseModel): + """ + SupportedCredentialMetadata + """ + display: Optional[conlist(SupportedCredentialMetadataDisplayInner)] = None + additional_properties: Dict[str, Any] = {} + __properties = ["display"] + + 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) -> SupportedCredentialMetadata: + """Create an instance of SupportedCredentialMetadata from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + "additional_properties" + }, + exclude_none=True) + # override the default output from pydantic by calling `to_dict()` of each item in display (list) + _items = [] + if self.display: + for _item in self.display: + if _item: + _items.append(_item.to_dict()) + _dict['display'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> SupportedCredentialMetadata: + """Create an instance of SupportedCredentialMetadata from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return SupportedCredentialMetadata.parse_obj(obj) + + _obj = SupportedCredentialMetadata.parse_obj({ + "display": [SupportedCredentialMetadataDisplayInner.from_dict(_item) for _item in obj.get("display")] if obj.get("display") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata_display_inner.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata_display_inner.py new file mode 100644 index 00000000..9f40b989 --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata_display_inner.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + Affinidi Credential Issuance Service Structure + + 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, constr +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata_display_inner_logo import SupportedCredentialMetadataDisplayInnerLogo + +class SupportedCredentialMetadataDisplayInner(BaseModel): + """ + SupportedCredentialMetadataDisplayInner + """ + name: constr(strict=True, max_length=64) = Field(...) + locale: Optional[constr(strict=True, max_length=16)] = None + logo: Optional[SupportedCredentialMetadataDisplayInnerLogo] = None + background_color: Optional[StrictStr] = Field(None, alias="backgroundColor") + text_color: Optional[StrictStr] = Field(None, alias="textColor") + additional_properties: Dict[str, Any] = {} + __properties = ["name", "locale", "logo", "backgroundColor", "textColor"] + + 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) -> SupportedCredentialMetadataDisplayInner: + """Create an instance of SupportedCredentialMetadataDisplayInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + "additional_properties" + }, + exclude_none=True) + # override the default output from pydantic by calling `to_dict()` of logo + if self.logo: + _dict['logo'] = self.logo.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> SupportedCredentialMetadataDisplayInner: + """Create an instance of SupportedCredentialMetadataDisplayInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return SupportedCredentialMetadataDisplayInner.parse_obj(obj) + + _obj = SupportedCredentialMetadataDisplayInner.parse_obj({ + "name": obj.get("name"), + "locale": obj.get("locale"), + "logo": SupportedCredentialMetadataDisplayInnerLogo.from_dict(obj.get("logo")) if obj.get("logo") is not None else None, + "background_color": obj.get("backgroundColor"), + "text_color": obj.get("textColor") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata_display_inner_logo.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata_display_inner_logo.py new file mode 100644 index 00000000..85156836 --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/supported_credential_metadata_display_inner_logo.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + Affinidi Credential Issuance Service Structure + + 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 SupportedCredentialMetadataDisplayInnerLogo(BaseModel): + """ + SupportedCredentialMetadataDisplayInnerLogo + """ + url: StrictStr = Field(...) + alt_text: Optional[StrictStr] = Field(None, alias="altText") + additional_properties: Dict[str, Any] = {} + __properties = ["url", "altText"] + + 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) -> SupportedCredentialMetadataDisplayInnerLogo: + """Create an instance of SupportedCredentialMetadataDisplayInnerLogo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + "additional_properties" + }, + exclude_none=True) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> SupportedCredentialMetadataDisplayInnerLogo: + """Create an instance of SupportedCredentialMetadataDisplayInnerLogo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return SupportedCredentialMetadataDisplayInnerLogo.parse_obj(obj) + + _obj = SupportedCredentialMetadataDisplayInnerLogo.parse_obj({ + "url": obj.get("url"), + "alt_text": obj.get("altText") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/clients/python/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 e58453d5..6e9399ee 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,7 +21,7 @@ from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field, StrictStr, confloat, conint, conlist, validator -from affinidi_tdk_credential_issuance_client.models.create_issuance_config_input_credential_supported_inner import CreateIssuanceConfigInputCredentialSupportedInner +from affinidi_tdk_credential_issuance_client.models.credential_supported_object import CredentialSupportedObject class UpdateIssuanceConfigInput(BaseModel): """ @@ -33,7 +33,7 @@ class UpdateIssuanceConfigInput(BaseModel): credential_offer_duration: Optional[Union[confloat(le=604801, ge=1, multiple_of=1, strict=True), conint(le=604801, ge=1, strict=True)]] = Field(None, alias="credentialOfferDuration", description="credential offer duration in second") format: Optional[StrictStr] = Field(None, description="String identifying the format of this Credential, i.e., ldp_vc. Depending on the format value, the object contains further elements defining the type") issuer_uri: Optional[StrictStr] = Field(None, alias="issuerUri", description="Issuer URI") - credential_supported: Optional[conlist(CreateIssuanceConfigInputCredentialSupportedInner)] = Field(None, alias="credentialSupported") + credential_supported: Optional[conlist(CredentialSupportedObject)] = Field(None, alias="credentialSupported") issuer_metadata: Optional[Dict[str, Any]] = Field(None, alias="issuerMetadata", description="Issuer public information wallet may want to show to user during consent confirmation") __properties = ["name", "description", "issuerWalletId", "credentialOfferDuration", "format", "issuerUri", "credentialSupported", "issuerMetadata"] @@ -96,7 +96,7 @@ def from_dict(cls, obj: dict) -> UpdateIssuanceConfigInput: "credential_offer_duration": obj.get("credentialOfferDuration"), "format": obj.get("format"), "issuer_uri": obj.get("issuerUri"), - "credential_supported": [CreateIssuanceConfigInputCredentialSupportedInner.from_dict(_item) for _item in obj.get("credentialSupported")] if obj.get("credentialSupported") is not None else None, + "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 _obj diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/well_known_open_id_credential_issuer_response.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/well_known_open_id_credential_issuer_response.py index e4428a45..339e44b2 100644 --- a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/well_known_open_id_credential_issuer_response.py +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/well_known_open_id_credential_issuer_response.py @@ -21,7 +21,7 @@ from typing import List, Optional from pydantic import BaseModel, StrictStr, conlist, validator -from affinidi_tdk_credential_issuance_client.models.issuance_config_dto_credential_supported_inner import IssuanceConfigDtoCredentialSupportedInner +from affinidi_tdk_credential_issuance_client.models.well_known_open_id_credential_issuer_response_credentials_supported_inner import WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner class WellKnownOpenIdCredentialIssuerResponse(BaseModel): """ @@ -30,7 +30,7 @@ class WellKnownOpenIdCredentialIssuerResponse(BaseModel): authorization_endpoint: Optional[StrictStr] = None credential_endpoint: Optional[StrictStr] = None credential_issuer: Optional[StrictStr] = None - credentials_supported: Optional[conlist(IssuanceConfigDtoCredentialSupportedInner)] = None + credentials_supported: Optional[conlist(WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner)] = None deferred_credential_endpoint: Optional[StrictStr] = None grant_types_supported: Optional[conlist(StrictStr)] = None jwks_uri: Optional[StrictStr] = None @@ -125,7 +125,7 @@ def from_dict(cls, obj: dict) -> WellKnownOpenIdCredentialIssuerResponse: "authorization_endpoint": obj.get("authorization_endpoint"), "credential_endpoint": obj.get("credential_endpoint"), "credential_issuer": obj.get("credential_issuer"), - "credentials_supported": [IssuanceConfigDtoCredentialSupportedInner.from_dict(_item) for _item in obj.get("credentials_supported")] if obj.get("credentials_supported") is not None else None, + "credentials_supported": [WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.from_dict(_item) for _item in obj.get("credentials_supported")] if obj.get("credentials_supported") is not None else None, "deferred_credential_endpoint": obj.get("deferred_credential_endpoint"), "grant_types_supported": obj.get("grant_types_supported"), "jwks_uri": obj.get("jwks_uri"), diff --git a/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/well_known_open_id_credential_issuer_response_credentials_supported_inner.py b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/well_known_open_id_credential_issuer_response_credentials_supported_inner.py new file mode 100644 index 00000000..c07716f9 --- /dev/null +++ b/clients/python/credential_issuance_client/affinidi_tdk_credential_issuance_client/models/well_known_open_id_credential_issuer_response_credentials_supported_inner.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + Affinidi Credential Issuance Service Structure + + The version of the OpenAPI document: 1.0.0 + Contact: info@affinidi.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + + +from pydantic import BaseModel, Field, StrictStr + +class WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner(BaseModel): + """ + WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner + """ + credential_type_id: StrictStr = Field(..., alias="credentialTypeId", description="It is a String that identifies a Credential that is being requested to be issued.") + json_schema_url: StrictStr = Field(..., alias="jsonSchemaUrl", description="credential jsonLdContextUrl") + json_ld_context_url: StrictStr = Field(..., alias="jsonLdContextUrl", description="credential jsonSchemaUrl") + __properties = ["credentialTypeId", "jsonSchemaUrl", "jsonLdContextUrl"] + + 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) -> WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner: + """Create an instance of WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner 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) -> WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner: + """Create an instance of WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.parse_obj(obj) + + _obj = WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.parse_obj({ + "credential_type_id": obj.get("credentialTypeId"), + "json_schema_url": obj.get("jsonSchemaUrl"), + "json_ld_context_url": obj.get("jsonLdContextUrl") + }) + return _obj + + diff --git a/clients/python/credential_issuance_client/docs/CreateIssuanceConfigInput.md b/clients/python/credential_issuance_client/docs/CreateIssuanceConfigInput.md index 848ee301..1b545185 100644 --- a/clients/python/credential_issuance_client/docs/CreateIssuanceConfigInput.md +++ b/clients/python/credential_issuance_client/docs/CreateIssuanceConfigInput.md @@ -2,15 +2,15 @@ ## 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[CreateIssuanceConfigInputCredentialSupportedInner]**](CreateIssuanceConfigInputCredentialSupportedInner.md) | | -| **issuer_metadata** | **Dict[str, object]** | Issuer public information wallet may want to show to user during consent confirmation | [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] | ## Example diff --git a/clients/python/credential_issuance_client/docs/CredentialSupportedObject.md b/clients/python/credential_issuance_client/docs/CredentialSupportedObject.md new file mode 100644 index 00000000..ba3535dd --- /dev/null +++ b/clients/python/credential_issuance_client/docs/CredentialSupportedObject.md @@ -0,0 +1,30 @@ +# CredentialSupportedObject + +## Properties + +| Name | Type | Description | Notes | +| ----------------------- | ----------------------------------------------------------------- | --------------------------------------------------------------------------------- | ---------- | +| **credential_type_id** | **str** | It is a String that identifies a Credential that is being requested to be issued. | +| **json_schema_url** | **str** | credential jsonLdContextUrl | +| **json_ld_context_url** | **str** | credential jsonSchemaUrl | +| **metadata** | [**SupportedCredentialMetadata**](SupportedCredentialMetadata.md) | | [optional] | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.credential_supported_object import CredentialSupportedObject + +# TODO update the JSON string below +json = "{}" +# create an instance of CredentialSupportedObject from a JSON string +credential_supported_object_instance = CredentialSupportedObject.from_json(json) +# print the JSON string representation of the object +print CredentialSupportedObject.to_json() + +# convert the object into a dict +credential_supported_object_dict = credential_supported_object_instance.to_dict() +# create an instance of CredentialSupportedObject from a dict +credential_supported_object_form_dict = credential_supported_object.from_dict(credential_supported_object_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/IssuanceConfigDto.md b/clients/python/credential_issuance_client/docs/IssuanceConfigDto.md index 222548a6..265a05f8 100644 --- a/clients/python/credential_issuance_client/docs/IssuanceConfigDto.md +++ b/clients/python/credential_issuance_client/docs/IssuanceConfigDto.md @@ -2,20 +2,20 @@ ## 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[IssuanceConfigDtoCredentialSupportedInner]**](IssuanceConfigDtoCredentialSupportedInner.md) | | [optional] | -| **issuer_metadata** | **Dict[str, object]** | Issuer public information wallet may want to show to user during consent confirmation | [optional] | -| **version** | **float** | | [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] | ## Example diff --git a/clients/python/credential_issuance_client/docs/SupportedCredentialMetadata.md b/clients/python/credential_issuance_client/docs/SupportedCredentialMetadata.md new file mode 100644 index 00000000..412d725a --- /dev/null +++ b/clients/python/credential_issuance_client/docs/SupportedCredentialMetadata.md @@ -0,0 +1,27 @@ +# SupportedCredentialMetadata + +## Properties + +| Name | Type | Description | Notes | +| ----------- | ----------------------------------------------------------------------------------------------- | ----------- | ---------- | +| **display** | [**List[SupportedCredentialMetadataDisplayInner]**](SupportedCredentialMetadataDisplayInner.md) | | [optional] | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata import SupportedCredentialMetadata + +# TODO update the JSON string below +json = "{}" +# create an instance of SupportedCredentialMetadata from a JSON string +supported_credential_metadata_instance = SupportedCredentialMetadata.from_json(json) +# print the JSON string representation of the object +print SupportedCredentialMetadata.to_json() + +# convert the object into a dict +supported_credential_metadata_dict = supported_credential_metadata_instance.to_dict() +# create an instance of SupportedCredentialMetadata from a dict +supported_credential_metadata_form_dict = supported_credential_metadata.from_dict(supported_credential_metadata_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/SupportedCredentialMetadataDisplayInner.md b/clients/python/credential_issuance_client/docs/SupportedCredentialMetadataDisplayInner.md new file mode 100644 index 00000000..2f275119 --- /dev/null +++ b/clients/python/credential_issuance_client/docs/SupportedCredentialMetadataDisplayInner.md @@ -0,0 +1,31 @@ +# SupportedCredentialMetadataDisplayInner + +## Properties + +| Name | Type | Description | Notes | +| -------------------- | ------------------------------------------------------------------------------------------------- | ----------- | ---------- | +| **name** | **str** | | +| **locale** | **str** | | [optional] | +| **logo** | [**SupportedCredentialMetadataDisplayInnerLogo**](SupportedCredentialMetadataDisplayInnerLogo.md) | | [optional] | +| **background_color** | **str** | | [optional] | +| **text_color** | **str** | | [optional] | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata_display_inner import SupportedCredentialMetadataDisplayInner + +# TODO update the JSON string below +json = "{}" +# create an instance of SupportedCredentialMetadataDisplayInner from a JSON string +supported_credential_metadata_display_inner_instance = SupportedCredentialMetadataDisplayInner.from_json(json) +# print the JSON string representation of the object +print SupportedCredentialMetadataDisplayInner.to_json() + +# convert the object into a dict +supported_credential_metadata_display_inner_dict = supported_credential_metadata_display_inner_instance.to_dict() +# create an instance of SupportedCredentialMetadataDisplayInner from a dict +supported_credential_metadata_display_inner_form_dict = supported_credential_metadata_display_inner.from_dict(supported_credential_metadata_display_inner_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/SupportedCredentialMetadataDisplayInnerLogo.md b/clients/python/credential_issuance_client/docs/SupportedCredentialMetadataDisplayInnerLogo.md new file mode 100644 index 00000000..bad4d506 --- /dev/null +++ b/clients/python/credential_issuance_client/docs/SupportedCredentialMetadataDisplayInnerLogo.md @@ -0,0 +1,28 @@ +# SupportedCredentialMetadataDisplayInnerLogo + +## Properties + +| Name | Type | Description | Notes | +| ------------ | ------- | ----------- | ---------- | +| **url** | **str** | | +| **alt_text** | **str** | | [optional] | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.supported_credential_metadata_display_inner_logo import SupportedCredentialMetadataDisplayInnerLogo + +# TODO update the JSON string below +json = "{}" +# create an instance of SupportedCredentialMetadataDisplayInnerLogo from a JSON string +supported_credential_metadata_display_inner_logo_instance = SupportedCredentialMetadataDisplayInnerLogo.from_json(json) +# print the JSON string representation of the object +print SupportedCredentialMetadataDisplayInnerLogo.to_json() + +# convert the object into a dict +supported_credential_metadata_display_inner_logo_dict = supported_credential_metadata_display_inner_logo_instance.to_dict() +# create an instance of SupportedCredentialMetadataDisplayInnerLogo from a dict +supported_credential_metadata_display_inner_logo_form_dict = supported_credential_metadata_display_inner_logo.from_dict(supported_credential_metadata_display_inner_logo_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/UpdateIssuanceConfigInput.md b/clients/python/credential_issuance_client/docs/UpdateIssuanceConfigInput.md index 56497c3e..aa83fc83 100644 --- a/clients/python/credential_issuance_client/docs/UpdateIssuanceConfigInput.md +++ b/clients/python/credential_issuance_client/docs/UpdateIssuanceConfigInput.md @@ -2,16 +2,16 @@ ## 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[CreateIssuanceConfigInputCredentialSupportedInner]**](CreateIssuanceConfigInputCredentialSupportedInner.md) | | [optional] | -| **issuer_metadata** | **Dict[str, object]** | Issuer public information wallet may want to show to user during consent confirmation | [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] | ## Example diff --git a/clients/python/credential_issuance_client/docs/WellKnownOpenIdCredentialIssuerResponse.md b/clients/python/credential_issuance_client/docs/WellKnownOpenIdCredentialIssuerResponse.md index 4c377142..0ed2db32 100644 --- a/clients/python/credential_issuance_client/docs/WellKnownOpenIdCredentialIssuerResponse.md +++ b/clients/python/credential_issuance_client/docs/WellKnownOpenIdCredentialIssuerResponse.md @@ -2,18 +2,18 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------------------------------- | --------------------------------------------------------------------------------------------------- | ----------- | ---------- | -| **authorization_endpoint** | **str** | | [optional] | -| **credential_endpoint** | **str** | | [optional] | -| **credential_issuer** | **str** | | [optional] | -| **credentials_supported** | [**List[IssuanceConfigDtoCredentialSupportedInner]**](IssuanceConfigDtoCredentialSupportedInner.md) | | [optional] | -| **deferred_credential_endpoint** | **str** | | [optional] | -| **grant_types_supported** | **List[str]** | | [optional] | -| **jwks_uri** | **str** | | [optional] | -| **scopes_supported** | **List[str]** | | [optional] | -| **token_endpoint** | **str** | | [optional] | -| **token_endpoint_auth_methods_supported** | **List[str]** | | [optional] | +| Name | Type | Description | Notes | +| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ---------- | +| **authorization_endpoint** | **str** | | [optional] | +| **credential_endpoint** | **str** | | [optional] | +| **credential_issuer** | **str** | | [optional] | +| **credentials_supported** | [**List[WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner]**](WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md) | | [optional] | +| **deferred_credential_endpoint** | **str** | | [optional] | +| **grant_types_supported** | **List[str]** | | [optional] | +| **jwks_uri** | **str** | | [optional] | +| **scopes_supported** | **List[str]** | | [optional] | +| **token_endpoint** | **str** | | [optional] | +| **token_endpoint_auth_methods_supported** | **List[str]** | | [optional] | ## Example diff --git a/clients/python/credential_issuance_client/docs/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md b/clients/python/credential_issuance_client/docs/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md new file mode 100644 index 00000000..eac649ae --- /dev/null +++ b/clients/python/credential_issuance_client/docs/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.md @@ -0,0 +1,29 @@ +# WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner + +## Properties + +| Name | Type | Description | Notes | +| ----------------------- | ------- | --------------------------------------------------------------------------------- | ----- | +| **credential_type_id** | **str** | It is a String that identifies a Credential that is being requested to be issued. | +| **json_schema_url** | **str** | credential jsonLdContextUrl | +| **json_ld_context_url** | **str** | credential jsonSchemaUrl | + +## Example + +```python +from affinidi_tdk_credential_issuance_client.models.well_known_open_id_credential_issuer_response_credentials_supported_inner import WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner + +# TODO update the JSON string below +json = "{}" +# create an instance of WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner from a JSON string +well_known_open_id_credential_issuer_response_credentials_supported_inner_instance = WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.from_json(json) +# print the JSON string representation of the object +print WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.to_json() + +# convert the object into a dict +well_known_open_id_credential_issuer_response_credentials_supported_inner_dict = well_known_open_id_credential_issuer_response_credentials_supported_inner_instance.to_dict() +# create an instance of WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner from a dict +well_known_open_id_credential_issuer_response_credentials_supported_inner_form_dict = well_known_open_id_credential_issuer_response_credentials_supported_inner.from_dict(well_known_open_id_credential_issuer_response_credentials_supported_inner_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/test/test_credential_supported_object.py b/clients/python/credential_issuance_client/test/test_credential_supported_object.py new file mode 100644 index 00000000..7a0193d6 --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_credential_supported_object.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + Affinidi Credential Issuance Service Structure + + 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.credential_supported_object import CredentialSupportedObject # noqa: E501 + +class TestCredentialSupportedObject(unittest.TestCase): + """CredentialSupportedObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CredentialSupportedObject: + """Test CredentialSupportedObject + 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 `CredentialSupportedObject` + """ + model = CredentialSupportedObject() # noqa: E501 + if include_optional: + return CredentialSupportedObject( + credential_type_id = '', + json_schema_url = 'https://j.json', + json_ld_context_url = 'https://j.jsonld', + metadata = { } + ) + else: + return CredentialSupportedObject( + credential_type_id = '', + json_schema_url = 'https://j.json', + json_ld_context_url = 'https://j.jsonld', + ) + """ + + def testCredentialSupportedObject(self): + """Test CredentialSupportedObject""" + # 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_supported_credential_metadata.py b/clients/python/credential_issuance_client/test/test_supported_credential_metadata.py new file mode 100644 index 00000000..45df5d0b --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_supported_credential_metadata.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + Affinidi Credential Issuance Service Structure + + 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.supported_credential_metadata import SupportedCredentialMetadata # noqa: E501 + +class TestSupportedCredentialMetadata(unittest.TestCase): + """SupportedCredentialMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SupportedCredentialMetadata: + """Test SupportedCredentialMetadata + 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 `SupportedCredentialMetadata` + """ + model = SupportedCredentialMetadata() # noqa: E501 + if include_optional: + return SupportedCredentialMetadata( + display = [ + { } + ] + ) + else: + return SupportedCredentialMetadata( + ) + """ + + def testSupportedCredentialMetadata(self): + """Test SupportedCredentialMetadata""" + # 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_supported_credential_metadata_display_inner.py b/clients/python/credential_issuance_client/test/test_supported_credential_metadata_display_inner.py new file mode 100644 index 00000000..5d0c956e --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_supported_credential_metadata_display_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + Affinidi Credential Issuance Service Structure + + 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.supported_credential_metadata_display_inner import SupportedCredentialMetadataDisplayInner # noqa: E501 + +class TestSupportedCredentialMetadataDisplayInner(unittest.TestCase): + """SupportedCredentialMetadataDisplayInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SupportedCredentialMetadataDisplayInner: + """Test SupportedCredentialMetadataDisplayInner + 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 `SupportedCredentialMetadataDisplayInner` + """ + model = SupportedCredentialMetadataDisplayInner() # noqa: E501 + if include_optional: + return SupportedCredentialMetadataDisplayInner( + name = '', + locale = '', + logo = { }, + background_color = '', + text_color = '' + ) + else: + return SupportedCredentialMetadataDisplayInner( + name = '', + ) + """ + + def testSupportedCredentialMetadataDisplayInner(self): + """Test SupportedCredentialMetadataDisplayInner""" + # 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_supported_credential_metadata_display_inner_logo.py b/clients/python/credential_issuance_client/test/test_supported_credential_metadata_display_inner_logo.py new file mode 100644 index 00000000..2bd0cf18 --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_supported_credential_metadata_display_inner_logo.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + Affinidi Credential Issuance Service Structure + + 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.supported_credential_metadata_display_inner_logo import SupportedCredentialMetadataDisplayInnerLogo # noqa: E501 + +class TestSupportedCredentialMetadataDisplayInnerLogo(unittest.TestCase): + """SupportedCredentialMetadataDisplayInnerLogo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SupportedCredentialMetadataDisplayInnerLogo: + """Test SupportedCredentialMetadataDisplayInnerLogo + 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 `SupportedCredentialMetadataDisplayInnerLogo` + """ + model = SupportedCredentialMetadataDisplayInnerLogo() # noqa: E501 + if include_optional: + return SupportedCredentialMetadataDisplayInnerLogo( + url = '', + alt_text = '' + ) + else: + return SupportedCredentialMetadataDisplayInnerLogo( + url = '', + ) + """ + + def testSupportedCredentialMetadataDisplayInnerLogo(self): + """Test SupportedCredentialMetadataDisplayInnerLogo""" + # 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_well_known_open_id_credential_issuer_response_credentials_supported_inner.py b/clients/python/credential_issuance_client/test/test_well_known_open_id_credential_issuer_response_credentials_supported_inner.py new file mode 100644 index 00000000..a9601dee --- /dev/null +++ b/clients/python/credential_issuance_client/test/test_well_known_open_id_credential_issuer_response_credentials_supported_inner.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + CredentialIssuanceService + + Affinidi Credential Issuance Service Structure + + 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.well_known_open_id_credential_issuer_response_credentials_supported_inner import WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner # noqa: E501 + +class TestWellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner(unittest.TestCase): + """WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner: + """Test WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner + 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 `WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner` + """ + model = WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner() # noqa: E501 + if include_optional: + return WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner( + credential_type_id = '', + json_schema_url = '', + json_ld_context_url = '' + ) + else: + return WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner( + credential_type_id = '', + json_schema_url = '', + json_ld_context_url = '', + ) + """ + + def testWellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner(self): + """Test WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/clients/python/iota_client/.openapi-generator/FILES b/clients/python/iota_client/.openapi-generator/FILES index 17fd7702..a76984cf 100644 --- a/clients/python/iota_client/.openapi-generator/FILES +++ b/clients/python/iota_client/.openapi-generator/FILES @@ -93,8 +93,4 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_aws_exchange_credentials_project_token.py -test/test_aws_exchange_credentials_project_token_ok.py -test/test_aws_exchange_credentials_project_token_ok_credentials.py -test/test_cors_aws_exchange_credentials_project_token_ok.py tox.ini diff --git a/clients/typescript/credential-issuance-client/api.ts b/clients/typescript/credential-issuance-client/api.ts index 3db0afc4..1a4446a5 100644 --- a/clients/typescript/credential-issuance-client/api.ts +++ b/clients/typescript/credential-issuance-client/api.ts @@ -235,10 +235,10 @@ export interface CreateIssuanceConfigInput { format?: CreateIssuanceConfigInputFormatEnum /** * - * @type {Array} + * @type {Array} * @memberof CreateIssuanceConfigInput */ - credentialSupported: Array + credentialSupported: Array /** * Issuer public information wallet may want to show to user during consent confirmation * @type {{ [key: string]: any; }} @@ -255,31 +255,6 @@ export const CreateIssuanceConfigInputFormatEnum = { export type CreateIssuanceConfigInputFormatEnum = (typeof CreateIssuanceConfigInputFormatEnum)[keyof typeof CreateIssuanceConfigInputFormatEnum] -/** - * - * @export - * @interface CreateIssuanceConfigInputCredentialSupportedInner - */ -export interface CreateIssuanceConfigInputCredentialSupportedInner { - /** - * It is a String that identifies a Credential that is being requested to be issued. - * @type {string} - * @memberof CreateIssuanceConfigInputCredentialSupportedInner - */ - credentialTypeId: string - /** - * credential jsonLdContextUrl - * @type {string} - * @memberof CreateIssuanceConfigInputCredentialSupportedInner - */ - jsonSchemaUrl: string - /** - * credential jsonSchemaUrl - * @type {string} - * @memberof CreateIssuanceConfigInputCredentialSupportedInner - */ - jsonLdContextUrl: string -} /** * * @export @@ -691,6 +666,37 @@ export const CredentialSubjectNotValidErrorHttpStatusCodeEnum = { export type CredentialSubjectNotValidErrorHttpStatusCodeEnum = (typeof CredentialSubjectNotValidErrorHttpStatusCodeEnum)[keyof typeof CredentialSubjectNotValidErrorHttpStatusCodeEnum] +/** + * + * @export + * @interface CredentialSupportedObject + */ +export interface CredentialSupportedObject { + /** + * It is a String that identifies a Credential that is being requested to be issued. + * @type {string} + * @memberof CredentialSupportedObject + */ + credentialTypeId: string + /** + * credential jsonLdContextUrl + * @type {string} + * @memberof CredentialSupportedObject + */ + jsonSchemaUrl: string + /** + * credential jsonSchemaUrl + * @type {string} + * @memberof CredentialSupportedObject + */ + jsonLdContextUrl: string + /** + * + * @type {SupportedCredentialMetadata} + * @memberof CredentialSupportedObject + */ + metadata?: SupportedCredentialMetadata +} /** * * @export @@ -1129,10 +1135,10 @@ export interface IssuanceConfigDto { issuerUri?: string /** * - * @type {Array} + * @type {Array} * @memberof IssuanceConfigDto */ - credentialSupported?: Array + credentialSupported?: Array /** * Issuer public information wallet may want to show to user during consent confirmation * @type {{ [key: string]: any; }} @@ -1155,31 +1161,6 @@ export const IssuanceConfigDtoFormatEnum = { export type IssuanceConfigDtoFormatEnum = (typeof IssuanceConfigDtoFormatEnum)[keyof typeof IssuanceConfigDtoFormatEnum] -/** - * - * @export - * @interface IssuanceConfigDtoCredentialSupportedInner - */ -export interface IssuanceConfigDtoCredentialSupportedInner { - /** - * It is a String that identifies a Credential that is being requested to be issued. - * @type {string} - * @memberof IssuanceConfigDtoCredentialSupportedInner - */ - credentialTypeId: string - /** - * credential jsonLdContextUrl - * @type {string} - * @memberof IssuanceConfigDtoCredentialSupportedInner - */ - jsonSchemaUrl: string - /** - * credential jsonSchemaUrl - * @type {string} - * @memberof IssuanceConfigDtoCredentialSupportedInner - */ - jsonLdContextUrl: string -} /** * * @export @@ -1677,6 +1658,81 @@ export interface StartIssuanceResponse { */ expiresIn: number } +/** + * + * @export + * @interface SupportedCredentialMetadata + */ +export interface SupportedCredentialMetadata { + [key: string]: any + + /** + * + * @type {Array} + * @memberof SupportedCredentialMetadata + */ + display?: Array +} +/** + * + * @export + * @interface SupportedCredentialMetadataDisplayInner + */ +export interface SupportedCredentialMetadataDisplayInner { + [key: string]: any + + /** + * + * @type {string} + * @memberof SupportedCredentialMetadataDisplayInner + */ + name: string + /** + * + * @type {string} + * @memberof SupportedCredentialMetadataDisplayInner + */ + locale?: string + /** + * + * @type {SupportedCredentialMetadataDisplayInnerLogo} + * @memberof SupportedCredentialMetadataDisplayInner + */ + logo?: SupportedCredentialMetadataDisplayInnerLogo + /** + * + * @type {string} + * @memberof SupportedCredentialMetadataDisplayInner + */ + backgroundColor?: string + /** + * + * @type {string} + * @memberof SupportedCredentialMetadataDisplayInner + */ + textColor?: string +} +/** + * + * @export + * @interface SupportedCredentialMetadataDisplayInnerLogo + */ +export interface SupportedCredentialMetadataDisplayInnerLogo { + [key: string]: any + + /** + * + * @type {string} + * @memberof SupportedCredentialMetadataDisplayInnerLogo + */ + url: string + /** + * + * @type {string} + * @memberof SupportedCredentialMetadataDisplayInnerLogo + */ + altText?: string +} /** * * @export @@ -1721,10 +1777,10 @@ export interface UpdateIssuanceConfigInput { issuerUri?: string /** * - * @type {Array} + * @type {Array} * @memberof UpdateIssuanceConfigInput */ - credentialSupported?: Array + credentialSupported?: Array /** * Issuer public information wallet may want to show to user during consent confirmation * @type {{ [key: string]: any; }} @@ -1827,10 +1883,10 @@ export interface WellKnownOpenIdCredentialIssuerResponse { credential_issuer?: string /** * - * @type {Array} + * @type {Array} * @memberof WellKnownOpenIdCredentialIssuerResponse */ - credentials_supported?: Array + credentials_supported?: Array /** * * @type {string} @@ -1893,6 +1949,32 @@ export const WellKnownOpenIdCredentialIssuerResponseTokenEndpointAuthMethodsSupp export type WellKnownOpenIdCredentialIssuerResponseTokenEndpointAuthMethodsSupportedEnum = (typeof WellKnownOpenIdCredentialIssuerResponseTokenEndpointAuthMethodsSupportedEnum)[keyof typeof WellKnownOpenIdCredentialIssuerResponseTokenEndpointAuthMethodsSupportedEnum] +/** + * + * @export + * @interface WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner + */ +export interface WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner { + /** + * It is a String that identifies a Credential that is being requested to be issued. + * @type {string} + * @memberof WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner + */ + credentialTypeId: string + /** + * credential jsonLdContextUrl + * @type {string} + * @memberof WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner + */ + jsonSchemaUrl: string + /** + * credential jsonSchemaUrl + * @type {string} + * @memberof WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner + */ + jsonLdContextUrl: string +} + /** * ConfigurationApi - axios parameter creator * @export diff --git a/clients/typescript/credential-issuance-client/docs/.openapi-generator/FILES b/clients/typescript/credential-issuance-client/docs/.openapi-generator/FILES index 63b82f8c..98c878a9 100644 --- a/clients/typescript/credential-issuance-client/docs/.openapi-generator/FILES +++ b/clients/typescript/credential-issuance-client/docs/.openapi-generator/FILES @@ -10,7 +10,6 @@ Models/CorsGetCredentialOfferOK.md Models/CorsGetWellKnownOpenIdCredentialIssuerOK.md Models/CreateCredentialInput.md Models/CreateIssuanceConfigInput.md -Models/CreateIssuanceConfigInput_credentialSupported_inner.md Models/CredentialIssuanceIdExistError.md Models/CredentialOfferClaimedError.md Models/CredentialOfferExpiredError.md @@ -25,6 +24,7 @@ Models/CredentialResponseImmediate.md Models/CredentialResponseImmediate_c_nonce_expires_in.md Models/CredentialResponseImmediate_credential.md Models/CredentialSubjectNotValidError.md +Models/CredentialSupportedObject.md Models/DeferredCredentialInput.md Models/InvalidCredentialRequestError.md Models/InvalidCredentialTypeError.md @@ -33,7 +33,6 @@ Models/InvalidJwtTokenError.md Models/InvalidParameterError.md Models/InvalidProofError.md Models/IssuanceConfigDto.md -Models/IssuanceConfigDto_credentialSupported_inner.md Models/IssuanceConfigListResponse.md Models/IssuanceConfigMiniDto.md Models/IssuanceStateResponse.md @@ -47,9 +46,13 @@ Models/StartIssuanceInput.md Models/StartIssuanceInput_data_inner.md Models/StartIssuanceInput_data_inner_metaData.md Models/StartIssuanceResponse.md +Models/SupportedCredentialMetadata.md +Models/SupportedCredentialMetadata_display_inner.md +Models/SupportedCredentialMetadata_display_inner_logo.md Models/UpdateIssuanceConfigInput.md Models/VcClaimedError.md Models/WellKnownOpenIdCredentialIssuerResponse.md +Models/WellKnownOpenIdCredentialIssuerResponse_credentials_supported_inner.md Models/createIssuanceConfig_400_response.md Models/generateCredentials_400_response.md Models/getCredentialOffer_400_response.md diff --git a/clients/typescript/credential-issuance-client/docs/Models/CreateIssuanceConfigInput.md b/clients/typescript/credential-issuance-client/docs/Models/CreateIssuanceConfigInput.md index c79114b0..53179307 100644 --- a/clients/typescript/credential-issuance-client/docs/Models/CreateIssuanceConfigInput.md +++ b/clients/typescript/credential-issuance-client/docs/Models/CreateIssuanceConfigInput.md @@ -2,14 +2,14 @@ ## 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**](CreateIssuanceConfigInput_credentialSupported_inner.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] | +| 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] | [[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/CredentialSupportedObject.md b/clients/typescript/credential-issuance-client/docs/Models/CredentialSupportedObject.md new file mode 100644 index 00000000..2641d5e5 --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/CredentialSupportedObject.md @@ -0,0 +1,12 @@ +# CredentialSupportedObject + +## Properties + +| Name | Type | Description | Notes | +| -------------------- | ----------------------------------------------------------------- | --------------------------------------------------------------------------------- | ---------------------------- | +| **credentialTypeId** | **String** | It is a String that identifies a Credential that is being requested to be issued. | [default to null] | +| **jsonSchemaUrl** | **String** | credential jsonLdContextUrl | [default to null] | +| **jsonLdContextUrl** | **String** | credential jsonSchemaUrl | [default to null] | +| **metadata** | [**SupportedCredentialMetadata**](SupportedCredentialMetadata.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 3954fe91..330f0b05 100644 --- a/clients/typescript/credential-issuance-client/docs/Models/IssuanceConfigDto.md +++ b/clients/typescript/credential-issuance-client/docs/Models/IssuanceConfigDto.md @@ -2,19 +2,19 @@ ## 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**](IssuanceConfigDto_credentialSupported_inner.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] | +| 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] | [[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/SupportedCredentialMetadata.md b/clients/typescript/credential-issuance-client/docs/Models/SupportedCredentialMetadata.md new file mode 100644 index 00000000..b2d0269f --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/SupportedCredentialMetadata.md @@ -0,0 +1,9 @@ +# SupportedCredentialMetadata + +## Properties + +| Name | Type | Description | Notes | +| ----------- | -------------------------------------------------------- | ----------- | ---------------------------- | +| **display** | [**List**](SupportedCredentialMetadata_display_inner.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/typescript/credential-issuance-client/docs/Models/SupportedCredentialMetadata_display_inner.md b/clients/typescript/credential-issuance-client/docs/Models/SupportedCredentialMetadata_display_inner.md new file mode 100644 index 00000000..4d2a1cc0 --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/SupportedCredentialMetadata_display_inner.md @@ -0,0 +1,13 @@ +# SupportedCredentialMetadata_display_inner + +## Properties + +| Name | Type | Description | Notes | +| ------------------- | ------------------------------------------------------------------------------------------------------- | ----------- | ---------------------------- | +| **name** | **String** | | [default to null] | +| **locale** | **String** | | [optional] [default to null] | +| **logo** | [**SupportedCredentialMetadata_display_inner_logo**](SupportedCredentialMetadata_display_inner_logo.md) | | [optional] [default to null] | +| **backgroundColor** | **String** | | [optional] [default to null] | +| **textColor** | **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/SupportedCredentialMetadata_display_inner_logo.md b/clients/typescript/credential-issuance-client/docs/Models/SupportedCredentialMetadata_display_inner_logo.md new file mode 100644 index 00000000..54454292 --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/SupportedCredentialMetadata_display_inner_logo.md @@ -0,0 +1,10 @@ +# SupportedCredentialMetadata_display_inner_logo + +## Properties + +| Name | Type | Description | Notes | +| ----------- | ---------- | ----------- | ---------------------------- | +| **url** | **String** | | [default to null] | +| **altText** | **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/UpdateIssuanceConfigInput.md b/clients/typescript/credential-issuance-client/docs/Models/UpdateIssuanceConfigInput.md index 6c3c8c9e..b0ed775f 100644 --- a/clients/typescript/credential-issuance-client/docs/Models/UpdateIssuanceConfigInput.md +++ b/clients/typescript/credential-issuance-client/docs/Models/UpdateIssuanceConfigInput.md @@ -2,15 +2,15 @@ ## 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**](CreateIssuanceConfigInput_credentialSupported_inner.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] | +| 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] | [[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/WellKnownOpenIdCredentialIssuerResponse.md b/clients/typescript/credential-issuance-client/docs/Models/WellKnownOpenIdCredentialIssuerResponse.md index 7d2d46d0..03783a5e 100644 --- a/clients/typescript/credential-issuance-client/docs/Models/WellKnownOpenIdCredentialIssuerResponse.md +++ b/clients/typescript/credential-issuance-client/docs/Models/WellKnownOpenIdCredentialIssuerResponse.md @@ -2,17 +2,17 @@ ## Properties -| Name | Type | Description | Notes | -| ----------------------------------------- | ---------------------------------------------------------- | ----------- | ---------------------------- | -| **authorization_endpoint** | **String** | | [optional] [default to null] | -| **credential_endpoint** | **String** | | [optional] [default to null] | -| **credential_issuer** | **String** | | [optional] [default to null] | -| **credentials_supported** | [**List**](IssuanceConfigDto_credentialSupported_inner.md) | | [optional] [default to null] | -| **deferred_credential_endpoint** | **String** | | [optional] [default to null] | -| **grant_types_supported** | **List** | | [optional] [default to null] | -| **jwks_uri** | **String** | | [optional] [default to null] | -| **scopes_supported** | **List** | | [optional] [default to null] | -| **token_endpoint** | **String** | | [optional] [default to null] | -| **token_endpoint_auth_methods_supported** | **List** | | [optional] [default to null] | +| Name | Type | Description | Notes | +| ----------------------------------------- | ---------------------------------------------------------------------------------- | ----------- | ---------------------------- | +| **authorization_endpoint** | **String** | | [optional] [default to null] | +| **credential_endpoint** | **String** | | [optional] [default to null] | +| **credential_issuer** | **String** | | [optional] [default to null] | +| **credentials_supported** | [**List**](WellKnownOpenIdCredentialIssuerResponse_credentials_supported_inner.md) | | [optional] [default to null] | +| **deferred_credential_endpoint** | **String** | | [optional] [default to null] | +| **grant_types_supported** | **List** | | [optional] [default to null] | +| **jwks_uri** | **String** | | [optional] [default to null] | +| **scopes_supported** | **List** | | [optional] [default to null] | +| **token_endpoint** | **String** | | [optional] [default to null] | +| **token_endpoint_auth_methods_supported** | **List** | | [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/WellKnownOpenIdCredentialIssuerResponse_credentials_supported_inner.md b/clients/typescript/credential-issuance-client/docs/Models/WellKnownOpenIdCredentialIssuerResponse_credentials_supported_inner.md new file mode 100644 index 00000000..695b2958 --- /dev/null +++ b/clients/typescript/credential-issuance-client/docs/Models/WellKnownOpenIdCredentialIssuerResponse_credentials_supported_inner.md @@ -0,0 +1,11 @@ +# WellKnownOpenIdCredentialIssuerResponse_credentials_supported_inner + +## Properties + +| Name | Type | Description | Notes | +| -------------------- | ---------- | --------------------------------------------------------------------------------- | ----------------- | +| **credentialTypeId** | **String** | It is a String that identifies a Credential that is being requested to be issued. | [default to null] | +| **jsonSchemaUrl** | **String** | credential jsonLdContextUrl | [default to null] | +| **jsonLdContextUrl** | **String** | credential jsonSchemaUrl | [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 ff7ec365..3dd0d2be 100644 --- a/clients/typescript/credential-issuance-client/docs/README.md +++ b/clients/typescript/credential-issuance-client/docs/README.md @@ -31,7 +31,6 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [CorsGetWellKnownOpenIdCredentialIssuerOK](./Models/CorsGetWellKnownOpenIdCredentialIssuerOK.md) - [CreateCredentialInput](./Models/CreateCredentialInput.md) - [CreateIssuanceConfigInput](./Models/CreateIssuanceConfigInput.md) -- [CreateIssuanceConfigInput_credentialSupported_inner](./Models/CreateIssuanceConfigInput_credentialSupported_inner.md) - [CredentialIssuanceIdExistError](./Models/CredentialIssuanceIdExistError.md) - [CredentialOfferClaimedError](./Models/CredentialOfferClaimedError.md) - [CredentialOfferExpiredError](./Models/CredentialOfferExpiredError.md) @@ -46,6 +45,7 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [CredentialResponseImmediate_c_nonce_expires_in](./Models/CredentialResponseImmediate_c_nonce_expires_in.md) - [CredentialResponseImmediate_credential](./Models/CredentialResponseImmediate_credential.md) - [CredentialSubjectNotValidError](./Models/CredentialSubjectNotValidError.md) +- [CredentialSupportedObject](./Models/CredentialSupportedObject.md) - [DeferredCredentialInput](./Models/DeferredCredentialInput.md) - [InvalidCredentialRequestError](./Models/InvalidCredentialRequestError.md) - [InvalidCredentialTypeError](./Models/InvalidCredentialTypeError.md) @@ -54,7 +54,6 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [InvalidParameterError](./Models/InvalidParameterError.md) - [InvalidProofError](./Models/InvalidProofError.md) - [IssuanceConfigDto](./Models/IssuanceConfigDto.md) -- [IssuanceConfigDto_credentialSupported_inner](./Models/IssuanceConfigDto_credentialSupported_inner.md) - [IssuanceConfigListResponse](./Models/IssuanceConfigListResponse.md) - [IssuanceConfigMiniDto](./Models/IssuanceConfigMiniDto.md) - [IssuanceStateResponse](./Models/IssuanceStateResponse.md) @@ -68,9 +67,13 @@ All URIs are relative to *https://apse1.api.affinidi.io/cis* - [StartIssuanceInput_data_inner](./Models/StartIssuanceInput_data_inner.md) - [StartIssuanceInput_data_inner_metaData](./Models/StartIssuanceInput_data_inner_metaData.md) - [StartIssuanceResponse](./Models/StartIssuanceResponse.md) +- [SupportedCredentialMetadata](./Models/SupportedCredentialMetadata.md) +- [SupportedCredentialMetadata_display_inner](./Models/SupportedCredentialMetadata_display_inner.md) +- [SupportedCredentialMetadata_display_inner_logo](./Models/SupportedCredentialMetadata_display_inner_logo.md) - [UpdateIssuanceConfigInput](./Models/UpdateIssuanceConfigInput.md) - [VcClaimedError](./Models/VcClaimedError.md) - [WellKnownOpenIdCredentialIssuerResponse](./Models/WellKnownOpenIdCredentialIssuerResponse.md) +- [WellKnownOpenIdCredentialIssuerResponse_credentials_supported_inner](./Models/WellKnownOpenIdCredentialIssuerResponse_credentials_supported_inner.md) - [createIssuanceConfig_400_response](./Models/createIssuanceConfig_400_response.md) - [generateCredentials_400_response](./Models/generateCredentials_400_response.md) - [getCredentialOffer_400_response](./Models/getCredentialOffer_400_response.md) diff --git a/clients/typescript/credential-issuance-client/package.json b/clients/typescript/credential-issuance-client/package.json index 67dda780..25331adc 100644 --- a/clients/typescript/credential-issuance-client/package.json +++ b/clients/typescript/credential-issuance-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/credential-issuance-client", - "version": "1.17.0", + "version": "1.0.0", "description": "Affinidi TDK typescript client for Affinidi CREDENTIAL ISSUANCE", "author": "Affinidi", "repository": { diff --git a/clients/typescript/credential-verification-client/package.json b/clients/typescript/credential-verification-client/package.json index c9eb29af..7694b648 100644 --- a/clients/typescript/credential-verification-client/package.json +++ b/clients/typescript/credential-verification-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/credential-verification-client", - "version": "1.17.0", + "version": "1.0.0", "description": "Affinidi TDK typescript client for Affinidi CREDENTIAL VERIFICATION", "author": "Affinidi", "repository": { diff --git a/clients/typescript/iam-client/package.json b/clients/typescript/iam-client/package.json index 5ec9c1a5..a001edb5 100644 --- a/clients/typescript/iam-client/package.json +++ b/clients/typescript/iam-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/iam-client", - "version": "1.17.0", + "version": "1.0.0", "description": "Affinidi TDK typescript client for Affinidi IAM", "author": "Affinidi", "repository": { diff --git a/clients/typescript/iota-client/package.json b/clients/typescript/iota-client/package.json index 7cfbf2f4..b23283a3 100644 --- a/clients/typescript/iota-client/package.json +++ b/clients/typescript/iota-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/iota-client", - "version": "1.13.0", + "version": "1.0.0", "description": "Affinidi TDK typescript client for Affinidi IOTA", "author": "Affinidi", "repository": { diff --git a/clients/typescript/login-configuration-client/package.json b/clients/typescript/login-configuration-client/package.json index 2b7e9ec8..5db82c1f 100644 --- a/clients/typescript/login-configuration-client/package.json +++ b/clients/typescript/login-configuration-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/login-configuration-client", - "version": "1.19.0", + "version": "1.0.0", "description": "Affinidi TDK typescript client for Affinidi LOGIN CONFIGURATION", "author": "Affinidi", "repository": { diff --git a/clients/typescript/wallets-client/package.json b/clients/typescript/wallets-client/package.json index 7082bbd5..760767a2 100644 --- a/clients/typescript/wallets-client/package.json +++ b/clients/typescript/wallets-client/package.json @@ -1,6 +1,6 @@ { "name": "@affinidi-tdk/wallets-client", - "version": "1.16.0", + "version": "1.0.0", "description": "Affinidi TDK typescript client for Affinidi WALLETS", "author": "Affinidi", "repository": { diff --git a/package-lock.json b/package-lock.json index bfb4962c..0a5bfaaa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -247,7 +247,7 @@ }, "libs/iota-browser": { "name": "@affinidi-tdk/iota-browser", - "version": "1.6.0", + "version": "1.7.1", "license": "Apache-2.0", "dependencies": { "@affinidi-tdk/common": "^1.1.1", @@ -423,7 +423,7 @@ }, "libs/iota-core": { "name": "@affinidi-tdk/iota-core", - "version": "1.6.0", + "version": "1.8.0", "bundleDependencies": [ "@affinidi-tdk/common", "@affinidi-tdk/iota-client", @@ -22682,7 +22682,7 @@ }, "packages/auth-provider": { "name": "@affinidi-tdk/auth-provider", - "version": "1.16.0", + "version": "1.17.0", "bundleDependencies": [ "@affinidi-tdk/common", "@types/jsonwebtoken", @@ -22902,7 +22902,7 @@ }, "packages/common": { "name": "@affinidi-tdk/common", - "version": "1.8.0", + "version": "1.9.0", "license": "Apache-2.0", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.4.0",