Skip to content

Commit

Permalink
feat: update all clients
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-affinidi committed Jan 24, 2025
1 parent 2f1b8ac commit b4c435a
Show file tree
Hide file tree
Showing 590 changed files with 48,963 additions and 1,664 deletions.
99 changes: 97 additions & 2 deletions src/Clients/CredentialIssuanceClient/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,17 @@ docs/Api/OfferApi.md
docs/Api/WellKnownApi.md
docs/Model/ActionForbiddenError.md
docs/Model/ActionForbiddenErrorDetailsInner.md
docs/Model/ChangeCredentialStatus400Response.md
docs/Model/ChangeCredentialStatusInput.md
docs/Model/ChangeStatusForbiddenError.md
docs/Model/CisConfigurationWebhookSetting.md
docs/Model/CisConfigurationWebhookSettingEndpoint.md
docs/Model/ClaimedCredentialListResponse.md
docs/Model/ClaimedCredentialResponse.md
docs/Model/CorsGenerateCredentialsOK.md
docs/Model/CorsGetClaimedCredentialsOK.md
docs/Model/CorsGetCredentialOfferOK.md
docs/Model/CorsGetIssuanceIdClaimedCredentialOK.md
docs/Model/CorsGetWellKnownOpenIdCredentialIssuerOK.md
docs/Model/CreateCredentialInput.md
docs/Model/CreateIssuanceConfig400Response.md
Expand Down Expand Up @@ -53,6 +61,7 @@ docs/Model/MissingHolderDidError.md
docs/Model/NotFoundError.md
docs/Model/ProjectCredentialConfigExistError.md
docs/Model/ProjectCredentialConfigNotExistError.md
docs/Model/RevocationForbiddenError.md
docs/Model/StartIssuance400Response.md
docs/Model/StartIssuanceInput.md
docs/Model/StartIssuanceInputDataInner.md
Expand All @@ -61,7 +70,7 @@ docs/Model/StartIssuanceInputDataInnerStatusListDetailsInner.md
docs/Model/StartIssuanceResponse.md
docs/Model/SupportedCredentialMetadata.md
docs/Model/SupportedCredentialMetadataDisplayInner.md
docs/Model/SupportedCredentialMetadataDisplayInnerLogo.md
docs/Model/SupportedCredentialMetadataItemLogo.md
docs/Model/UpdateIssuanceConfigInput.md
docs/Model/VcClaimedError.md
docs/Model/WellKnownOpenIdCredentialIssuerResponse.md
Expand All @@ -75,11 +84,21 @@ lib/Api/WellKnownApi.php
lib/ApiException.php
lib/Configuration.php
lib/HeaderSelector.php
lib/InvalidJwtTokenError.php
lib/InvalidParameterError.php
lib/Model/ActionForbiddenError.php
lib/Model/ActionForbiddenErrorDetailsInner.php
lib/Model/ChangeCredentialStatus400Response.php
lib/Model/ChangeCredentialStatusInput.php
lib/Model/ChangeStatusForbiddenError.php
lib/Model/CisConfigurationWebhookSetting.php
lib/Model/CisConfigurationWebhookSettingEndpoint.php
lib/Model/ClaimedCredentialListResponse.php
lib/Model/ClaimedCredentialResponse.php
lib/Model/CorsGenerateCredentialsOK.php
lib/Model/CorsGetClaimedCredentialsOK.php
lib/Model/CorsGetCredentialOfferOK.php
lib/Model/CorsGetIssuanceIdClaimedCredentialOK.php
lib/Model/CorsGetWellKnownOpenIdCredentialIssuerOK.php
lib/Model/CreateCredentialInput.php
lib/Model/CreateIssuanceConfig400Response.php
Expand Down Expand Up @@ -122,6 +141,7 @@ lib/Model/ModelInterface.php
lib/Model/NotFoundError.php
lib/Model/ProjectCredentialConfigExistError.php
lib/Model/ProjectCredentialConfigNotExistError.php
lib/Model/RevocationForbiddenError.php
lib/Model/StartIssuance400Response.php
lib/Model/StartIssuanceInput.php
lib/Model/StartIssuanceInputDataInner.php
Expand All @@ -130,10 +150,85 @@ lib/Model/StartIssuanceInputDataInnerStatusListDetailsInner.php
lib/Model/StartIssuanceResponse.php
lib/Model/SupportedCredentialMetadata.php
lib/Model/SupportedCredentialMetadataDisplayInner.php
lib/Model/SupportedCredentialMetadataDisplayInnerLogo.php
lib/Model/SupportedCredentialMetadataItemLogo.php
lib/Model/UpdateIssuanceConfigInput.php
lib/Model/VcClaimedError.php
lib/Model/WellKnownOpenIdCredentialIssuerResponse.php
lib/Model/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInner.php
lib/NotFoundError.php
lib/ObjectSerializer.php
phpunit.xml.dist
test/Api/ConfigurationApiTest.php
test/Api/CredentialsApiTest.php
test/Api/DefaultApiTest.php
test/Api/IssuanceApiTest.php
test/Api/OfferApiTest.php
test/Api/WellKnownApiTest.php
test/Model/ActionForbiddenErrorDetailsInnerTest.php
test/Model/ActionForbiddenErrorTest.php
test/Model/ChangeCredentialStatus400ResponseTest.php
test/Model/ChangeCredentialStatusInputTest.php
test/Model/ChangeStatusForbiddenErrorTest.php
test/Model/CisConfigurationWebhookSettingEndpointTest.php
test/Model/CisConfigurationWebhookSettingTest.php
test/Model/ClaimedCredentialListResponseTest.php
test/Model/ClaimedCredentialResponseTest.php
test/Model/CorsGenerateCredentialsOKTest.php
test/Model/CorsGetClaimedCredentialsOKTest.php
test/Model/CorsGetCredentialOfferOKTest.php
test/Model/CorsGetIssuanceIdClaimedCredentialOKTest.php
test/Model/CorsGetWellKnownOpenIdCredentialIssuerOKTest.php
test/Model/CreateCredentialInputTest.php
test/Model/CreateIssuanceConfig400ResponseTest.php
test/Model/CreateIssuanceConfigInputTest.php
test/Model/CredentialIssuanceIdExistErrorTest.php
test/Model/CredentialOfferClaimedErrorTest.php
test/Model/CredentialOfferExpiredErrorTest.php
test/Model/CredentialOfferResponseGrantsTest.php
test/Model/CredentialOfferResponseGrantsUrnIetfParamsOauthGrantTypePreAuthorizedCodeTest.php
test/Model/CredentialOfferResponseGrantsUrnIetfParamsOauthGrantTypePreAuthorizedCodeTxCodeTest.php
test/Model/CredentialOfferResponseTest.php
test/Model/CredentialProofTest.php
test/Model/CredentialResponseDeferredTest.php
test/Model/CredentialResponseImmediateCNonceExpiresInTest.php
test/Model/CredentialResponseImmediateCredentialTest.php
test/Model/CredentialResponseImmediateTest.php
test/Model/CredentialResponseTest.php
test/Model/CredentialSubjectNotValidErrorTest.php
test/Model/CredentialSupportedObjectTest.php
test/Model/DeferredCredentialInputTest.php
test/Model/FlowDataStatusListsDetailsInnerTest.php
test/Model/FlowDataTest.php
test/Model/GenerateCredentials400ResponseTest.php
test/Model/GetCredentialOffer400ResponseTest.php
test/Model/InvalidCredentialRequestErrorTest.php
test/Model/InvalidCredentialTypeErrorTest.php
test/Model/InvalidIssuerWalletErrorTest.php
test/Model/InvalidJwtTokenErrorTest.php
test/Model/InvalidParameterErrorTest.php
test/Model/InvalidProofErrorTest.php
test/Model/IssuanceConfigDtoTest.php
test/Model/IssuanceConfigListResponseTest.php
test/Model/IssuanceConfigMiniDtoTest.php
test/Model/IssuanceStateResponseTest.php
test/Model/ListIssuanceRecordResponseTest.php
test/Model/ListIssuanceResponseIssuancesInnerTest.php
test/Model/ListIssuanceResponseTest.php
test/Model/MissingHolderDidErrorTest.php
test/Model/NotFoundErrorTest.php
test/Model/ProjectCredentialConfigExistErrorTest.php
test/Model/ProjectCredentialConfigNotExistErrorTest.php
test/Model/RevocationForbiddenErrorTest.php
test/Model/StartIssuance400ResponseTest.php
test/Model/StartIssuanceInputDataInnerMetaDataTest.php
test/Model/StartIssuanceInputDataInnerStatusListDetailsInnerTest.php
test/Model/StartIssuanceInputDataInnerTest.php
test/Model/StartIssuanceInputTest.php
test/Model/StartIssuanceResponseTest.php
test/Model/SupportedCredentialMetadataDisplayInnerTest.php
test/Model/SupportedCredentialMetadataItemLogoTest.php
test/Model/SupportedCredentialMetadataTest.php
test/Model/UpdateIssuanceConfigInputTest.php
test/Model/VcClaimedErrorTest.php
test/Model/WellKnownOpenIdCredentialIssuerResponseCredentialsSupportedInnerTest.php
test/Model/WellKnownOpenIdCredentialIssuerResponseTest.php
8 changes: 0 additions & 8 deletions src/Clients/CredentialIssuanceClient/.travis.yml

This file was deleted.

13 changes: 12 additions & 1 deletion src/Clients/CredentialIssuanceClient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Class | Method | HTTP request | Description
*ConfigurationApi* | [**getIssuanceConfigList**](docs/Api/ConfigurationApi.md#getissuanceconfiglist) | **GET** /v1/configurations |
*ConfigurationApi* | [**updateIssuanceConfigById**](docs/Api/ConfigurationApi.md#updateissuanceconfigbyid) | **PUT** /v1/configurations/{configurationId} |
*CredentialsApi* | [**generateCredentials**](docs/Api/CredentialsApi.md#generatecredentials) | **POST** /v1/{projectId}/credential |
*CredentialsApi* | [**getClaimedCredentials**](docs/Api/CredentialsApi.md#getclaimedcredentials) | **GET** /v1/{projectId}/configurations/{configurationId}/credentials | Get claimed credential in the specified range
*CredentialsApi* | [**getIssuanceIdClaimedCredential**](docs/Api/CredentialsApi.md#getissuanceidclaimedcredential) | **GET** /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials | Get claimed VC linked to the issuanceId
*DefaultApi* | [**changeCredentialStatus**](docs/Api/DefaultApi.md#changecredentialstatus) | **POST** /v1/{projectId}/configurations/{configurationId}/issuance/change-status | change credential status.
*DefaultApi* | [**listIssuanceDataRecords**](docs/Api/DefaultApi.md#listissuancedatarecords) | **GET** /v1/{projectId}/configurations/{configurationId}/issuance/issuance-data-records | List records
*IssuanceApi* | [**issuanceState**](docs/Api/IssuanceApi.md#issuancestate) | **GET** /v1/{projectId}/issuance/state/{issuanceId} |
Expand All @@ -84,9 +86,17 @@ Class | Method | HTTP request | Description

- [ActionForbiddenError](docs/Model/ActionForbiddenError.md)
- [ActionForbiddenErrorDetailsInner](docs/Model/ActionForbiddenErrorDetailsInner.md)
- [ChangeCredentialStatus400Response](docs/Model/ChangeCredentialStatus400Response.md)
- [ChangeCredentialStatusInput](docs/Model/ChangeCredentialStatusInput.md)
- [ChangeStatusForbiddenError](docs/Model/ChangeStatusForbiddenError.md)
- [CisConfigurationWebhookSetting](docs/Model/CisConfigurationWebhookSetting.md)
- [CisConfigurationWebhookSettingEndpoint](docs/Model/CisConfigurationWebhookSettingEndpoint.md)
- [ClaimedCredentialListResponse](docs/Model/ClaimedCredentialListResponse.md)
- [ClaimedCredentialResponse](docs/Model/ClaimedCredentialResponse.md)
- [CorsGenerateCredentialsOK](docs/Model/CorsGenerateCredentialsOK.md)
- [CorsGetClaimedCredentialsOK](docs/Model/CorsGetClaimedCredentialsOK.md)
- [CorsGetCredentialOfferOK](docs/Model/CorsGetCredentialOfferOK.md)
- [CorsGetIssuanceIdClaimedCredentialOK](docs/Model/CorsGetIssuanceIdClaimedCredentialOK.md)
- [CorsGetWellKnownOpenIdCredentialIssuerOK](docs/Model/CorsGetWellKnownOpenIdCredentialIssuerOK.md)
- [CreateCredentialInput](docs/Model/CreateCredentialInput.md)
- [CreateIssuanceConfig400Response](docs/Model/CreateIssuanceConfig400Response.md)
Expand Down Expand Up @@ -128,6 +138,7 @@ Class | Method | HTTP request | Description
- [NotFoundError](docs/Model/NotFoundError.md)
- [ProjectCredentialConfigExistError](docs/Model/ProjectCredentialConfigExistError.md)
- [ProjectCredentialConfigNotExistError](docs/Model/ProjectCredentialConfigNotExistError.md)
- [RevocationForbiddenError](docs/Model/RevocationForbiddenError.md)
- [StartIssuance400Response](docs/Model/StartIssuance400Response.md)
- [StartIssuanceInput](docs/Model/StartIssuanceInput.md)
- [StartIssuanceInputDataInner](docs/Model/StartIssuanceInputDataInner.md)
Expand All @@ -136,7 +147,7 @@ Class | Method | HTTP request | Description
- [StartIssuanceResponse](docs/Model/StartIssuanceResponse.md)
- [SupportedCredentialMetadata](docs/Model/SupportedCredentialMetadata.md)
- [SupportedCredentialMetadataDisplayInner](docs/Model/SupportedCredentialMetadataDisplayInner.md)
- [SupportedCredentialMetadataDisplayInnerLogo](docs/Model/SupportedCredentialMetadataDisplayInnerLogo.md)
- [SupportedCredentialMetadataItemLogo](docs/Model/SupportedCredentialMetadataItemLogo.md)
- [UpdateIssuanceConfigInput](docs/Model/UpdateIssuanceConfigInput.md)
- [VcClaimedError](docs/Model/VcClaimedError.md)
- [WellKnownOpenIdCredentialIssuerResponse](docs/Model/WellKnownOpenIdCredentialIssuerResponse.md)
Expand Down
138 changes: 138 additions & 0 deletions src/Clients/CredentialIssuanceClient/docs/Api/CredentialsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All URIs are relative to https://apse1.api.affinidi.io/cis, except if the operat
| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**generateCredentials()**](CredentialsApi.md#generateCredentials) | **POST** /v1/{projectId}/credential | |
| [**getClaimedCredentials()**](CredentialsApi.md#getClaimedCredentials) | **GET** /v1/{projectId}/configurations/{configurationId}/credentials | Get claimed credential in the specified range |
| [**getIssuanceIdClaimedCredential()**](CredentialsApi.md#getIssuanceIdClaimedCredential) | **GET** /v1/{projectId}/configurations/{configurationId}/issuances/{issuanceId}/credentials | Get claimed VC linked to the issuanceId |


## `generateCredentials()`
Expand Down Expand Up @@ -68,3 +70,139 @@ try {
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `getClaimedCredentials()`

```php
getClaimedCredentials($project_id, $configuration_id, $range_start_time, $range_end_time, $next): \AffinidiTdk\Clients\CredentialIssuanceClient\Model\ClaimedCredentialListResponse
```

Get claimed credential in the specified range

Get claimed credential in the specified range

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: ProjectTokenAuth
$config = AffinidiTdk\Clients\CredentialIssuanceClient\Configuration::getDefaultConfiguration()->setApiKey('authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = AffinidiTdk\Clients\CredentialIssuanceClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('authorization', 'Bearer');


$apiInstance = new AffinidiTdk\Clients\CredentialIssuanceClient\Api\CredentialsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$project_id = 'project_id_example'; // string | project id
$configuration_id = 'configuration_id_example'; // string | configuration id
$range_start_time = 'range_start_time_example'; // string
$range_end_time = 'range_end_time_example'; // string
$next = 'next_example'; // string

try {
$result = $apiInstance->getClaimedCredentials($project_id, $configuration_id, $range_start_time, $range_end_time, $next);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CredentialsApi->getClaimedCredentials: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **project_id** | **string**| project id | |
| **configuration_id** | **string**| configuration id | |
| **range_start_time** | **string**| | |
| **range_end_time** | **string**| | [optional] |
| **next** | **string**| | [optional] |

### Return type

[**\AffinidiTdk\Clients\CredentialIssuanceClient\Model\ClaimedCredentialListResponse**](../Model/ClaimedCredentialListResponse.md)

### Authorization

[ProjectTokenAuth](../../README.md#ProjectTokenAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `getIssuanceIdClaimedCredential()`

```php
getIssuanceIdClaimedCredential($project_id, $configuration_id, $issuance_id): \AffinidiTdk\Clients\CredentialIssuanceClient\Model\ClaimedCredentialResponse
```

Get claimed VC linked to the issuanceId

Get claimed VC linked to the issuanceId

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: ProjectTokenAuth
$config = AffinidiTdk\Clients\CredentialIssuanceClient\Configuration::getDefaultConfiguration()->setApiKey('authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = AffinidiTdk\Clients\CredentialIssuanceClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('authorization', 'Bearer');


$apiInstance = new AffinidiTdk\Clients\CredentialIssuanceClient\Api\CredentialsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$project_id = 'project_id_example'; // string | project id
$configuration_id = 'configuration_id_example'; // string | configuration id
$issuance_id = 'issuance_id_example'; // string | issuance id

try {
$result = $apiInstance->getIssuanceIdClaimedCredential($project_id, $configuration_id, $issuance_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CredentialsApi->getIssuanceIdClaimedCredential: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **project_id** | **string**| project id | |
| **configuration_id** | **string**| configuration id | |
| **issuance_id** | **string**| issuance id | |

### Return type

[**\AffinidiTdk\Clients\CredentialIssuanceClient\Model\ClaimedCredentialResponse**](../Model/ClaimedCredentialResponse.md)

### Authorization

[ProjectTokenAuth](../../README.md#ProjectTokenAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
8 changes: 5 additions & 3 deletions src/Clients/CredentialIssuanceClient/docs/Api/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All URIs are relative to https://apse1.api.affinidi.io/cis, except if the operat
## `changeCredentialStatus()`

```php
changeCredentialStatus($project_id, $configuration_id): \AffinidiTdk\Clients\CredentialIssuanceClient\Model\FlowData
changeCredentialStatus($project_id, $configuration_id, $change_credential_status_input): \AffinidiTdk\Clients\CredentialIssuanceClient\Model\FlowData
```

change credential status.
Expand Down Expand Up @@ -39,9 +39,10 @@ $apiInstance = new AffinidiTdk\Clients\CredentialIssuanceClient\Api\DefaultApi(
);
$project_id = 'project_id_example'; // string | project id
$configuration_id = 'configuration_id_example'; // string | configuration id
$change_credential_status_input = new \AffinidiTdk\Clients\CredentialIssuanceClient\Model\ChangeCredentialStatusInput(); // \AffinidiTdk\Clients\CredentialIssuanceClient\Model\ChangeCredentialStatusInput | Request body for changing credential status

try {
$result = $apiInstance->changeCredentialStatus($project_id, $configuration_id);
$result = $apiInstance->changeCredentialStatus($project_id, $configuration_id, $change_credential_status_input);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->changeCredentialStatus: ', $e->getMessage(), PHP_EOL;
Expand All @@ -54,6 +55,7 @@ try {
| ------------- | ------------- | ------------- | ------------- |
| **project_id** | **string**| project id | |
| **configuration_id** | **string**| configuration id | |
| **change_credential_status_input** | [**\AffinidiTdk\Clients\CredentialIssuanceClient\Model\ChangeCredentialStatusInput**](../Model/ChangeCredentialStatusInput.md)| Request body for changing credential status | |

### Return type

Expand All @@ -65,7 +67,7 @@ try {

### HTTP request headers

- **Content-Type**: Not defined
- **Content-Type**: `application/json`
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
Expand Down
Loading

0 comments on commit b4c435a

Please sign in to comment.