Metadata-Version: 2.4
Name: daiedge-middleware-client-api-v2
Version: 1.0.0
Summary: dAIEDGE-DLT
Author-email: OpenAPI Generator Community <team@openapitools.org>
Project-URL: Repository, https://github.com/bisite/dAIEDGE-Middleware-client
Keywords: OpenAPI,OpenAPI-Generator,dAIEDGE-DLT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: httpx>=0.28.1
Requires-Dist: pydantic>=2.11
Requires-Dist: typing-extensions>=4.7.1

# daiedge-middleware-client-api-v2
API documentation

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.24.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.

Python 3.10+

## Installation & Usage
### pip install

If the python package is hosted on a repository, you can install directly using:

```sh
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
```
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)

Then import the package:
```python
import daiedge_middleware_client_api_v2
```

### Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).

```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)

Then import the package:
```python
import daiedge_middleware_client_api_v2
```

### Tests

Execute `pytest` to run the tests.

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python

import daiedge_middleware_client_api_v2
from daiedge_middleware_client_api_v2.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://localhost/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = daiedge_middleware_client_api_v2.Configuration(
    host = "https://localhost/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: BearerAuth
configuration.api_key['BearerAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['BearerAuth'] = 'Bearer'


# Enter a context with an instance of the API client
async with daiedge_middleware_client_api_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = daiedge_middleware_client_api_v2.AccessControlApi(api_client)
    did = 'did_example' # str | User DID
    resource_id = 3.4 # float | Resource ID

    try:
        api_response = await api_instance.access_get(did, resource_id)
        print("The response of AccessControlApi->access_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AccessControlApi->access_get: %s\n" % e)

```

## Documentation for API Endpoints

All URIs are relative to *https://localhost/api/v1*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AccessControlApi* | [**access_get**](docs/AccessControlApi.md#access_get) | **GET** /access | 
*AccessControlApi* | [**access_grant_access_post**](docs/AccessControlApi.md#access_grant_access_post) | **POST** /access/grant-access | 
*AccessControlApi* | [**access_register_access_post**](docs/AccessControlApi.md#access_register_access_post) | **POST** /access/register-access | 
*AccessControlApi* | [**access_revoke_access_post**](docs/AccessControlApi.md#access_revoke_access_post) | **POST** /access/revoke-access | 
*AuthApi* | [**auth_challenge_post**](docs/AuthApi.md#auth_challenge_post) | **POST** /auth/challenge | 
*AuthApi* | [**auth_verify_post**](docs/AuthApi.md#auth_verify_post) | **POST** /auth/verify | 
*BlockchainApi* | [**blockchain_transactions_register_post**](docs/BlockchainApi.md#blockchain_transactions_register_post) | **POST** /blockchain/transactions/register | 
*IdentityApi* | [**identities_did_add_delegate_post**](docs/IdentityApi.md#identities_did_add_delegate_post) | **POST** /identities/{did}/add-delegate | 
*IdentityApi* | [**identities_did_change_owner_post**](docs/IdentityApi.md#identities_did_change_owner_post) | **POST** /identities/{did}/change-owner | 
*IdentityApi* | [**identities_did_generate_key_pair_post**](docs/IdentityApi.md#identities_did_generate_key_pair_post) | **POST** /identities/{did}/generate-key-pair | 
*IdentityApi* | [**identities_did_identity_owner_get**](docs/IdentityApi.md#identities_did_identity_owner_get) | **GET** /identities/{did}/identity-owner | 
*IdentityApi* | [**identities_did_resolve_get**](docs/IdentityApi.md#identities_did_resolve_get) | **GET** /identities/{did}/resolve | 
*IdentityApi* | [**identities_did_revoke_delegate_post**](docs/IdentityApi.md#identities_did_revoke_delegate_post) | **POST** /identities/{did}/revoke-delegate | 
*IdentityApi* | [**identities_get**](docs/IdentityApi.md#identities_get) | **GET** /identities | 
*LicenseApi* | [**licenses_devices_get**](docs/LicenseApi.md#licenses_devices_get) | **GET** /licenses/devices | 
*LicenseApi* | [**licenses_get**](docs/LicenseApi.md#licenses_get) | **GET** /licenses | 
*LicenseApi* | [**licenses_id_delete**](docs/LicenseApi.md#licenses_id_delete) | **DELETE** /licenses/{id} | 
*LicenseApi* | [**licenses_id_get**](docs/LicenseApi.md#licenses_id_get) | **GET** /licenses/{id} | 
*LicenseApi* | [**licenses_requests_get**](docs/LicenseApi.md#licenses_requests_get) | **GET** /licenses/requests | 
*LicenseApi* | [**licenses_requests_id_validate_post**](docs/LicenseApi.md#licenses_requests_id_validate_post) | **POST** /licenses/requests/{id}/validate | 
*LicenseApi* | [**licenses_requests_post**](docs/LicenseApi.md#licenses_requests_post) | **POST** /licenses/requests | 
*MarketplaceApi* | [**marketplace_buy_post**](docs/MarketplaceApi.md#marketplace_buy_post) | **POST** /marketplace/buy | 
*MarketplaceApi* | [**marketplace_delete**](docs/MarketplaceApi.md#marketplace_delete) | **DELETE** /marketplace | 
*MarketplaceApi* | [**marketplace_get**](docs/MarketplaceApi.md#marketplace_get) | **GET** /marketplace | 
*MarketplaceApi* | [**marketplace_sell_post**](docs/MarketplaceApi.md#marketplace_sell_post) | **POST** /marketplace/sell | 
*PolicyApi* | [**policies_dids_did_delete**](docs/PolicyApi.md#policies_dids_did_delete) | **DELETE** /policies/dids/{did} | 
*PolicyApi* | [**policies_dids_did_get**](docs/PolicyApi.md#policies_dids_did_get) | **GET** /policies/dids/{did} | 
*PolicyApi* | [**policies_dids_did_post**](docs/PolicyApi.md#policies_dids_did_post) | **POST** /policies/dids/{did} | 
*PolicyApi* | [**policies_dids_did_put**](docs/PolicyApi.md#policies_dids_did_put) | **PUT** /policies/dids/{did} | 
*PolicyApi* | [**policies_hardware_id_delete**](docs/PolicyApi.md#policies_hardware_id_delete) | **DELETE** /policies/hardware/{id} | 
*PolicyApi* | [**policies_hardware_id_get**](docs/PolicyApi.md#policies_hardware_id_get) | **GET** /policies/hardware/{id} | 
*PolicyApi* | [**policies_hardware_id_post**](docs/PolicyApi.md#policies_hardware_id_post) | **POST** /policies/hardware/{id} | 
*PolicyApi* | [**policies_hardware_id_put**](docs/PolicyApi.md#policies_hardware_id_put) | **PUT** /policies/hardware/{id} | 
*RegisterAiModelApi* | [**model_get**](docs/RegisterAiModelApi.md#model_get) | **GET** /ai-model | 
*RegisterAiModelApi* | [**model_id_get**](docs/RegisterAiModelApi.md#model_id_get) | **GET** /ai-model/{id} | 
*RegisterAiModelApi* | [**model_id_post**](docs/RegisterAiModelApi.md#model_id_post) | **POST** /ai-model/{id} | 
*RegisterAiModelApi* | [**model_post**](docs/RegisterAiModelApi.md#model_post) | **POST** /ai-model | 
*RegisterBenchmarkApi* | [**benchmark_get**](docs/RegisterBenchmarkApi.md#benchmark_get) | **GET** /benchmark | 
*RegisterBenchmarkApi* | [**benchmark_id_get**](docs/RegisterBenchmarkApi.md#benchmark_id_get) | **GET** /benchmark/{id} | 
*RegisterBenchmarkApi* | [**benchmark_id_set_hardware_post**](docs/RegisterBenchmarkApi.md#benchmark_id_set_hardware_post) | **POST** /benchmark/{id}/set-hardware | 
*RegisterBenchmarkApi* | [**benchmark_id_set_result_post**](docs/RegisterBenchmarkApi.md#benchmark_id_set_result_post) | **POST** /benchmark/{id}/set-result | 
*RegisterBenchmarkApi* | [**benchmark_post**](docs/RegisterBenchmarkApi.md#benchmark_post) | **POST** /benchmark | 
*RegisterDatasetApi* | [**dataset_get**](docs/RegisterDatasetApi.md#dataset_get) | **GET** /dataset | 
*RegisterDatasetApi* | [**dataset_id_get**](docs/RegisterDatasetApi.md#dataset_id_get) | **GET** /dataset/{id} | 
*RegisterDatasetApi* | [**dataset_id_post**](docs/RegisterDatasetApi.md#dataset_id_post) | **POST** /dataset/{id} | 
*RegisterDatasetApi* | [**dataset_post**](docs/RegisterDatasetApi.md#dataset_post) | **POST** /dataset | 
*RegisterHardwareApi* | [**hardware_get**](docs/RegisterHardwareApi.md#hardware_get) | **GET** /hardware | 
*RegisterHardwareApi* | [**hardware_id_delete**](docs/RegisterHardwareApi.md#hardware_id_delete) | **DELETE** /hardware/{id} | 
*RegisterHardwareApi* | [**hardware_id_get**](docs/RegisterHardwareApi.md#hardware_id_get) | **GET** /hardware/{id} | 
*RegisterHardwareApi* | [**hardware_id_post**](docs/RegisterHardwareApi.md#hardware_id_post) | **POST** /hardware/{id} | 
*RegisterHardwareApi* | [**hardware_post**](docs/RegisterHardwareApi.md#hardware_post) | **POST** /hardware | 
*RewardManagerApi* | [**rewards_get**](docs/RewardManagerApi.md#rewards_get) | **GET** /rewards | 
*RewardManagerApi* | [**rewards_get_reward_by_rule_aid_get**](docs/RewardManagerApi.md#rewards_get_reward_by_rule_aid_get) | **GET** /rewards/get-reward-by-rule/{aid} | 
*RewardManagerApi* | [**rewards_remove_reward_rule_post**](docs/RewardManagerApi.md#rewards_remove_reward_rule_post) | **POST** /rewards/remove-reward-rule | 
*RewardManagerApi* | [**rewards_reward_manual_post**](docs/RewardManagerApi.md#rewards_reward_manual_post) | **POST** /rewards/reward-manual | 
*RewardManagerApi* | [**rewards_reward_off_chain_post**](docs/RewardManagerApi.md#rewards_reward_off_chain_post) | **POST** /rewards/reward-off-chain | 
*RewardManagerApi* | [**rewards_reward_on_chain_post**](docs/RewardManagerApi.md#rewards_reward_on_chain_post) | **POST** /rewards/reward-on-chain | 
*RewardManagerApi* | [**rewards_set_reward_rule_post**](docs/RewardManagerApi.md#rewards_set_reward_rule_post) | **POST** /rewards/set-reward-rule | 
*RoleManagementApi* | [**roles_get**](docs/RoleManagementApi.md#roles_get) | **GET** /roles | 
*RoleManagementApi* | [**roles_grant_role_post**](docs/RoleManagementApi.md#roles_grant_role_post) | **POST** /roles/grant-role | 
*RoleManagementApi* | [**roles_has_role_get**](docs/RoleManagementApi.md#roles_has_role_get) | **GET** /roles/has-role | 
*RoleManagementApi* | [**roles_post**](docs/RoleManagementApi.md#roles_post) | **POST** /roles | 
*RoleManagementApi* | [**roles_revoke_role_post**](docs/RoleManagementApi.md#roles_revoke_role_post) | **POST** /roles/revoke-role | 
*SystemPauseApi* | [**system_contract_pause_post**](docs/SystemPauseApi.md#system_contract_pause_post) | **POST** /system/contract/pause | 
*SystemPauseApi* | [**system_contract_unpause_post**](docs/SystemPauseApi.md#system_contract_unpause_post) | **POST** /system/contract/unpause | 
*SystemPauseApi* | [**system_get**](docs/SystemPauseApi.md#system_get) | **GET** /system | 
*SystemPauseApi* | [**system_pause_post**](docs/SystemPauseApi.md#system_pause_post) | **POST** /system/pause | 
*SystemPauseApi* | [**system_unpause_post**](docs/SystemPauseApi.md#system_unpause_post) | **POST** /system/unpause | 
*TokensApi* | [**tokens_balance_get**](docs/TokensApi.md#tokens_balance_get) | **GET** /tokens/balance | 
*TokensApi* | [**tokens_mint_post**](docs/TokensApi.md#tokens_mint_post) | **POST** /tokens/mint | 
*UsersApi* | [**vcs_grant_issuer_role_post**](docs/UsersApi.md#vcs_grant_issuer_role_post) | **POST** /vcs/grant-issuer-role | 
*UsersApi* | [**vcs_revoke_issuer_role_post**](docs/UsersApi.md#vcs_revoke_issuer_role_post) | **POST** /vcs/revoke-issuer-role | 
*VcApi* | [**vcs_active_id_post**](docs/VcApi.md#vcs_active_id_post) | **POST** /vcs/active/{id} | 
*VcApi* | [**vcs_decode_credential_post**](docs/VcApi.md#vcs_decode_credential_post) | **POST** /vcs/decode-credential | 
*VcApi* | [**vcs_get**](docs/VcApi.md#vcs_get) | **GET** /vcs | 
*VcApi* | [**vcs_requests_get**](docs/VcApi.md#vcs_requests_get) | **GET** /vcs/requests | 
*VcApi* | [**vcs_requests_id_accept_post**](docs/VcApi.md#vcs_requests_id_accept_post) | **POST** /vcs/requests/{id}/accept | 
*VcApi* | [**vcs_requests_post**](docs/VcApi.md#vcs_requests_post) | **POST** /vcs/requests | 
*VcApi* | [**vcs_revoke_id_post**](docs/VcApi.md#vcs_revoke_id_post) | **POST** /vcs/revoke/{id} | 
*VcApi* | [**vcs_verify_credential_post**](docs/VcApi.md#vcs_verify_credential_post) | **POST** /vcs/verify-credential | 
*VcApi* | [**vcs_verify_presentation_post**](docs/VcApi.md#vcs_verify_presentation_post) | **POST** /vcs/verify-presentation | 


## Documentation For Models

 - [Accelerator](docs/Accelerator.md)
 - [AcceptVCRequestBody](docs/AcceptVCRequestBody.md)
 - [AddDelegateBody](docs/AddDelegateBody.md)
 - [AuthChallengeBadRequest](docs/AuthChallengeBadRequest.md)
 - [AuthChallengeBody](docs/AuthChallengeBody.md)
 - [AuthChallengeResponse](docs/AuthChallengeResponse.md)
 - [AuthVerifyBadRequest](docs/AuthVerifyBadRequest.md)
 - [AuthVerifyBody](docs/AuthVerifyBody.md)
 - [AuthVerifyForbidden](docs/AuthVerifyForbidden.md)
 - [AuthVerifyResponse](docs/AuthVerifyResponse.md)
 - [BuyResourceBody](docs/BuyResourceBody.md)
 - [CPU](docs/CPU.md)
 - [CPUSpecsItem](docs/CPUSpecsItem.md)
 - [ChangeOwnerBody](docs/ChangeOwnerBody.md)
 - [CheckAccessResponse](docs/CheckAccessResponse.md)
 - [Cost](docs/Cost.md)
 - [CreateDIDPolicyBody](docs/CreateDIDPolicyBody.md)
 - [CreateHardwarePolicyBody](docs/CreateHardwarePolicyBody.md)
 - [CreateRoleBody](docs/CreateRoleBody.md)
 - [CreateRoleResponse](docs/CreateRoleResponse.md)
 - [DecodeCredentialBody](docs/DecodeCredentialBody.md)
 - [DefaultSpecItem](docs/DefaultSpecItem.md)
 - [DefaultSpecsMemory](docs/DefaultSpecsMemory.md)
 - [DeleteHardwareBody](docs/DeleteHardwareBody.md)
 - [EditDIDPolicyBody](docs/EditDIDPolicyBody.md)
 - [EditHardwarePolicyBody](docs/EditHardwarePolicyBody.md)
 - [Engine](docs/Engine.md)
 - [ErrorResponse](docs/ErrorResponse.md)
 - [GenerateKeyPairBody](docs/GenerateKeyPairBody.md)
 - [GetRegisterAIModelItem](docs/GetRegisterAIModelItem.md)
 - [GetRegisterBenchmarkItem](docs/GetRegisterBenchmarkItem.md)
 - [GetRegisterDatasetItem](docs/GetRegisterDatasetItem.md)
 - [GetRegisterHardwareItem](docs/GetRegisterHardwareItem.md)
 - [GetRewardByRule](docs/GetRewardByRule.md)
 - [GranRoleBody](docs/GranRoleBody.md)
 - [GrantAccessBody](docs/GrantAccessBody.md)
 - [GrantRevokeIssuerRoleBody](docs/GrantRevokeIssuerRoleBody.md)
 - [HardwareAccessItem](docs/HardwareAccessItem.md)
 - [HardwareAccessList](docs/HardwareAccessList.md)
 - [HardwarePolicyResponse](docs/HardwarePolicyResponse.md)
 - [HardwareSpec](docs/HardwareSpec.md)
 - [HasRoleResponse](docs/HasRoleResponse.md)
 - [IdentityOwnerResponse](docs/IdentityOwnerResponse.md)
 - [LicenseRequestItem](docs/LicenseRequestItem.md)
 - [LicenseRequestList](docs/LicenseRequestList.md)
 - [ListedResourceItem](docs/ListedResourceItem.md)
 - [ListedResourceList](docs/ListedResourceList.md)
 - [Memory](docs/Memory.md)
 - [MintTokensBody](docs/MintTokensBody.md)
 - [NamedTxBuildDetail](docs/NamedTxBuildDetail.md)
 - [PauseContractBody](docs/PauseContractBody.md)
 - [PauseSystemBody](docs/PauseSystemBody.md)
 - [Power](docs/Power.md)
 - [PowerItemDetails](docs/PowerItemDetails.md)
 - [PreparedTransactionListResponse](docs/PreparedTransactionListResponse.md)
 - [PreparedTransactionListResponseTxsInner](docs/PreparedTransactionListResponseTxsInner.md)
 - [PreparedTransactionListResponseTxsInnerTx](docs/PreparedTransactionListResponseTxsInnerTx.md)
 - [PreparedTransactionResponse](docs/PreparedTransactionResponse.md)
 - [PreparedTransactionResponseTx](docs/PreparedTransactionResponseTx.md)
 - [RegisterAIModelBody](docs/RegisterAIModelBody.md)
 - [RegisterAIModelItem](docs/RegisterAIModelItem.md)
 - [RegisterAIModelList](docs/RegisterAIModelList.md)
 - [RegisterAccessBody](docs/RegisterAccessBody.md)
 - [RegisterBenchmarkBody](docs/RegisterBenchmarkBody.md)
 - [RegisterBenchmarkItem](docs/RegisterBenchmarkItem.md)
 - [RegisterBenchmarkList](docs/RegisterBenchmarkList.md)
 - [RegisterDataSetItem](docs/RegisterDataSetItem.md)
 - [RegisterDataSetList](docs/RegisterDataSetList.md)
 - [RegisterDatasetBody](docs/RegisterDatasetBody.md)
 - [RegisterHardwareBody](docs/RegisterHardwareBody.md)
 - [RegisterHardwareItem](docs/RegisterHardwareItem.md)
 - [RegisterHardwareList](docs/RegisterHardwareList.md)
 - [RegisterTransactionBody](docs/RegisterTransactionBody.md)
 - [RemoveDIDPolicyBody](docs/RemoveDIDPolicyBody.md)
 - [RemoveHardwarePolicyBody](docs/RemoveHardwarePolicyBody.md)
 - [RemoveListedResourceBody](docs/RemoveListedResourceBody.md)
 - [RemoveRewardRuleBody](docs/RemoveRewardRuleBody.md)
 - [RequestUserLicenseBody](docs/RequestUserLicenseBody.md)
 - [RequestVCBody](docs/RequestVCBody.md)
 - [RevokeAccessBody](docs/RevokeAccessBody.md)
 - [RevokeDelegateBody](docs/RevokeDelegateBody.md)
 - [RevokeIssuerRoleBody](docs/RevokeIssuerRoleBody.md)
 - [RevokeLicenseBody](docs/RevokeLicenseBody.md)
 - [RevokeRoleBody](docs/RevokeRoleBody.md)
 - [RewardHistoryItem](docs/RewardHistoryItem.md)
 - [RewardHistoryList](docs/RewardHistoryList.md)
 - [RewardManualBody](docs/RewardManualBody.md)
 - [RewardOffChainBody](docs/RewardOffChainBody.md)
 - [RewardOnChainBody](docs/RewardOnChainBody.md)
 - [RoleManagementItem](docs/RoleManagementItem.md)
 - [RoleManagementList](docs/RoleManagementList.md)
 - [SellResourceBody](docs/SellResourceBody.md)
 - [SetBenchmarkResultBody](docs/SetBenchmarkResultBody.md)
 - [SetHardwareBody](docs/SetHardwareBody.md)
 - [SetRewardRuleBody](docs/SetRewardRuleBody.md)
 - [SoftwareSpec](docs/SoftwareSpec.md)
 - [Storage](docs/Storage.md)
 - [StorageSpecsItem](docs/StorageSpecsItem.md)
 - [SupportedApplication](docs/SupportedApplication.md)
 - [SupportedApplicationDetails](docs/SupportedApplicationDetails.md)
 - [SystemStatus](docs/SystemStatus.md)
 - [TxBuildDetail](docs/TxBuildDetail.md)
 - [UnpauseContractBody](docs/UnpauseContractBody.md)
 - [UnpauseSystemBody](docs/UnpauseSystemBody.md)
 - [UpdateAIModelBody](docs/UpdateAIModelBody.md)
 - [UpdateDatasetBody](docs/UpdateDatasetBody.md)
 - [UpdateHardwareBody](docs/UpdateHardwareBody.md)
 - [UseLicenseItem](docs/UseLicenseItem.md)
 - [UserDIDItem](docs/UserDIDItem.md)
 - [UserDIDResolveResponse](docs/UserDIDResolveResponse.md)
 - [UserLicenseList](docs/UserLicenseList.md)
 - [UserVCItem](docs/UserVCItem.md)
 - [UserVCList](docs/UserVCList.md)
 - [VCClaim](docs/VCClaim.md)
 - [VCRequestItem](docs/VCRequestItem.md)
 - [VCRequestList](docs/VCRequestList.md)
 - [ValidateLicenseRequestBody](docs/ValidateLicenseRequestBody.md)
 - [VerifyCredentialBody](docs/VerifyCredentialBody.md)
 - [VerifyCredentialResponse](docs/VerifyCredentialResponse.md)
 - [VerifyPresentationBody](docs/VerifyPresentationBody.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization


Authentication schemes defined for the API:
<a id="BearerAuth"></a>
### BearerAuth

- **Type**: API key
- **API key parameter name**: Authorization
- **Location**: HTTP header


## Author




