diff --git a/docs/CollectionBurnRequestDto.md b/docs/CollectionBurnRequestDto.md index b397028..6fb5cc6 100644 --- a/docs/CollectionBurnRequestDto.md +++ b/docs/CollectionBurnRequestDto.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **vault_account_id** | **str** | The id of the vault account that initiates the burn function | **token_id** | **str** | The token id | **amount** | **str** | For ERC721, amount is optional or should always be 1 and for ERC1155, amount should be 1 or greater | [optional] +**external_id** | **str** | External id that can be used to identify the transaction in your system. The unique identifier of the transaction outside of Fireblocks with max length of 255 characters | [optional] ## Example diff --git a/docs/CollectionMintRequestDto.md b/docs/CollectionMintRequestDto.md index bd000b4..621a2af 100644 --- a/docs/CollectionMintRequestDto.md +++ b/docs/CollectionMintRequestDto.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **amount** | **str** | For ERC721, amount is optional or should always be 1 and for ERC1155, amount should be 1 or greater | [optional] **metadata_uri** | **str** | URL of metadata uploaded, skip uploading to IPFS if this field is provided with any value | [optional] **metadata** | [**CollectionTokenMetadataDto**](CollectionTokenMetadataDto.md) | Metadata to upload | [optional] +**external_id** | **str** | External id that can be used to identify the transaction in your system. The unique identifier of the transaction outside of Fireblocks with max length of 255 characters | [optional] ## Example diff --git a/docs/ComplianceResultStatusesEnum.md b/docs/ComplianceResultStatusesEnum.md index c53fdac..7d2694f 100644 --- a/docs/ComplianceResultStatusesEnum.md +++ b/docs/ComplianceResultStatusesEnum.md @@ -50,6 +50,8 @@ Status of compliance result screening. * `INCOMINGCOMPLETED` (value: `'IncomingCompleted'`) +* `UPDATECOMPLETED` (value: `'UpdateCompleted'`) + [[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/docs/KeyLinkBetaApi.md b/docs/KeyLinkBetaApi.md index 55ae1c6..b8ce9d2 100644 --- a/docs/KeyLinkBetaApi.md +++ b/docs/KeyLinkBetaApi.md @@ -337,7 +337,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_signing_keys_list** -> GetSigningKeyResponseDto get_signing_keys_list(page_cursor=page_cursor, page_size=page_size, sort_by=sort_by, order=order, vault_account_id=vault_account_id, agent_user_id=agent_user_id, algorithm=algorithm, enabled=enabled, available=available, is_assigned=is_assigned) +> GetSigningKeyResponseDto get_signing_keys_list(page_cursor=page_cursor, page_size=page_size, sort_by=sort_by, order=order, vault_account_id=vault_account_id, agent_user_id=agent_user_id, algorithm=algorithm, enabled=enabled, available=available, is_assigned=is_assigned, key_prefix=key_prefix) Get list of signing keys @@ -382,10 +382,11 @@ with Fireblocks(configuration) as fireblocks: enabled = True # bool | Return keys that have been proof of ownership (optional) available = True # bool | Return keys that are proof of ownership but not assigned. Available filter can be used only when vaultAccountId and enabled filters are not set (optional) is_assigned = True # bool | Return keys that are assigned to a vault account (optional) + key_prefix = 'key_prefix_example' # str | A case-insensitive prefix filter that matches records where either keyId or signingDeviceKeyID starts with the specified value. (optional) try: # Get list of signing keys - api_response = fireblocks.key_link_beta.get_signing_keys_list(page_cursor=page_cursor, page_size=page_size, sort_by=sort_by, order=order, vault_account_id=vault_account_id, agent_user_id=agent_user_id, algorithm=algorithm, enabled=enabled, available=available, is_assigned=is_assigned).result() + api_response = fireblocks.key_link_beta.get_signing_keys_list(page_cursor=page_cursor, page_size=page_size, sort_by=sort_by, order=order, vault_account_id=vault_account_id, agent_user_id=agent_user_id, algorithm=algorithm, enabled=enabled, available=available, is_assigned=is_assigned, key_prefix=key_prefix).result() print("The response of KeyLinkBetaApi->get_signing_keys_list:\n") pprint(api_response) except Exception as e: @@ -409,6 +410,7 @@ Name | Type | Description | Notes **enabled** | **bool**| Return keys that have been proof of ownership | [optional] **available** | **bool**| Return keys that are proof of ownership but not assigned. Available filter can be used only when vaultAccountId and enabled filters are not set | [optional] **is_assigned** | **bool**| Return keys that are assigned to a vault account | [optional] + **key_prefix** | **str**| A case-insensitive prefix filter that matches records where either keyId or signingDeviceKeyID starts with the specified value. | [optional] ### Return type diff --git a/fireblocks/__init__.py b/fireblocks/__init__.py index f0aaff5..ba12e36 100644 --- a/fireblocks/__init__.py +++ b/fireblocks/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "12.1.1" +__version__ = "0.0.0" # import apis into sdk package from fireblocks.api.api_user_api import ApiUserApi diff --git a/fireblocks/api/key_link_beta_api.py b/fireblocks/api/key_link_beta_api.py index 1eb8840..44e51af 100644 --- a/fireblocks/api/key_link_beta_api.py +++ b/fireblocks/api/key_link_beta_api.py @@ -638,6 +638,7 @@ def get_signing_keys_list( enabled: Annotated[Optional[StrictBool], Field(description="Return keys that have been proof of ownership")] = None, available: Annotated[Optional[StrictBool], Field(description="Return keys that are proof of ownership but not assigned. Available filter can be used only when vaultAccountId and enabled filters are not set")] = None, is_assigned: Annotated[Optional[StrictBool], Field(description="Return keys that are assigned to a vault account")] = None, + key_prefix: Annotated[Optional[StrictStr], Field(description="A case-insensitive prefix filter that matches records where either keyId or signingDeviceKeyID starts with the specified value.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -675,6 +676,8 @@ def get_signing_keys_list( :type available: bool :param is_assigned: Return keys that are assigned to a vault account :type is_assigned: bool + :param key_prefix: A case-insensitive prefix filter that matches records where either keyId or signingDeviceKeyID starts with the specified value. + :type key_prefix: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -709,6 +712,7 @@ def get_signing_keys_list( enabled=enabled, available=available, is_assigned=is_assigned, + key_prefix=key_prefix, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -738,6 +742,7 @@ def _get_signing_keys_list_serialize( enabled, available, is_assigned, + key_prefix, _request_auth, _content_type, _headers, @@ -800,6 +805,10 @@ def _get_signing_keys_list_serialize( _query_params.append(('isAssigned', is_assigned)) + if key_prefix is not None: + + _query_params.append(('keyPrefix', key_prefix)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/fireblocks/configuration.py b/fireblocks/configuration.py index 7059d07..c8b5be4 100644 --- a/fireblocks/configuration.py +++ b/fireblocks/configuration.py @@ -552,7 +552,7 @@ def to_debug_report(self) -> str: "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 1.6.2\n" - "SDK Package Version: 12.1.1".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 0.0.0".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self) -> List[HostSetting]: diff --git a/fireblocks/models/collection_burn_request_dto.py b/fireblocks/models/collection_burn_request_dto.py index e34bb70..67c3d59 100644 --- a/fireblocks/models/collection_burn_request_dto.py +++ b/fireblocks/models/collection_burn_request_dto.py @@ -30,7 +30,8 @@ class CollectionBurnRequestDto(BaseModel): vault_account_id: StrictStr = Field(description="The id of the vault account that initiates the burn function", alias="vaultAccountId") token_id: StrictStr = Field(description="The token id", alias="tokenId") amount: Optional[StrictStr] = Field(default=None, description="For ERC721, amount is optional or should always be 1 and for ERC1155, amount should be 1 or greater") - __properties: ClassVar[List[str]] = ["vaultAccountId", "tokenId", "amount"] + external_id: Optional[StrictStr] = Field(default=None, description="External id that can be used to identify the transaction in your system. The unique identifier of the transaction outside of Fireblocks with max length of 255 characters", alias="externalId") + __properties: ClassVar[List[str]] = ["vaultAccountId", "tokenId", "amount", "externalId"] model_config = ConfigDict( populate_by_name=True, @@ -85,7 +86,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "vaultAccountId": obj.get("vaultAccountId"), "tokenId": obj.get("tokenId"), - "amount": obj.get("amount") + "amount": obj.get("amount"), + "externalId": obj.get("externalId") }) return _obj diff --git a/fireblocks/models/collection_mint_request_dto.py b/fireblocks/models/collection_mint_request_dto.py index c7f1f1c..85f4bba 100644 --- a/fireblocks/models/collection_mint_request_dto.py +++ b/fireblocks/models/collection_mint_request_dto.py @@ -34,7 +34,8 @@ class CollectionMintRequestDto(BaseModel): amount: Optional[StrictStr] = Field(default=None, description="For ERC721, amount is optional or should always be 1 and for ERC1155, amount should be 1 or greater") metadata_uri: Optional[StrictStr] = Field(default=None, description="URL of metadata uploaded, skip uploading to IPFS if this field is provided with any value", alias="metadataURI") metadata: Optional[CollectionTokenMetadataDto] = Field(default=None, description="Metadata to upload") - __properties: ClassVar[List[str]] = ["vaultAccountId", "to", "tokenId", "amount", "metadataURI", "metadata"] + external_id: Optional[StrictStr] = Field(default=None, description="External id that can be used to identify the transaction in your system. The unique identifier of the transaction outside of Fireblocks with max length of 255 characters", alias="externalId") + __properties: ClassVar[List[str]] = ["vaultAccountId", "to", "tokenId", "amount", "metadataURI", "metadata", "externalId"] model_config = ConfigDict( populate_by_name=True, @@ -95,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "tokenId": obj.get("tokenId"), "amount": obj.get("amount"), "metadataURI": obj.get("metadataURI"), - "metadata": CollectionTokenMetadataDto.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None + "metadata": CollectionTokenMetadataDto.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, + "externalId": obj.get("externalId") }) return _obj diff --git a/fireblocks/models/compliance_result_statuses_enum.py b/fireblocks/models/compliance_result_statuses_enum.py index 0ff5461..7fc280e 100644 --- a/fireblocks/models/compliance_result_statuses_enum.py +++ b/fireblocks/models/compliance_result_statuses_enum.py @@ -50,6 +50,7 @@ class ComplianceResultStatusesEnum(str, Enum): TRINCOMINGCOMPLETED = 'TRIncomingCompleted' TRINCOMINGFAILED = 'TRIncomingFailed' INCOMINGCOMPLETED = 'IncomingCompleted' + UPDATECOMPLETED = 'UpdateCompleted' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/pyproject.toml b/pyproject.toml index 68f780d..05cad60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fireblocks" -version = "12.1.1" +version = "0.0.0" description = "Fireblocks API" authors = ["Fireblocks "] license = "MIT License" diff --git a/setup.py b/setup.py index bc02d1f..79def17 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "fireblocks" -VERSION = "12.1.1" +VERSION = "0.0.0" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", diff --git a/test/test_collection_burn_request_dto.py b/test/test_collection_burn_request_dto.py index 01c909a..2fcada7 100644 --- a/test/test_collection_burn_request_dto.py +++ b/test/test_collection_burn_request_dto.py @@ -39,7 +39,8 @@ def make_instance(self, include_optional) -> CollectionBurnRequestDto: return CollectionBurnRequestDto( vault_account_id = '0', token_id = '1', - amount = '1' + amount = '1', + external_id = '0192e4f5-924e-7bb9-8e5b-c748270feb38' ) else: return CollectionBurnRequestDto( diff --git a/test/test_collection_mint_request_dto.py b/test/test_collection_mint_request_dto.py index 72af858..78207e2 100644 --- a/test/test_collection_mint_request_dto.py +++ b/test/test_collection_mint_request_dto.py @@ -53,7 +53,8 @@ def make_instance(self, include_optional) -> CollectionMintRequestDto: trait_type = 'project_start', value = '30102000', display_type = 'date', ) - ], ) + ], ), + external_id = '0192e4f5-924e-7bb9-8e5b-c748270feb38' ) else: return CollectionMintRequestDto(