Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CollectionBurnRequestDto.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions docs/CollectionMintRequestDto.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions docs/ComplianceResultStatusesEnum.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


6 changes: 4 additions & 2 deletions docs/KeyLinkBetaApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion fireblocks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions fireblocks/api/key_link_beta_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)],
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -738,6 +742,7 @@ def _get_signing_keys_list_serialize(
enabled,
available,
is_assigned,
key_prefix,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fireblocks/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
6 changes: 4 additions & 2 deletions fireblocks/models/collection_burn_request_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions fireblocks/models/collection_mint_request_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions fireblocks/models/compliance_result_statuses_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fireblocks"
version = "12.1.1"
version = "0.0.0"
description = "Fireblocks API"
authors = ["Fireblocks <support@fireblocks.com>"]
license = "MIT License"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion test/test_collection_burn_request_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion test/test_collection_mint_request_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading